11 #include <linux/kernel.h>
19 #include <linux/input.h>
20 #include <linux/i2c.h>
37 #define LSCHL_NOR_BOOT_BASE 0xf4000000
38 #define LSCHL_NOR_BOOT_SIZE SZ_256K
48 static struct resource lschl_nor_flash_resource = {
55 .name =
"physmap-flash",
58 .platform_data = &lschl_nor_flash_data,
61 .resource = &lschl_nor_flash_resource,
84 #define LSCHL_GPIO_LED_ALARM 2
85 #define LSCHL_GPIO_LED_INFO 3
86 #define LSCHL_GPIO_LED_FUNC 17
87 #define LSCHL_GPIO_LED_PWR 0
89 static struct gpio_led lschl_led_pins[] = {
99 .name =
"func:blue:top",
103 .name =
"power:blue:bottom",
109 .leds = lschl_led_pins,
117 .platform_data = &lschl_led_data,
140 static void lschl_power_off(
void)
148 #define LSCHL_GPIO_USB_POWER 9
149 #define LSCHL_GPIO_AUTO_POWER 17
150 #define LSCHL_GPIO_POWER 18
155 #define LSCHL_GPIO_KEY_FUNC 15
156 #define LSCHL_GPIO_KEY_POWER 8
157 #define LSCHL_GPIO_KEY_AUTOPOWER 10
158 #define LSCHL_SW_POWER 0x00
159 #define LSCHL_SW_AUTOPOWER 0x01
160 #define LSCHL_SW_FUNC 0x02
167 .desc =
"Power-on Switch",
173 .desc =
"Power-auto Switch",
179 .desc =
"Function Switch",
185 .buttons = lschl_buttons,
194 .platform_data = &lschl_button_data,
198 #define LSCHL_GPIO_HDD_POWER 1
204 #define LSCHL_GPIO_FAN_LOW 16
205 #define LSCHL_GPIO_FAN_HIGH 14
206 #define LSCHL_GPIO_FAN_LOCK 6
228 static int lschl_gpio_list[] = {
234 .ctrl = lschl_gpio_list,
235 .alarm = &lschl_alarm,
237 .speed = lschl_speeds,
245 .platform_data = &lschl_fan_data,
253 static unsigned int lschl_mpp_modes[]
__initdata = {
277 static void __init lschl_init(
void)
315 pr_info(
"%s: finished\n", __func__);
318 MACHINE_START(LINKSTATION_LSCHL,
"Buffalo Linkstation LiveV3 (LS-CHL)")
320 .atag_offset = 0x100,
321 .init_machine = lschl_init,