23 #include <linux/types.h>
27 #include <linux/module.h>
31 #include <linux/input.h>
34 #include <asm/setup.h>
42 #include <mach/hardware.h>
43 #include <mach/board.h>
52 static void __init cpu9krea_init_early(
void)
96 #ifdef CONFIG_MACH_CPU9260
100 .ncs_write_setup = 0,
105 .ncs_write_pulse = 3,
119 .ncs_write_setup = 0,
124 .ncs_write_pulse = 4,
136 static void __init cpu9krea_add_device_nand(
void)
149 #define NOR_BASE AT91_CHIPSELECT_0
150 #define NOR_SIZE SZ_64M
152 static struct resource nor_flash_resources[] = {
161 .name =
"physmap-flash",
164 .platform_data = &cpuat9260_nor_data,
166 .resource = nor_flash_resources,
167 .num_resources =
ARRAY_SIZE(nor_flash_resources),
170 #ifdef CONFIG_MACH_CPU9260
174 .ncs_write_setup = 0,
177 .ncs_read_pulse = 10,
179 .ncs_write_pulse = 6,
194 .ncs_write_setup = 0,
197 .ncs_read_pulse = 13,
199 .ncs_write_pulse = 8,
212 static __init void cpu9krea_add_device_nor(
void)
228 static struct gpio_led cpu9krea_leds[] = {
233 .default_trigger =
"timer",
239 .default_trigger =
"heartbeat",
245 .default_trigger =
"none",
251 .default_trigger =
"none",
264 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
292 .platform_data = &cpu9krea_button_data,
296 static void __init cpu9krea_add_device_buttons(
void)
306 static void __init cpu9krea_add_device_buttons(
void)
322 static void __init cpu9krea_board_init(
void)
325 cpu9krea_add_device_nor();
357 cpu9krea_add_device_nand();
368 cpu9krea_add_device_buttons();
371 #ifdef CONFIG_MACH_CPU9260
380 .init_early = cpu9krea_init_early,
382 .init_machine = cpu9krea_board_init,