Esempio n. 1
0
static void u810_add_lcd_ili9481(void)
{
    struct pxa910fb_mach_info *fb = &u810_lcd_info, *ovly = &u810_lcd_ovly_info;

    spi_send = pxa910fb_spi_send;
    pxa910_add_fb(fb);
    pxa910_add_fb_ovly(ovly);
}
void __init dkb_add_lcd_truly(void)
{
	struct pxa168fb_mach_info *fb = &truly_lcd_info,
				 *ovly = &truly_lcd_ovly_info;

	spi_send = pxa168fb_spi_send;
	pxa910_add_fb(fb);
	pxa910_add_fb_ovly(ovly);
}
static void __init tavorevb_init(void)
{

	mfp_config(ARRAY_AND_SIZE(tavorevb_pin_config));

	/* on-chip devices */
	pxa910_add_uart(1);
	pxa168_add_twsi(0, &i2c_info, ARRAY_AND_SIZE(i2c_board_info));
	tavorevb_add_nand();
	tavorevb_add_onenand();
	pxa910_add_ire();
	pxa910_add_acipc();
	if (tavorevb_keypad_type == 1)
		pxa168_add_keypad(&zylonite_keypad_info);
	else
		pxa168_add_keypad(&tavorevb_keypad_info);
#if defined(CONFIG_MMC_PXA_SDH)
	pxa168_add_sdh(0, &tavorevb_sdh_platform_data);
#endif

	if(cpu_is_pxa910_Ax()){
		pxa910_add_fb(&pxa168_tavorevb_lcd_info);
		pxa910_add_fb_ovly(&pxa168_tavorevb_lcd_ovly_info);
	}else{
		pxa168_add_fb(&pxa168_tavorevb_lcd_info);
		pxa168_add_fb_ovly(&pxa168_tavorevb_lcd_ovly_info);
	}
#if defined(CONFIG_PXA168_CAMERA)
        pxa168_add_cam();
#endif
#ifdef CONFIG_USB_GADGET_PXA_U2O
	pxa168_add_u2o(&tavorevb_u2o_info);
#endif
#ifdef CONFIG_USB_OTG
	pxa168_add_u2ootg(&tavorevb_u2o_info);
	pxa168_add_u2oehci(&tavorevb_u2o_info);
#endif
	pxa910_add_ssp(1);
	pxa910_add_imm();
	pxa168_add_freq();

	/* off-chip devices */
	platform_device_register(&smc91x_device);
}
Esempio n. 4
0
void u830_add_lcd_xinli(void)
{
	struct pxa910fb_mach_info *fb = &u830_lcd_info, *ovly = &u830_lcd_ovly_info;
	pxa910_add_fb(fb);
	pxa910_add_fb_ovly(ovly);
}