18 #include <linux/kernel.h>
19 #include <linux/pci.h>
21 #include <linux/string.h>
22 #include <linux/serial_core.h>
25 #include <linux/i2c.h>
28 #include <mach/hardware.h>
36 #include <mach/time.h>
41 static void __init glantank_timer_init(
void)
47 static struct sys_timer glantank_timer = {
48 .init = glantank_timer_init,
74 #define INTA IRQ_IOP32X_XINT0
75 #define INTB IRQ_IOP32X_XINT1
76 #define INTC IRQ_IOP32X_XINT2
77 #define INTD IRQ_IOP32X_XINT3
82 static int pci_irq_table[][4] = {
93 BUG_ON(pin < 1 || pin > 4);
95 return pci_irq_table[slot % 4][pin - 1];
98 static struct hw_pci glantank_pci __initdata = {
103 .map_irq = glantank_pci_map_irq,
106 static int __init glantank_pci_init(
void)
108 if (machine_is_glantank())
124 static struct resource glantank_flash_resource = {
131 .name =
"physmap-flash",
134 .platform_data = &glantank_flash_data,
137 .resource = &glantank_flash_resource,
153 static struct resource glantank_uart_resource = {
160 .name =
"serial8250",
163 .platform_data = glantank_serial_port,
166 .resource = &glantank_uart_resource,
171 .pwm_enable = { 0, 0 },
174 static struct i2c_board_info __initdata glantank_i2c_devices[] = {
180 .platform_data = &glantank_f75375s,
184 static void glantank_power_off(
void)
192 static void __init glantank_init_machine(
void)
209 .atag_offset = 0x100,
212 .timer = &glantank_timer,
213 .init_machine = glantank_init_machine,