|
@@ -412,3 +412,55 @@ static void __init h2_init(void)
|
|
|
|
|
|
h2_nand_resource.end = h2_nand_resource.start = OMAP_CS2B_PHYS;
|
|
|
h2_nand_resource.end += SZ_4K - 1;
|
|
|
+ BUG_ON(gpio_request(H2_NAND_RB_GPIO_PIN, "NAND ready") < 0);
|
|
|
+ gpio_direction_input(H2_NAND_RB_GPIO_PIN);
|
|
|
+
|
|
|
+ omap_cfg_reg(L3_1610_FLASH_CS2B_OE);
|
|
|
+ omap_cfg_reg(M8_1610_FLASH_CS2B_WE);
|
|
|
+
|
|
|
+ /* MMC: card detect and WP */
|
|
|
+ /* omap_cfg_reg(U19_ARMIO1); */ /* CD */
|
|
|
+ omap_cfg_reg(BALLOUT_V8_ARMIO3); /* WP */
|
|
|
+
|
|
|
+ /* Mux pins for keypad */
|
|
|
+ omap_cfg_reg(F18_1610_KBC0);
|
|
|
+ omap_cfg_reg(D20_1610_KBC1);
|
|
|
+ omap_cfg_reg(D19_1610_KBC2);
|
|
|
+ omap_cfg_reg(E18_1610_KBC3);
|
|
|
+ omap_cfg_reg(C21_1610_KBC4);
|
|
|
+ omap_cfg_reg(G18_1610_KBR0);
|
|
|
+ omap_cfg_reg(F19_1610_KBR1);
|
|
|
+ omap_cfg_reg(H14_1610_KBR2);
|
|
|
+ omap_cfg_reg(E20_1610_KBR3);
|
|
|
+ omap_cfg_reg(E19_1610_KBR4);
|
|
|
+ omap_cfg_reg(N19_1610_KBR5);
|
|
|
+
|
|
|
+ /* GPIO based LEDs */
|
|
|
+ omap_cfg_reg(P18_1610_GPIO3);
|
|
|
+ omap_cfg_reg(MPUIO4);
|
|
|
+
|
|
|
+ h2_smc91x_resources[1].start = gpio_to_irq(0);
|
|
|
+ h2_smc91x_resources[1].end = gpio_to_irq(0);
|
|
|
+ platform_add_devices(h2_devices, ARRAY_SIZE(h2_devices));
|
|
|
+ omap_serial_init();
|
|
|
+ h2_i2c_board_info[0].irq = gpio_to_irq(58);
|
|
|
+ h2_i2c_board_info[1].irq = gpio_to_irq(2);
|
|
|
+ omap_register_i2c_bus(1, 100, h2_i2c_board_info,
|
|
|
+ ARRAY_SIZE(h2_i2c_board_info));
|
|
|
+ omap1_usb_init(&h2_usb_config);
|
|
|
+ h2_mmc_init();
|
|
|
+
|
|
|
+ omapfb_set_lcd_config(&h2_lcd_config);
|
|
|
+}
|
|
|
+
|
|
|
+MACHINE_START(OMAP_H2, "TI-H2")
|
|
|
+ /* Maintainer: Imre Deak <imre.deak@nokia.com> */
|
|
|
+ .atag_offset = 0x100,
|
|
|
+ .map_io = omap16xx_map_io,
|
|
|
+ .init_early = omap1_init_early,
|
|
|
+ .init_irq = omap1_init_irq,
|
|
|
+ .init_machine = h2_init,
|
|
|
+ .init_late = omap1_init_late,
|
|
|
+ .timer = &omap1_timer,
|
|
|
+ .restart = omap1_restart,
|
|
|
+MACHINE_END
|