summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2008-07-31 11:14:00 +0000
committerImre Kaloz <kaloz@openwrt.org>2008-07-31 11:14:00 +0000
commit1c2a1c888a2b27a324e4f4cc8892b1a0125616fc (patch)
tree6ac1320d1fea53c93fe19b8db3b82b7bd62f381f /target
parent7c7af43a3936bb7302a0c85f3b79620902ef9b8a (diff)
downloadmaster-31e0f0ae-1c2a1c888a2b27a324e4f4cc8892b1a0125616fc.tar.gz
master-31e0f0ae-1c2a1c888a2b27a324e4f4cc8892b1a0125616fc.tar.bz2
master-31e0f0ae-1c2a1c888a2b27a324e4f4cc8892b1a0125616fc.zip
enable the second uart on the WG302v1
SVN-Revision: 12040
Diffstat (limited to 'target')
-rw-r--r--target/linux/ixp4xx/patches-2.6.26/105-wg302v1_support.patch30
1 files changed, 23 insertions, 7 deletions
diff --git a/target/linux/ixp4xx/patches-2.6.26/105-wg302v1_support.patch b/target/linux/ixp4xx/patches-2.6.26/105-wg302v1_support.patch
index 102342322a..70c91db637 100644
--- a/target/linux/ixp4xx/patches-2.6.26/105-wg302v1_support.patch
+++ b/target/linux/ixp4xx/patches-2.6.26/105-wg302v1_support.patch
@@ -112,7 +112,7 @@
+subsys_initcall(wg302v1_pci_init);
--- /dev/null
+++ b/arch/arm/mach-ixp4xx/wg302v1-setup.c
-@@ -0,0 +1,126 @@
+@@ -0,0 +1,142 @@
+/*
+ * arch/arm/mach-ixp4xx/wg302v1-setup.c
+ *
@@ -163,10 +163,17 @@
+ .resource = &wg302v1_flash_resource,
+};
+
-+static struct resource wg302v1_uart_resource = {
-+ .start = IXP4XX_UART1_BASE_PHYS,
-+ .end = IXP4XX_UART1_BASE_PHYS + 0x0fff,
-+ .flags = IORESOURCE_MEM,
++static struct resource wg302v1_uart_resources[] = {
++ {
++ .start = IXP4XX_UART1_BASE_PHYS,
++ .end = IXP4XX_UART1_BASE_PHYS + 0x0fff,
++ .flags = IORESOURCE_MEM,
++ },
++ {
++ .start = IXP4XX_UART2_BASE_PHYS,
++ .end = IXP4XX_UART2_BASE_PHYS + 0x0fff,
++ .flags = IORESOURCE_MEM,
++ }
+};
+
+static struct plat_serial8250_port wg302v1_uart_data[] = {
@@ -179,6 +186,15 @@
+ .regshift = 2,
+ .uartclk = IXP4XX_UART_XTAL,
+ },
++ {
++ .mapbase = IXP4XX_UART2_BASE_PHYS,
++ .membase = (char *)IXP4XX_UART2_BASE_VIRT + REG_OFFSET,
++ .irq = IRQ_IXP4XX_UART2,
++ .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST,
++ .iotype = UPIO_MEM,
++ .regshift = 2,
++ .uartclk = IXP4XX_UART_XTAL,
++ },
+ { },
+};
+
@@ -188,8 +204,8 @@
+ .dev = {
+ .platform_data = wg302v1_uart_data,
+ },
-+ .num_resources = 1,
-+ .resource = &wg302v1_uart_resource,
++ .num_resources = 2,
++ .resource = wg302v1_uart_resources,
+};
+
+static struct eth_plat_info wg302v1_plat_eth[] = {