diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-04-18 17:04:41 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-04-18 17:04:41 +0000 |
commit | 08ae0cd8d2a48bb7ed5b84206be55d2fdcdcfc0f (patch) | |
tree | 9a9b720fbf181b91135e0e3194cc89c4f84634dc /target/linux/ixp4xx/patches-2.6.29/192-cambria_gpio_device.patch | |
parent | be37a62e6d6e328c936beadd12a8059764fa6e12 (diff) | |
download | mtk-20170518-08ae0cd8d2a48bb7ed5b84206be55d2fdcdcfc0f.zip mtk-20170518-08ae0cd8d2a48bb7ed5b84206be55d2fdcdcfc0f.tar.gz mtk-20170518-08ae0cd8d2a48bb7ed5b84206be55d2fdcdcfc0f.tar.bz2 |
ixp4xx: add linux 2.6.29 patches (TODO: re-integrate switch/multi-phy support)
SVN-Revision: 15252
Diffstat (limited to 'target/linux/ixp4xx/patches-2.6.29/192-cambria_gpio_device.patch')
-rw-r--r-- | target/linux/ixp4xx/patches-2.6.29/192-cambria_gpio_device.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/target/linux/ixp4xx/patches-2.6.29/192-cambria_gpio_device.patch b/target/linux/ixp4xx/patches-2.6.29/192-cambria_gpio_device.patch new file mode 100644 index 0000000..d785c3a --- /dev/null +++ b/target/linux/ixp4xx/patches-2.6.29/192-cambria_gpio_device.patch @@ -0,0 +1,46 @@ +--- a/arch/arm/mach-ixp4xx/cambria-setup.c ++++ b/arch/arm/mach-ixp4xx/cambria-setup.c +@@ -214,6 +214,20 @@ static struct platform_device cambria_gp + .dev.platform_data = &cambria_gpio_leds_data, + }; + ++static struct resource cambria_gpio_resources[] = { ++ { ++ .name = "gpio", ++ .flags = 0, ++ }, ++}; ++ ++static struct platform_device cambria_gpio = { ++ .name = "GPIODEV", ++ .id = -1, ++ .num_resources = ARRAY_SIZE(cambria_gpio_resources), ++ .resource = cambria_gpio_resources, ++}; ++ + static struct latch_led cambria_latch_leds[] = { + { + .name = "ledA", /* green led */ +@@ -335,6 +349,11 @@ static void __init cambria_gw2350_setup( + cambria_optional_uart_data[1].membase = (void __iomem *)ioremap(0x53FF0000, 0x0fff); + cambria_optional_uart_data[1].irq = IRQ_IXP4XX_GPIO4; + ++ cambria_gpio_resources[0].start = (1 << 0) | (1 << 1) | (1 << 2) | (1 << 3) | (1 << 4) |\ ++ (1 << 5) | (1 << 8) | (1 << 9) | (1 << 12); ++ cambria_gpio_resources[0].end = cambria_gpio_resources[0].start; ++ ++ platform_device_register(&cambria_gpio); + platform_device_register(&cambria_optional_uart); + platform_device_register(&cambria_npec_device); + platform_device_register(&cambria_npea_device); +@@ -358,6 +377,10 @@ static void __init cambria_gw2358_setup( + cambria_optional_uart_data[1].membase = (void __iomem *)ioremap(0x53F80000, 0x0fff); + cambria_optional_uart_data[1].irq = IRQ_IXP4XX_GPIO4; + ++ cambria_gpio_resources[0].start = (1 << 14); ++ cambria_gpio_resources[0].end = cambria_gpio_resources[0].start; ++ ++ platform_device_register(&cambria_gpio); + platform_device_register(&cambria_optional_uart); + + platform_device_register(&cambria_npec_device); |