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); /* off-chip devices */ platform_device_register(&smc91x_device); }
static void __init aspenite_add_nand(void) { if (is_android()) { aspenite_nand_info.parts[0] = android_512m_v75_partitions; aspenite_nand_info.nr_parts[0] = ARRAY_SIZE(android_512m_v75_partitions); } else { aspenite_nand_info.parts[0] = generic_512m_v75_partitions; aspenite_nand_info.nr_parts[0] = ARRAY_SIZE(generic_512m_v75_partitions); } aspenite_nand_info.use_dma = 1; aspenite_nand_info.enable_arbiter = 1; pxa168_add_nand((struct flash_platform_data *) &aspenite_nand_info); }
static void __init tavorevb_add_nand(void) { if (is_android()) { tavorevb_nand_info.parts[0] = android_128m_v75_partitions; tavorevb_nand_info.nr_parts[0] = ARRAY_SIZE(android_128m_v75_partitions); } else { tavorevb_nand_info.parts[0] = generic_128m_v75_partitions; tavorevb_nand_info.nr_parts[0] = ARRAY_SIZE(generic_128m_v75_partitions); } tavorevb_nand_info.use_dma = 0; tavorevb_nand_info.enable_arbiter = 1; pxa168_add_nand(&tavorevb_nand_info); }
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 }