static int eukrea_cpuimx51_devices_init(void) { imx51_add_fec(&fec_info); #ifdef CONFIG_MCI_IMX_ESDHC imx51_add_mmc0(NULL); #endif imx51_add_nand(&nand_info); devfs_add_partition("nand0", 0x00000, 0x40000, DEVFS_PARTITION_FIXED, "self_raw"); dev_add_bb_dev("self_raw", "self0"); devfs_add_partition("nand0", 0x40000, 0x20000, DEVFS_PARTITION_FIXED, "env_raw"); dev_add_bb_dev("env_raw", "env0"); gpio_direction_output(GPIO_LAN8700_RESET, 0); gpio_set_value(GPIO_LAN8700_RESET, 1); gpio_direction_output(GPIO_LCD_BL, 0); armlinux_set_architecture(MACH_TYPE_EUKREA_CPUIMX51SD); return 0; }
static int tx51_devices_init(void) { #ifdef CONFIG_MCI_IMX_ESDHC imx51_add_mmc0(NULL); imx51_add_mmc1(NULL); #endif imx51_add_nand(&nand_info); spi_register_board_info(mx51_tx51_spi_board_info, ARRAY_SIZE(mx51_tx51_spi_board_info)); imx51_add_spi0(&tx51_spi_0_data); imx51_iim_register_fec_ethaddr(); tx51_fec_init(); imx51_add_fec(&fec_info); tx51_leds_init(); //Linux Parameters armlinux_set_architecture(MACH_TYPE_TX51); return 0; }