11 #include <linux/kernel.h>
18 #include <linux/input.h>
19 #include <linux/i2c.h>
36 #define LSMINI_NOR_BOOT_BASE 0xf4000000
37 #define LSMINI_NOR_BOOT_SIZE SZ_256K
47 static struct resource lsmini_nor_flash_resource = {
54 .name =
"physmap-flash",
57 .platform_data = &lsmini_nor_flash_data,
60 .resource = &lsmini_nor_flash_resource,
83 #define LSMINI_GPIO_LED_ALARM 2
84 #define LSMINI_GPIO_LED_INFO 3
85 #define LSMINI_GPIO_LED_FUNC 9
86 #define LSMINI_GPIO_LED_PWR 14
88 static struct gpio_led lsmini_led_pins[] = {
98 .name =
"func:blue:top",
102 .name =
"power:blue:bottom",
108 .leds = lsmini_led_pins,
116 .platform_data = &lsmini_led_data,
124 #define LSMINI_GPIO_KEY_FUNC 15
125 #define LSMINI_GPIO_KEY_POWER 18
126 #define LSMINI_GPIO_KEY_AUTOPOWER 17
128 #define LSMINI_SW_POWER 0x00
129 #define LSMINI_SW_AUTOPOWER 0x01
135 .desc =
"Function Button",
141 .desc =
"Power-on Switch",
147 .desc =
"Power-auto Switch",
153 .buttons = lsmini_buttons,
162 .platform_data = &lsmini_button_data,
186 static void lsmini_power_off(
void)
196 #define LSMINI_GPIO_USB_POWER 16
197 #define LSMINI_GPIO_AUTO_POWER 17
198 #define LSMINI_GPIO_POWER 18
200 #define LSMINI_GPIO_HDD_POWER0 1
201 #define LSMINI_GPIO_HDD_POWER1 19
203 static unsigned int lsmini_mpp_modes[]
__initdata = {
227 static void __init lsmini_init(
void)
263 pr_info(
"%s: finished\n", __func__);
266 #ifdef CONFIG_MACH_LINKSTATION_MINI
269 .atag_offset = 0x100,
270 .init_machine = lsmini_init,