23 #include <linux/i2c.h>
38 #include <mach/common.h>
39 #include <mach/hardware.h>
45 static const int eukrea_cpuimx27_pins[]
__initconst = {
52 #if defined(MACH_EUKREA_CPUIMX27_USEUART4)
81 #if defined(CONFIG_MACH_EUKREA_CPUIMX27_USESDHC2)
89 #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE)
128 static struct resource eukrea_cpuimx27_flash_resource = {
135 .name =
"physmap-flash",
138 .platform_data = &eukrea_cpuimx27_flash_data,
141 .resource = &eukrea_cpuimx27_flash_resource,
149 cpuimx27_nand_board_info __initconst = {
155 &eukrea_cpuimx27_nor_mtd_device,
168 #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE)
203 .
name =
"serial8250",
206 .platform_data = serial_platform_data,
217 .init = eukrea_cpuimx27_otg_init,
227 .
init = eukrea_cpuimx27_usbh2_init,
240 if (!
strcmp(options,
"host"))
241 otg_mode_host =
true;
242 else if (!
strcmp(options,
"device"))
243 otg_mode_host =
false;
245 pr_info(
"otg_mode neither \"host\" nor \"device\". "
246 "Defaulting to device\n");
249 __setup(
"otg_mode=", eukrea_cpuimx27_otg_mode);
251 static void __init eukrea_cpuimx27_init(
void)
256 ARRAY_SIZE(eukrea_cpuimx27_pins),
"CPUIMX27");
272 #if defined(CONFIG_MACH_EUKREA_CPUIMX27_USESDHC2)
276 #if defined(MACH_EUKREA_CPUIMX27_USEUART4)
281 #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE)
303 #ifdef CONFIG_MACH_EUKREA_MBIMX27_BASEBOARD
308 static void __init eukrea_cpuimx27_timer_init(
void)
313 static struct sys_timer eukrea_cpuimx27_timer = {
314 .init = eukrea_cpuimx27_timer_init,
318 .atag_offset = 0x100,
323 .timer = &eukrea_cpuimx27_timer,
324 .init_machine = eukrea_cpuimx27_init,