15 #include <linux/kernel.h>
16 #include <linux/serial.h>
20 #ifdef CONFIG_LEDS_CLASS
24 #include <asm/setup.h>
25 #include <asm/memory.h>
30 static struct resource omixp_flash_resources[] = {
40 .name =
"Recovery Bootloader",
44 .name =
"Calibration Data",
48 .name =
"Recovery FPGA",
52 .name =
"Release Bootloader",
56 .name =
"Release FPGA",
68 .name =
"Persistent Storage",
76 .map_name =
"cfi_probe",
77 .parts = omixp_partitions,
80 .map_name =
"cfi_probe",
88 .name =
"IXP4XX-Flash",
91 .platform_data = &omixp_flash_data[0],
93 .resource = &omixp_flash_resources[0],
96 .
name =
"IXP4XX-Flash",
99 .platform_data = &omixp_flash_data[1],
101 .resource = &omixp_flash_resources[1],
113 static struct resource omixp_uart_resources[] = {
148 .name =
"serial8250",
150 .dev.platform_data = omixp_uart_data,
152 .resource = omixp_uart_resources,
155 static struct gpio_led mic256_led_pins[] = {
164 .leds = mic256_led_pins,
170 .dev.platform_data = &mic256_led_data,
188 .name =
"ixp4xx_eth",
190 .dev.platform_data = ixdp425_plat_eth,
192 .name =
"ixp4xx_eth",
194 .dev.platform_data = ixdp425_plat_eth + 1,
201 &omixp_flash_device[0],
208 &omixp_flash_device[0],
216 &omixp_flash_device[0],
217 &omixp_flash_device[1],
222 static void __init omixp_init(
void)
234 if (machine_is_devixp())
236 else if (machine_is_miccpt())
238 else if (machine_is_mic256())
242 #ifdef CONFIG_MACH_DEVIXP
244 .atag_offset = 0x100,
249 .init_machine = omixp_init,
254 #ifdef CONFIG_MACH_MICCPT
256 .atag_offset = 0x100,
261 .init_machine = omixp_init,
262 #if defined(CONFIG_PCI)
269 #ifdef CONFIG_MACH_MIC256
271 .atag_offset = 0x100,
276 .init_machine = omixp_init,