11 #include <linux/kernel.h>
18 #include <linux/input.h>
19 #include <linux/i2c.h>
36 #define LS_HGL_NOR_BOOT_BASE 0xf4000000
37 #define LS_HGL_NOR_BOOT_SIZE SZ_256K
47 static struct resource ls_hgl_nor_flash_resource = {
54 .name =
"physmap-flash",
57 .platform_data = &ls_hgl_nor_flash_data,
60 .resource = &ls_hgl_nor_flash_resource,
83 #define LS_HGL_GPIO_LED_ALARM 2
84 #define LS_HGL_GPIO_LED_INFO 3
85 #define LS_HGL_GPIO_LED_FUNC 17
86 #define LS_HGL_GPIO_LED_PWR 0
89 static struct gpio_led ls_hgl_led_pins[] = {
99 .name =
"func:blue:top",
103 .name =
"power:blue:bottom",
109 .leds = ls_hgl_led_pins,
117 .platform_data = &ls_hgl_led_data,
124 #define LS_HGL_GPIO_KEY_FUNC 15
125 #define LS_HGL_GPIO_KEY_POWER 8
126 #define LS_HGL_GPIO_KEY_AUTOPOWER 10
128 #define LS_HGL_SW_POWER 0x00
129 #define LS_HGL_SW_AUTOPOWER 0x01
135 .desc =
"Function Button",
141 .desc =
"Power-on Switch",
147 .desc =
"Power-auto Switch",
153 .buttons = ls_hgl_buttons,
162 .platform_data = &ls_hgl_button_data,
186 static void ls_hgl_power_off(
void)
196 #define LS_HGL_GPIO_USB_POWER 9
197 #define LS_HGL_GPIO_AUTO_POWER 10
198 #define LS_HGL_GPIO_POWER 8
200 #define LS_HGL_GPIO_HDD_POWER 1
202 static unsigned int ls_hgl_mpp_modes[]
__initdata = {
226 static void __init ls_hgl_init(
void)
262 pr_info(
"%s: finished\n", __func__);
265 MACHINE_START(LINKSTATION_LS_HGL,
"Buffalo Linkstation LS-HGL")
267 .atag_offset = 0x100,
268 .init_machine = ls_hgl_init,