21 #include <linux/kernel.h>
24 #include <linux/pci.h>
30 #include <linux/input.h>
31 #include <linux/i2c.h>
49 #define EDMINI_V2_NOR_BOOT_BASE 0xfff80000
50 #define EDMINI_V2_NOR_BOOT_SIZE SZ_512K
77 .parts = edmini_v2_partitions,
81 static struct resource edmini_v2_nor_flash_resource = {
89 .name =
"physmap-flash",
92 .platform_data = &edmini_v2_nor_flash_data,
95 .resource = &edmini_v2_nor_flash_resource,
110 #define EDMINIV2_RTC_GPIO 3
129 #define EDMINI_V2_GPIO_LED_POWER 16
131 static struct gpio_led edmini_v2_leds[] = {
133 .name =
"power:blue",
141 .leds = edmini_v2_leds,
148 .platform_data = &edmini_v2_led_data,
156 #define EDMINI_V2_GPIO_KEY_POWER 18
162 .desc =
"Power Button",
168 .buttons = edmini_v2_buttons,
176 .platform_data = &edmini_v2_button_data,
183 static unsigned int edminiv2_mpp_modes[]
__initdata = {
210 static void __init edmini_v2_init(
void)
234 pr_notice(
"edmini_v2: USB device port, flash write and power-off "
235 "are not yet supported.\n");
245 if (edmini_v2_i2c_rtc.
irq == 0)
246 pr_warning(
"edmini_v2: failed to get RTC IRQ\n");
254 .atag_offset = 0x100,
255 .init_machine = edmini_v2_init,