|
@@ -552,3 +552,72 @@ static void __init pandora_wl1251_init(void)
|
|
|
if (ret < 0)
|
|
|
goto fail_irq;
|
|
|
|
|
|
+ return;
|
|
|
+
|
|
|
+fail_irq:
|
|
|
+ gpio_free(PANDORA_WIFI_IRQ_GPIO);
|
|
|
+fail:
|
|
|
+ printk(KERN_ERR "wl1251 board initialisation failed\n");
|
|
|
+}
|
|
|
+
|
|
|
+static struct platform_device *omap3pandora_devices[] __initdata = {
|
|
|
+ &pandora_leds_gpio,
|
|
|
+ &pandora_keys_gpio,
|
|
|
+ &pandora_vwlan_device,
|
|
|
+ &pandora_backlight,
|
|
|
+};
|
|
|
+
|
|
|
+static const struct usbhs_omap_board_data usbhs_bdata __initconst = {
|
|
|
+
|
|
|
+ .port_mode[0] = OMAP_USBHS_PORT_MODE_UNUSED,
|
|
|
+ .port_mode[1] = OMAP_EHCI_PORT_MODE_PHY,
|
|
|
+ .port_mode[2] = OMAP_USBHS_PORT_MODE_UNUSED,
|
|
|
+
|
|
|
+ .phy_reset = true,
|
|
|
+ .reset_gpio_port[0] = -EINVAL,
|
|
|
+ .reset_gpio_port[1] = 16,
|
|
|
+ .reset_gpio_port[2] = -EINVAL
|
|
|
+};
|
|
|
+
|
|
|
+#ifdef CONFIG_OMAP_MUX
|
|
|
+static struct omap_board_mux board_mux[] __initdata = {
|
|
|
+ { .reg_offset = OMAP_MUX_TERMINATOR },
|
|
|
+};
|
|
|
+#endif
|
|
|
+
|
|
|
+static void __init omap3pandora_init(void)
|
|
|
+{
|
|
|
+ omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
|
|
|
+ omap_hsmmc_init(omap3pandora_mmc);
|
|
|
+ omap3pandora_i2c_init();
|
|
|
+ pandora_wl1251_init();
|
|
|
+ platform_add_devices(omap3pandora_devices,
|
|
|
+ ARRAY_SIZE(omap3pandora_devices));
|
|
|
+ omap_display_init(&pandora_dss_data);
|
|
|
+ omap_serial_init();
|
|
|
+ omap_sdrc_init(mt46h32m32lf6_sdrc_params,
|
|
|
+ mt46h32m32lf6_sdrc_params);
|
|
|
+ spi_register_board_info(omap3pandora_spi_board_info,
|
|
|
+ ARRAY_SIZE(omap3pandora_spi_board_info));
|
|
|
+ omap_ads7846_init(1, OMAP3_PANDORA_TS_GPIO, 0, NULL);
|
|
|
+ usbhs_init(&usbhs_bdata);
|
|
|
+ usb_musb_init(NULL);
|
|
|
+ gpmc_nand_init(&pandora_nand_data, NULL);
|
|
|
+
|
|
|
+ /* Ensure SDRC pins are mux'd for self-refresh */
|
|
|
+ omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
|
|
|
+ omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);
|
|
|
+}
|
|
|
+
|
|
|
+MACHINE_START(OMAP3_PANDORA, "Pandora Handheld Console")
|
|
|
+ .atag_offset = 0x100,
|
|
|
+ .reserve = omap_reserve,
|
|
|
+ .map_io = omap3_map_io,
|
|
|
+ .init_early = omap35xx_init_early,
|
|
|
+ .init_irq = omap3_init_irq,
|
|
|
+ .handle_irq = omap3_intc_handle_irq,
|
|
|
+ .init_machine = omap3pandora_init,
|
|
|
+ .init_late = omap35xx_init_late,
|
|
|
+ .timer = &omap3_timer,
|
|
|
+ .restart = omap3xxx_restart,
|
|
|
+MACHINE_END
|