11 #include <linux/kernel.h>
19 #include <linux/input.h>
20 #include <linux/i2c.h>
28 #define MV2120_NOR_BOOT_BASE 0xf4000000
29 #define MV2120_NOR_BOOT_SIZE SZ_512K
31 #define MV2120_GPIO_RTC_IRQ 3
32 #define MV2120_GPIO_KEY_RESET 17
33 #define MV2120_GPIO_KEY_POWER 18
34 #define MV2120_GPIO_POWER_OFF 19
58 .parts = mv2120_partitions,
62 static struct resource mv2120_nor_flash_resource = {
69 .name =
"physmap-flash",
72 .platform_data = &mv2120_nor_flash_data,
74 .resource = &mv2120_nor_flash_resource,
93 .buttons = mv2120_buttons,
102 .platform_data = &mv2120_button_data,
110 static unsigned int mv2120_mpp_modes[]
__initdata = {
139 static struct gpio_led mv2120_led_pins[] = {
141 .name =
"mv2120:blue:health",
145 .name =
"mv2120:red:health",
149 .name =
"mv2120:led:bright",
151 .default_trigger =
"default-on",
154 .name =
"mv2120:led:dimmed",
158 .name =
"mv2120:red:sata0",
163 .name =
"mv2120:red:sata1",
171 .leds = mv2120_led_pins,
179 .platform_data = &mv2120_led_data,
183 static void mv2120_power_off(
void)
185 pr_info(
"%s: triggering power-off...\n", __func__);
189 static void __init mv2120_init(
void)
224 pr_err(
"mv2120: failed to setup power-off GPIO\n");
231 .atag_offset = 0x100,
232 .init_machine = mv2120_init,