static void __init gplugd_init(void)
{
	mfp_config(ARRAY_AND_SIZE(gplugd_pin_config));

	platform_device_register(&pxa168_device_gpio); //bytim-tian

	select_disp_freq();

	/* on-chip devices */
	pxa168_add_uart(3);
	pxa168_add_ssp(1);
	pxa168_add_twsi(0, NULL, ARRAY_AND_SIZE(gplugd_i2c_board_info));

	pxa168_add_eth(&gplugd_eth_platform_data);
	pxa168_add_sdh(1, &gplugd_sdh_platdata);  //bytim-tian
	pxa168_add_sdh(2, &gplugd_sdh_platdata);  //bytim-tian
	
	pxa168_add_usb_host(&platdata_usb_host);  //bytim-tian
	pxa168_add_usb_otg(&platdata_usb_otg);	  //bytim-tian
	pxa168_add_usb_otg_gadget(&platdata_usb_otggadget);   //bytim-tian
	pxa168_add_usb_otg_ehci(&platdata_usb_otgehci);	   //bytim-tian

	pxa168_add_ssp(2);                        //bytim-tian
	pxa168_add_spi(2, &pxa_ssp_master_info);  //bytim-tian
	spi_register_board_info(gplugD_spi_board_info, ARRAY_SIZE(gplugD_spi_board_info));
}
Пример #2
0
static void __init common_init(void)
{
	mfp_config(ARRAY_AND_SIZE(common_pin_config));

	/* on-chip devices */
	pxa168_add_uart(1);
	pxa168_add_twsi(1, NULL, ARRAY_AND_SIZE(aspenite_i2c_info));
	pxa168_add_ssp(1);
	pxa168_add_nand(&aspenite_nand_info);
	pxa168_add_fb(&aspenite_lcd_info);
	pxa168_add_keypad(&aspenite_keypad_info);
	platform_device_register(&pxa168_device_gpio);

	/* off-chip devices */
	platform_device_register(&smc91x_device);

#if defined(CONFIG_USB_EHCI_MV)
	pxa168_add_usb_host(&pxa168_sph_pdata);
#endif
}