Example #1
0
static void __init acclaim_init(void)
{
	int status;
	int package = OMAP_PACKAGE_CBS;

	if (omap_rev() == OMAP4430_REV_ES1_0)
		package = OMAP_PACKAGE_CBL;
	omap4_mux_init(acclaim_board_mux, NULL, package);

	acclaim_board_init();
	acclaim_ram_init ();
	omap4_create_board_props();
	acclaim_set_osc_timings();
	acclaim_i2c_init();
	acclaim_enable_rtc_gpio();
	omap4_register_ion();
	platform_add_devices(acclaim_devices, ARRAY_SIZE(acclaim_devices));
	
#ifdef CONFIG_CHARGER_MAX8903	
	acclaim_init_charger();
#endif
	
	acclaim_serial_init();

	acclaim_twl6030_hsmmc_init(mmc);
	acclaim_wifi_init();
#ifdef CONFIG_INPUT_KXTF9
	kxtf9_dev_init();
#endif
	
#ifdef CONFIG_INPUT_KXTJ9
	kxtj9_dev_init();
#endif

#ifdef CONFIG_BATTERY_MAX17042
	acclaim_max17042_dev_init();
#endif
	acclaim_ehci_ohci_init();

	usb_musb_init(&musb_board_data);

	keyboard_mux_init();
	status = omap4_keyboard_init(&acclaim_keypad_data);
	if (status)
		pr_err("Keypad initialization failed: %d\n", status);
	omap_dmm_init();
	acclaim_panel_init();
	omap_enable_smartreflex_on_init();
	if (enable_suspend_off)
		omap_pm_enable_off_mode();

}
void __init omap_ovation_init(void)
{
	int package = OMAP_PACKAGE_CBS;

	if (omap_rev() == OMAP4430_REV_ES1_0)
		package = OMAP_PACKAGE_CBL;
	omap4_mux_init(board_mux, NULL, package);

	/* Turn off the external FET for twl6032 charger */
	gpio_request ( EXT_FET_EN , "EXT-FET-EN" );
	gpio_direction_output ( EXT_FET_EN , 0 );

	/* EVT1a bringup only */
	if (system_rev == OVATION_EVT1A) {
		/* The GPIO for Charging level - 1=2A, 0=1A */
		gpio_request(44, "ic_chg_level");
		gpio_direction_output(44, 1);
	}

	ovation_mem_init();
	omap_board_config = ovation_config;
	omap_board_config_size = ARRAY_SIZE(ovation_config);
	omap4_create_board_props();
	omap4_audio_conf();
	omap4_i2c_init();
	ovation_lcd_touch_init();
	ovation_touch_init();
	omap_dmm_init();
	ovation_panel_init();
	ovation_pmic_mux_init();
	ovation_button_init();
	kxtj9_dev_init();
	omap4_register_ion();
	board_serial_init();
	bn_wilink_init();

	omap4_twl6030_hsmmc_init(mmc);
	usb_musb_init(&musb_board_data);

	omap_enable_smartreflex_on_init();
        if (enable_suspend_off)
                omap_pm_enable_off_mode();

	/* Enable GG bat_low irq to wake up device to inform framework to shutdown. */
	omap_mux_init_gpio(BQ27500_BAT_LOW_GPIO, OMAP_PIN_INPUT | OMAP_PIN_OFF_WAKEUPENABLE);
}