[kernel] refresh patches against 2.6.27 final
[openwrt.git] / target / linux / ixp4xx / patches-2.6.26 / 192-cambria_gpio_device.patch
1 --- a/arch/arm/mach-ixp4xx/cambria-setup.c
2 +++ b/arch/arm/mach-ixp4xx/cambria-setup.c
3 @@ -214,6 +214,21 @@
4 .dev.platform_data = &cambria_gpio_leds_data,
5 };
6
7 +static struct resource cambria_gpio_resources[] = {
8 + {
9 + .name = "gpio",
10 + .flags = 0,
11 + },
12 +};
13 +
14 +static struct platform_device cambria_gpio = {
15 + .name = "GPIODEV",
16 + .id = -1,
17 + .num_resources = ARRAY_SIZE(cambria_gpio_resources),
18 + .resource = cambria_gpio_resources,
19 +};
20 +
21 +
22
23 static struct latch_led cambria_latch_leds[] = {
24 {
25 @@ -337,6 +352,11 @@
26 cambria_optional_uart_data[1].membase = (void __iomem *)ioremap(0x53FF0000, 0x0fff);
27 cambria_optional_uart_data[1].irq = IRQ_IXP4XX_GPIO4;
28
29 + cambria_gpio_resources[0].start = (1 << 0) | (1 << 1) | (1 << 2) | (1 << 3) | (1 << 4) |\
30 + (1 << 5) | (1 << 8) | (1 << 9) | (1 << 12);
31 + cambria_gpio_resources[0].end = cambria_gpio_resources[0].start;
32 +
33 + platform_device_register(&cambria_gpio);
34 platform_device_register(&cambria_optional_uart);
35 platform_device_register(&cambria_npec_device);
36 platform_device_register(&cambria_npea_device);
37 @@ -363,6 +383,10 @@
38 cambria_optional_uart_data[1].membase = (void __iomem *)ioremap(0x53F80000, 0x0fff);
39 cambria_optional_uart_data[1].irq = IRQ_IXP4XX_GPIO4;
40
41 + cambria_gpio_resources[0].start = (1 << 14);
42 + cambria_gpio_resources[0].end = cambria_gpio_resources[0].start;
43 +
44 + platform_device_register(&cambria_gpio);
45 platform_device_register(&cambria_optional_uart);
46
47 platform_device_register(&cambria_npec_device);
This page took 0.056921 seconds and 5 git commands to generate.