18 #include <linux/kernel.h>
19 #include <linux/pci.h>
21 #include <linux/serial_core.h>
25 #include <linux/i2c.h>
26 #include <mach/hardware.h>
34 #include <mach/time.h>
36 static void __init em7210_timer_init(
void)
44 .init = em7210_timer_init,
78 #define INTA IRQ_IOP32X_XINT0
79 #define INTB IRQ_IOP32X_XINT1
80 #define INTC IRQ_IOP32X_XINT2
81 #define INTD IRQ_IOP32X_XINT3
86 static int pci_irq_table[][4] = {
99 if (pin < 1 || pin > 4)
102 return pci_irq_table[slot % 6][pin - 1];
105 static struct hw_pci em7210_pci __initdata = {
110 .map_irq = em7210_pci_map_irq,
113 static int __init em7210_pci_init(
void)
115 if (machine_is_em7210())
131 static struct resource em7210_flash_resource = {
138 .name =
"physmap-flash",
141 .platform_data = &em7210_flash_data,
144 .resource = &em7210_flash_resource,
166 static struct resource em7210_uart_resource = {
173 .name =
"serial8250",
176 .platform_data = em7210_serial_port,
179 .resource = &em7210_uart_resource,
188 static void __init em7210_init_machine(
void)
205 .atag_offset = 0x100,
208 .timer = &em7210_timer,
209 .init_machine = em7210_init_machine,