18 #include <linux/kernel.h>
19 #include <linux/pci.h>
20 #include <linux/string.h>
21 #include <linux/serial_core.h>
26 #include <mach/hardware.h>
34 #include <asm/pgtable.h>
35 #include <mach/time.h>
40 static void __init iq80321_timer_init(
void)
47 .init = iq80321_timer_init,
78 if ((slot == 2 || slot == 6) && pin == 1) {
81 }
else if ((slot == 2 || slot == 6) && pin == 2) {
84 }
else if ((slot == 2 || slot == 6) && pin == 3) {
87 }
else if ((slot == 2 || slot == 6) && pin == 4) {
90 }
else if (slot == 4 || slot == 8) {
95 "device PCI:%d:%d:%d\n", dev->
bus->number,
103 static struct hw_pci iq80321_pci __initdata = {
108 .map_irq = iq80321_pci_map_irq,
111 static int __init iq80321_pci_init(
void)
114 machine_is_iq80321())
130 static struct resource iq80321_flash_resource = {
137 .name =
"physmap-flash",
140 .platform_data = &iq80321_flash_data,
143 .resource = &iq80321_flash_resource,
159 static struct resource iq80321_uart_resource = {
166 .name =
"serial8250",
169 .platform_data = iq80321_serial_port,
172 .resource = &iq80321_uart_resource,
175 static void __init iq80321_init_machine(
void)
188 .atag_offset = 0x100,
191 .timer = &iq80321_timer,
192 .init_machine = iq80321_init_machine,