10 #include <linux/types.h>
14 #include <linux/module.h>
19 #include <linux/input.h>
24 #include <asm/setup.h>
32 #include <mach/hardware.h>
33 #include <mach/board.h>
42 static void __init ek_init_early(
void)
73 .name =
"Partition 1",
78 .name =
"Partition 2",
92 .parts = ek_nand_partition,
104 .ncs_write_pulse = 3,
114 static void __init ek_add_device_nand(
void)
128 .modalias =
"mtd_dataflash",
130 .max_speed_hz = 15 * 1000 * 1000,
139 #if defined(CONFIG_FB_ATMEL) || defined(CONFIG_FB_ATMEL_MODULE)
142 .
name =
"TX09D50VM1CCA @ 60",
144 .xres = 240, .yres = 320,
147 .left_margin = 1, .right_margin = 33,
148 .upper_margin = 1, .lower_margin = 0,
149 .hsync_len = 5, .vsync_len = 1,
156 static struct fb_monspecs at91fb_default_monspecs = {
158 .monitor =
"TX09D50VM1CCA",
160 .modedb = at91_tft_vga_modes,
168 #define AT91SAM9RL_DEFAULT_LCDCON2 (ATMEL_LCDC_MEMOR_LITTLE \
169 | ATMEL_LCDC_DISTYPE_TFT \
170 | ATMEL_LCDC_CLKMOD_ALWAYSACTIVE)
172 static void at91_lcdc_power_control(
int on)
182 .lcdcon_is_backlight =
true,
185 .default_lcdcon2 = AT91SAM9RL_DEFAULT_LCDCON2,
186 .default_monspecs = &at91fb_default_monspecs,
187 .atmel_lcdfb_power_control = at91_lcdc_power_control,
209 static struct gpio_led ek_leds[] = {
214 .default_trigger =
"none",
220 .default_trigger =
"none",
225 .default_trigger =
"heartbeat",
234 .adc_clock = 1000000,
235 .pendet_debounce = 0x0f,
236 .ts_sample_hold_time = 0x03,
243 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
248 .desc =
"Right Click",
255 .desc =
"Left Click",
271 .platform_data = &ek_button_data,
275 static void __init ek_add_device_buttons(
void)
285 static void __init ek_add_device_buttons(
void) {}
289 static void __init ek_board_init(
void)
303 ek_add_device_nand();
317 ek_add_device_buttons();
325 .init_early = ek_init_early,
327 .init_machine = ek_board_init,