static int cfa10036_devices_init(void) { int i, ret; /* initizalize muxing */ for (i = 0; i < ARRAY_SIZE(cfa10036_pads); i++) imx_gpio_mode(cfa10036_pads[i]); armlinux_set_bootparams((void *)IMX_MEMORY_BASE + 0x100); armlinux_set_architecture(MACH_TYPE_CFA10036); add_generic_device("mxs_mci", 0, NULL, IMX_SSP0_BASE, SZ_8K, IORESOURCE_MEM, &mci_pdata); add_generic_device("ocotp", 0, NULL, IMX_OCOTP_BASE, SZ_8K, IORESOURCE_MEM, NULL); i2c_register_board_info(0, cfa10036_i2c_devices, ARRAY_SIZE(cfa10036_i2c_devices)); add_generic_device_res("i2c-gpio", 0, NULL, 0, &i2c_gpio_pdata); cfa10036_detect_hw(); ret = envfs_register_partition("disk0", 1); if (ret != 0) printf("Cannot create the 'env0' persistent " "environment storage (%d)\n", ret); return 0; }
static int imx23_olinuxino_devices_init(void) { int i, rc; /* initizalize gpios */ for (i = 0; i < ARRAY_SIZE(pad_setup); i++) imx_gpio_mode(pad_setup[i]); armlinux_set_bootparams((void *)IMX_MEMORY_BASE + 0x100); armlinux_set_architecture(MACH_TYPE_IMX233_OLINUXINO); /* enable IOCLK to run at the PLL frequency */ imx_set_ioclk(480000000); /* run the SSP unit clock at 100,000 kHz */ imx_set_sspclk(0, 100000000, 1); add_generic_device("mxs_mci", DEVICE_ID_DYNAMIC, NULL, IMX_SSP1_BASE, 0x8000, IORESOURCE_MEM, &mci_pdata); olinuxino_init_usb(); rc = envfs_register_partition("disk0", 1); if (rc != 0) printf("Cannot create the 'env0' persistent " "environment storage (%d)\n", rc); return 0; }
static int imx23_olinuxino_devices_init(void) { int i, rc; /* initizalize gpios */ for (i = 0; i < ARRAY_SIZE(pad_setup); i++) imx_gpio_mode(pad_setup[i]); armlinux_set_architecture(MACH_TYPE_IMX233_OLINUXINO); add_generic_device("mxs_mci", DEVICE_ID_DYNAMIC, NULL, IMX_SSP1_BASE, 0x8000, IORESOURCE_MEM, &mci_pdata); olinuxino_init_usb(); rc = envfs_register_partition("disk0", 1); if (rc != 0) printf("Cannot create the 'env0' persistent " "environment storage (%d)\n", rc); return 0; }