22 #include <linux/kernel.h>
23 #include <linux/pci.h>
25 #include <linux/string.h>
26 #include <linux/serial_core.h>
29 #include <linux/i2c.h>
31 #include <linux/reboot.h>
33 #include <mach/hardware.h>
41 #include <asm/pgtable.h>
42 #include <mach/time.h>
47 static void __init n2100_timer_init(
void)
54 .init = n2100_timer_init,
108 "device PCI:%d:%d:%d\n", dev->
bus->number,
116 static struct hw_pci n2100_pci __initdata = {
121 .map_irq = n2100_pci_map_irq,
129 static void n2100_fixup_r8169(
struct pci_dev *dev)
131 if (dev->
bus->number == 0 &&
138 static int __init n2100_pci_init(
void)
140 if (machine_is_n2100())
156 static struct resource n2100_flash_resource = {
163 .name =
"physmap-flash",
166 .platform_data = &n2100_flash_data,
169 .resource = &n2100_flash_resource,
186 static struct resource n2100_uart_resource = {
193 .name =
"serial8250",
196 .platform_data = n2100_serial_port,
199 .resource = &n2100_uart_resource,
204 .pwm_enable = { 0, 0 },
209 { .name =
"n2100:red:satafail0",
213 { .name =
"n2100:red:satafail1",
217 { .name =
"n2100:blue:usb",
226 { .name =
"n2100:red:usb",
237 { .name =
"n2100:orange:system",
241 { .name =
"n2100:red:system",
245 { .name =
"N2100 beeper" ,
260 .platform_data = &n2100_f75375s,
264 .platform_data = &n2100_leds,
271 static void n2100_power_off(
void)
293 static void n2100_restart(
char mode,
const char *
cmd)
302 static struct timer_list power_button_poll_timer;
304 static void power_button_poll(
unsigned long dummy)
311 power_button_poll_timer.expires =
jiffies + (
HZ / 10);
316 static void __init n2100_init_machine(
void)
330 power_button_poll_timer.function = power_button_poll;
331 power_button_poll_timer.expires =
jiffies + (
HZ / 10);
337 .atag_offset = 0x100,
340 .timer = &n2100_timer,
341 .init_machine = n2100_init_machine,
342 .restart = n2100_restart,