15 #include <linux/kernel.h>
18 #include <linux/pci.h>
24 #include <linux/input.h>
25 #include <linux/i2c.h>
53 #define QNAP_TS409_NOR_BOOT_BASE 0xff800000
54 #define QNAP_TS409_NOR_BOOT_SIZE SZ_8M
88 .name =
"U-Boot Config",
101 .parts = qnap_ts409_partitions,
105 static struct resource qnap_ts409_nor_flash_resource = {
112 .name =
"physmap-flash",
114 .dev = { .platform_data = &qnap_ts409_nor_flash_data, },
116 .resource = &qnap_ts409_nor_flash_resource,
145 .map_irq = qnap_ts409_pci_map_irq,
148 static int __init qnap_ts409_pci_init(
void)
150 if (machine_is_ts409())
162 #define TS409_RTC_GPIO 10
172 static struct gpio_led ts409_led_pins[] = {
174 .name =
"ts409:red:sata1",
178 .name =
"ts409:red:sata2",
182 .name =
"ts409:red:sata3",
186 .name =
"ts409:red:sata4",
193 .leds = ts409_led_pins,
201 .platform_data = &ts409_led_data,
210 #define QNAP_TS409_GPIO_KEY_RESET 14
211 #define QNAP_TS409_GPIO_KEY_MEDIA 15
217 .desc =
"Reset Button",
222 .desc =
"USB Copy Button",
228 .buttons = qnap_ts409_buttons,
237 .platform_data = &qnap_ts409_button_data,
244 static unsigned int ts409_mpp_modes[] __initdata = {
268 static void __init qnap_ts409_init(
void)
286 qnap_ts409_partitions[5].
offset,
287 qnap_ts409_partitions[5].
size);
302 if (qnap_ts409_i2c_rtc.
irq == 0)
303 pr_warning(
"qnap_ts409_init: failed to get RTC IRQ\n");
313 .atag_offset = 0x100,
314 .init_machine = qnap_ts409_init,