22 #include <linux/kernel.h>
25 #include <linux/i2c.h>
30 #include <linux/input.h>
33 #include <linux/omapfb.h>
44 #include <mach/irda.h>
46 #include <mach/flash.h>
48 #include <mach/hardware.h>
55 #define OMAP1610_ETHR_START 0x04000300
57 static const unsigned int h2_keymap[] = {
119 .name =
"filesystem",
129 .parts = h2_nor_partitions,
133 static struct resource h2_nor_resource = {
139 .name =
"physmap-flash",
142 .platform_data = &h2_nor_data,
145 .resource = &h2_nor_resource,
161 .name =
"bootloader",
178 .name =
"filesystem",
184 #define H2_NAND_RB_GPIO_PIN 62
186 static int h2_nand_dev_ready(
struct mtd_info *mtd)
195 .nr_partitions =
ARRAY_SIZE(h2_nand_partitions),
196 .partitions = h2_nand_partitions,
201 .dev_ready = h2_nand_dev_ready,
205 static struct resource h2_nand_resource = {
213 .platform_data = &h2_nand_platdata,
216 .resource = &h2_nand_resource,
225 static struct resource h2_smc91x_resources[] = {
240 .platform_data = &h2_smc91x_info,
242 .num_resources =
ARRAY_SIZE(h2_smc91x_resources),
243 .resource = h2_smc91x_resources,
246 static struct resource h2_kp_resources[] = {
262 .keymap_data = &h2_keymap_data,
269 .name =
"omap-keypad",
272 .platform_data = &h2_kp_data,
275 .resource = h2_kp_resources,
278 #define H2_IRDA_FIRSEL_GPIO_PIN 17
290 static struct resource h2_irda_resources[] = {
298 static u64 irda_dmamask = 0xffffffff;
304 .platform_data = &h2_irda_data,
305 .dma_mask = &irda_dmamask,
307 .num_resources =
ARRAY_SIZE(h2_irda_resources),
308 .resource = h2_irda_resources,
311 static struct gpio_led h2_gpio_led_pins[] = {
314 .default_trigger =
"heartbeat",
319 .default_trigger =
"cpu0",
325 .leds = h2_gpio_led_pins,
333 .platform_data = &h2_gpio_led_data,
346 static void __init h2_init_smc91x(
void)
349 printk(
"Error requesting gpio 0 for smc91x irq\n");
371 .platform_data = &tps_board,
381 #ifdef CONFIG_USB_GADGET_OMAP
384 #elif defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
393 .ctrl_name =
"internal",
396 static void __init h2_init(
void)
409 h2_nor_resource.
end = h2_nor_resource.
start = omap_cs3_phys();
458 .atag_offset = 0x100,
459 .map_io = omap16xx_map_io,
463 .init_machine = h2_init,