static void __init nhk8815_platform_init(void) { int i; cpu8815_platform_init(); nhk8815_onenand_init(); platform_add_devices(nhk8815_platform_devices, ARRAY_SIZE(nhk8815_platform_devices)); for (i = 0; i < ARRAY_SIZE(amba_devs); i++) amba_device_register(amba_devs[i], &iomem_resource); }
static void __init nhk8815_platform_init(void) { pinctrl_register_mappings(nhk8815_pinmap, ARRAY_SIZE(nhk8815_pinmap)); cpu8815_platform_init(); nhk8815_onenand_init(); platform_add_devices(nhk8815_platform_devices, ARRAY_SIZE(nhk8815_platform_devices)); amba_apb_device_add(NULL, "uart0", NOMADIK_UART0_BASE, SZ_4K, IRQ_UART0, 0, NULL, 0); amba_apb_device_add(NULL, "uart1", NOMADIK_UART1_BASE, SZ_4K, IRQ_UART1, 0, NULL, 0); i2c_register_board_info(0, nhk8815_i2c0_devices, ARRAY_SIZE(nhk8815_i2c0_devices)); i2c_register_board_info(1, nhk8815_i2c1_devices, ARRAY_SIZE(nhk8815_i2c1_devices)); i2c_register_board_info(2, nhk8815_i2c2_devices, ARRAY_SIZE(nhk8815_i2c2_devices)); }