diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2008-10-09 18:24:25 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2008-10-09 18:24:25 +0000 |
commit | 6d17afd185a01b9da867c536a48c9211d2d80392 (patch) | |
tree | b536eef7f6d764159d73b91091188639e18a2e3b /target/linux/ixp4xx/patches-2.6.26/191-cambria_optional_uart.patch | |
parent | 6b4e3e7609c9bb00df8c9c1e789ef95d95df69ab (diff) | |
download | upstream-6d17afd185a01b9da867c536a48c9211d2d80392.tar.gz upstream-6d17afd185a01b9da867c536a48c9211d2d80392.tar.bz2 upstream-6d17afd185a01b9da867c536a48c9211d2d80392.zip |
fixup GPS on the cambria - thanks Chris
SVN-Revision: 12935
Diffstat (limited to 'target/linux/ixp4xx/patches-2.6.26/191-cambria_optional_uart.patch')
-rw-r--r-- | target/linux/ixp4xx/patches-2.6.26/191-cambria_optional_uart.patch | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/target/linux/ixp4xx/patches-2.6.26/191-cambria_optional_uart.patch b/target/linux/ixp4xx/patches-2.6.26/191-cambria_optional_uart.patch index 78e4a9e561..237c6b3e0a 100644 --- a/target/linux/ixp4xx/patches-2.6.26/191-cambria_optional_uart.patch +++ b/target/linux/ixp4xx/patches-2.6.26/191-cambria_optional_uart.patch @@ -57,33 +57,39 @@ static void __init cambria_gw2350_setup(void) { + *IXP4XX_EXP_CS2 = 0xbfff0003; -+ set_irq_type(IRQ_IXP4XX_GPIO3, IRQT_BOTHEDGE); -+ cambria_optional_uart_data[0].mapbase = IXP4XX_EXP_BUS_BASE(2); -+ cambria_optional_uart_data[0].membase = (void __iomem *)ioremap(IXP4XX_EXP_BUS_BASE(2), 0x0fff); ++ set_irq_type(IRQ_IXP4XX_GPIO3, IRQT_RISING); ++ cambria_optional_uart_data[0].mapbase = 0x52FF0000; ++ cambria_optional_uart_data[0].membase = (void __iomem *)ioremap(0x52FF0000, 0x0fff); + cambria_optional_uart_data[0].irq = IRQ_IXP4XX_GPIO3; + + *IXP4XX_EXP_CS3 = 0xbfff0003; -+ set_irq_type(IRQ_IXP4XX_GPIO4, IRQT_BOTHEDGE); -+ cambria_optional_uart_data[1].mapbase = IXP4XX_EXP_BUS_BASE(3); -+ cambria_optional_uart_data[1].membase = (void __iomem *)ioremap(IXP4XX_EXP_BUS_BASE(3), 0x0fff); ++ set_irq_type(IRQ_IXP4XX_GPIO4, IRQT_RISING); ++ cambria_optional_uart_data[1].mapbase = 0x53FF0000; ++ cambria_optional_uart_data[1].membase = (void __iomem *)ioremap(0x53FF0000, 0x0fff); + cambria_optional_uart_data[1].irq = IRQ_IXP4XX_GPIO4; + + platform_device_register(&cambria_optional_uart); platform_device_register(&cambria_npec_device); platform_device_register(&cambria_npea_device); -@@ -298,6 +349,20 @@ +@@ -294,10 +345,26 @@ + platform_device_register(&cambria_usb1_device); + + platform_device_register(&cambria_gpio_leds_device); ++ ++ *IXP4XX_EXP_CS2 = 0xBFFF3C43; ++ *IXP4XX_EXP_CS3 = 0xBFFF3C43; + } static void __init cambria_gw2358_setup(void) { + *IXP4XX_EXP_CS3 = 0xbfff0003; -+ set_irq_type(IRQ_IXP4XX_GPIO3, IRQT_BOTHEDGE); ++ set_irq_type(IRQ_IXP4XX_GPIO3, IRQT_RISING); + cambria_optional_uart_data[0].mapbase = 0x53FC0000; + cambria_optional_uart_data[0].membase = (void __iomem *)ioremap(0x53FC0000, 0x0fff); + cambria_optional_uart_data[0].irq = IRQ_IXP4XX_GPIO3; + -+ *IXP4XX_EXP_CS3 = 0xbfff0003; -+ set_irq_type(IRQ_IXP4XX_GPIO4, IRQT_BOTHEDGE); ++ set_irq_type(IRQ_IXP4XX_GPIO4, IRQT_RISING); + cambria_optional_uart_data[1].mapbase = 0x53F80000; + cambria_optional_uart_data[1].membase = (void __iomem *)ioremap(0x53F80000, 0x0fff); + cambria_optional_uart_data[1].irq = IRQ_IXP4XX_GPIO4; |