Example #1
0
void __init hub_peripherals_init(void)
{
	hub_mmc1_gpio_init();
	omap_i2c_init();
	platform_add_devices(hub_devices, ARRAY_SIZE(hub_devices));

	hub_synaptics_dev_init(); // 20100619 [email protected] Hub touchscreen

// [email protected] Adapted to new interface of omap_serial_init() in 2.6.35 kernel [START]
//	omap_serial_init();
	omap_serial_init(omap_serial_platform_data);	
// [email protected] Adapted to new interface of omap_serial_init() in 2.6.35 kernel [END]
#ifdef CONFIG_INPUT_HALLEFFECT_BU52014HV
	sniper_hall_effect_init();
#endif
#ifdef CONFIG_PANEL_HUB
	hub_lcd_tv_panel_init();
#endif
	usb_musb_init(&musb_board_data);
// [email protected] Added function to initialize SYS_NIRQ pin [START]
	enable_board_wakeup_source();
// [email protected] Added function to initialize SYS_NIRQ pin [END]
	hub_cam_init();

#ifdef CONFIG_LGE_SPI
	hub_ipc_spi_init();
#endif

//--[[ LGE_UBIQUIX_MODIFIED_START : [email protected] - TDMB
#ifdef CONFIG_SPI_TDMB
	hub_tdmb_spi_init();
#endif
//--]] LGE_UBIQUIX_MODIFIED_END : [email protected] - TDMB
}
Example #2
0
static void __init omap_3430sdp_init(void)
{
	int gpio_pendown;

	omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
	omap_hsmmc_init(mmc);
	omap3430_i2c_init();
	omap_display_init(&sdp3430_dss_data);
	platform_device_register(&sdp3430_lcd_device);
	platform_device_register(&sdp3430_tfp410_device);
	platform_device_register(&sdp3430_dvi_connector_device);
	platform_device_register(&sdp3430_tv_connector_device);

	if (omap_rev() > OMAP3430_REV_ES1_0)
		gpio_pendown = SDP3430_TS_GPIO_IRQ_SDPV2;
	else
		gpio_pendown = SDP3430_TS_GPIO_IRQ_SDPV1;
	omap_ads7846_init(1, gpio_pendown, 310, NULL);
	omap_serial_init();
	omap_sdrc_init(hyb18m512160af6_sdrc_params, NULL);
	usb_bind_phy("musb-hdrc.0.auto", 0, "twl4030_usb");
	usb_musb_init(NULL);
	board_smc91x_init();
	board_flash_init(sdp_flash_partitions, chip_sel_3430, 0);
	sdp3430_display_init();
	enable_board_wakeup_source();

	usbhs_init_phys(phy_data, ARRAY_SIZE(phy_data));
	usbhs_init(&usbhs_bdata);
}
static void __init board_init(void)
{
	int num_displays = 0;

	init_buffer_pbias();

	omap_board_config = board_config;
	omap_board_config_size = ARRAY_SIZE(board_config);

#ifdef CONFIG_CLOCKS_INIT
	archos_clocks_init(&board_clocks);
#endif
	archos_leds_init();	// set it here mask hugly transitions

	/* before omap_i2c_init() or IRQ will not forwarded to driver */
	if (display_config.nrev > hardware_rev)
		archos_hdmi_gpio_init(&display_config.rev[hardware_rev]);

	msecure_init();
	/* offmode config, before I2C config! */
	board_offmode_config();
	omap_i2c_init();
	/* Fix to prevent VIO leakage on wl127x */
	wl127x_vio_leakage_fix();

#if defined CONFIG_OMAP2_DSS
	if (archos_lcd_panel_init(&board_lcd_device) == 0) {
		board_dss_devices[num_displays++] = &board_lcd_device;
		board_dss_data.default_device = &board_lcd_device;
	}
	board_dss_devices[num_displays++] = &board_hdmi_device;
#ifdef CONFIG_OMAP2_DSS_DUMMY
	board_dss_devices[num_displays++] = &board_dummy_device;
	board_dss_data.default_device = &board_dummy_device;
#endif /* CONFIG_OMAP2_DSS_DUMMY */
	board_dss_data.num_devices = num_displays;
#endif/* CONFIG_OMAP2_DSS */

	platform_add_devices(board_devices, ARRAY_SIZE(board_devices));

	omap_cfg_reg(H20_3430_UART3_RX_IRRX);
	omap_serial_init();

	usb_musb_init();

	archos_usb_ehci_init();

	archos_accel_init(&board_mma7660fc_pdata);

	twl4030_mmc_init(mmc);
	board_vmmc2_supply.dev = mmc[0].dev;
	
	archos_audio_gpio_init();

	archos_usb2sata_init();

	archos_camera_ov7675_init();
	archos_keys_init();
	enable_board_wakeup_source();
}
Example #4
0
static void __init omap_sdp_init(void)
{
	omap3_mux_init(board_mux, OMAP_PACKAGE_CBP);
	zoom_peripherals_init();
	board_smc91x_init();
	enable_board_wakeup_source();
	usb_ehci_init(&ehci_pdata);
}
void __init zoom_peripherals_init(void)
{
	omap_i2c_init();
	synaptics_dev_init();
	omap_serial_init(omap_serial_platform_data);
	usb_musb_init(&musb_board_data);
	enable_board_wakeup_source();
	zoom2_cam_init();
}
void __init latona_peripherals_init(void)
{
      
	omap_i2c_init();
	atmel_dev_init();
	omap_serial_init(omap_serial_platform_data);
	usb_musb_init(&musb_board_data);
	enable_board_wakeup_source();
	
}
static void __init omap_sdp_init(void)
{
	omap3_mux_init(board_mux, OMAP_PACKAGE_CBP);
	omap_serial_init();
	zoom_peripherals_init();
	board_smc91x_init();
	board_flash_init(sdp_flash_partitions, chip_sel_sdp);
	enable_board_wakeup_source();
	usb_ehci_init(&ehci_pdata);
}
Example #8
0
void __init black_peripherals_init(void)
{
	black_mmc1_gpio_init();
	omap_i2c_init();
	platform_add_devices(black_devices, ARRAY_SIZE(black_devices));

//--[[ LGE_UBIQUIX_MODIFIED_START : [email protected] [2011.07.11] - Merged from black_gb_docomo
	black_synaptics_dev_init();
//--]] LGE_UBIQUIX_MODIFIED_END : [email protected] [2011.07.11]- Merged from black_gb_docomo

/* LGE_CHANGE_S, [email protected], 2011-03-03, Porting for MPLv3.3.3 */
#if defined(CONFIG_MPU_SENSORS_MPU3050) || defined(CONFIG_MPU_SENSORS_MPU3050_MODULE)
	mpu3050_dev_init();
#endif
/* LGE_CHANGE_E, [email protected], 2011-03-03, Porting for MPLv3.3.3 */

// [email protected] Adapted to new interface of omap_serial_init() in 2.6.35 kernel [START]
//	omap_serial_init();
	omap_serial_init(omap_serial_platform_data);	
// [email protected] Adapted to new interface of omap_serial_init() in 2.6.35 kernel [END]
#ifdef CONFIG_INPUT_HALLEFFECT_BU52014HV
	sniper_hall_effect_init();
#endif
#ifdef CONFIG_PANEL_BLACK
	black_lcd_tv_panel_init();
#endif
	usb_musb_init(&musb_board_data);
// [email protected] Added function to initialize SYS_NIRQ pin [START]
	enable_board_wakeup_source();
// [email protected] Added function to initialize SYS_NIRQ pin [END]
	black_cam_init();

#ifdef CONFIG_LGE_SPI
	black_ipc_spi_init();
#endif

//--[[ LGE_UBIQUIX_MODIFIED_START : [email protected] [2011.07.01] - TDMB
#ifdef CONFIG_SPI_TDMB
	black_tdmb_spi_init();
#endif

/* S, 20110810, [email protected], Enable Fuelgauge. */
#if defined (CONFIG_FUELGAUGE_MAX17043)
	max17043_init();
#endif
/* E, 20110810, [email protected], Enable Fuelgauge. */

//--[[ LGE_UBIQUIX_MODIFIED_START : [email protected] [2011.07.11] - Black Key Touch & Key Touch LED
#if defined (CONFIG_LEDS_BD2802_LGE)
	bd2802_init();
#endif
//--]] LGE_UBIQUIX_MODIFIED_END : [email protected] [2011.07.11]- Black Key Touch & Key Touch LED

//--]] LGE_UBIQUIX_MODIFIED_END : [email protected] [2011.07.01] - TDMB
}
Example #9
0
static void __init omap_sdp_init(void)
{
	omap3_mux_init(board_mux, OMAP_PACKAGE_CBP);
	zoom_peripherals_init();
	board_smc91x_init();
	enable_board_wakeup_source();
	omap_mux_init_signal("gpio_126", OMAP_PIN_OUTPUT);
    omap_mux_init_signal("gpio_61", OMAP_PIN_OUTPUT);
	usb_ehci_init(&ehci_pdata);
	usb_ohci_init(&ohci_pdata);
}
void __init zoom_peripherals_init(void)
{
	if (wl12xx_set_platform_data(&omap_zoom_wlan_data))
		pr_err("error setting wl12xx data\n");

	omap_i2c_init();
	platform_device_register(&omap_vwlan_device);
	usb_musb_init(&musb_board_data);
	enable_board_wakeup_source();
	omap_serial_init();
}
Example #11
0
static void __init omap_sdp_init(void)
{
	omap3_mux_init(board_mux, OMAP_PACKAGE_CBP);
	omap_board_config = sdp_config;
	omap_board_config_size = ARRAY_SIZE(sdp_config);
	zoom_peripherals_init();
	zoom_display_init();
	board_smc91x_init();
	board_flash_init(sdp_flash_partitions, chip_sel_sdp, NAND_BUSWIDTH_16);
	enable_board_wakeup_source();
	usbhs_init(&usbhs_bdata);
}
void __init zoom_peripherals_init(void)
{
	omap_i2c_init();
	platform_add_devices(zoom_board_devices,
		ARRAY_SIZE(zoom_board_devices));
	synaptics_dev_init();
	omap_serial_init(omap_serial_platform_data);
	usb_musb_init(&musb_board_data);
	enable_board_wakeup_source();
	zoom2_cam_init();
#ifdef CONFIG_PANEL_SIL9022
	config_hdmi_gpio();
	zoom_hdmi_reset_enable(1);
#endif
}
static void __init board_init(void)
{
	int num_displays = 0;

	omap_board_config = board_config;
	omap_board_config_size = ARRAY_SIZE(board_config);

	msecure_init();
	/* offmode config, before I2C config! */
	board_offmode_config();	
	omap_i2c_init();
	/* Fix to prevent VIO leakage on wl127x */
	wl127x_vio_leakage_fix();

#if defined CONFIG_OMAP2_DSS
	if (archos_lcd_panel_init(&board_lcd_device) == 0) {
		board_dss_devices[num_displays++] = &board_lcd_device;
		board_dss_data.default_device = &board_lcd_device;
	}
#ifdef CONFIG_OMAP2_DSS_DUMMY
	board_dss_devices[num_displays++] = &board_dummy_device;
	board_dss_data.default_device = &board_dummy_device;
#endif /* CONFIG_OMAP2_DSS_DUMMY */
	board_dss_data.num_devices = num_displays;
#endif/* CONFIG_OMAP2_DSS */

	platform_add_devices(board_devices, ARRAY_SIZE(board_devices));

	omap_cfg_reg(R3_3611_UART2_RX);
	omap_cfg_reg(Y3_3611_UART1_RX);
	omap_cfg_reg(AA2_3611_UART1_CTS);
	omap_serial_init();
	usb_musb_init();

	archos_accel_init(&board_mma7660fc_pdata);

	ads7846_dev_init();

	archos_mmc1_setup_gpios(&mmc[0], &board_vmmc_ext);
	twl4030_mmc_init(mmc);
	board_vmmc_ext_supply.dev = mmc[0].dev;
	board_vmmc2_supply.dev = mmc[1].dev;

	archos_audio_gpio_init();
	archos_leds_init();
	archos_keys_init();
	enable_board_wakeup_source();
}
Example #14
0
void __init hub_peripherals_init(void)
{
	hub_mmc1_gpio_init();

	omap_i2c_init();

#ifdef CONFIG_REGULATOR_LP8720
	subpm_lp8720_init();
#endif
	platform_add_devices(hub_devices, ARRAY_SIZE(hub_devices));

//--[[ LGE_UBIQUIX_MODIFIED_START : [email protected] [2012.03.21] - When added to the board-ku5900-peripherals.c will be rollback.(TBD)
//#ifdef CONFIG_TOUCHSCREEN_HUB_SYNAPTICS
#if defined(CONFIG_TOUCHSCREEN_HUB_SYNAPTICS) || defined(CONFIG_TOUCHSCREEN_KU5900_SYNAPTICS)
	hub_synaptics_dev_init();
#endif
//--]] LGE_UBIQUIX_MODIFIED_END : [email protected] [2012.03.21]- When added to the board-ku5900-peripherals.c will be rollback.(TBD)
/* LGE_CHANGE_S, [email protected], 2011-03-03, Porting for MPLv3.3.3 */
#if defined(CONFIG_MPU_SENSORS_MPU3050) || defined(CONFIG_MPU_SENSORS_MPU3050_MODULE)
	mpu3050_dev_init();
#endif
/* LGE_CHANGE_E, [email protected], 2011-03-03, Porting for MPLv3.3.3 */

	omap_serial_board_init(omap_serial_platform_data);

#ifdef CONFIG_INPUT_HALLEFFECT_BU52014HV
	sniper_hall_effect_init();
#endif
#ifdef CONFIG_PANEL_HUB
	hub_display_init();
#endif
	usb_musb_init(&musb_board_data);
	enable_board_wakeup_source();

//--[[ LGE_UBIQUIX_MODIFIED_START : [email protected] [2012.03.27] - CAM from GB
	hub_cam_init();
//--]] LGE_UBIQUIX_MODIFIED_END : [email protected] [2012.03.27] - CAM from GB

#ifdef CONFIG_LGE_SPI
	hub_ipc_spi_init();
#endif

//--[[ LGE_UBIQUIX_MODIFIED_START : [email protected] [2012.03.29] - TDMB
#ifdef CONFIG_LGE_BROADCAST_TDMB
	hub_tdmb_spi_init();
#endif
//--]] LGE_UBIQUIX_MODIFIED_END : [email protected] [2012.03.29] - TDMB
}
void __init zoom_peripherals_init(void)
{
	int ret;

	omap_zoom_wlan_data.irq = gpio_to_irq(OMAP_ZOOM_WLAN_IRQ_GPIO);
	ret = wl12xx_set_platform_data(&omap_zoom_wlan_data);

	if (ret)
		pr_err("error setting wl12xx data: %d\n", ret);

	omap_hsmmc_init(mmc);
	omap_i2c_init();
	platform_device_register(&omap_vwlan_device);
	usb_musb_init(NULL);
	enable_board_wakeup_source();
	omap_serial_init();
}
Example #16
0
static void __init omap_3430sdp_init(void)
{
	omap3430_i2c_init();
	platform_add_devices(sdp3430_devices, ARRAY_SIZE(sdp3430_devices));
	if (omap_rev() > OMAP3430_REV_ES1_0)
		ts_gpio = SDP3430_TS_GPIO_IRQ_SDPV2;
	else
		ts_gpio = SDP3430_TS_GPIO_IRQ_SDPV1;
	sdp3430_spi_board_info[0].irq = gpio_to_irq(ts_gpio);
	spi_register_board_info(sdp3430_spi_board_info,
				ARRAY_SIZE(sdp3430_spi_board_info));
	ads7846_dev_init();
	omap_serial_init();
	usb_musb_init();
	board_smc91x_init();
	enable_board_wakeup_source();
}
Example #17
0
static void __init board_init(void)
{
	int num_displays = 0;
	
	omap_board_config = board_config;
	omap_board_config_size = ARRAY_SIZE(board_config);

	msecure_init();
	/* offmode config, before I2C config! */
	board_offmode_config();
	omap_i2c_init();
	
	/* Fix to prevent VIO leakage on wl127x */
	wl127x_vio_leakage_fix();
	
#if defined CONFIG_OMAP2_DSS
	if (archos_lcd_panel_init(&board_lcd_device) == 0) {
		board_dss_devices[num_displays++] = &board_lcd_device;
		board_dss_data.default_device = &board_lcd_device;
	}
	board_dss_devices[num_displays++] = &board_tv_device;
	board_dss_data.num_devices = num_displays;
	panel_tv_init();
#endif

	platform_add_devices(board_devices, ARRAY_SIZE(board_devices));

	omap_cfg_reg(H20_3430_UART3_RX_IRRX);
	omap_serial_init();
	usb_musb_init();

	archos_accel_init(&board_mma7660fc_pdata);

	ads7846_dev_init();

	twl4030_mmc_init(mmc);
	board_vmmc2_supply.dev = mmc[0].dev;

	archos_audio_gpio_init();
	archos_camera_ov7675_init();
	archos_leds_init();
	archos_keys_init();
	enable_board_wakeup_source();
}
void __init hub_peripherals_init(void)
{
	hub_mmc1_gpio_init();
	omap_i2c_init();
	subpm_lp8720_init();
	platform_add_devices(hub_devices, ARRAY_SIZE(hub_devices));

	hub_synaptics_dev_init(); // 20100619 [email protected] Hub touchscreen
	hub_mcbsp_init();
/* LGE_CHANGE_S, [email protected], 2011-03-03, Porting for MPLv3.3.3 */
#if defined(CONFIG_MPU_SENSORS_MPU3050) || defined(CONFIG_MPU_SENSORS_MPU3050_MODULE)
	mpu3050_dev_init();
#endif
/* LGE_CHANGE_E, [email protected], 2011-03-03, Porting for MPLv3.3.3 */

// [email protected] Adapted to new interface of omap_serial_init() in 2.6.35 kernel [START]
//	omap_serial_init();
	omap_serial_init(omap_serial_platform_data);	
// [email protected] Adapted to new interface of omap_serial_init() in 2.6.35 kernel [END]
#ifdef CONFIG_INPUT_HALLEFFECT_BU52014HV
	sniper_hall_effect_init();
#endif
#ifdef CONFIG_PANEL_HUB
	hub_lcd_tv_panel_init();
#endif
	usb_musb_init(&musb_board_data);
// [email protected] Added function to initialize SYS_NIRQ pin [START]
	enable_board_wakeup_source();
// [email protected] Added function to initialize SYS_NIRQ pin [END]
	hub_cam_init();

#ifdef CONFIG_LGE_SPI
	hub_ipc_spi_init();
#endif

#ifdef CONFIG_SPI_TDMB
	hub_tdmb_spi_init();
#endif
/*LGSI_LGP970_TD#112577_Call Error_Shilpa_27Oct2011_Start*/
	omap3_mux_config("OMAP_GPIO_43"); // hwlee for test
/*LGSI_LGP970_TD#112577_Call Error_Shilpa_27Oct2011_End*/

}
Example #19
0
void __init zoom_peripherals_init(void)
{
	int ret;

	omap_zoom_wlan_data.irq = gpio_to_irq(OMAP_ZOOM_WLAN_IRQ_GPIO);
	ret = wl12xx_set_platform_data(&omap_zoom_wlan_data);

	if (ret)
		pr_err("error setting wl12xx data: %d\n", ret);

	omap_hsmmc_init(mmc);
	omap_i2c_init();
	pwm_add_table(zoom_pwm_lookup, ARRAY_SIZE(zoom_pwm_lookup));
	platform_add_devices(zoom_devices, ARRAY_SIZE(zoom_devices));
	usb_bind_phy("musb-hdrc.0.auto", 0, "twl4030_usb");
	usb_musb_init(NULL);
	enable_board_wakeup_source();
	omap_serial_init();
}
void __init zoom_peripherals_init(void)
{
	twl4030_get_scripts(&zoom_t2scripts_data);
	omap_i2c_init();
	platform_add_devices(zoom_board_devices,
			ARRAY_SIZE(zoom_board_devices));
	synaptics_dev_init();
	omap_serial_init();
#if defined(CONFIG_MACH_OMAP_ZOOM3) || defined(CONFIG_MACH_OMAP_ZOOM2)
	zoom_lcd_tv_panel_init();
#endif
	usb_musb_init(&musb_board_data);
	enable_board_wakeup_source();
	zoom2_cam_init();
#ifdef CONFIG_PANEL_SIL9022
	config_hdmi_gpio();
	zoom_hdmi_reset_enable(1);
#endif
}
void __init hub_peripherals_init(void)
{
        sniper_select_magnetic_device();

	hub_mmc1_gpio_init();
	omap_i2c_init();
	subpm_lp8720_init();
	platform_add_devices(hub_devices, ARRAY_SIZE(hub_devices));

	hub_synaptics_dev_init();

#ifdef CONFIG_TOUCHSCREEN_ANDROID_VIRTUALKEYS
        sniper_init_android_virtualkeys();
#endif

#if defined(CONFIG_MPU_SENSORS_MPU3050) || defined(CONFIG_MPU_SENSORS_MPU3050_MODULE)
	mpu3050_dev_init();
#endif

//	omap_serial_init();
	omap_serial_init(omap_serial_platform_data);	
#ifdef CONFIG_INPUT_HALLEFFECT_BU52014HV
	sniper_hall_effect_init();
#endif
#ifdef CONFIG_PANEL_HUB
	hub_lcd_tv_panel_init();
#endif
	usb_musb_init(&musb_board_data);
	enable_board_wakeup_source();
	hub_cam_init();

#ifdef CONFIG_LGE_SPI
	hub_ipc_spi_init();
#endif

#ifdef CONFIG_SPI_TDMB
	hub_tdmb_spi_init();
#endif
/*LGSI_LGP970_TD#112577_Call Error_Shilpa_27Oct2011_Start*/
	omap3_mux_config("OMAP_GPIO_43"); // hwlee for test
/*LGSI_LGP970_TD#112577_Call Error_Shilpa_27Oct2011_End*/

}
Example #22
0
static void __init omap_sdp_init(void)
{
	omap3_mux_init(board_mux, OMAP_PACKAGE_CBP);
	//omap_board_config = sdp_config;
	//omap_board_config_size = ARRAY_SIZE(sdp_config);
	evt_peripherals_init();
      evt_lcd_panel_init();
	config_wlan_mux();

	conn_add_plat_device();

	//zoom_peripherals_init();
	//zoom_display_init();
	//board_smc91x_init();
	//board_flash_init(sdp_flash_partitions, chip_sel_sdp, NAND_BUSWIDTH_16);
	enable_board_wakeup_source();
	//usbhs_init(&usbhs_bdata);
#if CONFIG_ION_OMAP			//Henry Li
	omap_register_ion();	
#endif
}
static void __init omap_3430sdp_init(void)
{
	omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
	omap3430_i2c_init();
	platform_add_devices(sdp3430_devices, ARRAY_SIZE(sdp3430_devices));
	if (omap_rev() > OMAP3430_REV_ES1_0)
		ts_gpio = SDP3430_TS_GPIO_IRQ_SDPV2;
	else
		ts_gpio = SDP3430_TS_GPIO_IRQ_SDPV1;
	sdp3430_spi_board_info[0].irq = gpio_to_irq(ts_gpio);
	spi_register_board_info(sdp3430_spi_board_info,
				ARRAY_SIZE(sdp3430_spi_board_info));
	ads7846_dev_init();
	omap_serial_init();
	usb_musb_init(&musb_board_data);
	board_smc91x_init();
	board_flash_init(sdp_flash_partitions, chip_sel_3430);
	sdp3430_display_init();
	enable_board_wakeup_source();
	usb_ehci_init(&ehci_pdata);
}
void __init omap_board_peripherals_init(void)
{
	printk("*******board_peripherals_init*****\n");
	twl4030_get_scripts(&latona_t2scripts_data);

	omap_i2c_init();

    platform_add_devices(board_devices, ARRAY_SIZE(board_devices));
       omap_board_usb_data.sensor_dev = &samsung_pl_sensor_power_device.dev;    // Add for regulator
       
	spi_register_board_info( board_spi_board_info, ARRAY_SIZE( board_spi_board_info ) );
       
	atmel_dev_init();
	omap_serial_init(omap_serial_platform_data);
	usb_musb_init(&musb_board_data);
	board_init_power_key();
	enable_board_wakeup_source();
	board_init_battery();
#ifdef CONFIG_INPUT_ZEUS_EAR_KEY
	board_init_ear_key();
#endif
}
Example #25
0
static void __init omap_3430sdp_init(void)
{
	int gpio_pendown;

	omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
	omap_board_config = sdp3430_config;
	omap_board_config_size = ARRAY_SIZE(sdp3430_config);
	omap3430_i2c_init();
	omap_display_init(&sdp3430_dss_data);
	if (omap_rev() > OMAP3430_REV_ES1_0)
		gpio_pendown = SDP3430_TS_GPIO_IRQ_SDPV2;
	else
		gpio_pendown = SDP3430_TS_GPIO_IRQ_SDPV1;
	omap_ads7846_init(1, gpio_pendown, 310, NULL);
	omap_serial_init();
	usb_musb_init(NULL);
	board_smc91x_init();
	board_flash_init(sdp_flash_partitions, chip_sel_3430, 0);
	sdp3430_display_init();
	enable_board_wakeup_source();
	usbhs_init(&usbhs_bdata);
}
static void __init omap_3430sdp_init(void)
{
	omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
	omap_board_config = sdp3430_config;
	omap_board_config_size = ARRAY_SIZE(sdp3430_config);
	omap3_pm_init_cpuidle(omap3_cpuidle_params_table);
	omap3430_i2c_init();
	omap_display_init(&sdp3430_dss_data);
	if (omap_rev() > OMAP3430_REV_ES1_0)
		ts_gpio = SDP3430_TS_GPIO_IRQ_SDPV2;
	else
		ts_gpio = SDP3430_TS_GPIO_IRQ_SDPV1;
	sdp3430_spi_board_info[0].irq = gpio_to_irq(ts_gpio);
	spi_register_board_info(sdp3430_spi_board_info,
				ARRAY_SIZE(sdp3430_spi_board_info));
	ads7846_dev_init();
	board_serial_init();
	usb_musb_init(&musb_board_data);
	board_smc91x_init();
	board_flash_init(sdp_flash_partitions, chip_sel_3430, 0);
	sdp3430_display_init();
	enable_board_wakeup_source();
	usbhs_init(&usbhs_bdata);
}
static void __init board_init(void)
{
	int package = OMAP_PACKAGE_CBS;
	int status;

	omap_board_config = board_config;
	omap_board_config_size = ARRAY_SIZE(board_config);

	board_set_osc_timings();

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

	archos_memory_init();

	omap4_i2c_init();
	board_buttons_init();
	board_xceiv_init();

	archos_usb_musb_init(&archos_vbus_info);
	archos_audio_twl6040_init(&twl6040_codec);
	archos_accel_mma8453q_init(&board_mma8453q_pdata);
	archos_compass_init(&board_akm8975_pdata);
	archos_battery_twl4030_bci_init(&board_bci_data);

	omap4_leds_init();

	platform_add_devices(a101s_devices, ARRAY_SIZE(a101s_devices));

	board_touch_init();
	wake_lock_init(&st_wk_lock, WAKE_LOCK_SUSPEND, "st_wake_lock");
	board_serial_init();
	board_wifi_init();

	usb_musb_init(&musb_board_data);

	omap4_twl6030_hsmmc_init(mmc);

	archos_omap4_ehci_init();
	archos_camera_mt9m114_init();

	omap_dmm_init();
	omap_board_display_init();

	archos_hsusb_ext_regulator_init();

	enable_board_wakeup_source();

	hardware_comp.tps62361 = 1;

	/* Vsel0 = gpio, vsel1 = gnd */
	status = omap_tps6236x_board_setup(true, TPS62361_GPIO, -1,
				OMAP_PIN_OFF_OUTPUT_HIGH, -1);
	if (status)
		pr_err("TPS62361 initialization failed: %d\n", status);

	omap_enable_smartreflex_on_init();

	if (omap_rev() >= OMAP4430_REV_ES2_3)
		if (enable_suspend_off)
			omap_pm_enable_off_mode();
}
void __init zoom_peripherals_init(void)
{
	omap_i2c_init();
	usb_musb_init(&musb_board_data);
	enable_board_wakeup_source();
}
void __init acclaim_peripherals_init(void)
{
	int status;
	int package = OMAP_PACKAGE_CBS;
	ulong sdram_size = get_sdram_size();

	ramconsole_init();

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

	if (sdram_vendor() == SAMSUNG_SDRAM) {
		if (sdram_size == SZ_512M) {
			omap_emif_setup_device_details(&emif_devices_512_samsung, &emif_devices_512_samsung);
		} else if (sdram_size == SZ_1G) {
			omap_emif_setup_device_details(&emif_devices_samsung, &emif_devices_samsung);
		} else {
			pr_err("sdram memory size does not exist, default to using 1024MB \n");
			omap_emif_setup_device_details(&emif_devices_samsung, &emif_devices_samsung);
		}
		printk(KERN_INFO"Samsung DDR Memory \n");
	} else if (sdram_vendor() == ELPIDA_SDRAM) {
		if (sdram_size == SZ_512M) {
			omap_emif_setup_device_details(&emif_devices_512_elpida, &emif_devices_512_elpida);
		} else if (sdram_size == SZ_1G) {
			omap_emif_setup_device_details(&emif_devices_elpida, &emif_devices_elpida);
		} else {
			pr_err("sdram memory size does not exist, default to using 1024MB \n");
			omap_emif_setup_device_details(&emif_devices_elpida, &emif_devices_elpida);
		}
		printk(KERN_INFO"Elpida DDR Memory \n");
	} else if (sdram_vendor() == HYNIX_SDRAM) {
		/* Re-use ELPIDA timings as they are absolutely the same */
		if (sdram_size == SZ_512M) {
			omap_emif_setup_device_details(&emif_devices_512_elpida, &emif_devices_512_elpida);
		} else if (sdram_size == SZ_1G) {
			omap_emif_setup_device_details(&emif_devices_elpida, &emif_devices_elpida);
		} else {
			pr_err("sdram memory size does not exist, default to using 1024MB \n");
			omap_emif_setup_device_details(&emif_devices_elpida, &emif_devices_elpida);
		}
		printk(KERN_INFO"Hynix DDR Memory \n");
	} else
		pr_err("Memory type does not exist\n");

	omap_init_emif_timings();

	enable_rtc_gpio();
	omap4_i2c_init();
	platform_add_devices(sdp4430_devices, ARRAY_SIZE(sdp4430_devices));
	acclaim_init_charger();

	wake_lock_init(&uart_lock, WAKE_LOCK_SUSPEND, "uart_wake_lock");
	omap_serial_init(omap_serial_platform_data);
	omap4_twl6030_hsmmc_init(mmc);

#ifdef CONFIG_TIWLAN_SDIO
	config_wlan_mux();
#else
	//omap4_4430sdp_wifi_init();
#endif

	kxtf9_dev_init();
#ifdef CONFIG_BATTERY_MAX17042
	max17042_dev_init();
#endif

	usb_uhhtll_init(&usbhs_pdata);
	usb_musb_init(&musb_board_data);

	status = omap4_keypad_initialization(&sdp4430_keypad_data);
	if (status)
		pr_err("Keypad initialization failed: %d\n", status);

	spi_register_board_info(sdp4430_spi_board_info,
			ARRAY_SIZE(sdp4430_spi_board_info));

	acclaim_panel_init();
	enable_board_wakeup_source();
	omap_voltage_register_pmic(&omap_pmic_core, "core");
	omap_voltage_register_pmic(&omap_pmic_mpu, "mpu");
	omap_voltage_register_pmic(&omap_pmic_iva, "iva");
	omap_voltage_init_vc(&vc_config);
}