19 #include <linux/kernel.h>
47 #define LED0_GPIO13 13
48 #define LED1_GPIO14 14
49 #define LED2_GPIO15 15
50 #define SW_ENTER_GPIO16 16
51 #define SW_UP_GPIO17 17
52 #define SW_DOWN_GPIO58 58
54 #define APOLLON_FLASH_CS 0
55 #define APOLLON_ETH_CS 1
56 #define APOLLON_ETHR_GPIO_IRQ 74
60 .name =
"X-Loader + U-Boot",
81 .name =
"filesystem00",
86 .name =
"filesystem01",
93 .parts = apollon_partitions,
97 static struct resource apollon_flash_resource[] = {
104 .name =
"onenand-flash",
107 .platform_data = &apollon_flash_data,
109 .num_resources =
ARRAY_SIZE(apollon_flash_resource),
110 .resource = apollon_flash_resource,
113 static void __init apollon_flash_init(
void)
121 apollon_flash_resource[0].
start = base;
122 apollon_flash_resource[0].
end = base +
SZ_128K - 1;
131 static struct resource apollon_smc91x_resources[] = {
144 .platform_data = &appolon_smc91x_info,
146 .num_resources =
ARRAY_SIZE(apollon_smc91x_resources),
147 .resource = apollon_smc91x_resources,
153 .name =
"apollon:led0",
159 .name =
"apollon:led1",
165 .name =
"apollon:led2",
173 .leds = apollon_led_config,
180 .platform_data = &apollon_led_data,
185 &apollon_onenand_device,
186 &apollon_smc91x_device,
190 static inline void __init apollon_init_smc91x(
void)
195 struct clk *gpmc_fck;
200 if (IS_ERR(gpmc_fck)) {
205 clk_prepare_enable(gpmc_fck);
213 if (rate >= 160000000) {
219 }
else if (rate >= 130000000) {
237 apollon_smc91x_resources[0].
start = base + 0x300;
238 apollon_smc91x_resources[0].
end = base + 0x30f;
249 clk_disable_unprepare(gpmc_fck);
259 .driver_name =
"generic_dpi_panel",
261 .phy.dpi.data_lines = 18,
262 .data = &apollon_panel_data,
270 .num_devices =
ARRAY_SIZE(apollon_dss_devices),
271 .devices = apollon_dss_devices,
272 .default_device = &apollon_lcd_device,
275 static struct gpio apollon_gpio_leds[] __initdata = {
281 static void __init apollon_led_init(
void)
283 omap_mux_init_signal(
"vlynq_clk.gpio_13", 0);
284 omap_mux_init_signal(
"vlynq_rx1.gpio_14", 0);
285 omap_mux_init_signal(
"vlynq_rx0.gpio_15", 0);
290 #ifdef CONFIG_OMAP_MUX
296 static void __init omap_apollon_init(
void)
302 apollon_init_smc91x();
304 apollon_flash_init();
332 .atag_offset = 0x100,
338 .init_machine = omap_apollon_init,