static int __init ezkit_init(void) { int ret; printk(KERN_INFO "%s(): registering device resources\n", __func__); ret = platform_add_devices(ezkit_devices, ARRAY_SIZE(ezkit_devices)); if (ret < 0) return ret; #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) bfin_write_FIO0_DIR(bfin_read_FIO0_DIR() | (1 << 12)); SSYNC(); #endif #if defined(CONFIG_SND_BF5XX_SOC_AD183X) || defined(CONFIG_SND_BF5XX_SOC_AD183X_MODULE) bfin_write_FIO0_DIR(bfin_read_FIO0_DIR() | (1 << 15)); bfin_write_FIO0_FLAG_S(1 << 15); SSYNC(); /* * This initialization lasts for approximately 4500 MCLKs. * MCLK = 12.288MHz */ udelay(400); #endif if (net2272_init()) pr_warning("unable to configure net2272; it probably won't work\n"); spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); return 0; }
static int __init acvilon_init(void) { int ret; printk(KERN_INFO "%s(): registering device resources\n", __func__); bfin_plat_nand_init(); ret = platform_add_devices(acvilon_devices, ARRAY_SIZE(acvilon_devices)); if (ret < 0) return ret; i2c_register_board_info(0, acvilon_i2c_devs, ARRAY_SIZE(acvilon_i2c_devs)); bfin_write_FIO0_FLAG_C(1 << 14); msleep(5); bfin_write_FIO0_FLAG_S(1 << 14); spi_register_board_info(bfin_spi_board_info, ARRAY_SIZE(bfin_spi_board_info)); return 0; }