diff options
Diffstat (limited to 'arch/arm/mach-ixp4xx')
-rw-r--r-- | arch/arm/mach-ixp4xx/common-pci.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-ixp4xx/coyote-setup.c | 27 | ||||
-rw-r--r-- | arch/arm/mach-ixp4xx/ixdp425-setup.c | 3 |
3 files changed, 19 insertions, 15 deletions
diff --git a/arch/arm/mach-ixp4xx/common-pci.c b/arch/arm/mach-ixp4xx/common-pci.c index aa92e3708838..2b544363c078 100644 --- a/arch/arm/mach-ixp4xx/common-pci.c +++ b/arch/arm/mach-ixp4xx/common-pci.c | |||
@@ -453,8 +453,8 @@ int ixp4xx_setup(int nr, struct pci_sys_data *sys) | |||
453 | local_write_config(PCI_COMMAND, 2, PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY); | 453 | local_write_config(PCI_COMMAND, 2, PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY); |
454 | 454 | ||
455 | res[0].name = "PCI I/O Space"; | 455 | res[0].name = "PCI I/O Space"; |
456 | res[0].start = 0x00001000; | 456 | res[0].start = 0x00000000; |
457 | res[0].end = 0xffff0000; | 457 | res[0].end = 0x0000ffff; |
458 | res[0].flags = IORESOURCE_IO; | 458 | res[0].flags = IORESOURCE_IO; |
459 | 459 | ||
460 | res[1].name = "PCI Memory Space"; | 460 | res[1].name = "PCI Memory Space"; |
diff --git a/arch/arm/mach-ixp4xx/coyote-setup.c b/arch/arm/mach-ixp4xx/coyote-setup.c index c6335f51907d..4ff4393ef0ea 100644 --- a/arch/arm/mach-ixp4xx/coyote-setup.c +++ b/arch/arm/mach-ixp4xx/coyote-setup.c | |||
@@ -56,21 +56,24 @@ static struct resource coyote_uart_resource = { | |||
56 | .flags = IORESOURCE_MEM, | 56 | .flags = IORESOURCE_MEM, |
57 | }; | 57 | }; |
58 | 58 | ||
59 | static struct plat_serial8250_port coyote_uart_data = { | 59 | static struct plat_serial8250_port coyote_uart_data[] = { |
60 | .mapbase = IXP4XX_UART2_BASE_PHYS, | 60 | { |
61 | .membase = (char *)IXP4XX_UART2_BASE_VIRT + REG_OFFSET, | 61 | .mapbase = IXP4XX_UART2_BASE_PHYS, |
62 | .irq = IRQ_IXP4XX_UART2, | 62 | .membase = (char *)IXP4XX_UART2_BASE_VIRT + REG_OFFSET, |
63 | .flags = UPF_BOOT_AUTOCONF, | 63 | .irq = IRQ_IXP4XX_UART2, |
64 | .iotype = UPIO_MEM, | 64 | .flags = UPF_BOOT_AUTOCONF, |
65 | .regshift = 2, | 65 | .iotype = UPIO_MEM, |
66 | .uartclk = IXP4XX_UART_XTAL, | 66 | .regshift = 2, |
67 | .uartclk = IXP4XX_UART_XTAL, | ||
68 | }, | ||
69 | { }, | ||
67 | }; | 70 | }; |
68 | 71 | ||
69 | static struct platform_device coyote_uart = { | 72 | static struct platform_device coyote_uart = { |
70 | .name = "serial8250", | 73 | .name = "serial8250", |
71 | .id = 0, | 74 | .id = 0, |
72 | .dev = { | 75 | .dev = { |
73 | .platform_data = &coyote_uart_data, | 76 | .platform_data = coyote_uart_data, |
74 | }, | 77 | }, |
75 | .num_resources = 1, | 78 | .num_resources = 1, |
76 | .resource = &coyote_uart_resource, | 79 | .resource = &coyote_uart_resource, |
@@ -87,10 +90,10 @@ static void __init coyote_init(void) | |||
87 | *IXP4XX_EXP_CS1 = *IXP4XX_EXP_CS0; | 90 | *IXP4XX_EXP_CS1 = *IXP4XX_EXP_CS0; |
88 | 91 | ||
89 | if (machine_is_ixdpg425()) { | 92 | if (machine_is_ixdpg425()) { |
90 | coyote_uart_data.membase = | 93 | coyote_uart_data[0].membase = |
91 | (char*)(IXP4XX_UART1_BASE_VIRT + REG_OFFSET); | 94 | (char*)(IXP4XX_UART1_BASE_VIRT + REG_OFFSET); |
92 | coyote_uart_data.mapbase = IXP4XX_UART1_BASE_PHYS; | 95 | coyote_uart_data[0].mapbase = IXP4XX_UART1_BASE_PHYS; |
93 | coyote_uart_data.irq = IRQ_IXP4XX_UART1; | 96 | coyote_uart_data[0].irq = IRQ_IXP4XX_UART1; |
94 | } | 97 | } |
95 | 98 | ||
96 | 99 | ||
diff --git a/arch/arm/mach-ixp4xx/ixdp425-setup.c b/arch/arm/mach-ixp4xx/ixdp425-setup.c index f2e9c0ea0501..c2ba759e9946 100644 --- a/arch/arm/mach-ixp4xx/ixdp425-setup.c +++ b/arch/arm/mach-ixp4xx/ixdp425-setup.c | |||
@@ -95,7 +95,8 @@ static struct plat_serial8250_port ixdp425_uart_data[] = { | |||
95 | .iotype = UPIO_MEM, | 95 | .iotype = UPIO_MEM, |
96 | .regshift = 2, | 96 | .regshift = 2, |
97 | .uartclk = IXP4XX_UART_XTAL, | 97 | .uartclk = IXP4XX_UART_XTAL, |
98 | } | 98 | }, |
99 | { }, | ||
99 | }; | 100 | }; |
100 | 101 | ||
101 | static struct platform_device ixdp425_uart = { | 102 | static struct platform_device ixdp425_uart = { |