diff options
Diffstat (limited to 'arch/arm/mach-pxa')
76 files changed, 688 insertions, 1047 deletions
diff --git a/arch/arm/mach-pxa/Kconfig b/arch/arm/mach-pxa/Kconfig index fe2d1f80ef50..8e6288de69b9 100644 --- a/arch/arm/mach-pxa/Kconfig +++ b/arch/arm/mach-pxa/Kconfig | |||
@@ -25,6 +25,18 @@ config PXA_V7_MACH_AUTO | |||
25 | if !ARCH_PXA_V7 | 25 | if !ARCH_PXA_V7 |
26 | comment "Intel/Marvell Dev Platforms (sorted by hardware release time)" | 26 | comment "Intel/Marvell Dev Platforms (sorted by hardware release time)" |
27 | 27 | ||
28 | config MACH_PXA3XX_DT | ||
29 | bool "Support PXA3xx platforms from device tree" | ||
30 | select PXA3xx | ||
31 | select CPU_PXA300 | ||
32 | select POWER_SUPPLY | ||
33 | select HAVE_PWM | ||
34 | select USE_OF | ||
35 | help | ||
36 | Include support for Marvell PXA3xx based platforms using | ||
37 | the device tree. Needn't select any other machine while | ||
38 | MACH_PXA3XX_DT is enabled. | ||
39 | |||
28 | config ARCH_LUBBOCK | 40 | config ARCH_LUBBOCK |
29 | bool "Intel DBPXA250 Development Platform (aka Lubbock)" | 41 | bool "Intel DBPXA250 Development Platform (aka Lubbock)" |
30 | select PXA25x | 42 | select PXA25x |
diff --git a/arch/arm/mach-pxa/Makefile b/arch/arm/mach-pxa/Makefile index be0f7df8685c..ee88d6eae648 100644 --- a/arch/arm/mach-pxa/Makefile +++ b/arch/arm/mach-pxa/Makefile | |||
@@ -26,6 +26,9 @@ obj-$(CONFIG_CPU_PXA930) += pxa930.o | |||
26 | 26 | ||
27 | # NOTE: keep the order of boards in accordance to their order in Kconfig | 27 | # NOTE: keep the order of boards in accordance to their order in Kconfig |
28 | 28 | ||
29 | # Device Tree support | ||
30 | obj-$(CONFIG_MACH_PXA3XX_DT) += pxa-dt.o | ||
31 | |||
29 | # Intel/Marvell Dev Platforms | 32 | # Intel/Marvell Dev Platforms |
30 | obj-$(CONFIG_ARCH_LUBBOCK) += lubbock.o | 33 | obj-$(CONFIG_ARCH_LUBBOCK) += lubbock.o |
31 | obj-$(CONFIG_MACH_MAINSTONE) += mainstone.o | 34 | obj-$(CONFIG_MACH_MAINSTONE) += mainstone.o |
@@ -95,12 +98,4 @@ obj-$(CONFIG_MACH_RAUMFELD_CONNECTOR) += raumfeld.o | |||
95 | obj-$(CONFIG_MACH_RAUMFELD_SPEAKER) += raumfeld.o | 98 | obj-$(CONFIG_MACH_RAUMFELD_SPEAKER) += raumfeld.o |
96 | obj-$(CONFIG_MACH_ZIPIT2) += z2.o | 99 | obj-$(CONFIG_MACH_ZIPIT2) += z2.o |
97 | 100 | ||
98 | # Support for blinky lights | ||
99 | led-y := leds.o | ||
100 | led-$(CONFIG_ARCH_LUBBOCK) += leds-lubbock.o | ||
101 | led-$(CONFIG_MACH_MAINSTONE) += leds-mainstone.o | ||
102 | led-$(CONFIG_ARCH_PXA_IDP) += leds-idp.o | ||
103 | |||
104 | obj-$(CONFIG_LEDS) += $(led-y) | ||
105 | |||
106 | obj-$(CONFIG_TOSA_BT) += tosa-bt.o | 101 | obj-$(CONFIG_TOSA_BT) += tosa-bt.o |
diff --git a/arch/arm/mach-pxa/am200epd.c b/arch/arm/mach-pxa/am200epd.c index ccdac4b6a469..ffa6d811aad8 100644 --- a/arch/arm/mach-pxa/am200epd.c +++ b/arch/arm/mach-pxa/am200epd.c | |||
@@ -32,7 +32,7 @@ | |||
32 | 32 | ||
33 | #include <mach/pxa25x.h> | 33 | #include <mach/pxa25x.h> |
34 | #include <mach/gumstix.h> | 34 | #include <mach/gumstix.h> |
35 | #include <mach/pxafb.h> | 35 | #include <linux/platform_data/video-pxafb.h> |
36 | 36 | ||
37 | #include "generic.h" | 37 | #include "generic.h" |
38 | 38 | ||
diff --git a/arch/arm/mach-pxa/am300epd.c b/arch/arm/mach-pxa/am300epd.c index 76c4b9494031..3dfec1ec462d 100644 --- a/arch/arm/mach-pxa/am300epd.c +++ b/arch/arm/mach-pxa/am300epd.c | |||
@@ -30,7 +30,7 @@ | |||
30 | 30 | ||
31 | #include <mach/gumstix.h> | 31 | #include <mach/gumstix.h> |
32 | #include <mach/mfp-pxa25x.h> | 32 | #include <mach/mfp-pxa25x.h> |
33 | #include <mach/pxafb.h> | 33 | #include <linux/platform_data/video-pxafb.h> |
34 | 34 | ||
35 | #include "generic.h" | 35 | #include "generic.h" |
36 | 36 | ||
diff --git a/arch/arm/mach-pxa/balloon3.c b/arch/arm/mach-pxa/balloon3.c index 9244493dbcb7..208229342514 100644 --- a/arch/arm/mach-pxa/balloon3.c +++ b/arch/arm/mach-pxa/balloon3.c | |||
@@ -45,12 +45,12 @@ | |||
45 | #include <mach/pxa27x.h> | 45 | #include <mach/pxa27x.h> |
46 | #include <mach/balloon3.h> | 46 | #include <mach/balloon3.h> |
47 | #include <mach/audio.h> | 47 | #include <mach/audio.h> |
48 | #include <mach/pxafb.h> | 48 | #include <linux/platform_data/video-pxafb.h> |
49 | #include <mach/mmc.h> | 49 | #include <linux/platform_data/mmc-pxamci.h> |
50 | #include <mach/udc.h> | 50 | #include <mach/udc.h> |
51 | #include <mach/pxa27x-udc.h> | 51 | #include <mach/pxa27x-udc.h> |
52 | #include <mach/irda.h> | 52 | #include <linux/platform_data/irda-pxaficp.h> |
53 | #include <mach/ohci.h> | 53 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
54 | 54 | ||
55 | #include "generic.h" | 55 | #include "generic.h" |
56 | #include "devices.h" | 56 | #include "devices.h" |
diff --git a/arch/arm/mach-pxa/clock-pxa3xx.c b/arch/arm/mach-pxa/clock-pxa3xx.c index 2a37a9a8f621..d4e9499832dc 100644 --- a/arch/arm/mach-pxa/clock-pxa3xx.c +++ b/arch/arm/mach-pxa/clock-pxa3xx.c | |||
@@ -127,8 +127,10 @@ void clk_pxa3xx_cken_enable(struct clk *clk) | |||
127 | 127 | ||
128 | if (clk->cken < 32) | 128 | if (clk->cken < 32) |
129 | CKENA |= mask; | 129 | CKENA |= mask; |
130 | else | 130 | else if (clk->cken < 64) |
131 | CKENB |= mask; | 131 | CKENB |= mask; |
132 | else | ||
133 | CKENC |= mask; | ||
132 | } | 134 | } |
133 | 135 | ||
134 | void clk_pxa3xx_cken_disable(struct clk *clk) | 136 | void clk_pxa3xx_cken_disable(struct clk *clk) |
@@ -137,8 +139,10 @@ void clk_pxa3xx_cken_disable(struct clk *clk) | |||
137 | 139 | ||
138 | if (clk->cken < 32) | 140 | if (clk->cken < 32) |
139 | CKENA &= ~mask; | 141 | CKENA &= ~mask; |
140 | else | 142 | else if (clk->cken < 64) |
141 | CKENB &= ~mask; | 143 | CKENB &= ~mask; |
144 | else | ||
145 | CKENC &= ~mask; | ||
142 | } | 146 | } |
143 | 147 | ||
144 | const struct clkops clk_pxa3xx_cken_ops = { | 148 | const struct clkops clk_pxa3xx_cken_ops = { |
diff --git a/arch/arm/mach-pxa/cm-x270.c b/arch/arm/mach-pxa/cm-x270.c index 431ef56700c4..2503db9e3253 100644 --- a/arch/arm/mach-pxa/cm-x270.c +++ b/arch/arm/mach-pxa/cm-x270.c | |||
@@ -22,8 +22,8 @@ | |||
22 | #include <linux/spi/libertas_spi.h> | 22 | #include <linux/spi/libertas_spi.h> |
23 | 23 | ||
24 | #include <mach/pxa27x.h> | 24 | #include <mach/pxa27x.h> |
25 | #include <mach/ohci.h> | 25 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
26 | #include <mach/mmc.h> | 26 | #include <linux/platform_data/mmc-pxamci.h> |
27 | 27 | ||
28 | #include "generic.h" | 28 | #include "generic.h" |
29 | 29 | ||
diff --git a/arch/arm/mach-pxa/cm-x2xx.c b/arch/arm/mach-pxa/cm-x2xx.c index 8fa4ad27edf3..fc3afc7cd366 100644 --- a/arch/arm/mach-pxa/cm-x2xx.c +++ b/arch/arm/mach-pxa/cm-x2xx.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include <mach/pxa25x.h> | 24 | #include <mach/pxa25x.h> |
25 | #include <mach/pxa27x.h> | 25 | #include <mach/pxa27x.h> |
26 | #include <mach/audio.h> | 26 | #include <mach/audio.h> |
27 | #include <mach/pxafb.h> | 27 | #include <linux/platform_data/video-pxafb.h> |
28 | #include <mach/smemc.h> | 28 | #include <mach/smemc.h> |
29 | 29 | ||
30 | #include <asm/hardware/it8152.h> | 30 | #include <asm/hardware/it8152.h> |
diff --git a/arch/arm/mach-pxa/cm-x300.c b/arch/arm/mach-pxa/cm-x300.c index 3e4e9fe2d462..cc2b23afcaaf 100644 --- a/arch/arm/mach-pxa/cm-x300.c +++ b/arch/arm/mach-pxa/cm-x300.c | |||
@@ -48,12 +48,12 @@ | |||
48 | 48 | ||
49 | #include <mach/pxa300.h> | 49 | #include <mach/pxa300.h> |
50 | #include <mach/pxa27x-udc.h> | 50 | #include <mach/pxa27x-udc.h> |
51 | #include <mach/pxafb.h> | 51 | #include <linux/platform_data/video-pxafb.h> |
52 | #include <mach/mmc.h> | 52 | #include <linux/platform_data/mmc-pxamci.h> |
53 | #include <mach/ohci.h> | 53 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
54 | #include <plat/pxa3xx_nand.h> | 54 | #include <linux/platform_data/mtd-nand-pxa3xx.h> |
55 | #include <mach/audio.h> | 55 | #include <mach/audio.h> |
56 | #include <mach/pxa3xx-u2d.h> | 56 | #include <linux/platform_data/usb-pxa3xx-ulpi.h> |
57 | 57 | ||
58 | #include <asm/mach/map.h> | 58 | #include <asm/mach/map.h> |
59 | 59 | ||
diff --git a/arch/arm/mach-pxa/colibri-evalboard.c b/arch/arm/mach-pxa/colibri-evalboard.c index d28e802e2448..8404b24240ea 100644 --- a/arch/arm/mach-pxa/colibri-evalboard.c +++ b/arch/arm/mach-pxa/colibri-evalboard.c | |||
@@ -23,8 +23,8 @@ | |||
23 | 23 | ||
24 | #include <mach/pxa27x.h> | 24 | #include <mach/pxa27x.h> |
25 | #include <mach/colibri.h> | 25 | #include <mach/colibri.h> |
26 | #include <mach/mmc.h> | 26 | #include <linux/platform_data/mmc-pxamci.h> |
27 | #include <mach/ohci.h> | 27 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
28 | #include <mach/pxa27x-udc.h> | 28 | #include <mach/pxa27x-udc.h> |
29 | 29 | ||
30 | #include "generic.h" | 30 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/colibri-pxa270-income.c b/arch/arm/mach-pxa/colibri-pxa270-income.c index 248804bb2c9d..2d4a7b4d5d78 100644 --- a/arch/arm/mach-pxa/colibri-pxa270-income.c +++ b/arch/arm/mach-pxa/colibri-pxa270-income.c | |||
@@ -27,11 +27,11 @@ | |||
27 | #include <asm/mach-types.h> | 27 | #include <asm/mach-types.h> |
28 | 28 | ||
29 | #include <mach/hardware.h> | 29 | #include <mach/hardware.h> |
30 | #include <mach/mmc.h> | 30 | #include <linux/platform_data/mmc-pxamci.h> |
31 | #include <mach/ohci.h> | 31 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
32 | #include <mach/pxa27x.h> | 32 | #include <mach/pxa27x.h> |
33 | #include <mach/pxa27x-udc.h> | 33 | #include <mach/pxa27x-udc.h> |
34 | #include <mach/pxafb.h> | 34 | #include <linux/platform_data/video-pxafb.h> |
35 | 35 | ||
36 | #include "devices.h" | 36 | #include "devices.h" |
37 | #include "generic.h" | 37 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/colibri-pxa300.c b/arch/arm/mach-pxa/colibri-pxa300.c index bb6def8ec979..a9c9c163dd95 100644 --- a/arch/arm/mach-pxa/colibri-pxa300.c +++ b/arch/arm/mach-pxa/colibri-pxa300.c | |||
@@ -24,8 +24,8 @@ | |||
24 | 24 | ||
25 | #include <mach/pxa300.h> | 25 | #include <mach/pxa300.h> |
26 | #include <mach/colibri.h> | 26 | #include <mach/colibri.h> |
27 | #include <mach/ohci.h> | 27 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
28 | #include <mach/pxafb.h> | 28 | #include <linux/platform_data/video-pxafb.h> |
29 | #include <mach/audio.h> | 29 | #include <mach/audio.h> |
30 | 30 | ||
31 | #include "generic.h" | 31 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/colibri-pxa320.c b/arch/arm/mach-pxa/colibri-pxa320.c index d88e7b37f1da..25515cd7e68f 100644 --- a/arch/arm/mach-pxa/colibri-pxa320.c +++ b/arch/arm/mach-pxa/colibri-pxa320.c | |||
@@ -25,8 +25,8 @@ | |||
25 | 25 | ||
26 | #include <mach/pxa320.h> | 26 | #include <mach/pxa320.h> |
27 | #include <mach/colibri.h> | 27 | #include <mach/colibri.h> |
28 | #include <mach/pxafb.h> | 28 | #include <linux/platform_data/video-pxafb.h> |
29 | #include <mach/ohci.h> | 29 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
30 | #include <mach/audio.h> | 30 | #include <mach/audio.h> |
31 | #include <mach/pxa27x-udc.h> | 31 | #include <mach/pxa27x-udc.h> |
32 | #include <mach/udc.h> | 32 | #include <mach/udc.h> |
diff --git a/arch/arm/mach-pxa/colibri-pxa3xx.c b/arch/arm/mach-pxa/colibri-pxa3xx.c index 68cc75fac219..8240291ab8cf 100644 --- a/arch/arm/mach-pxa/colibri-pxa3xx.c +++ b/arch/arm/mach-pxa/colibri-pxa3xx.c | |||
@@ -24,9 +24,9 @@ | |||
24 | #include <mach/pxa3xx-regs.h> | 24 | #include <mach/pxa3xx-regs.h> |
25 | #include <mach/mfp-pxa300.h> | 25 | #include <mach/mfp-pxa300.h> |
26 | #include <mach/colibri.h> | 26 | #include <mach/colibri.h> |
27 | #include <mach/mmc.h> | 27 | #include <linux/platform_data/mmc-pxamci.h> |
28 | #include <mach/pxafb.h> | 28 | #include <linux/platform_data/video-pxafb.h> |
29 | #include <plat/pxa3xx_nand.h> | 29 | #include <linux/platform_data/mtd-nand-pxa3xx.h> |
30 | 30 | ||
31 | #include "generic.h" | 31 | #include "generic.h" |
32 | #include "devices.h" | 32 | #include "devices.h" |
diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index c1fe32db4755..7c83f52c549c 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/arch/arm/mach-pxa/corgi.c | |||
@@ -46,8 +46,8 @@ | |||
46 | #include <asm/mach/irq.h> | 46 | #include <asm/mach/irq.h> |
47 | 47 | ||
48 | #include <mach/pxa25x.h> | 48 | #include <mach/pxa25x.h> |
49 | #include <mach/irda.h> | 49 | #include <linux/platform_data/irda-pxaficp.h> |
50 | #include <mach/mmc.h> | 50 | #include <linux/platform_data/mmc-pxamci.h> |
51 | #include <mach/udc.h> | 51 | #include <mach/udc.h> |
52 | #include <mach/corgi.h> | 52 | #include <mach/corgi.h> |
53 | #include <mach/sharpsl_pm.h> | 53 | #include <mach/sharpsl_pm.h> |
diff --git a/arch/arm/mach-pxa/csb726.c b/arch/arm/mach-pxa/csb726.c index 67f0de37f46e..7039f44b3647 100644 --- a/arch/arm/mach-pxa/csb726.c +++ b/arch/arm/mach-pxa/csb726.c | |||
@@ -23,8 +23,8 @@ | |||
23 | #include <asm/mach/arch.h> | 23 | #include <asm/mach/arch.h> |
24 | #include <mach/csb726.h> | 24 | #include <mach/csb726.h> |
25 | #include <mach/pxa27x.h> | 25 | #include <mach/pxa27x.h> |
26 | #include <mach/mmc.h> | 26 | #include <linux/platform_data/mmc-pxamci.h> |
27 | #include <mach/ohci.h> | 27 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
28 | #include <mach/audio.h> | 28 | #include <mach/audio.h> |
29 | #include <mach/smemc.h> | 29 | #include <mach/smemc.h> |
30 | 30 | ||
diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c index 166eee5b8a70..ddaa04de8e22 100644 --- a/arch/arm/mach-pxa/devices.c +++ b/arch/arm/mach-pxa/devices.c | |||
@@ -6,19 +6,18 @@ | |||
6 | #include <linux/spi/pxa2xx_spi.h> | 6 | #include <linux/spi/pxa2xx_spi.h> |
7 | #include <linux/i2c/pxa-i2c.h> | 7 | #include <linux/i2c/pxa-i2c.h> |
8 | 8 | ||
9 | #include <asm/pmu.h> | ||
10 | #include <mach/udc.h> | 9 | #include <mach/udc.h> |
11 | #include <mach/pxa3xx-u2d.h> | 10 | #include <linux/platform_data/usb-pxa3xx-ulpi.h> |
12 | #include <mach/pxafb.h> | 11 | #include <linux/platform_data/video-pxafb.h> |
13 | #include <mach/mmc.h> | 12 | #include <linux/platform_data/mmc-pxamci.h> |
14 | #include <mach/irda.h> | 13 | #include <linux/platform_data/irda-pxaficp.h> |
15 | #include <mach/irqs.h> | 14 | #include <mach/irqs.h> |
16 | #include <mach/ohci.h> | 15 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
17 | #include <plat/pxa27x_keypad.h> | 16 | #include <linux/platform_data/keypad-pxa27x.h> |
18 | #include <mach/camera.h> | 17 | #include <linux/platform_data/camera-pxa.h> |
19 | #include <mach/audio.h> | 18 | #include <mach/audio.h> |
20 | #include <mach/hardware.h> | 19 | #include <mach/hardware.h> |
21 | #include <plat/pxa3xx_nand.h> | 20 | #include <linux/platform_data/mtd-nand-pxa3xx.h> |
22 | 21 | ||
23 | #include "devices.h" | 22 | #include "devices.h" |
24 | #include "generic.h" | 23 | #include "generic.h" |
@@ -42,7 +41,7 @@ static struct resource pxa_resource_pmu = { | |||
42 | 41 | ||
43 | struct platform_device pxa_device_pmu = { | 42 | struct platform_device pxa_device_pmu = { |
44 | .name = "arm-pmu", | 43 | .name = "arm-pmu", |
45 | .id = ARM_PMU_DEVICE_CPU, | 44 | .id = -1, |
46 | .resource = &pxa_resource_pmu, | 45 | .resource = &pxa_resource_pmu, |
47 | .num_resources = 1, | 46 | .num_resources = 1, |
48 | }; | 47 | }; |
@@ -384,9 +383,24 @@ struct platform_device pxa_device_asoc_platform = { | |||
384 | 383 | ||
385 | static u64 pxaficp_dmamask = ~(u32)0; | 384 | static u64 pxaficp_dmamask = ~(u32)0; |
386 | 385 | ||
386 | static struct resource pxa_ir_resources[] = { | ||
387 | [0] = { | ||
388 | .start = IRQ_STUART, | ||
389 | .end = IRQ_STUART, | ||
390 | .flags = IORESOURCE_IRQ, | ||
391 | }, | ||
392 | [1] = { | ||
393 | .start = IRQ_ICP, | ||
394 | .end = IRQ_ICP, | ||
395 | .flags = IORESOURCE_IRQ, | ||
396 | }, | ||
397 | }; | ||
398 | |||
387 | struct platform_device pxa_device_ficp = { | 399 | struct platform_device pxa_device_ficp = { |
388 | .name = "pxa2xx-ir", | 400 | .name = "pxa2xx-ir", |
389 | .id = -1, | 401 | .id = -1, |
402 | .num_resources = ARRAY_SIZE(pxa_ir_resources), | ||
403 | .resource = pxa_ir_resources, | ||
390 | .dev = { | 404 | .dev = { |
391 | .dma_mask = &pxaficp_dmamask, | 405 | .dma_mask = &pxaficp_dmamask, |
392 | .coherent_dma_mask = 0xffffffff, | 406 | .coherent_dma_mask = 0xffffffff, |
diff --git a/arch/arm/mach-pxa/em-x270.c b/arch/arm/mach-pxa/em-x270.c index 97f82ad341bf..1b6411439ec8 100644 --- a/arch/arm/mach-pxa/em-x270.c +++ b/arch/arm/mach-pxa/em-x270.c | |||
@@ -42,11 +42,11 @@ | |||
42 | #include <mach/pxa27x.h> | 42 | #include <mach/pxa27x.h> |
43 | #include <mach/pxa27x-udc.h> | 43 | #include <mach/pxa27x-udc.h> |
44 | #include <mach/audio.h> | 44 | #include <mach/audio.h> |
45 | #include <mach/pxafb.h> | 45 | #include <linux/platform_data/video-pxafb.h> |
46 | #include <mach/ohci.h> | 46 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
47 | #include <mach/mmc.h> | 47 | #include <linux/platform_data/mmc-pxamci.h> |
48 | #include <plat/pxa27x_keypad.h> | 48 | #include <linux/platform_data/keypad-pxa27x.h> |
49 | #include <mach/camera.h> | 49 | #include <linux/platform_data/camera-pxa.h> |
50 | 50 | ||
51 | #include "generic.h" | 51 | #include "generic.h" |
52 | #include "devices.h" | 52 | #include "devices.h" |
diff --git a/arch/arm/mach-pxa/eseries.c b/arch/arm/mach-pxa/eseries.c index 4cb2391a782e..be2ee9bf5c6e 100644 --- a/arch/arm/mach-pxa/eseries.c +++ b/arch/arm/mach-pxa/eseries.c | |||
@@ -32,9 +32,9 @@ | |||
32 | #include <mach/eseries-gpio.h> | 32 | #include <mach/eseries-gpio.h> |
33 | #include <mach/eseries-irq.h> | 33 | #include <mach/eseries-irq.h> |
34 | #include <mach/audio.h> | 34 | #include <mach/audio.h> |
35 | #include <mach/pxafb.h> | 35 | #include <linux/platform_data/video-pxafb.h> |
36 | #include <mach/udc.h> | 36 | #include <mach/udc.h> |
37 | #include <mach/irda.h> | 37 | #include <linux/platform_data/irda-pxaficp.h> |
38 | 38 | ||
39 | #include "devices.h" | 39 | #include "devices.h" |
40 | #include "generic.h" | 40 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/ezx.c b/arch/arm/mach-pxa/ezx.c index 15ab2533667d..dc58fa0edb66 100644 --- a/arch/arm/mach-pxa/ezx.c +++ b/arch/arm/mach-pxa/ezx.c | |||
@@ -29,11 +29,11 @@ | |||
29 | #include <asm/mach/arch.h> | 29 | #include <asm/mach/arch.h> |
30 | 30 | ||
31 | #include <mach/pxa27x.h> | 31 | #include <mach/pxa27x.h> |
32 | #include <mach/pxafb.h> | 32 | #include <linux/platform_data/video-pxafb.h> |
33 | #include <mach/ohci.h> | 33 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
34 | #include <mach/hardware.h> | 34 | #include <mach/hardware.h> |
35 | #include <plat/pxa27x_keypad.h> | 35 | #include <linux/platform_data/keypad-pxa27x.h> |
36 | #include <mach/camera.h> | 36 | #include <linux/platform_data/camera-pxa.h> |
37 | 37 | ||
38 | #include "devices.h" | 38 | #include "devices.h" |
39 | #include "generic.h" | 39 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/gumstix.c b/arch/arm/mach-pxa/gumstix.c index e529a35a44ce..60755a6bb1c6 100644 --- a/arch/arm/mach-pxa/gumstix.c +++ b/arch/arm/mach-pxa/gumstix.c | |||
@@ -41,7 +41,7 @@ | |||
41 | #include <asm/mach/flash.h> | 41 | #include <asm/mach/flash.h> |
42 | 42 | ||
43 | #include <mach/pxa25x.h> | 43 | #include <mach/pxa25x.h> |
44 | #include <mach/mmc.h> | 44 | #include <linux/platform_data/mmc-pxamci.h> |
45 | #include <mach/udc.h> | 45 | #include <mach/udc.h> |
46 | #include <mach/gumstix.h> | 46 | #include <mach/gumstix.h> |
47 | 47 | ||
diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c index e6311988add2..5ecbd17b5641 100644 --- a/arch/arm/mach-pxa/hx4700.c +++ b/arch/arm/mach-pxa/hx4700.c | |||
@@ -45,7 +45,7 @@ | |||
45 | 45 | ||
46 | #include <mach/pxa27x.h> | 46 | #include <mach/pxa27x.h> |
47 | #include <mach/hx4700.h> | 47 | #include <mach/hx4700.h> |
48 | #include <mach/irda.h> | 48 | #include <linux/platform_data/irda-pxaficp.h> |
49 | 49 | ||
50 | #include <sound/ak4641.h> | 50 | #include <sound/ak4641.h> |
51 | #include <video/platform_lcd.h> | 51 | #include <video/platform_lcd.h> |
diff --git a/arch/arm/mach-pxa/idp.c b/arch/arm/mach-pxa/idp.c index 6ff466bd43e8..64507cdd2e8f 100644 --- a/arch/arm/mach-pxa/idp.c +++ b/arch/arm/mach-pxa/idp.c | |||
@@ -33,9 +33,9 @@ | |||
33 | 33 | ||
34 | #include <mach/pxa25x.h> | 34 | #include <mach/pxa25x.h> |
35 | #include <mach/idp.h> | 35 | #include <mach/idp.h> |
36 | #include <mach/pxafb.h> | 36 | #include <linux/platform_data/video-pxafb.h> |
37 | #include <mach/bitfield.h> | 37 | #include <mach/bitfield.h> |
38 | #include <mach/mmc.h> | 38 | #include <linux/platform_data/mmc-pxamci.h> |
39 | 39 | ||
40 | #include "generic.h" | 40 | #include "generic.h" |
41 | #include "devices.h" | 41 | #include "devices.h" |
@@ -191,6 +191,87 @@ static void __init idp_map_io(void) | |||
191 | iotable_init(idp_io_desc, ARRAY_SIZE(idp_io_desc)); | 191 | iotable_init(idp_io_desc, ARRAY_SIZE(idp_io_desc)); |
192 | } | 192 | } |
193 | 193 | ||
194 | /* LEDs */ | ||
195 | #if defined(CONFIG_NEW_LEDS) && defined(CONFIG_LEDS_CLASS) | ||
196 | struct idp_led { | ||
197 | struct led_classdev cdev; | ||
198 | u8 mask; | ||
199 | }; | ||
200 | |||
201 | /* | ||
202 | * The triggers lines up below will only be used if the | ||
203 | * LED triggers are compiled in. | ||
204 | */ | ||
205 | static const struct { | ||
206 | const char *name; | ||
207 | const char *trigger; | ||
208 | } idp_leds[] = { | ||
209 | { "idp:green", "heartbeat", }, | ||
210 | { "idp:red", "cpu0", }, | ||
211 | }; | ||
212 | |||
213 | static void idp_led_set(struct led_classdev *cdev, | ||
214 | enum led_brightness b) | ||
215 | { | ||
216 | struct idp_led *led = container_of(cdev, | ||
217 | struct idp_led, cdev); | ||
218 | u32 reg = IDP_CPLD_LED_CONTROL; | ||
219 | |||
220 | if (b != LED_OFF) | ||
221 | reg &= ~led->mask; | ||
222 | else | ||
223 | reg |= led->mask; | ||
224 | |||
225 | IDP_CPLD_LED_CONTROL = reg; | ||
226 | } | ||
227 | |||
228 | static enum led_brightness idp_led_get(struct led_classdev *cdev) | ||
229 | { | ||
230 | struct idp_led *led = container_of(cdev, | ||
231 | struct idp_led, cdev); | ||
232 | |||
233 | return (IDP_CPLD_LED_CONTROL & led->mask) ? LED_OFF : LED_FULL; | ||
234 | } | ||
235 | |||
236 | static int __init idp_leds_init(void) | ||
237 | { | ||
238 | int i; | ||
239 | |||
240 | if (!machine_is_pxa_idp()) | ||
241 | return -ENODEV; | ||
242 | |||
243 | for (i = 0; i < ARRAY_SIZE(idp_leds); i++) { | ||
244 | struct idp_led *led; | ||
245 | |||
246 | led = kzalloc(sizeof(*led), GFP_KERNEL); | ||
247 | if (!led) | ||
248 | break; | ||
249 | |||
250 | led->cdev.name = idp_leds[i].name; | ||
251 | led->cdev.brightness_set = idp_led_set; | ||
252 | led->cdev.brightness_get = idp_led_get; | ||
253 | led->cdev.default_trigger = idp_leds[i].trigger; | ||
254 | |||
255 | if (i == 0) | ||
256 | led->mask = IDP_HB_LED; | ||
257 | else | ||
258 | led->mask = IDP_BUSY_LED; | ||
259 | |||
260 | if (led_classdev_register(NULL, &led->cdev) < 0) { | ||
261 | kfree(led); | ||
262 | break; | ||
263 | } | ||
264 | } | ||
265 | |||
266 | return 0; | ||
267 | } | ||
268 | |||
269 | /* | ||
270 | * Since we may have triggers on any subsystem, defer registration | ||
271 | * until after subsystem_init. | ||
272 | */ | ||
273 | fs_initcall(idp_leds_init); | ||
274 | #endif | ||
194 | 275 | ||
195 | MACHINE_START(PXA_IDP, "Vibren PXA255 IDP") | 276 | MACHINE_START(PXA_IDP, "Vibren PXA255 IDP") |
196 | /* Maintainer: Vibren Technologies */ | 277 | /* Maintainer: Vibren Technologies */ |
diff --git a/arch/arm/mach-pxa/include/mach/arcom-pcmcia.h b/arch/arm/mach-pxa/include/mach/arcom-pcmcia.h deleted file mode 100644 index d428be4db44c..000000000000 --- a/arch/arm/mach-pxa/include/mach/arcom-pcmcia.h +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | #ifndef __ARCOM_PCMCIA_H | ||
2 | #define __ARCOM_PCMCIA_H | ||
3 | |||
4 | struct arcom_pcmcia_pdata { | ||
5 | int cd_gpio; | ||
6 | int rdy_gpio; | ||
7 | int pwr_gpio; | ||
8 | void (*reset)(int state); | ||
9 | }; | ||
10 | |||
11 | #endif | ||
diff --git a/arch/arm/mach-pxa/include/mach/camera.h b/arch/arm/mach-pxa/include/mach/camera.h deleted file mode 100644 index 6709b1cd7c77..000000000000 --- a/arch/arm/mach-pxa/include/mach/camera.h +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | /* | ||
2 | camera.h - PXA camera driver header file | ||
3 | |||
4 | Copyright (C) 2003, Intel Corporation | ||
5 | Copyright (C) 2008, Guennadi Liakhovetski <kernel@pengutronix.de> | ||
6 | |||
7 | This program is free software; you can redistribute it and/or modify | ||
8 | it under the terms of the GNU General Public License as published by | ||
9 | the Free Software Foundation; either version 2 of the License, or | ||
10 | (at your option) any later version. | ||
11 | |||
12 | This program is distributed in the hope that it will be useful, | ||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | ||
16 | |||
17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program; if not, write to the Free Software | ||
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
20 | */ | ||
21 | |||
22 | #ifndef __ASM_ARCH_CAMERA_H_ | ||
23 | #define __ASM_ARCH_CAMERA_H_ | ||
24 | |||
25 | #define PXA_CAMERA_MASTER 1 | ||
26 | #define PXA_CAMERA_DATAWIDTH_4 2 | ||
27 | #define PXA_CAMERA_DATAWIDTH_5 4 | ||
28 | #define PXA_CAMERA_DATAWIDTH_8 8 | ||
29 | #define PXA_CAMERA_DATAWIDTH_9 0x10 | ||
30 | #define PXA_CAMERA_DATAWIDTH_10 0x20 | ||
31 | #define PXA_CAMERA_PCLK_EN 0x40 | ||
32 | #define PXA_CAMERA_MCLK_EN 0x80 | ||
33 | #define PXA_CAMERA_PCP 0x100 | ||
34 | #define PXA_CAMERA_HSP 0x200 | ||
35 | #define PXA_CAMERA_VSP 0x400 | ||
36 | |||
37 | struct pxacamera_platform_data { | ||
38 | unsigned long flags; | ||
39 | unsigned long mclk_10khz; | ||
40 | }; | ||
41 | |||
42 | extern void pxa_set_camera_info(struct pxacamera_platform_data *); | ||
43 | |||
44 | #endif /* __ASM_ARCH_CAMERA_H_ */ | ||
diff --git a/arch/arm/mach-pxa/include/mach/irda.h b/arch/arm/mach-pxa/include/mach/irda.h deleted file mode 100644 index 3cd41f77dda4..000000000000 --- a/arch/arm/mach-pxa/include/mach/irda.h +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | #ifndef ASMARM_ARCH_IRDA_H | ||
2 | #define ASMARM_ARCH_IRDA_H | ||
3 | |||
4 | /* board specific transceiver capabilities */ | ||
5 | |||
6 | #define IR_OFF 1 | ||
7 | #define IR_SIRMODE 2 | ||
8 | #define IR_FIRMODE 4 | ||
9 | |||
10 | struct pxaficp_platform_data { | ||
11 | int transceiver_cap; | ||
12 | void (*transceiver_mode)(struct device *dev, int mode); | ||
13 | int (*startup)(struct device *dev); | ||
14 | void (*shutdown)(struct device *dev); | ||
15 | int gpio_pwdown; /* powerdown GPIO for the IrDA chip */ | ||
16 | bool gpio_pwdown_inverted; /* gpio_pwdown is inverted */ | ||
17 | }; | ||
18 | |||
19 | extern void pxa_set_ficp_info(struct pxaficp_platform_data *info); | ||
20 | |||
21 | #if defined(CONFIG_PXA25x) || defined(CONFIG_PXA27x) | ||
22 | void pxa2xx_transceiver_mode(struct device *dev, int mode); | ||
23 | #endif | ||
24 | |||
25 | #endif | ||
diff --git a/arch/arm/mach-pxa/include/mach/mmc.h b/arch/arm/mach-pxa/include/mach/mmc.h deleted file mode 100644 index 9eb515bb799d..000000000000 --- a/arch/arm/mach-pxa/include/mach/mmc.h +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | #ifndef ASMARM_ARCH_MMC_H | ||
2 | #define ASMARM_ARCH_MMC_H | ||
3 | |||
4 | #include <linux/mmc/host.h> | ||
5 | #include <linux/interrupt.h> | ||
6 | |||
7 | struct device; | ||
8 | struct mmc_host; | ||
9 | |||
10 | struct pxamci_platform_data { | ||
11 | unsigned int ocr_mask; /* available voltages */ | ||
12 | unsigned long detect_delay_ms; /* delay in millisecond before detecting cards after interrupt */ | ||
13 | int (*init)(struct device *, irq_handler_t , void *); | ||
14 | int (*get_ro)(struct device *); | ||
15 | void (*setpower)(struct device *, unsigned int); | ||
16 | void (*exit)(struct device *, void *); | ||
17 | int gpio_card_detect; /* gpio detecting card insertion */ | ||
18 | int gpio_card_ro; /* gpio detecting read only toggle */ | ||
19 | bool gpio_card_ro_invert; /* gpio ro is inverted */ | ||
20 | int gpio_power; /* gpio powering up MMC bus */ | ||
21 | bool gpio_power_invert; /* gpio power is inverted */ | ||
22 | }; | ||
23 | |||
24 | extern void pxa_set_mci_info(struct pxamci_platform_data *info); | ||
25 | extern void pxa3xx_set_mci2_info(struct pxamci_platform_data *info); | ||
26 | extern void pxa3xx_set_mci3_info(struct pxamci_platform_data *info); | ||
27 | |||
28 | #endif | ||
diff --git a/arch/arm/mach-pxa/include/mach/ohci.h b/arch/arm/mach-pxa/include/mach/ohci.h deleted file mode 100644 index 95b6e2a6e514..000000000000 --- a/arch/arm/mach-pxa/include/mach/ohci.h +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | #ifndef ASMARM_ARCH_OHCI_H | ||
2 | #define ASMARM_ARCH_OHCI_H | ||
3 | |||
4 | struct device; | ||
5 | |||
6 | struct pxaohci_platform_data { | ||
7 | int (*init)(struct device *); | ||
8 | void (*exit)(struct device *); | ||
9 | |||
10 | unsigned long flags; | ||
11 | #define ENABLE_PORT1 (1 << 0) | ||
12 | #define ENABLE_PORT2 (1 << 1) | ||
13 | #define ENABLE_PORT3 (1 << 2) | ||
14 | #define ENABLE_PORT_ALL (ENABLE_PORT1 | ENABLE_PORT2 | ENABLE_PORT3) | ||
15 | |||
16 | #define POWER_SENSE_LOW (1 << 3) | ||
17 | #define POWER_CONTROL_LOW (1 << 4) | ||
18 | #define NO_OC_PROTECTION (1 << 5) | ||
19 | #define OC_MODE_GLOBAL (0 << 6) | ||
20 | #define OC_MODE_PERPORT (1 << 6) | ||
21 | |||
22 | int power_on_delay; /* Power On to Power Good time - in ms | ||
23 | * HCD must wait for this duration before | ||
24 | * accessing a powered on port | ||
25 | */ | ||
26 | int port_mode; | ||
27 | #define PMM_NPS_MODE 1 | ||
28 | #define PMM_GLOBAL_MODE 2 | ||
29 | #define PMM_PERPORT_MODE 3 | ||
30 | |||
31 | int power_budget; | ||
32 | }; | ||
33 | |||
34 | extern void pxa_set_ohci_info(struct pxaohci_platform_data *info); | ||
35 | |||
36 | #endif | ||
diff --git a/arch/arm/mach-pxa/include/mach/palmasoc.h b/arch/arm/mach-pxa/include/mach/palmasoc.h deleted file mode 100644 index 58afb30d5298..000000000000 --- a/arch/arm/mach-pxa/include/mach/palmasoc.h +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | #ifndef _INCLUDE_PALMASOC_H_ | ||
2 | #define _INCLUDE_PALMASOC_H_ | ||
3 | |||
4 | struct palm27x_asoc_info { | ||
5 | int jack_gpio; | ||
6 | }; | ||
7 | |||
8 | #endif | ||
diff --git a/arch/arm/mach-pxa/include/mach/pata_pxa.h b/arch/arm/mach-pxa/include/mach/pata_pxa.h deleted file mode 100644 index 6cf7df1d5830..000000000000 --- a/arch/arm/mach-pxa/include/mach/pata_pxa.h +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | /* | ||
2 | * Generic PXA PATA driver | ||
3 | * | ||
4 | * Copyright (C) 2010 Marek Vasut <marek.vasut@gmail.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2, or (at your option) | ||
9 | * any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; see the file COPYING. If not, write to | ||
18 | * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | ||
19 | */ | ||
20 | |||
21 | #ifndef __MACH_PATA_PXA_H__ | ||
22 | #define __MACH_PATA_PXA_H__ | ||
23 | |||
24 | struct pata_pxa_pdata { | ||
25 | /* PXA DMA DREQ<0:2> pin */ | ||
26 | uint32_t dma_dreq; | ||
27 | /* Register shift */ | ||
28 | uint32_t reg_shift; | ||
29 | /* IRQ flags */ | ||
30 | uint32_t irq_flags; | ||
31 | }; | ||
32 | |||
33 | #endif /* __MACH_PATA_PXA_H__ */ | ||
diff --git a/arch/arm/mach-pxa/include/mach/pxa3xx-regs.h b/arch/arm/mach-pxa/include/mach/pxa3xx-regs.h index 207ecb49a61b..f4d48d20754e 100644 --- a/arch/arm/mach-pxa/include/mach/pxa3xx-regs.h +++ b/arch/arm/mach-pxa/include/mach/pxa3xx-regs.h | |||
@@ -131,6 +131,7 @@ | |||
131 | #define AICSR __REG(0x41340008) /* Application Subsystem Interrupt Control/Status Register */ | 131 | #define AICSR __REG(0x41340008) /* Application Subsystem Interrupt Control/Status Register */ |
132 | #define CKENA __REG(0x4134000C) /* A Clock Enable Register */ | 132 | #define CKENA __REG(0x4134000C) /* A Clock Enable Register */ |
133 | #define CKENB __REG(0x41340010) /* B Clock Enable Register */ | 133 | #define CKENB __REG(0x41340010) /* B Clock Enable Register */ |
134 | #define CKENC __REG(0x41340024) /* C Clock Enable Register */ | ||
134 | #define AC97_DIV __REG(0x41340014) /* AC97 clock divisor value register */ | 135 | #define AC97_DIV __REG(0x41340014) /* AC97 clock divisor value register */ |
135 | 136 | ||
136 | #define ACCR_XPDIS (1 << 31) /* Core PLL Output Disable */ | 137 | #define ACCR_XPDIS (1 << 31) /* Core PLL Output Disable */ |
diff --git a/arch/arm/mach-pxa/include/mach/pxa3xx-u2d.h b/arch/arm/mach-pxa/include/mach/pxa3xx-u2d.h deleted file mode 100644 index 9d82cb65ea56..000000000000 --- a/arch/arm/mach-pxa/include/mach/pxa3xx-u2d.h +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | /* | ||
2 | * PXA3xx U2D header | ||
3 | * | ||
4 | * Copyright (C) 2010 CompuLab Ltd. | ||
5 | * | ||
6 | * Igor Grinberg <grinberg@compulab.co.il> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | #ifndef __PXA310_U2D__ | ||
13 | #define __PXA310_U2D__ | ||
14 | |||
15 | #include <linux/usb/ulpi.h> | ||
16 | |||
17 | struct pxa3xx_u2d_platform_data { | ||
18 | |||
19 | #define ULPI_SER_6PIN (1 << 0) | ||
20 | #define ULPI_SER_3PIN (1 << 1) | ||
21 | unsigned int ulpi_mode; | ||
22 | |||
23 | int (*init)(struct device *); | ||
24 | void (*exit)(struct device *); | ||
25 | }; | ||
26 | |||
27 | |||
28 | /* Start PXA3xx U2D host */ | ||
29 | int pxa3xx_u2d_start_hc(struct usb_bus *host); | ||
30 | /* Stop PXA3xx U2D host */ | ||
31 | void pxa3xx_u2d_stop_hc(struct usb_bus *host); | ||
32 | |||
33 | extern void pxa3xx_set_u2d_info(struct pxa3xx_u2d_platform_data *info); | ||
34 | |||
35 | #endif /* __PXA310_U2D__ */ | ||
diff --git a/arch/arm/mach-pxa/include/mach/pxa930_rotary.h b/arch/arm/mach-pxa/include/mach/pxa930_rotary.h deleted file mode 100644 index 053587caffdd..000000000000 --- a/arch/arm/mach-pxa/include/mach/pxa930_rotary.h +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | #ifndef __ASM_ARCH_PXA930_ROTARY_H | ||
2 | #define __ASM_ARCH_PXA930_ROTARY_H | ||
3 | |||
4 | /* NOTE: | ||
5 | * | ||
6 | * rotary can be either interpreted as a ralative input event (e.g. | ||
7 | * REL_WHEEL or REL_HWHEEL) or a specific key event (e.g. UP/DOWN | ||
8 | * or LEFT/RIGHT), depending on if up_key & down_key are assigned | ||
9 | * or rel_code is assigned a non-zero value. When all are non-zero, | ||
10 | * up_key and down_key will be preferred. | ||
11 | */ | ||
12 | struct pxa930_rotary_platform_data { | ||
13 | int up_key; | ||
14 | int down_key; | ||
15 | int rel_code; | ||
16 | }; | ||
17 | |||
18 | void __init pxa930_set_rotarykey_info(struct pxa930_rotary_platform_data *info); | ||
19 | |||
20 | #endif /* __ASM_ARCH_PXA930_ROTARY_H */ | ||
diff --git a/arch/arm/mach-pxa/include/mach/pxa930_trkball.h b/arch/arm/mach-pxa/include/mach/pxa930_trkball.h deleted file mode 100644 index 5e0789bc4729..000000000000 --- a/arch/arm/mach-pxa/include/mach/pxa930_trkball.h +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | #ifndef __ASM_ARCH_PXA930_TRKBALL_H | ||
2 | #define __ASM_ARCH_PXA930_TRKBALL_H | ||
3 | |||
4 | struct pxa930_trkball_platform_data { | ||
5 | int x_filter; | ||
6 | int y_filter; | ||
7 | }; | ||
8 | |||
9 | #endif /* __ASM_ARCH_PXA930_TRKBALL_H */ | ||
10 | |||
diff --git a/arch/arm/mach-pxa/include/mach/pxafb.h b/arch/arm/mach-pxa/include/mach/pxafb.h deleted file mode 100644 index 486b4c519ae2..000000000000 --- a/arch/arm/mach-pxa/include/mach/pxafb.h +++ /dev/null | |||
@@ -1,175 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-pxa/include/mach/pxafb.h | ||
3 | * | ||
4 | * Support for the xscale frame buffer. | ||
5 | * | ||
6 | * Author: Jean-Frederic Clere | ||
7 | * Created: Sep 22, 2003 | ||
8 | * Copyright: jfclere@sinix.net | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License version 2 as | ||
12 | * published by the Free Software Foundation. | ||
13 | */ | ||
14 | |||
15 | #include <linux/fb.h> | ||
16 | #include <mach/regs-lcd.h> | ||
17 | |||
18 | /* | ||
19 | * Supported LCD connections | ||
20 | * | ||
21 | * bits 0 - 3: for LCD panel type: | ||
22 | * | ||
23 | * STN - for passive matrix | ||
24 | * DSTN - for dual scan passive matrix | ||
25 | * TFT - for active matrix | ||
26 | * | ||
27 | * bits 4 - 9 : for bus width | ||
28 | * bits 10-17 : for AC Bias Pin Frequency | ||
29 | * bit 18 : for output enable polarity | ||
30 | * bit 19 : for pixel clock edge | ||
31 | * bit 20 : for output pixel format when base is RGBT16 | ||
32 | */ | ||
33 | #define LCD_CONN_TYPE(_x) ((_x) & 0x0f) | ||
34 | #define LCD_CONN_WIDTH(_x) (((_x) >> 4) & 0x1f) | ||
35 | |||
36 | #define LCD_TYPE_MASK 0xf | ||
37 | #define LCD_TYPE_UNKNOWN 0 | ||
38 | #define LCD_TYPE_MONO_STN 1 | ||
39 | #define LCD_TYPE_MONO_DSTN 2 | ||
40 | #define LCD_TYPE_COLOR_STN 3 | ||
41 | #define LCD_TYPE_COLOR_DSTN 4 | ||
42 | #define LCD_TYPE_COLOR_TFT 5 | ||
43 | #define LCD_TYPE_SMART_PANEL 6 | ||
44 | #define LCD_TYPE_MAX 7 | ||
45 | |||
46 | #define LCD_MONO_STN_4BPP ((4 << 4) | LCD_TYPE_MONO_STN) | ||
47 | #define LCD_MONO_STN_8BPP ((8 << 4) | LCD_TYPE_MONO_STN) | ||
48 | #define LCD_MONO_DSTN_8BPP ((8 << 4) | LCD_TYPE_MONO_DSTN) | ||
49 | #define LCD_COLOR_STN_8BPP ((8 << 4) | LCD_TYPE_COLOR_STN) | ||
50 | #define LCD_COLOR_DSTN_16BPP ((16 << 4) | LCD_TYPE_COLOR_DSTN) | ||
51 | #define LCD_COLOR_TFT_8BPP ((8 << 4) | LCD_TYPE_COLOR_TFT) | ||
52 | #define LCD_COLOR_TFT_16BPP ((16 << 4) | LCD_TYPE_COLOR_TFT) | ||
53 | #define LCD_COLOR_TFT_18BPP ((18 << 4) | LCD_TYPE_COLOR_TFT) | ||
54 | #define LCD_SMART_PANEL_8BPP ((8 << 4) | LCD_TYPE_SMART_PANEL) | ||
55 | #define LCD_SMART_PANEL_16BPP ((16 << 4) | LCD_TYPE_SMART_PANEL) | ||
56 | #define LCD_SMART_PANEL_18BPP ((18 << 4) | LCD_TYPE_SMART_PANEL) | ||
57 | |||
58 | #define LCD_AC_BIAS_FREQ(x) (((x) & 0xff) << 10) | ||
59 | #define LCD_BIAS_ACTIVE_HIGH (0 << 18) | ||
60 | #define LCD_BIAS_ACTIVE_LOW (1 << 18) | ||
61 | #define LCD_PCLK_EDGE_RISE (0 << 19) | ||
62 | #define LCD_PCLK_EDGE_FALL (1 << 19) | ||
63 | #define LCD_ALTERNATE_MAPPING (1 << 20) | ||
64 | |||
65 | /* | ||
66 | * This structure describes the machine which we are running on. | ||
67 | * It is set in linux/arch/arm/mach-pxa/machine_name.c and used in the probe routine | ||
68 | * of linux/drivers/video/pxafb.c | ||
69 | */ | ||
70 | struct pxafb_mode_info { | ||
71 | u_long pixclock; | ||
72 | |||
73 | u_short xres; | ||
74 | u_short yres; | ||
75 | |||
76 | u_char bpp; | ||
77 | u_int cmap_greyscale:1, | ||
78 | depth:8, | ||
79 | transparency:1, | ||
80 | unused:22; | ||
81 | |||
82 | /* Parallel Mode Timing */ | ||
83 | u_char hsync_len; | ||
84 | u_char left_margin; | ||
85 | u_char right_margin; | ||
86 | |||
87 | u_char vsync_len; | ||
88 | u_char upper_margin; | ||
89 | u_char lower_margin; | ||
90 | u_char sync; | ||
91 | |||
92 | /* Smart Panel Mode Timing - see PXA27x DM 7.4.15.0.3 for details | ||
93 | * Note: | ||
94 | * 1. all parameters in nanosecond (ns) | ||
95 | * 2. a0cs{rd,wr}_set_hld are controlled by the same register bits | ||
96 | * in pxa27x and pxa3xx, initialize them to the same value or | ||
97 | * the larger one will be used | ||
98 | * 3. same to {rd,wr}_pulse_width | ||
99 | * | ||
100 | * 4. LCD_PCLK_EDGE_{RISE,FALL} controls the L_PCLK_WR polarity | ||
101 | * 5. sync & FB_SYNC_HOR_HIGH_ACT controls the L_LCLK_A0 | ||
102 | * 6. sync & FB_SYNC_VERT_HIGH_ACT controls the L_LCLK_RD | ||
103 | */ | ||
104 | unsigned a0csrd_set_hld; /* A0 and CS Setup/Hold Time before/after L_FCLK_RD */ | ||
105 | unsigned a0cswr_set_hld; /* A0 and CS Setup/Hold Time before/after L_PCLK_WR */ | ||
106 | unsigned wr_pulse_width; /* L_PCLK_WR pulse width */ | ||
107 | unsigned rd_pulse_width; /* L_FCLK_RD pulse width */ | ||
108 | unsigned cmd_inh_time; /* Command Inhibit time between two writes */ | ||
109 | unsigned op_hold_time; /* Output Hold time from L_FCLK_RD negation */ | ||
110 | }; | ||
111 | |||
112 | struct pxafb_mach_info { | ||
113 | struct pxafb_mode_info *modes; | ||
114 | unsigned int num_modes; | ||
115 | |||
116 | unsigned int lcd_conn; | ||
117 | unsigned long video_mem_size; | ||
118 | |||
119 | u_int fixed_modes:1, | ||
120 | cmap_inverse:1, | ||
121 | cmap_static:1, | ||
122 | acceleration_enabled:1, | ||
123 | unused:28; | ||
124 | |||
125 | /* The following should be defined in LCCR0 | ||
126 | * LCCR0_Act or LCCR0_Pas Active or Passive | ||
127 | * LCCR0_Sngl or LCCR0_Dual Single/Dual panel | ||
128 | * LCCR0_Mono or LCCR0_Color Mono/Color | ||
129 | * LCCR0_4PixMono or LCCR0_8PixMono (in mono single mode) | ||
130 | * LCCR0_DMADel(Tcpu) (optional) DMA request delay | ||
131 | * | ||
132 | * The following should not be defined in LCCR0: | ||
133 | * LCCR0_OUM, LCCR0_BM, LCCR0_QDM, LCCR0_DIS, LCCR0_EFM | ||
134 | * LCCR0_IUM, LCCR0_SFM, LCCR0_LDM, LCCR0_ENB | ||
135 | */ | ||
136 | u_int lccr0; | ||
137 | /* The following should be defined in LCCR3 | ||
138 | * LCCR3_OutEnH or LCCR3_OutEnL Output enable polarity | ||
139 | * LCCR3_PixRsEdg or LCCR3_PixFlEdg Pixel clock edge type | ||
140 | * LCCR3_Acb(X) AB Bias pin frequency | ||
141 | * LCCR3_DPC (optional) Double Pixel Clock mode (untested) | ||
142 | * | ||
143 | * The following should not be defined in LCCR3 | ||
144 | * LCCR3_HSP, LCCR3_VSP, LCCR0_Pcd(x), LCCR3_Bpp | ||
145 | */ | ||
146 | u_int lccr3; | ||
147 | /* The following should be defined in LCCR4 | ||
148 | * LCCR4_PAL_FOR_0 or LCCR4_PAL_FOR_1 or LCCR4_PAL_FOR_2 | ||
149 | * | ||
150 | * All other bits in LCCR4 should be left alone. | ||
151 | */ | ||
152 | u_int lccr4; | ||
153 | void (*pxafb_backlight_power)(int); | ||
154 | void (*pxafb_lcd_power)(int, struct fb_var_screeninfo *); | ||
155 | void (*smart_update)(struct fb_info *); | ||
156 | }; | ||
157 | |||
158 | void pxa_set_fb_info(struct device *, struct pxafb_mach_info *); | ||
159 | unsigned long pxafb_get_hsync_time(struct device *dev); | ||
160 | |||
161 | #ifdef CONFIG_FB_PXA_SMARTPANEL | ||
162 | extern int pxafb_smart_queue(struct fb_info *info, uint16_t *cmds, int); | ||
163 | extern int pxafb_smart_flush(struct fb_info *info); | ||
164 | #else | ||
165 | static inline int pxafb_smart_queue(struct fb_info *info, | ||
166 | uint16_t *cmds, int n) | ||
167 | { | ||
168 | return 0; | ||
169 | } | ||
170 | |||
171 | static inline int pxafb_smart_flush(struct fb_info *info) | ||
172 | { | ||
173 | return 0; | ||
174 | } | ||
175 | #endif | ||
diff --git a/arch/arm/mach-pxa/irq.c b/arch/arm/mach-pxa/irq.c index 5dae15ea6718..b6cc1816463e 100644 --- a/arch/arm/mach-pxa/irq.c +++ b/arch/arm/mach-pxa/irq.c | |||
@@ -17,6 +17,8 @@ | |||
17 | #include <linux/syscore_ops.h> | 17 | #include <linux/syscore_ops.h> |
18 | #include <linux/io.h> | 18 | #include <linux/io.h> |
19 | #include <linux/irq.h> | 19 | #include <linux/irq.h> |
20 | #include <linux/of_address.h> | ||
21 | #include <linux/of_irq.h> | ||
20 | 22 | ||
21 | #include <asm/exception.h> | 23 | #include <asm/exception.h> |
22 | 24 | ||
@@ -25,8 +27,6 @@ | |||
25 | 27 | ||
26 | #include "generic.h" | 28 | #include "generic.h" |
27 | 29 | ||
28 | #define IRQ_BASE io_p2v(0x40d00000) | ||
29 | |||
30 | #define ICIP (0x000) | 30 | #define ICIP (0x000) |
31 | #define ICMR (0x004) | 31 | #define ICMR (0x004) |
32 | #define ICLR (0x008) | 32 | #define ICLR (0x008) |
@@ -48,22 +48,19 @@ | |||
48 | * This is for peripheral IRQs internal to the PXA chip. | 48 | * This is for peripheral IRQs internal to the PXA chip. |
49 | */ | 49 | */ |
50 | 50 | ||
51 | static void __iomem *pxa_irq_base; | ||
51 | static int pxa_internal_irq_nr; | 52 | static int pxa_internal_irq_nr; |
52 | 53 | static bool cpu_has_ipr; | |
53 | static inline int cpu_has_ipr(void) | ||
54 | { | ||
55 | return !cpu_is_pxa25x(); | ||
56 | } | ||
57 | 54 | ||
58 | static inline void __iomem *irq_base(int i) | 55 | static inline void __iomem *irq_base(int i) |
59 | { | 56 | { |
60 | static unsigned long phys_base[] = { | 57 | static unsigned long phys_base_offset[] = { |
61 | 0x40d00000, | 58 | 0x0, |
62 | 0x40d0009c, | 59 | 0x9c, |
63 | 0x40d00130, | 60 | 0x130, |
64 | }; | 61 | }; |
65 | 62 | ||
66 | return io_p2v(phys_base[i]); | 63 | return pxa_irq_base + phys_base_offset[i]; |
67 | } | 64 | } |
68 | 65 | ||
69 | void pxa_mask_irq(struct irq_data *d) | 66 | void pxa_mask_irq(struct irq_data *d) |
@@ -96,8 +93,8 @@ asmlinkage void __exception_irq_entry icip_handle_irq(struct pt_regs *regs) | |||
96 | uint32_t icip, icmr, mask; | 93 | uint32_t icip, icmr, mask; |
97 | 94 | ||
98 | do { | 95 | do { |
99 | icip = __raw_readl(IRQ_BASE + ICIP); | 96 | icip = __raw_readl(pxa_irq_base + ICIP); |
100 | icmr = __raw_readl(IRQ_BASE + ICMR); | 97 | icmr = __raw_readl(pxa_irq_base + ICMR); |
101 | mask = icip & icmr; | 98 | mask = icip & icmr; |
102 | 99 | ||
103 | if (mask == 0) | 100 | if (mask == 0) |
@@ -128,6 +125,8 @@ void __init pxa_init_irq(int irq_nr, int (*fn)(struct irq_data *, unsigned int)) | |||
128 | BUG_ON(irq_nr > MAX_INTERNAL_IRQS); | 125 | BUG_ON(irq_nr > MAX_INTERNAL_IRQS); |
129 | 126 | ||
130 | pxa_internal_irq_nr = irq_nr; | 127 | pxa_internal_irq_nr = irq_nr; |
128 | cpu_has_ipr = !cpu_is_pxa25x(); | ||
129 | pxa_irq_base = io_p2v(0x40d00000); | ||
131 | 130 | ||
132 | for (n = 0; n < irq_nr; n += 32) { | 131 | for (n = 0; n < irq_nr; n += 32) { |
133 | void __iomem *base = irq_base(n >> 5); | 132 | void __iomem *base = irq_base(n >> 5); |
@@ -136,8 +135,8 @@ void __init pxa_init_irq(int irq_nr, int (*fn)(struct irq_data *, unsigned int)) | |||
136 | __raw_writel(0, base + ICLR); /* all IRQs are IRQ, not FIQ */ | 135 | __raw_writel(0, base + ICLR); /* all IRQs are IRQ, not FIQ */ |
137 | for (i = n; (i < (n + 32)) && (i < irq_nr); i++) { | 136 | for (i = n; (i < (n + 32)) && (i < irq_nr); i++) { |
138 | /* initialize interrupt priority */ | 137 | /* initialize interrupt priority */ |
139 | if (cpu_has_ipr()) | 138 | if (cpu_has_ipr) |
140 | __raw_writel(i | IPR_VALID, IRQ_BASE + IPR(i)); | 139 | __raw_writel(i | IPR_VALID, pxa_irq_base + IPR(i)); |
141 | 140 | ||
142 | irq = PXA_IRQ(i); | 141 | irq = PXA_IRQ(i); |
143 | irq_set_chip_and_handler(irq, &pxa_internal_irq_chip, | 142 | irq_set_chip_and_handler(irq, &pxa_internal_irq_chip, |
@@ -168,9 +167,9 @@ static int pxa_irq_suspend(void) | |||
168 | __raw_writel(0, base + ICMR); | 167 | __raw_writel(0, base + ICMR); |
169 | } | 168 | } |
170 | 169 | ||
171 | if (cpu_has_ipr()) { | 170 | if (cpu_has_ipr) { |
172 | for (i = 0; i < pxa_internal_irq_nr; i++) | 171 | for (i = 0; i < pxa_internal_irq_nr; i++) |
173 | saved_ipr[i] = __raw_readl(IRQ_BASE + IPR(i)); | 172 | saved_ipr[i] = __raw_readl(pxa_irq_base + IPR(i)); |
174 | } | 173 | } |
175 | 174 | ||
176 | return 0; | 175 | return 0; |
@@ -187,11 +186,11 @@ static void pxa_irq_resume(void) | |||
187 | __raw_writel(0, base + ICLR); | 186 | __raw_writel(0, base + ICLR); |
188 | } | 187 | } |
189 | 188 | ||
190 | if (cpu_has_ipr()) | 189 | if (cpu_has_ipr) |
191 | for (i = 0; i < pxa_internal_irq_nr; i++) | 190 | for (i = 0; i < pxa_internal_irq_nr; i++) |
192 | __raw_writel(saved_ipr[i], IRQ_BASE + IPR(i)); | 191 | __raw_writel(saved_ipr[i], pxa_irq_base + IPR(i)); |
193 | 192 | ||
194 | __raw_writel(1, IRQ_BASE + ICCR); | 193 | __raw_writel(1, pxa_irq_base + ICCR); |
195 | } | 194 | } |
196 | #else | 195 | #else |
197 | #define pxa_irq_suspend NULL | 196 | #define pxa_irq_suspend NULL |
@@ -202,3 +201,93 @@ struct syscore_ops pxa_irq_syscore_ops = { | |||
202 | .suspend = pxa_irq_suspend, | 201 | .suspend = pxa_irq_suspend, |
203 | .resume = pxa_irq_resume, | 202 | .resume = pxa_irq_resume, |
204 | }; | 203 | }; |
204 | |||
205 | #ifdef CONFIG_OF | ||
206 | static struct irq_domain *pxa_irq_domain; | ||
207 | |||
208 | static int pxa_irq_map(struct irq_domain *h, unsigned int virq, | ||
209 | irq_hw_number_t hw) | ||
210 | { | ||
211 | void __iomem *base = irq_base(hw / 32); | ||
212 | |||
213 | /* initialize interrupt priority */ | ||
214 | if (cpu_has_ipr) | ||
215 | __raw_writel(hw | IPR_VALID, pxa_irq_base + IPR(hw)); | ||
216 | |||
217 | irq_set_chip_and_handler(hw, &pxa_internal_irq_chip, | ||
218 | handle_level_irq); | ||
219 | irq_set_chip_data(hw, base); | ||
220 | set_irq_flags(hw, IRQF_VALID); | ||
221 | |||
222 | return 0; | ||
223 | } | ||
224 | |||
225 | static struct irq_domain_ops pxa_irq_ops = { | ||
226 | .map = pxa_irq_map, | ||
227 | .xlate = irq_domain_xlate_onecell, | ||
228 | }; | ||
229 | |||
230 | static const struct of_device_id intc_ids[] __initconst = { | ||
231 | { .compatible = "marvell,pxa-intc", }, | ||
232 | {} | ||
233 | }; | ||
234 | |||
235 | void __init pxa_dt_irq_init(int (*fn)(struct irq_data *, unsigned int)) | ||
236 | { | ||
237 | struct device_node *node; | ||
238 | const struct of_device_id *of_id; | ||
239 | struct pxa_intc_conf *conf; | ||
240 | struct resource res; | ||
241 | int n, ret; | ||
242 | |||
243 | node = of_find_matching_node(NULL, intc_ids); | ||
244 | if (!node) { | ||
245 | pr_err("Failed to find interrupt controller in arch-pxa\n"); | ||
246 | return; | ||
247 | } | ||
248 | of_id = of_match_node(intc_ids, node); | ||
249 | conf = of_id->data; | ||
250 | |||
251 | ret = of_property_read_u32(node, "marvell,intc-nr-irqs", | ||
252 | &pxa_internal_irq_nr); | ||
253 | if (ret) { | ||
254 | pr_err("Not found marvell,intc-nr-irqs property\n"); | ||
255 | return; | ||
256 | } | ||
257 | |||
258 | ret = of_address_to_resource(node, 0, &res); | ||
259 | if (ret < 0) { | ||
260 | pr_err("No registers defined for node\n"); | ||
261 | return; | ||
262 | } | ||
263 | pxa_irq_base = io_p2v(res.start); | ||
264 | |||
265 | if (of_find_property(node, "marvell,intc-priority", NULL)) | ||
266 | cpu_has_ipr = 1; | ||
267 | |||
268 | ret = irq_alloc_descs(-1, 0, pxa_internal_irq_nr, 0); | ||
269 | if (ret < 0) { | ||
270 | pr_err("Failed to allocate IRQ numbers\n"); | ||
271 | return; | ||
272 | } | ||
273 | |||
274 | pxa_irq_domain = irq_domain_add_legacy(node, pxa_internal_irq_nr, 0, 0, | ||
275 | &pxa_irq_ops, NULL); | ||
276 | if (!pxa_irq_domain) | ||
277 | panic("Unable to add PXA IRQ domain\n"); | ||
278 | |||
279 | irq_set_default_host(pxa_irq_domain); | ||
280 | |||
281 | for (n = 0; n < pxa_internal_irq_nr; n += 32) { | ||
282 | void __iomem *base = irq_base(n >> 5); | ||
283 | |||
284 | __raw_writel(0, base + ICMR); /* disable all IRQs */ | ||
285 | __raw_writel(0, base + ICLR); /* all IRQs are IRQ, not FIQ */ | ||
286 | } | ||
287 | |||
288 | /* only unmasked interrupts kick us out of idle */ | ||
289 | __raw_writel(1, irq_base(0) + ICCR); | ||
290 | |||
291 | pxa_internal_irq_chip.irq_set_wake = fn; | ||
292 | } | ||
293 | #endif /* CONFIG_OF */ | ||
diff --git a/arch/arm/mach-pxa/leds-idp.c b/arch/arm/mach-pxa/leds-idp.c deleted file mode 100644 index 06b060025d11..000000000000 --- a/arch/arm/mach-pxa/leds-idp.c +++ /dev/null | |||
@@ -1,115 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pxa/leds-idp.c | ||
3 | * | ||
4 | * Copyright (C) 2000 John Dorsey <john+@cs.cmu.edu> | ||
5 | * | ||
6 | * Copyright (c) 2001 Jeff Sutherland <jeffs@accelent.com> | ||
7 | * | ||
8 | * Original (leds-footbridge.c) by Russell King | ||
9 | * | ||
10 | * Macros for actual LED manipulation should be in machine specific | ||
11 | * files in this 'mach' directory. | ||
12 | */ | ||
13 | |||
14 | |||
15 | #include <linux/init.h> | ||
16 | |||
17 | #include <mach/hardware.h> | ||
18 | #include <asm/leds.h> | ||
19 | |||
20 | #include <mach/pxa25x.h> | ||
21 | #include <mach/idp.h> | ||
22 | |||
23 | #include "leds.h" | ||
24 | |||
25 | #define LED_STATE_ENABLED 1 | ||
26 | #define LED_STATE_CLAIMED 2 | ||
27 | |||
28 | static unsigned int led_state; | ||
29 | static unsigned int hw_led_state; | ||
30 | |||
31 | void idp_leds_event(led_event_t evt) | ||
32 | { | ||
33 | unsigned long flags; | ||
34 | |||
35 | local_irq_save(flags); | ||
36 | |||
37 | switch (evt) { | ||
38 | case led_start: | ||
39 | hw_led_state = IDP_HB_LED | IDP_BUSY_LED; | ||
40 | led_state = LED_STATE_ENABLED; | ||
41 | break; | ||
42 | |||
43 | case led_stop: | ||
44 | led_state &= ~LED_STATE_ENABLED; | ||
45 | break; | ||
46 | |||
47 | case led_claim: | ||
48 | led_state |= LED_STATE_CLAIMED; | ||
49 | hw_led_state = IDP_HB_LED | IDP_BUSY_LED; | ||
50 | break; | ||
51 | |||
52 | case led_release: | ||
53 | led_state &= ~LED_STATE_CLAIMED; | ||
54 | hw_led_state = IDP_HB_LED | IDP_BUSY_LED; | ||
55 | break; | ||
56 | |||
57 | #ifdef CONFIG_LEDS_TIMER | ||
58 | case led_timer: | ||
59 | if (!(led_state & LED_STATE_CLAIMED)) | ||
60 | hw_led_state ^= IDP_HB_LED; | ||
61 | break; | ||
62 | #endif | ||
63 | |||
64 | #ifdef CONFIG_LEDS_CPU | ||
65 | case led_idle_start: | ||
66 | if (!(led_state & LED_STATE_CLAIMED)) | ||
67 | hw_led_state &= ~IDP_BUSY_LED; | ||
68 | break; | ||
69 | |||
70 | case led_idle_end: | ||
71 | if (!(led_state & LED_STATE_CLAIMED)) | ||
72 | hw_led_state |= IDP_BUSY_LED; | ||
73 | break; | ||
74 | #endif | ||
75 | |||
76 | case led_halted: | ||
77 | break; | ||
78 | |||
79 | case led_green_on: | ||
80 | if (led_state & LED_STATE_CLAIMED) | ||
81 | hw_led_state |= IDP_HB_LED; | ||
82 | break; | ||
83 | |||
84 | case led_green_off: | ||
85 | if (led_state & LED_STATE_CLAIMED) | ||
86 | hw_led_state &= ~IDP_HB_LED; | ||
87 | break; | ||
88 | |||
89 | case led_amber_on: | ||
90 | break; | ||
91 | |||
92 | case led_amber_off: | ||
93 | break; | ||
94 | |||
95 | case led_red_on: | ||
96 | if (led_state & LED_STATE_CLAIMED) | ||
97 | hw_led_state |= IDP_BUSY_LED; | ||
98 | break; | ||
99 | |||
100 | case led_red_off: | ||
101 | if (led_state & LED_STATE_CLAIMED) | ||
102 | hw_led_state &= ~IDP_BUSY_LED; | ||
103 | break; | ||
104 | |||
105 | default: | ||
106 | break; | ||
107 | } | ||
108 | |||
109 | if (led_state & LED_STATE_ENABLED) | ||
110 | IDP_CPLD_LED_CONTROL = ( (IDP_CPLD_LED_CONTROL | IDP_LEDS_MASK) & ~hw_led_state); | ||
111 | else | ||
112 | IDP_CPLD_LED_CONTROL |= IDP_LEDS_MASK; | ||
113 | |||
114 | local_irq_restore(flags); | ||
115 | } | ||
diff --git a/arch/arm/mach-pxa/leds-lubbock.c b/arch/arm/mach-pxa/leds-lubbock.c deleted file mode 100644 index 0bd85c884a7c..000000000000 --- a/arch/arm/mach-pxa/leds-lubbock.c +++ /dev/null | |||
@@ -1,124 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pxa/leds-lubbock.c | ||
3 | * | ||
4 | * Copyright (C) 2000 John Dorsey <john+@cs.cmu.edu> | ||
5 | * | ||
6 | * Copyright (c) 2001 Jeff Sutherland <jeffs@accelent.com> | ||
7 | * | ||
8 | * Original (leds-footbridge.c) by Russell King | ||
9 | * | ||
10 | * Major surgery on April 2004 by Nicolas Pitre for less global | ||
11 | * namespace collision. Mostly adapted the Mainstone version. | ||
12 | */ | ||
13 | |||
14 | #include <linux/init.h> | ||
15 | |||
16 | #include <mach/hardware.h> | ||
17 | #include <asm/leds.h> | ||
18 | #include <mach/pxa25x.h> | ||
19 | #include <mach/lubbock.h> | ||
20 | |||
21 | #include "leds.h" | ||
22 | |||
23 | /* | ||
24 | * 8 discrete leds available for general use: | ||
25 | * | ||
26 | * Note: bits [15-8] are used to enable/blank the 8 7 segment hex displays | ||
27 | * so be sure to not monkey with them here. | ||
28 | */ | ||
29 | |||
30 | #define D28 (1 << 0) | ||
31 | #define D27 (1 << 1) | ||
32 | #define D26 (1 << 2) | ||
33 | #define D25 (1 << 3) | ||
34 | #define D24 (1 << 4) | ||
35 | #define D23 (1 << 5) | ||
36 | #define D22 (1 << 6) | ||
37 | #define D21 (1 << 7) | ||
38 | |||
39 | #define LED_STATE_ENABLED 1 | ||
40 | #define LED_STATE_CLAIMED 2 | ||
41 | |||
42 | static unsigned int led_state; | ||
43 | static unsigned int hw_led_state; | ||
44 | |||
45 | void lubbock_leds_event(led_event_t evt) | ||
46 | { | ||
47 | unsigned long flags; | ||
48 | |||
49 | local_irq_save(flags); | ||
50 | |||
51 | switch (evt) { | ||
52 | case led_start: | ||
53 | hw_led_state = 0; | ||
54 | led_state = LED_STATE_ENABLED; | ||
55 | break; | ||
56 | |||
57 | case led_stop: | ||
58 | led_state &= ~LED_STATE_ENABLED; | ||
59 | break; | ||
60 | |||
61 | case led_claim: | ||
62 | led_state |= LED_STATE_CLAIMED; | ||
63 | hw_led_state = 0; | ||
64 | break; | ||
65 | |||
66 | case led_release: | ||
67 | led_state &= ~LED_STATE_CLAIMED; | ||
68 | hw_led_state = 0; | ||
69 | break; | ||
70 | |||
71 | #ifdef CONFIG_LEDS_TIMER | ||
72 | case led_timer: | ||
73 | hw_led_state ^= D26; | ||
74 | break; | ||
75 | #endif | ||
76 | |||
77 | #ifdef CONFIG_LEDS_CPU | ||
78 | case led_idle_start: | ||
79 | hw_led_state &= ~D27; | ||
80 | break; | ||
81 | |||
82 | case led_idle_end: | ||
83 | hw_led_state |= D27; | ||
84 | break; | ||
85 | #endif | ||
86 | |||
87 | case led_halted: | ||
88 | break; | ||
89 | |||
90 | case led_green_on: | ||
91 | hw_led_state |= D21; | ||
92 | break; | ||
93 | |||
94 | case led_green_off: | ||
95 | hw_led_state &= ~D21; | ||
96 | break; | ||
97 | |||
98 | case led_amber_on: | ||
99 | hw_led_state |= D22; | ||
100 | break; | ||
101 | |||
102 | case led_amber_off: | ||
103 | hw_led_state &= ~D22; | ||
104 | break; | ||
105 | |||
106 | case led_red_on: | ||
107 | hw_led_state |= D23; | ||
108 | break; | ||
109 | |||
110 | case led_red_off: | ||
111 | hw_led_state &= ~D23; | ||
112 | break; | ||
113 | |||
114 | default: | ||
115 | break; | ||
116 | } | ||
117 | |||
118 | if (led_state & LED_STATE_ENABLED) | ||
119 | LUB_DISC_BLNK_LED = (LUB_DISC_BLNK_LED | 0xff) & ~hw_led_state; | ||
120 | else | ||
121 | LUB_DISC_BLNK_LED |= 0xff; | ||
122 | |||
123 | local_irq_restore(flags); | ||
124 | } | ||
diff --git a/arch/arm/mach-pxa/leds-mainstone.c b/arch/arm/mach-pxa/leds-mainstone.c deleted file mode 100644 index 4058ab340fe6..000000000000 --- a/arch/arm/mach-pxa/leds-mainstone.c +++ /dev/null | |||
@@ -1,119 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pxa/leds-mainstone.c | ||
3 | * | ||
4 | * Author: Nicolas Pitre | ||
5 | * Created: Nov 05, 2002 | ||
6 | * Copyright: MontaVista Software Inc. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/init.h> | ||
14 | |||
15 | #include <mach/hardware.h> | ||
16 | #include <asm/leds.h> | ||
17 | |||
18 | #include <mach/pxa27x.h> | ||
19 | #include <mach/mainstone.h> | ||
20 | |||
21 | #include "leds.h" | ||
22 | |||
23 | |||
24 | /* 8 discrete leds available for general use: */ | ||
25 | #define D28 (1 << 0) | ||
26 | #define D27 (1 << 1) | ||
27 | #define D26 (1 << 2) | ||
28 | #define D25 (1 << 3) | ||
29 | #define D24 (1 << 4) | ||
30 | #define D23 (1 << 5) | ||
31 | #define D22 (1 << 6) | ||
32 | #define D21 (1 << 7) | ||
33 | |||
34 | #define LED_STATE_ENABLED 1 | ||
35 | #define LED_STATE_CLAIMED 2 | ||
36 | |||
37 | static unsigned int led_state; | ||
38 | static unsigned int hw_led_state; | ||
39 | |||
40 | void mainstone_leds_event(led_event_t evt) | ||
41 | { | ||
42 | unsigned long flags; | ||
43 | |||
44 | local_irq_save(flags); | ||
45 | |||
46 | switch (evt) { | ||
47 | case led_start: | ||
48 | hw_led_state = 0; | ||
49 | led_state = LED_STATE_ENABLED; | ||
50 | break; | ||
51 | |||
52 | case led_stop: | ||
53 | led_state &= ~LED_STATE_ENABLED; | ||
54 | break; | ||
55 | |||
56 | case led_claim: | ||
57 | led_state |= LED_STATE_CLAIMED; | ||
58 | hw_led_state = 0; | ||
59 | break; | ||
60 | |||
61 | case led_release: | ||
62 | led_state &= ~LED_STATE_CLAIMED; | ||
63 | hw_led_state = 0; | ||
64 | break; | ||
65 | |||
66 | #ifdef CONFIG_LEDS_TIMER | ||
67 | case led_timer: | ||
68 | hw_led_state ^= D26; | ||
69 | break; | ||
70 | #endif | ||
71 | |||
72 | #ifdef CONFIG_LEDS_CPU | ||
73 | case led_idle_start: | ||
74 | hw_led_state &= ~D27; | ||
75 | break; | ||
76 | |||
77 | case led_idle_end: | ||
78 | hw_led_state |= D27; | ||
79 | break; | ||
80 | #endif | ||
81 | |||
82 | case led_halted: | ||
83 | break; | ||
84 | |||
85 | case led_green_on: | ||
86 | hw_led_state |= D21; | ||
87 | break; | ||
88 | |||
89 | case led_green_off: | ||
90 | hw_led_state &= ~D21; | ||
91 | break; | ||
92 | |||
93 | case led_amber_on: | ||
94 | hw_led_state |= D22; | ||
95 | break; | ||
96 | |||
97 | case led_amber_off: | ||
98 | hw_led_state &= ~D22; | ||
99 | break; | ||
100 | |||
101 | case led_red_on: | ||
102 | hw_led_state |= D23; | ||
103 | break; | ||
104 | |||
105 | case led_red_off: | ||
106 | hw_led_state &= ~D23; | ||
107 | break; | ||
108 | |||
109 | default: | ||
110 | break; | ||
111 | } | ||
112 | |||
113 | if (led_state & LED_STATE_ENABLED) | ||
114 | MST_LEDCTRL = (MST_LEDCTRL | 0xff) & ~hw_led_state; | ||
115 | else | ||
116 | MST_LEDCTRL |= 0xff; | ||
117 | |||
118 | local_irq_restore(flags); | ||
119 | } | ||
diff --git a/arch/arm/mach-pxa/leds.c b/arch/arm/mach-pxa/leds.c deleted file mode 100644 index bbe4d5f6afaa..000000000000 --- a/arch/arm/mach-pxa/leds.c +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pxa/leds.c | ||
3 | * | ||
4 | * xscale LEDs dispatcher | ||
5 | * | ||
6 | * Copyright (C) 2001 Nicolas Pitre | ||
7 | * | ||
8 | * Copyright (c) 2001 Jeff Sutherland, Accelent Systems Inc. | ||
9 | */ | ||
10 | #include <linux/compiler.h> | ||
11 | #include <linux/init.h> | ||
12 | |||
13 | #include <asm/leds.h> | ||
14 | #include <asm/mach-types.h> | ||
15 | |||
16 | #include "leds.h" | ||
17 | |||
18 | static int __init | ||
19 | pxa_leds_init(void) | ||
20 | { | ||
21 | if (machine_is_lubbock()) | ||
22 | leds_event = lubbock_leds_event; | ||
23 | if (machine_is_mainstone()) | ||
24 | leds_event = mainstone_leds_event; | ||
25 | if (machine_is_pxa_idp()) | ||
26 | leds_event = idp_leds_event; | ||
27 | |||
28 | leds_event(led_start); | ||
29 | return 0; | ||
30 | } | ||
31 | |||
32 | core_initcall(pxa_leds_init); | ||
diff --git a/arch/arm/mach-pxa/leds.h b/arch/arm/mach-pxa/leds.h deleted file mode 100644 index 7f0dfe01345a..000000000000 --- a/arch/arm/mach-pxa/leds.h +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-pxa/leds.h | ||
3 | * | ||
4 | * Copyright (c) 2001 Jeff Sutherland, Accelent Systems Inc. | ||
5 | * | ||
6 | * blinky lights for various PXA-based systems: | ||
7 | * | ||
8 | */ | ||
9 | |||
10 | extern void idp_leds_event(led_event_t evt); | ||
11 | extern void lubbock_leds_event(led_event_t evt); | ||
12 | extern void mainstone_leds_event(led_event_t evt); | ||
13 | extern void trizeps4_leds_event(led_event_t evt); | ||
diff --git a/arch/arm/mach-pxa/littleton.c b/arch/arm/mach-pxa/littleton.c index 1fb86edb857c..402874f9021f 100644 --- a/arch/arm/mach-pxa/littleton.c +++ b/arch/arm/mach-pxa/littleton.c | |||
@@ -42,11 +42,11 @@ | |||
42 | #include <asm/mach/irq.h> | 42 | #include <asm/mach/irq.h> |
43 | 43 | ||
44 | #include <mach/pxa300.h> | 44 | #include <mach/pxa300.h> |
45 | #include <mach/pxafb.h> | 45 | #include <linux/platform_data/video-pxafb.h> |
46 | #include <mach/mmc.h> | 46 | #include <linux/platform_data/mmc-pxamci.h> |
47 | #include <plat/pxa27x_keypad.h> | 47 | #include <linux/platform_data/keypad-pxa27x.h> |
48 | #include <mach/littleton.h> | 48 | #include <mach/littleton.h> |
49 | #include <plat/pxa3xx_nand.h> | 49 | #include <linux/platform_data/mtd-nand-pxa3xx.h> |
50 | 50 | ||
51 | #include "generic.h" | 51 | #include "generic.h" |
52 | 52 | ||
diff --git a/arch/arm/mach-pxa/lpd270.c b/arch/arm/mach-pxa/lpd270.c index cee9ce2fc0b5..1a63eaa89867 100644 --- a/arch/arm/mach-pxa/lpd270.c +++ b/arch/arm/mach-pxa/lpd270.c | |||
@@ -41,10 +41,10 @@ | |||
41 | #include <mach/pxa27x.h> | 41 | #include <mach/pxa27x.h> |
42 | #include <mach/lpd270.h> | 42 | #include <mach/lpd270.h> |
43 | #include <mach/audio.h> | 43 | #include <mach/audio.h> |
44 | #include <mach/pxafb.h> | 44 | #include <linux/platform_data/video-pxafb.h> |
45 | #include <mach/mmc.h> | 45 | #include <linux/platform_data/mmc-pxamci.h> |
46 | #include <mach/irda.h> | 46 | #include <linux/platform_data/irda-pxaficp.h> |
47 | #include <mach/ohci.h> | 47 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
48 | #include <mach/smemc.h> | 48 | #include <mach/smemc.h> |
49 | 49 | ||
50 | #include "generic.h" | 50 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/lubbock.c b/arch/arm/mach-pxa/lubbock.c index 0ca0db787903..553056d9a3c5 100644 --- a/arch/arm/mach-pxa/lubbock.c +++ b/arch/arm/mach-pxa/lubbock.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/module.h> | 15 | #include <linux/module.h> |
16 | #include <linux/kernel.h> | 16 | #include <linux/kernel.h> |
17 | #include <linux/init.h> | 17 | #include <linux/init.h> |
18 | #include <linux/io.h> | ||
18 | #include <linux/platform_device.h> | 19 | #include <linux/platform_device.h> |
19 | #include <linux/syscore_ops.h> | 20 | #include <linux/syscore_ops.h> |
20 | #include <linux/major.h> | 21 | #include <linux/major.h> |
@@ -23,6 +24,8 @@ | |||
23 | #include <linux/mtd/mtd.h> | 24 | #include <linux/mtd/mtd.h> |
24 | #include <linux/mtd/partitions.h> | 25 | #include <linux/mtd/partitions.h> |
25 | #include <linux/smc91x.h> | 26 | #include <linux/smc91x.h> |
27 | #include <linux/slab.h> | ||
28 | #include <linux/leds.h> | ||
26 | 29 | ||
27 | #include <linux/spi/spi.h> | 30 | #include <linux/spi/spi.h> |
28 | #include <linux/spi/ads7846.h> | 31 | #include <linux/spi/ads7846.h> |
@@ -46,9 +49,9 @@ | |||
46 | #include <mach/audio.h> | 49 | #include <mach/audio.h> |
47 | #include <mach/lubbock.h> | 50 | #include <mach/lubbock.h> |
48 | #include <mach/udc.h> | 51 | #include <mach/udc.h> |
49 | #include <mach/irda.h> | 52 | #include <linux/platform_data/irda-pxaficp.h> |
50 | #include <mach/pxafb.h> | 53 | #include <linux/platform_data/video-pxafb.h> |
51 | #include <mach/mmc.h> | 54 | #include <linux/platform_data/mmc-pxamci.h> |
52 | #include <mach/pm.h> | 55 | #include <mach/pm.h> |
53 | #include <mach/smemc.h> | 56 | #include <mach/smemc.h> |
54 | 57 | ||
@@ -549,6 +552,98 @@ static void __init lubbock_map_io(void) | |||
549 | PCFR |= PCFR_OPDE; | 552 | PCFR |= PCFR_OPDE; |
550 | } | 553 | } |
551 | 554 | ||
555 | /* | ||
556 | * Driver for the 8 discrete LEDs available for general use: | ||
557 | * Note: bits [15-8] are used to enable/blank the 8 7 segment hex displays | ||
558 | * so be sure to not monkey with them here. | ||
559 | */ | ||
560 | |||
561 | #if defined(CONFIG_NEW_LEDS) && defined(CONFIG_LEDS_CLASS) | ||
562 | struct lubbock_led { | ||
563 | struct led_classdev cdev; | ||
564 | u8 mask; | ||
565 | }; | ||
566 | |||
567 | /* | ||
568 | * The triggers lines up below will only be used if the | ||
569 | * LED triggers are compiled in. | ||
570 | */ | ||
571 | static const struct { | ||
572 | const char *name; | ||
573 | const char *trigger; | ||
574 | } lubbock_leds[] = { | ||
575 | { "lubbock:D28", "default-on", }, | ||
576 | { "lubbock:D27", "cpu0", }, | ||
577 | { "lubbock:D26", "heartbeat" }, | ||
578 | { "lubbock:D25", }, | ||
579 | { "lubbock:D24", }, | ||
580 | { "lubbock:D23", }, | ||
581 | { "lubbock:D22", }, | ||
582 | { "lubbock:D21", }, | ||
583 | }; | ||
584 | |||
585 | static void lubbock_led_set(struct led_classdev *cdev, | ||
586 | enum led_brightness b) | ||
587 | { | ||
588 | struct lubbock_led *led = container_of(cdev, | ||
589 | struct lubbock_led, cdev); | ||
590 | u32 reg = LUB_DISC_BLNK_LED; | ||
591 | |||
592 | if (b != LED_OFF) | ||
593 | reg |= led->mask; | ||
594 | else | ||
595 | reg &= ~led->mask; | ||
596 | |||
597 | LUB_DISC_BLNK_LED = reg; | ||
598 | } | ||
599 | |||
600 | static enum led_brightness lubbock_led_get(struct led_classdev *cdev) | ||
601 | { | ||
602 | struct lubbock_led *led = container_of(cdev, | ||
603 | struct lubbock_led, cdev); | ||
604 | u32 reg = LUB_DISC_BLNK_LED; | ||
605 | |||
606 | return (reg & led->mask) ? LED_FULL : LED_OFF; | ||
607 | } | ||
608 | |||
609 | static int __init lubbock_leds_init(void) | ||
610 | { | ||
611 | int i; | ||
612 | |||
613 | if (!machine_is_lubbock()) | ||
614 | return -ENODEV; | ||
615 | |||
616 | /* All ON */ | ||
617 | LUB_DISC_BLNK_LED |= 0xff; | ||
618 | for (i = 0; i < ARRAY_SIZE(lubbock_leds); i++) { | ||
619 | struct lubbock_led *led; | ||
620 | |||
621 | led = kzalloc(sizeof(*led), GFP_KERNEL); | ||
622 | if (!led) | ||
623 | break; | ||
624 | |||
625 | led->cdev.name = lubbock_leds[i].name; | ||
626 | led->cdev.brightness_set = lubbock_led_set; | ||
627 | led->cdev.brightness_get = lubbock_led_get; | ||
628 | led->cdev.default_trigger = lubbock_leds[i].trigger; | ||
629 | led->mask = BIT(i); | ||
630 | |||
631 | if (led_classdev_register(NULL, &led->cdev) < 0) { | ||
632 | kfree(led); | ||
633 | break; | ||
634 | } | ||
635 | } | ||
636 | |||
637 | return 0; | ||
638 | } | ||
639 | |||
640 | /* | ||
641 | * Since we may have triggers on any subsystem, defer registration | ||
642 | * until after subsystem_init. | ||
643 | */ | ||
644 | fs_initcall(lubbock_leds_init); | ||
645 | #endif | ||
646 | |||
552 | MACHINE_START(LUBBOCK, "Intel DBPXA250 Development Platform (aka Lubbock)") | 647 | MACHINE_START(LUBBOCK, "Intel DBPXA250 Development Platform (aka Lubbock)") |
553 | /* Maintainer: MontaVista Software Inc. */ | 648 | /* Maintainer: MontaVista Software Inc. */ |
554 | .map_io = lubbock_map_io, | 649 | .map_io = lubbock_map_io, |
diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c index 39561dcf65f2..f7922404d941 100644 --- a/arch/arm/mach-pxa/magician.c +++ b/arch/arm/mach-pxa/magician.c | |||
@@ -38,10 +38,10 @@ | |||
38 | 38 | ||
39 | #include <mach/pxa27x.h> | 39 | #include <mach/pxa27x.h> |
40 | #include <mach/magician.h> | 40 | #include <mach/magician.h> |
41 | #include <mach/pxafb.h> | 41 | #include <linux/platform_data/video-pxafb.h> |
42 | #include <mach/mmc.h> | 42 | #include <linux/platform_data/mmc-pxamci.h> |
43 | #include <mach/irda.h> | 43 | #include <linux/platform_data/irda-pxaficp.h> |
44 | #include <mach/ohci.h> | 44 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
45 | 45 | ||
46 | #include "devices.h" | 46 | #include "devices.h" |
47 | #include "generic.h" | 47 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/mainstone.c b/arch/arm/mach-pxa/mainstone.c index 1aebaf719462..f27a61ee7ac7 100644 --- a/arch/arm/mach-pxa/mainstone.c +++ b/arch/arm/mach-pxa/mainstone.c | |||
@@ -28,6 +28,8 @@ | |||
28 | #include <linux/pwm_backlight.h> | 28 | #include <linux/pwm_backlight.h> |
29 | #include <linux/smc91x.h> | 29 | #include <linux/smc91x.h> |
30 | #include <linux/i2c/pxa-i2c.h> | 30 | #include <linux/i2c/pxa-i2c.h> |
31 | #include <linux/slab.h> | ||
32 | #include <linux/leds.h> | ||
31 | 33 | ||
32 | #include <asm/types.h> | 34 | #include <asm/types.h> |
33 | #include <asm/setup.h> | 35 | #include <asm/setup.h> |
@@ -45,11 +47,11 @@ | |||
45 | #include <mach/pxa27x.h> | 47 | #include <mach/pxa27x.h> |
46 | #include <mach/mainstone.h> | 48 | #include <mach/mainstone.h> |
47 | #include <mach/audio.h> | 49 | #include <mach/audio.h> |
48 | #include <mach/pxafb.h> | 50 | #include <linux/platform_data/video-pxafb.h> |
49 | #include <mach/mmc.h> | 51 | #include <linux/platform_data/mmc-pxamci.h> |
50 | #include <mach/irda.h> | 52 | #include <linux/platform_data/irda-pxaficp.h> |
51 | #include <mach/ohci.h> | 53 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
52 | #include <plat/pxa27x_keypad.h> | 54 | #include <linux/platform_data/keypad-pxa27x.h> |
53 | #include <mach/smemc.h> | 55 | #include <mach/smemc.h> |
54 | 56 | ||
55 | #include "generic.h" | 57 | #include "generic.h" |
@@ -613,6 +615,98 @@ static void __init mainstone_map_io(void) | |||
613 | PCFR = 0x66; | 615 | PCFR = 0x66; |
614 | } | 616 | } |
615 | 617 | ||
618 | /* | ||
619 | * Driver for the 8 discrete LEDs available for general use: | ||
620 | * Note: bits [15-8] are used to enable/blank the 8 7 segment hex displays | ||
621 | * so be sure to not monkey with them here. | ||
622 | */ | ||
623 | |||
624 | #if defined(CONFIG_NEW_LEDS) && defined(CONFIG_LEDS_CLASS) | ||
625 | struct mainstone_led { | ||
626 | struct led_classdev cdev; | ||
627 | u8 mask; | ||
628 | }; | ||
629 | |||
630 | /* | ||
631 | * The triggers lines up below will only be used if the | ||
632 | * LED triggers are compiled in. | ||
633 | */ | ||
634 | static const struct { | ||
635 | const char *name; | ||
636 | const char *trigger; | ||
637 | } mainstone_leds[] = { | ||
638 | { "mainstone:D28", "default-on", }, | ||
639 | { "mainstone:D27", "cpu0", }, | ||
640 | { "mainstone:D26", "heartbeat" }, | ||
641 | { "mainstone:D25", }, | ||
642 | { "mainstone:D24", }, | ||
643 | { "mainstone:D23", }, | ||
644 | { "mainstone:D22", }, | ||
645 | { "mainstone:D21", }, | ||
646 | }; | ||
647 | |||
648 | static void mainstone_led_set(struct led_classdev *cdev, | ||
649 | enum led_brightness b) | ||
650 | { | ||
651 | struct mainstone_led *led = container_of(cdev, | ||
652 | struct mainstone_led, cdev); | ||
653 | u32 reg = MST_LEDCTRL; | ||
654 | |||
655 | if (b != LED_OFF) | ||
656 | reg |= led->mask; | ||
657 | else | ||
658 | reg &= ~led->mask; | ||
659 | |||
660 | MST_LEDCTRL = reg; | ||
661 | } | ||
662 | |||
663 | static enum led_brightness mainstone_led_get(struct led_classdev *cdev) | ||
664 | { | ||
665 | struct mainstone_led *led = container_of(cdev, | ||
666 | struct mainstone_led, cdev); | ||
667 | u32 reg = MST_LEDCTRL; | ||
668 | |||
669 | return (reg & led->mask) ? LED_FULL : LED_OFF; | ||
670 | } | ||
671 | |||
672 | static int __init mainstone_leds_init(void) | ||
673 | { | ||
674 | int i; | ||
675 | |||
676 | if (!machine_is_mainstone()) | ||
677 | return -ENODEV; | ||
678 | |||
679 | /* All ON */ | ||
680 | MST_LEDCTRL |= 0xff; | ||
681 | for (i = 0; i < ARRAY_SIZE(mainstone_leds); i++) { | ||
682 | struct mainstone_led *led; | ||
683 | |||
684 | led = kzalloc(sizeof(*led), GFP_KERNEL); | ||
685 | if (!led) | ||
686 | break; | ||
687 | |||
688 | led->cdev.name = mainstone_leds[i].name; | ||
689 | led->cdev.brightness_set = mainstone_led_set; | ||
690 | led->cdev.brightness_get = mainstone_led_get; | ||
691 | led->cdev.default_trigger = mainstone_leds[i].trigger; | ||
692 | led->mask = BIT(i); | ||
693 | |||
694 | if (led_classdev_register(NULL, &led->cdev) < 0) { | ||
695 | kfree(led); | ||
696 | break; | ||
697 | } | ||
698 | } | ||
699 | |||
700 | return 0; | ||
701 | } | ||
702 | |||
703 | /* | ||
704 | * Since we may have triggers on any subsystem, defer registration | ||
705 | * until after subsystem_init. | ||
706 | */ | ||
707 | fs_initcall(mainstone_leds_init); | ||
708 | #endif | ||
709 | |||
616 | MACHINE_START(MAINSTONE, "Intel HCDDBBVA0 Development Platform (aka Mainstone)") | 710 | MACHINE_START(MAINSTONE, "Intel HCDDBBVA0 Development Platform (aka Mainstone)") |
617 | /* Maintainer: MontaVista Software Inc. */ | 711 | /* Maintainer: MontaVista Software Inc. */ |
618 | .atag_offset = 0x100, /* BLOB boot parameter setting */ | 712 | .atag_offset = 0x100, /* BLOB boot parameter setting */ |
diff --git a/arch/arm/mach-pxa/mioa701.c b/arch/arm/mach-pxa/mioa701.c index bf99022b021f..2831308dba68 100644 --- a/arch/arm/mach-pxa/mioa701.c +++ b/arch/arm/mach-pxa/mioa701.c | |||
@@ -46,12 +46,12 @@ | |||
46 | 46 | ||
47 | #include <mach/pxa27x.h> | 47 | #include <mach/pxa27x.h> |
48 | #include <mach/regs-rtc.h> | 48 | #include <mach/regs-rtc.h> |
49 | #include <plat/pxa27x_keypad.h> | 49 | #include <linux/platform_data/keypad-pxa27x.h> |
50 | #include <mach/pxafb.h> | 50 | #include <linux/platform_data/video-pxafb.h> |
51 | #include <mach/mmc.h> | 51 | #include <linux/platform_data/mmc-pxamci.h> |
52 | #include <mach/udc.h> | 52 | #include <mach/udc.h> |
53 | #include <mach/pxa27x-udc.h> | 53 | #include <mach/pxa27x-udc.h> |
54 | #include <mach/camera.h> | 54 | #include <linux/platform_data/camera-pxa.h> |
55 | #include <mach/audio.h> | 55 | #include <mach/audio.h> |
56 | #include <mach/smemc.h> | 56 | #include <mach/smemc.h> |
57 | #include <media/soc_camera.h> | 57 | #include <media/soc_camera.h> |
diff --git a/arch/arm/mach-pxa/mxm8x10.c b/arch/arm/mach-pxa/mxm8x10.c index 83570a79e7d2..d04ed4961e60 100644 --- a/arch/arm/mach-pxa/mxm8x10.c +++ b/arch/arm/mach-pxa/mxm8x10.c | |||
@@ -24,11 +24,11 @@ | |||
24 | #include <linux/gpio.h> | 24 | #include <linux/gpio.h> |
25 | #include <linux/i2c/pxa-i2c.h> | 25 | #include <linux/i2c/pxa-i2c.h> |
26 | 26 | ||
27 | #include <plat/pxa3xx_nand.h> | 27 | #include <linux/platform_data/mtd-nand-pxa3xx.h> |
28 | 28 | ||
29 | #include <mach/pxafb.h> | 29 | #include <linux/platform_data/video-pxafb.h> |
30 | #include <mach/mmc.h> | 30 | #include <linux/platform_data/mmc-pxamci.h> |
31 | #include <mach/ohci.h> | 31 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
32 | #include <mach/pxa320.h> | 32 | #include <mach/pxa320.h> |
33 | 33 | ||
34 | #include <mach/mxm8x10.h> | 34 | #include <mach/mxm8x10.h> |
diff --git a/arch/arm/mach-pxa/palm27x.c b/arch/arm/mach-pxa/palm27x.c index dad71cfa34c8..17d4c53017ca 100644 --- a/arch/arm/mach-pxa/palm27x.c +++ b/arch/arm/mach-pxa/palm27x.c | |||
@@ -29,11 +29,11 @@ | |||
29 | 29 | ||
30 | #include <mach/pxa27x.h> | 30 | #include <mach/pxa27x.h> |
31 | #include <mach/audio.h> | 31 | #include <mach/audio.h> |
32 | #include <mach/mmc.h> | 32 | #include <linux/platform_data/mmc-pxamci.h> |
33 | #include <mach/pxafb.h> | 33 | #include <linux/platform_data/video-pxafb.h> |
34 | #include <mach/irda.h> | 34 | #include <linux/platform_data/irda-pxaficp.h> |
35 | #include <mach/udc.h> | 35 | #include <mach/udc.h> |
36 | #include <mach/palmasoc.h> | 36 | #include <linux/platform_data/asoc-palm27x.h> |
37 | #include <mach/palm27x.h> | 37 | #include <mach/palm27x.h> |
38 | 38 | ||
39 | #include "generic.h" | 39 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/palmld.c b/arch/arm/mach-pxa/palmld.c index 31e0433d83ba..8bcc96e3b0db 100644 --- a/arch/arm/mach-pxa/palmld.c +++ b/arch/arm/mach-pxa/palmld.c | |||
@@ -35,11 +35,11 @@ | |||
35 | #include <mach/pxa27x.h> | 35 | #include <mach/pxa27x.h> |
36 | #include <mach/audio.h> | 36 | #include <mach/audio.h> |
37 | #include <mach/palmld.h> | 37 | #include <mach/palmld.h> |
38 | #include <mach/mmc.h> | 38 | #include <linux/platform_data/mmc-pxamci.h> |
39 | #include <mach/pxafb.h> | 39 | #include <linux/platform_data/video-pxafb.h> |
40 | #include <mach/irda.h> | 40 | #include <linux/platform_data/irda-pxaficp.h> |
41 | #include <plat/pxa27x_keypad.h> | 41 | #include <linux/platform_data/keypad-pxa27x.h> |
42 | #include <mach/palmasoc.h> | 42 | #include <linux/platform_data/asoc-palm27x.h> |
43 | #include <mach/palm27x.h> | 43 | #include <mach/palm27x.h> |
44 | 44 | ||
45 | #include "generic.h" | 45 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/palmt5.c b/arch/arm/mach-pxa/palmt5.c index 0f6bd4fcfa3b..5ca7b904a30e 100644 --- a/arch/arm/mach-pxa/palmt5.c +++ b/arch/arm/mach-pxa/palmt5.c | |||
@@ -36,12 +36,12 @@ | |||
36 | #include <mach/pxa27x.h> | 36 | #include <mach/pxa27x.h> |
37 | #include <mach/audio.h> | 37 | #include <mach/audio.h> |
38 | #include <mach/palmt5.h> | 38 | #include <mach/palmt5.h> |
39 | #include <mach/mmc.h> | 39 | #include <linux/platform_data/mmc-pxamci.h> |
40 | #include <mach/pxafb.h> | 40 | #include <linux/platform_data/video-pxafb.h> |
41 | #include <mach/irda.h> | 41 | #include <linux/platform_data/irda-pxaficp.h> |
42 | #include <plat/pxa27x_keypad.h> | 42 | #include <linux/platform_data/keypad-pxa27x.h> |
43 | #include <mach/udc.h> | 43 | #include <mach/udc.h> |
44 | #include <mach/palmasoc.h> | 44 | #include <linux/platform_data/asoc-palm27x.h> |
45 | #include <mach/palm27x.h> | 45 | #include <mach/palm27x.h> |
46 | 46 | ||
47 | #include "generic.h" | 47 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/palmtc.c b/arch/arm/mach-pxa/palmtc.c index e2d97eed07a7..ca924cfedfc0 100644 --- a/arch/arm/mach-pxa/palmtc.c +++ b/arch/arm/mach-pxa/palmtc.c | |||
@@ -34,9 +34,9 @@ | |||
34 | #include <mach/pxa25x.h> | 34 | #include <mach/pxa25x.h> |
35 | #include <mach/audio.h> | 35 | #include <mach/audio.h> |
36 | #include <mach/palmtc.h> | 36 | #include <mach/palmtc.h> |
37 | #include <mach/mmc.h> | 37 | #include <linux/platform_data/mmc-pxamci.h> |
38 | #include <mach/pxafb.h> | 38 | #include <linux/platform_data/video-pxafb.h> |
39 | #include <mach/irda.h> | 39 | #include <linux/platform_data/irda-pxaficp.h> |
40 | #include <mach/udc.h> | 40 | #include <mach/udc.h> |
41 | 41 | ||
42 | #include "generic.h" | 42 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/palmte2.c b/arch/arm/mach-pxa/palmte2.c index c054827c567f..997e6da9a9c4 100644 --- a/arch/arm/mach-pxa/palmte2.c +++ b/arch/arm/mach-pxa/palmte2.c | |||
@@ -34,11 +34,11 @@ | |||
34 | #include <mach/pxa25x.h> | 34 | #include <mach/pxa25x.h> |
35 | #include <mach/audio.h> | 35 | #include <mach/audio.h> |
36 | #include <mach/palmte2.h> | 36 | #include <mach/palmte2.h> |
37 | #include <mach/mmc.h> | 37 | #include <linux/platform_data/mmc-pxamci.h> |
38 | #include <mach/pxafb.h> | 38 | #include <linux/platform_data/video-pxafb.h> |
39 | #include <mach/irda.h> | 39 | #include <linux/platform_data/irda-pxaficp.h> |
40 | #include <mach/udc.h> | 40 | #include <mach/udc.h> |
41 | #include <mach/palmasoc.h> | 41 | #include <linux/platform_data/asoc-palm27x.h> |
42 | 42 | ||
43 | #include "generic.h" | 43 | #include "generic.h" |
44 | #include "devices.h" | 44 | #include "devices.h" |
diff --git a/arch/arm/mach-pxa/palmtreo.c b/arch/arm/mach-pxa/palmtreo.c index fbdebee39a53..3f3c48f2f7ce 100644 --- a/arch/arm/mach-pxa/palmtreo.c +++ b/arch/arm/mach-pxa/palmtreo.c | |||
@@ -35,15 +35,15 @@ | |||
35 | #include <mach/pxa27x-udc.h> | 35 | #include <mach/pxa27x-udc.h> |
36 | #include <mach/audio.h> | 36 | #include <mach/audio.h> |
37 | #include <mach/palmtreo.h> | 37 | #include <mach/palmtreo.h> |
38 | #include <mach/mmc.h> | 38 | #include <linux/platform_data/mmc-pxamci.h> |
39 | #include <mach/pxafb.h> | 39 | #include <linux/platform_data/video-pxafb.h> |
40 | #include <mach/irda.h> | 40 | #include <linux/platform_data/irda-pxaficp.h> |
41 | #include <plat/pxa27x_keypad.h> | 41 | #include <linux/platform_data/keypad-pxa27x.h> |
42 | #include <mach/udc.h> | 42 | #include <mach/udc.h> |
43 | #include <mach/ohci.h> | 43 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
44 | #include <mach/pxa2xx-regs.h> | 44 | #include <mach/pxa2xx-regs.h> |
45 | #include <mach/palmasoc.h> | 45 | #include <linux/platform_data/asoc-palm27x.h> |
46 | #include <mach/camera.h> | 46 | #include <linux/platform_data/camera-pxa.h> |
47 | #include <mach/palm27x.h> | 47 | #include <mach/palm27x.h> |
48 | 48 | ||
49 | #include <sound/pxa2xx-lib.h> | 49 | #include <sound/pxa2xx-lib.h> |
diff --git a/arch/arm/mach-pxa/palmtx.c b/arch/arm/mach-pxa/palmtx.c index 0da35dccfd89..8b4366628a12 100644 --- a/arch/arm/mach-pxa/palmtx.c +++ b/arch/arm/mach-pxa/palmtx.c | |||
@@ -40,12 +40,12 @@ | |||
40 | #include <mach/pxa27x.h> | 40 | #include <mach/pxa27x.h> |
41 | #include <mach/audio.h> | 41 | #include <mach/audio.h> |
42 | #include <mach/palmtx.h> | 42 | #include <mach/palmtx.h> |
43 | #include <mach/mmc.h> | 43 | #include <linux/platform_data/mmc-pxamci.h> |
44 | #include <mach/pxafb.h> | 44 | #include <linux/platform_data/video-pxafb.h> |
45 | #include <mach/irda.h> | 45 | #include <linux/platform_data/irda-pxaficp.h> |
46 | #include <plat/pxa27x_keypad.h> | 46 | #include <linux/platform_data/keypad-pxa27x.h> |
47 | #include <mach/udc.h> | 47 | #include <mach/udc.h> |
48 | #include <mach/palmasoc.h> | 48 | #include <linux/platform_data/asoc-palm27x.h> |
49 | #include <mach/palm27x.h> | 49 | #include <mach/palm27x.h> |
50 | 50 | ||
51 | #include "generic.h" | 51 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/palmz72.c b/arch/arm/mach-pxa/palmz72.c index a97b59965bb9..8cdd4f58e253 100644 --- a/arch/arm/mach-pxa/palmz72.c +++ b/arch/arm/mach-pxa/palmz72.c | |||
@@ -40,16 +40,16 @@ | |||
40 | #include <mach/pxa27x.h> | 40 | #include <mach/pxa27x.h> |
41 | #include <mach/audio.h> | 41 | #include <mach/audio.h> |
42 | #include <mach/palmz72.h> | 42 | #include <mach/palmz72.h> |
43 | #include <mach/mmc.h> | 43 | #include <linux/platform_data/mmc-pxamci.h> |
44 | #include <mach/pxafb.h> | 44 | #include <linux/platform_data/video-pxafb.h> |
45 | #include <mach/irda.h> | 45 | #include <linux/platform_data/irda-pxaficp.h> |
46 | #include <plat/pxa27x_keypad.h> | 46 | #include <linux/platform_data/keypad-pxa27x.h> |
47 | #include <mach/udc.h> | 47 | #include <mach/udc.h> |
48 | #include <mach/palmasoc.h> | 48 | #include <linux/platform_data/asoc-palm27x.h> |
49 | #include <mach/palm27x.h> | 49 | #include <mach/palm27x.h> |
50 | 50 | ||
51 | #include <mach/pm.h> | 51 | #include <mach/pm.h> |
52 | #include <mach/camera.h> | 52 | #include <linux/platform_data/camera-pxa.h> |
53 | 53 | ||
54 | #include <media/soc_camera.h> | 54 | #include <media/soc_camera.h> |
55 | 55 | ||
diff --git a/arch/arm/mach-pxa/pcm990-baseboard.c b/arch/arm/mach-pxa/pcm990-baseboard.c index cb723e84bc27..113c57a03565 100644 --- a/arch/arm/mach-pxa/pcm990-baseboard.c +++ b/arch/arm/mach-pxa/pcm990-baseboard.c | |||
@@ -28,14 +28,14 @@ | |||
28 | 28 | ||
29 | #include <media/soc_camera.h> | 29 | #include <media/soc_camera.h> |
30 | 30 | ||
31 | #include <mach/camera.h> | 31 | #include <linux/platform_data/camera-pxa.h> |
32 | #include <asm/mach/map.h> | 32 | #include <asm/mach/map.h> |
33 | #include <mach/pxa27x.h> | 33 | #include <mach/pxa27x.h> |
34 | #include <mach/audio.h> | 34 | #include <mach/audio.h> |
35 | #include <mach/mmc.h> | 35 | #include <linux/platform_data/mmc-pxamci.h> |
36 | #include <mach/ohci.h> | 36 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
37 | #include <mach/pcm990_baseboard.h> | 37 | #include <mach/pcm990_baseboard.h> |
38 | #include <mach/pxafb.h> | 38 | #include <linux/platform_data/video-pxafb.h> |
39 | 39 | ||
40 | #include "devices.h" | 40 | #include "devices.h" |
41 | #include "generic.h" | 41 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index 89d98c832189..2910bb935c75 100644 --- a/arch/arm/mach-pxa/poodle.c +++ b/arch/arm/mach-pxa/poodle.c | |||
@@ -40,11 +40,11 @@ | |||
40 | #include <asm/mach/irq.h> | 40 | #include <asm/mach/irq.h> |
41 | 41 | ||
42 | #include <mach/pxa25x.h> | 42 | #include <mach/pxa25x.h> |
43 | #include <mach/mmc.h> | 43 | #include <linux/platform_data/mmc-pxamci.h> |
44 | #include <mach/udc.h> | 44 | #include <mach/udc.h> |
45 | #include <mach/irda.h> | 45 | #include <linux/platform_data/irda-pxaficp.h> |
46 | #include <mach/poodle.h> | 46 | #include <mach/poodle.h> |
47 | #include <mach/pxafb.h> | 47 | #include <linux/platform_data/video-pxafb.h> |
48 | 48 | ||
49 | #include <asm/hardware/scoop.h> | 49 | #include <asm/hardware/scoop.h> |
50 | #include <asm/hardware/locomo.h> | 50 | #include <asm/hardware/locomo.h> |
diff --git a/arch/arm/mach-pxa/pxa-dt.c b/arch/arm/mach-pxa/pxa-dt.c new file mode 100644 index 000000000000..c9192cea0033 --- /dev/null +++ b/arch/arm/mach-pxa/pxa-dt.c | |||
@@ -0,0 +1,63 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pxa/pxa-dt.c | ||
3 | * | ||
4 | * Copyright (C) 2012 Daniel Mack | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * publishhed by the Free Software Foundation. | ||
9 | */ | ||
10 | |||
11 | #include <linux/irq.h> | ||
12 | #include <linux/irqdomain.h> | ||
13 | #include <linux/of_irq.h> | ||
14 | #include <linux/of_platform.h> | ||
15 | #include <asm/mach/arch.h> | ||
16 | #include <asm/mach/time.h> | ||
17 | #include <mach/irqs.h> | ||
18 | #include <mach/pxa3xx.h> | ||
19 | |||
20 | #include "generic.h" | ||
21 | |||
22 | #ifdef CONFIG_PXA3xx | ||
23 | extern void __init pxa3xx_dt_init_irq(void); | ||
24 | |||
25 | static const struct of_dev_auxdata pxa3xx_auxdata_lookup[] __initconst = { | ||
26 | OF_DEV_AUXDATA("mrvl,pxa-uart", 0x40100000, "pxa2xx-uart.0", NULL), | ||
27 | OF_DEV_AUXDATA("mrvl,pxa-uart", 0x40200000, "pxa2xx-uart.1", NULL), | ||
28 | OF_DEV_AUXDATA("mrvl,pxa-uart", 0x40700000, "pxa2xx-uart.2", NULL), | ||
29 | OF_DEV_AUXDATA("mrvl,pxa-uart", 0x41600000, "pxa2xx-uart.3", NULL), | ||
30 | OF_DEV_AUXDATA("marvell,pxa-mmc", 0x41100000, "pxa2xx-mci.0", NULL), | ||
31 | OF_DEV_AUXDATA("mrvl,pxa-gpio", 0x40e00000, "pxa-gpio", NULL), | ||
32 | OF_DEV_AUXDATA("marvell,pxa-ohci", 0x4c000000, "pxa27x-ohci", NULL), | ||
33 | OF_DEV_AUXDATA("mrvl,pxa-i2c", 0x40301680, "pxa2xx-i2c.0", NULL), | ||
34 | OF_DEV_AUXDATA("mrvl,pwri2c", 0x40f500c0, "pxa3xx-i2c.1", NULL), | ||
35 | OF_DEV_AUXDATA("marvell,pxa3xx-nand", 0x43100000, "pxa3xx-nand", NULL), | ||
36 | {} | ||
37 | }; | ||
38 | |||
39 | static void __init pxa3xx_dt_init(void) | ||
40 | { | ||
41 | of_platform_populate(NULL, of_default_bus_match_table, | ||
42 | pxa3xx_auxdata_lookup, NULL); | ||
43 | } | ||
44 | |||
45 | static const char *pxa3xx_dt_board_compat[] __initdata = { | ||
46 | "marvell,pxa300", | ||
47 | "marvell,pxa310", | ||
48 | "marvell,pxa320", | ||
49 | NULL, | ||
50 | }; | ||
51 | #endif | ||
52 | |||
53 | #ifdef CONFIG_PXA3xx | ||
54 | DT_MACHINE_START(PXA_DT, "Marvell PXA3xx (Device Tree Support)") | ||
55 | .map_io = pxa3xx_map_io, | ||
56 | .init_irq = pxa3xx_dt_init_irq, | ||
57 | .handle_irq = pxa3xx_handle_irq, | ||
58 | .timer = &pxa_timer, | ||
59 | .restart = pxa_restart, | ||
60 | .init_machine = pxa3xx_dt_init, | ||
61 | .dt_compat = pxa3xx_dt_board_compat, | ||
62 | MACHINE_END | ||
63 | #endif | ||
diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c index 4726c246dcdc..8047ee0effc5 100644 --- a/arch/arm/mach-pxa/pxa27x.c +++ b/arch/arm/mach-pxa/pxa27x.c | |||
@@ -30,7 +30,7 @@ | |||
30 | #include <mach/irqs.h> | 30 | #include <mach/irqs.h> |
31 | #include <mach/pxa27x.h> | 31 | #include <mach/pxa27x.h> |
32 | #include <mach/reset.h> | 32 | #include <mach/reset.h> |
33 | #include <mach/ohci.h> | 33 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
34 | #include <mach/pm.h> | 34 | #include <mach/pm.h> |
35 | #include <mach/dma.h> | 35 | #include <mach/dma.h> |
36 | #include <mach/smemc.h> | 36 | #include <mach/smemc.h> |
diff --git a/arch/arm/mach-pxa/pxa2xx.c b/arch/arm/mach-pxa/pxa2xx.c index f8ec85450c42..447dcbb22f6f 100644 --- a/arch/arm/mach-pxa/pxa2xx.c +++ b/arch/arm/mach-pxa/pxa2xx.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #include <mach/pxa2xx-regs.h> | 19 | #include <mach/pxa2xx-regs.h> |
20 | #include <mach/mfp-pxa25x.h> | 20 | #include <mach/mfp-pxa25x.h> |
21 | #include <mach/reset.h> | 21 | #include <mach/reset.h> |
22 | #include <mach/irda.h> | 22 | #include <linux/platform_data/irda-pxaficp.h> |
23 | 23 | ||
24 | void pxa2xx_clear_reset_status(unsigned int mask) | 24 | void pxa2xx_clear_reset_status(unsigned int mask) |
25 | { | 25 | { |
diff --git a/arch/arm/mach-pxa/pxa3xx-ulpi.c b/arch/arm/mach-pxa/pxa3xx-ulpi.c index 5ead6d480c6d..7dbe3ccf1993 100644 --- a/arch/arm/mach-pxa/pxa3xx-ulpi.c +++ b/arch/arm/mach-pxa/pxa3xx-ulpi.c | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | #include <mach/hardware.h> | 28 | #include <mach/hardware.h> |
29 | #include <mach/regs-u2d.h> | 29 | #include <mach/regs-u2d.h> |
30 | #include <mach/pxa3xx-u2d.h> | 30 | #include <linux/platform_data/usb-pxa3xx-ulpi.h> |
31 | 31 | ||
32 | struct pxa3xx_u2d_ulpi { | 32 | struct pxa3xx_u2d_ulpi { |
33 | struct clk *clk; | 33 | struct clk *clk; |
diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c index dffb7e813d98..656a1bb16d14 100644 --- a/arch/arm/mach-pxa/pxa3xx.c +++ b/arch/arm/mach-pxa/pxa3xx.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/platform_device.h> | 19 | #include <linux/platform_device.h> |
20 | #include <linux/irq.h> | 20 | #include <linux/irq.h> |
21 | #include <linux/io.h> | 21 | #include <linux/io.h> |
22 | #include <linux/of.h> | ||
22 | #include <linux/syscore_ops.h> | 23 | #include <linux/syscore_ops.h> |
23 | #include <linux/i2c/pxa-i2c.h> | 24 | #include <linux/i2c/pxa-i2c.h> |
24 | 25 | ||
@@ -27,7 +28,7 @@ | |||
27 | #include <mach/hardware.h> | 28 | #include <mach/hardware.h> |
28 | #include <mach/pxa3xx-regs.h> | 29 | #include <mach/pxa3xx-regs.h> |
29 | #include <mach/reset.h> | 30 | #include <mach/reset.h> |
30 | #include <mach/ohci.h> | 31 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
31 | #include <mach/pm.h> | 32 | #include <mach/pm.h> |
32 | #include <mach/dma.h> | 33 | #include <mach/dma.h> |
33 | #include <mach/smemc.h> | 34 | #include <mach/smemc.h> |
@@ -40,6 +41,8 @@ | |||
40 | #define PECR_IE(n) ((1 << ((n) * 2)) << 28) | 41 | #define PECR_IE(n) ((1 << ((n) * 2)) << 28) |
41 | #define PECR_IS(n) ((1 << ((n) * 2)) << 29) | 42 | #define PECR_IS(n) ((1 << ((n) * 2)) << 29) |
42 | 43 | ||
44 | extern void __init pxa_dt_irq_init(int (*fn)(struct irq_data *, unsigned int)); | ||
45 | |||
43 | static DEFINE_PXA3_CKEN(pxa3xx_ffuart, FFUART, 14857000, 1); | 46 | static DEFINE_PXA3_CKEN(pxa3xx_ffuart, FFUART, 14857000, 1); |
44 | static DEFINE_PXA3_CKEN(pxa3xx_btuart, BTUART, 14857000, 1); | 47 | static DEFINE_PXA3_CKEN(pxa3xx_btuart, BTUART, 14857000, 1); |
45 | static DEFINE_PXA3_CKEN(pxa3xx_stuart, STUART, 14857000, 1); | 48 | static DEFINE_PXA3_CKEN(pxa3xx_stuart, STUART, 14857000, 1); |
@@ -382,7 +385,7 @@ static void __init pxa_init_ext_wakeup_irq(int (*fn)(struct irq_data *, | |||
382 | pxa_ext_wakeup_chip.irq_set_wake = fn; | 385 | pxa_ext_wakeup_chip.irq_set_wake = fn; |
383 | } | 386 | } |
384 | 387 | ||
385 | void __init pxa3xx_init_irq(void) | 388 | static void __init __pxa3xx_init_irq(void) |
386 | { | 389 | { |
387 | /* enable CP6 access */ | 390 | /* enable CP6 access */ |
388 | u32 value; | 391 | u32 value; |
@@ -390,10 +393,23 @@ void __init pxa3xx_init_irq(void) | |||
390 | value |= (1 << 6); | 393 | value |= (1 << 6); |
391 | __asm__ __volatile__("mcr p15, 0, %0, c15, c1, 0\n": :"r"(value)); | 394 | __asm__ __volatile__("mcr p15, 0, %0, c15, c1, 0\n": :"r"(value)); |
392 | 395 | ||
393 | pxa_init_irq(56, pxa3xx_set_wake); | ||
394 | pxa_init_ext_wakeup_irq(pxa3xx_set_wake); | 396 | pxa_init_ext_wakeup_irq(pxa3xx_set_wake); |
395 | } | 397 | } |
396 | 398 | ||
399 | void __init pxa3xx_init_irq(void) | ||
400 | { | ||
401 | __pxa3xx_init_irq(); | ||
402 | pxa_init_irq(56, pxa3xx_set_wake); | ||
403 | } | ||
404 | |||
405 | #ifdef CONFIG_OF | ||
406 | void __init pxa3xx_dt_init_irq(void) | ||
407 | { | ||
408 | __pxa3xx_init_irq(); | ||
409 | pxa_dt_irq_init(pxa3xx_set_wake); | ||
410 | } | ||
411 | #endif /* CONFIG_OF */ | ||
412 | |||
397 | static struct map_desc pxa3xx_io_desc[] __initdata = { | 413 | static struct map_desc pxa3xx_io_desc[] __initdata = { |
398 | { /* Mem Ctl */ | 414 | { /* Mem Ctl */ |
399 | .virtual = (unsigned long)SMEMC_VIRT, | 415 | .virtual = (unsigned long)SMEMC_VIRT, |
@@ -466,7 +482,8 @@ static int __init pxa3xx_init(void) | |||
466 | register_syscore_ops(&pxa3xx_mfp_syscore_ops); | 482 | register_syscore_ops(&pxa3xx_mfp_syscore_ops); |
467 | register_syscore_ops(&pxa3xx_clock_syscore_ops); | 483 | register_syscore_ops(&pxa3xx_clock_syscore_ops); |
468 | 484 | ||
469 | ret = platform_add_devices(devices, ARRAY_SIZE(devices)); | 485 | if (!of_have_populated_dt()) |
486 | ret = platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
470 | } | 487 | } |
471 | 488 | ||
472 | return ret; | 489 | return ret; |
diff --git a/arch/arm/mach-pxa/raumfeld.c b/arch/arm/mach-pxa/raumfeld.c index d89d87ae144c..25b08bfa997b 100644 --- a/arch/arm/mach-pxa/raumfeld.c +++ b/arch/arm/mach-pxa/raumfeld.c | |||
@@ -49,10 +49,10 @@ | |||
49 | #include <asm/mach/arch.h> | 49 | #include <asm/mach/arch.h> |
50 | 50 | ||
51 | #include <mach/pxa300.h> | 51 | #include <mach/pxa300.h> |
52 | #include <mach/ohci.h> | 52 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
53 | #include <mach/pxafb.h> | 53 | #include <linux/platform_data/video-pxafb.h> |
54 | #include <mach/mmc.h> | 54 | #include <linux/platform_data/mmc-pxamci.h> |
55 | #include <plat/pxa3xx_nand.h> | 55 | #include <linux/platform_data/mtd-nand-pxa3xx.h> |
56 | 56 | ||
57 | #include "generic.h" | 57 | #include "generic.h" |
58 | #include "devices.h" | 58 | #include "devices.h" |
diff --git a/arch/arm/mach-pxa/saar.c b/arch/arm/mach-pxa/saar.c index 86c95a5d8533..08d87a5d2639 100644 --- a/arch/arm/mach-pxa/saar.c +++ b/arch/arm/mach-pxa/saar.c | |||
@@ -32,7 +32,7 @@ | |||
32 | #include <asm/mach/flash.h> | 32 | #include <asm/mach/flash.h> |
33 | 33 | ||
34 | #include <mach/pxa930.h> | 34 | #include <mach/pxa930.h> |
35 | #include <mach/pxafb.h> | 35 | #include <linux/platform_data/video-pxafb.h> |
36 | 36 | ||
37 | #include "devices.h" | 37 | #include "devices.h" |
38 | #include "generic.h" | 38 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/sharpsl_pm.c b/arch/arm/mach-pxa/sharpsl_pm.c index bdf4cb88ca0a..5a406f794798 100644 --- a/arch/arm/mach-pxa/sharpsl_pm.c +++ b/arch/arm/mach-pxa/sharpsl_pm.c | |||
@@ -579,8 +579,8 @@ static int sharpsl_ac_check(void) | |||
579 | static int sharpsl_pm_suspend(struct platform_device *pdev, pm_message_t state) | 579 | static int sharpsl_pm_suspend(struct platform_device *pdev, pm_message_t state) |
580 | { | 580 | { |
581 | sharpsl_pm.flags |= SHARPSL_SUSPENDED; | 581 | sharpsl_pm.flags |= SHARPSL_SUSPENDED; |
582 | flush_delayed_work_sync(&toggle_charger); | 582 | flush_delayed_work(&toggle_charger); |
583 | flush_delayed_work_sync(&sharpsl_bat); | 583 | flush_delayed_work(&sharpsl_bat); |
584 | 584 | ||
585 | if (sharpsl_pm.charge_mode == CHRG_ON) | 585 | if (sharpsl_pm.charge_mode == CHRG_ON) |
586 | sharpsl_pm.flags |= SHARPSL_DO_OFFLINE_CHRG; | 586 | sharpsl_pm.flags |= SHARPSL_DO_OFFLINE_CHRG; |
@@ -879,7 +879,7 @@ static const struct platform_suspend_ops sharpsl_pm_ops = { | |||
879 | 879 | ||
880 | static int __devinit sharpsl_pm_probe(struct platform_device *pdev) | 880 | static int __devinit sharpsl_pm_probe(struct platform_device *pdev) |
881 | { | 881 | { |
882 | int ret; | 882 | int ret, irq; |
883 | 883 | ||
884 | if (!pdev->dev.platform_data) | 884 | if (!pdev->dev.platform_data) |
885 | return -EINVAL; | 885 | return -EINVAL; |
@@ -907,24 +907,28 @@ static int __devinit sharpsl_pm_probe(struct platform_device *pdev) | |||
907 | gpio_direction_input(sharpsl_pm.machinfo->gpio_batlock); | 907 | gpio_direction_input(sharpsl_pm.machinfo->gpio_batlock); |
908 | 908 | ||
909 | /* Register interrupt handlers */ | 909 | /* Register interrupt handlers */ |
910 | if (request_irq(PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_acin), sharpsl_ac_isr, IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, "AC Input Detect", sharpsl_ac_isr)) { | 910 | irq = gpio_to_irq(sharpsl_pm.machinfo->gpio_acin); |
911 | dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_acin)); | 911 | if (request_irq(irq, sharpsl_ac_isr, IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, "AC Input Detect", sharpsl_ac_isr)) { |
912 | dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", irq); | ||
912 | } | 913 | } |
913 | 914 | ||
914 | if (request_irq(PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_batlock), sharpsl_fatal_isr, IRQF_DISABLED | IRQF_TRIGGER_FALLING, "Battery Cover", sharpsl_fatal_isr)) { | 915 | irq = gpio_to_irq(sharpsl_pm.machinfo->gpio_batlock); |
915 | dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_batlock)); | 916 | if (request_irq(irq, sharpsl_fatal_isr, IRQF_DISABLED | IRQF_TRIGGER_FALLING, "Battery Cover", sharpsl_fatal_isr)) { |
917 | dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", irq); | ||
916 | } | 918 | } |
917 | 919 | ||
918 | if (sharpsl_pm.machinfo->gpio_fatal) { | 920 | if (sharpsl_pm.machinfo->gpio_fatal) { |
919 | if (request_irq(PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_fatal), sharpsl_fatal_isr, IRQF_DISABLED | IRQF_TRIGGER_FALLING, "Fatal Battery", sharpsl_fatal_isr)) { | 921 | irq = gpio_to_irq(sharpsl_pm.machinfo->gpio_fatal); |
920 | dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_fatal)); | 922 | if (request_irq(irq, sharpsl_fatal_isr, IRQF_DISABLED | IRQF_TRIGGER_FALLING, "Fatal Battery", sharpsl_fatal_isr)) { |
923 | dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", irq); | ||
921 | } | 924 | } |
922 | } | 925 | } |
923 | 926 | ||
924 | if (sharpsl_pm.machinfo->batfull_irq) { | 927 | if (sharpsl_pm.machinfo->batfull_irq) { |
925 | /* Register interrupt handler. */ | 928 | /* Register interrupt handler. */ |
926 | if (request_irq(PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_batfull), sharpsl_chrg_full_isr, IRQF_DISABLED | IRQF_TRIGGER_RISING, "CO", sharpsl_chrg_full_isr)) { | 929 | irq = gpio_to_irq(sharpsl_pm.machinfo->gpio_batfull); |
927 | dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_batfull)); | 930 | if (request_irq(irq, sharpsl_chrg_full_isr, IRQF_DISABLED | IRQF_TRIGGER_RISING, "CO", sharpsl_chrg_full_isr)) { |
931 | dev_err(sharpsl_pm.dev, "Could not get irq %d.\n", irq); | ||
928 | } | 932 | } |
929 | } | 933 | } |
930 | 934 | ||
@@ -953,14 +957,14 @@ static int sharpsl_pm_remove(struct platform_device *pdev) | |||
953 | 957 | ||
954 | led_trigger_unregister_simple(sharpsl_charge_led_trigger); | 958 | led_trigger_unregister_simple(sharpsl_charge_led_trigger); |
955 | 959 | ||
956 | free_irq(PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_acin), sharpsl_ac_isr); | 960 | free_irq(gpio_to_irq(sharpsl_pm.machinfo->gpio_acin), sharpsl_ac_isr); |
957 | free_irq(PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_batlock), sharpsl_fatal_isr); | 961 | free_irq(gpio_to_irq(sharpsl_pm.machinfo->gpio_batlock), sharpsl_fatal_isr); |
958 | 962 | ||
959 | if (sharpsl_pm.machinfo->gpio_fatal) | 963 | if (sharpsl_pm.machinfo->gpio_fatal) |
960 | free_irq(PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_fatal), sharpsl_fatal_isr); | 964 | free_irq(gpio_to_irq(sharpsl_pm.machinfo->gpio_fatal), sharpsl_fatal_isr); |
961 | 965 | ||
962 | if (sharpsl_pm.machinfo->batfull_irq) | 966 | if (sharpsl_pm.machinfo->batfull_irq) |
963 | free_irq(PXA_GPIO_TO_IRQ(sharpsl_pm.machinfo->gpio_batfull), sharpsl_chrg_full_isr); | 967 | free_irq(gpio_to_irq(sharpsl_pm.machinfo->gpio_batfull), sharpsl_chrg_full_isr); |
964 | 968 | ||
965 | gpio_free(sharpsl_pm.machinfo->gpio_batlock); | 969 | gpio_free(sharpsl_pm.machinfo->gpio_batlock); |
966 | gpio_free(sharpsl_pm.machinfo->gpio_batfull); | 970 | gpio_free(sharpsl_pm.machinfo->gpio_batfull); |
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index 363d91b44ecb..2073f0e6db0d 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c | |||
@@ -41,10 +41,10 @@ | |||
41 | #include <mach/pxa27x.h> | 41 | #include <mach/pxa27x.h> |
42 | #include <mach/pxa27x-udc.h> | 42 | #include <mach/pxa27x-udc.h> |
43 | #include <mach/reset.h> | 43 | #include <mach/reset.h> |
44 | #include <mach/irda.h> | 44 | #include <linux/platform_data/irda-pxaficp.h> |
45 | #include <mach/mmc.h> | 45 | #include <linux/platform_data/mmc-pxamci.h> |
46 | #include <mach/ohci.h> | 46 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
47 | #include <mach/pxafb.h> | 47 | #include <linux/platform_data/video-pxafb.h> |
48 | #include <mach/spitz.h> | 48 | #include <mach/spitz.h> |
49 | #include <mach/sharpsl_pm.h> | 49 | #include <mach/sharpsl_pm.h> |
50 | #include <mach/smemc.h> | 50 | #include <mach/smemc.h> |
diff --git a/arch/arm/mach-pxa/stargate2.c b/arch/arm/mach-pxa/stargate2.c index 30b1b0b3c7f7..456560b5aad4 100644 --- a/arch/arm/mach-pxa/stargate2.c +++ b/arch/arm/mach-pxa/stargate2.c | |||
@@ -44,7 +44,7 @@ | |||
44 | #include <asm/mach/flash.h> | 44 | #include <asm/mach/flash.h> |
45 | 45 | ||
46 | #include <mach/pxa27x.h> | 46 | #include <mach/pxa27x.h> |
47 | #include <mach/mmc.h> | 47 | #include <linux/platform_data/mmc-pxamci.h> |
48 | #include <mach/udc.h> | 48 | #include <mach/udc.h> |
49 | #include <mach/pxa27x-udc.h> | 49 | #include <mach/pxa27x-udc.h> |
50 | #include <mach/smemc.h> | 50 | #include <mach/smemc.h> |
@@ -52,7 +52,7 @@ | |||
52 | #include <linux/spi/spi.h> | 52 | #include <linux/spi/spi.h> |
53 | #include <linux/spi/pxa2xx_spi.h> | 53 | #include <linux/spi/pxa2xx_spi.h> |
54 | #include <linux/mfd/da903x.h> | 54 | #include <linux/mfd/da903x.h> |
55 | #include <linux/sht15.h> | 55 | #include <linux/platform_data/sht15.h> |
56 | 56 | ||
57 | #include "devices.h" | 57 | #include "devices.h" |
58 | #include "generic.h" | 58 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/tavorevb.c b/arch/arm/mach-pxa/tavorevb.c index 736bfdc50ee6..1a25f8a7b0ce 100644 --- a/arch/arm/mach-pxa/tavorevb.c +++ b/arch/arm/mach-pxa/tavorevb.c | |||
@@ -24,8 +24,8 @@ | |||
24 | #include <asm/mach/arch.h> | 24 | #include <asm/mach/arch.h> |
25 | 25 | ||
26 | #include <mach/pxa930.h> | 26 | #include <mach/pxa930.h> |
27 | #include <mach/pxafb.h> | 27 | #include <linux/platform_data/video-pxafb.h> |
28 | #include <plat/pxa27x_keypad.h> | 28 | #include <linux/platform_data/keypad-pxa27x.h> |
29 | 29 | ||
30 | #include "devices.h" | 30 | #include "devices.h" |
31 | #include "generic.h" | 31 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index 4d4eb60bad1e..233629edf7ee 100644 --- a/arch/arm/mach-pxa/tosa.c +++ b/arch/arm/mach-pxa/tosa.c | |||
@@ -42,8 +42,8 @@ | |||
42 | 42 | ||
43 | #include <mach/pxa25x.h> | 43 | #include <mach/pxa25x.h> |
44 | #include <mach/reset.h> | 44 | #include <mach/reset.h> |
45 | #include <mach/irda.h> | 45 | #include <linux/platform_data/irda-pxaficp.h> |
46 | #include <mach/mmc.h> | 46 | #include <linux/platform_data/mmc-pxamci.h> |
47 | #include <mach/udc.h> | 47 | #include <mach/udc.h> |
48 | #include <mach/tosa_bt.h> | 48 | #include <mach/tosa_bt.h> |
49 | #include <mach/audio.h> | 49 | #include <mach/audio.h> |
diff --git a/arch/arm/mach-pxa/trizeps4.c b/arch/arm/mach-pxa/trizeps4.c index 166dd32cc1d3..fbbcbed4d1d4 100644 --- a/arch/arm/mach-pxa/trizeps4.c +++ b/arch/arm/mach-pxa/trizeps4.c | |||
@@ -43,10 +43,10 @@ | |||
43 | #include <mach/pxa27x.h> | 43 | #include <mach/pxa27x.h> |
44 | #include <mach/trizeps4.h> | 44 | #include <mach/trizeps4.h> |
45 | #include <mach/audio.h> | 45 | #include <mach/audio.h> |
46 | #include <mach/pxafb.h> | 46 | #include <linux/platform_data/video-pxafb.h> |
47 | #include <mach/mmc.h> | 47 | #include <linux/platform_data/mmc-pxamci.h> |
48 | #include <mach/irda.h> | 48 | #include <linux/platform_data/irda-pxaficp.h> |
49 | #include <mach/ohci.h> | 49 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
50 | #include <mach/smemc.h> | 50 | #include <mach/smemc.h> |
51 | 51 | ||
52 | #include "generic.h" | 52 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/viper.c b/arch/arm/mach-pxa/viper.c index 130379fb9d0f..392412ce4dac 100644 --- a/arch/arm/mach-pxa/viper.c +++ b/arch/arm/mach-pxa/viper.c | |||
@@ -48,9 +48,9 @@ | |||
48 | 48 | ||
49 | #include <mach/pxa25x.h> | 49 | #include <mach/pxa25x.h> |
50 | #include <mach/audio.h> | 50 | #include <mach/audio.h> |
51 | #include <mach/pxafb.h> | 51 | #include <linux/platform_data/video-pxafb.h> |
52 | #include <mach/regs-uart.h> | 52 | #include <mach/regs-uart.h> |
53 | #include <mach/arcom-pcmcia.h> | 53 | #include <linux/platform_data/pcmcia-pxa2xx_viper.h> |
54 | #include <mach/viper.h> | 54 | #include <mach/viper.h> |
55 | 55 | ||
56 | #include <asm/setup.h> | 56 | #include <asm/setup.h> |
diff --git a/arch/arm/mach-pxa/vpac270.c b/arch/arm/mach-pxa/vpac270.c index e1740acd15f1..491b6c9a2a9b 100644 --- a/arch/arm/mach-pxa/vpac270.c +++ b/arch/arm/mach-pxa/vpac270.c | |||
@@ -33,12 +33,12 @@ | |||
33 | #include <mach/pxa27x.h> | 33 | #include <mach/pxa27x.h> |
34 | #include <mach/audio.h> | 34 | #include <mach/audio.h> |
35 | #include <mach/vpac270.h> | 35 | #include <mach/vpac270.h> |
36 | #include <mach/mmc.h> | 36 | #include <linux/platform_data/mmc-pxamci.h> |
37 | #include <mach/pxafb.h> | 37 | #include <linux/platform_data/video-pxafb.h> |
38 | #include <mach/ohci.h> | 38 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
39 | #include <mach/pxa27x-udc.h> | 39 | #include <mach/pxa27x-udc.h> |
40 | #include <mach/udc.h> | 40 | #include <mach/udc.h> |
41 | #include <mach/pata_pxa.h> | 41 | #include <linux/platform_data/ata-pxa.h> |
42 | 42 | ||
43 | #include "generic.h" | 43 | #include "generic.h" |
44 | #include "devices.h" | 44 | #include "devices.h" |
diff --git a/arch/arm/mach-pxa/z2.c b/arch/arm/mach-pxa/z2.c index b9320cb8a11f..97529face7aa 100644 --- a/arch/arm/mach-pxa/z2.c +++ b/arch/arm/mach-pxa/z2.c | |||
@@ -37,9 +37,9 @@ | |||
37 | #include <mach/pxa27x.h> | 37 | #include <mach/pxa27x.h> |
38 | #include <mach/mfp-pxa27x.h> | 38 | #include <mach/mfp-pxa27x.h> |
39 | #include <mach/z2.h> | 39 | #include <mach/z2.h> |
40 | #include <mach/pxafb.h> | 40 | #include <linux/platform_data/video-pxafb.h> |
41 | #include <mach/mmc.h> | 41 | #include <linux/platform_data/mmc-pxamci.h> |
42 | #include <plat/pxa27x_keypad.h> | 42 | #include <linux/platform_data/keypad-pxa27x.h> |
43 | #include <mach/pm.h> | 43 | #include <mach/pm.h> |
44 | 44 | ||
45 | #include "generic.h" | 45 | #include "generic.h" |
diff --git a/arch/arm/mach-pxa/zeus.c b/arch/arm/mach-pxa/zeus.c index af3d4f7646d7..abd3aa145083 100644 --- a/arch/arm/mach-pxa/zeus.c +++ b/arch/arm/mach-pxa/zeus.c | |||
@@ -38,14 +38,14 @@ | |||
38 | 38 | ||
39 | #include <mach/pxa27x.h> | 39 | #include <mach/pxa27x.h> |
40 | #include <mach/regs-uart.h> | 40 | #include <mach/regs-uart.h> |
41 | #include <mach/ohci.h> | 41 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
42 | #include <mach/mmc.h> | 42 | #include <linux/platform_data/mmc-pxamci.h> |
43 | #include <mach/pxa27x-udc.h> | 43 | #include <mach/pxa27x-udc.h> |
44 | #include <mach/udc.h> | 44 | #include <mach/udc.h> |
45 | #include <mach/pxafb.h> | 45 | #include <linux/platform_data/video-pxafb.h> |
46 | #include <mach/pm.h> | 46 | #include <mach/pm.h> |
47 | #include <mach/audio.h> | 47 | #include <mach/audio.h> |
48 | #include <mach/arcom-pcmcia.h> | 48 | #include <linux/platform_data/pcmcia-pxa2xx_viper.h> |
49 | #include <mach/zeus.h> | 49 | #include <mach/zeus.h> |
50 | #include <mach/smemc.h> | 50 | #include <mach/smemc.h> |
51 | 51 | ||
diff --git a/arch/arm/mach-pxa/zylonite.c b/arch/arm/mach-pxa/zylonite.c index 98eec80623e3..226279fac9d4 100644 --- a/arch/arm/mach-pxa/zylonite.c +++ b/arch/arm/mach-pxa/zylonite.c | |||
@@ -26,12 +26,12 @@ | |||
26 | #include <asm/mach/arch.h> | 26 | #include <asm/mach/arch.h> |
27 | #include <mach/pxa3xx.h> | 27 | #include <mach/pxa3xx.h> |
28 | #include <mach/audio.h> | 28 | #include <mach/audio.h> |
29 | #include <mach/pxafb.h> | 29 | #include <linux/platform_data/video-pxafb.h> |
30 | #include <mach/zylonite.h> | 30 | #include <mach/zylonite.h> |
31 | #include <mach/mmc.h> | 31 | #include <linux/platform_data/mmc-pxamci.h> |
32 | #include <mach/ohci.h> | 32 | #include <linux/platform_data/usb-ohci-pxa27x.h> |
33 | #include <plat/pxa27x_keypad.h> | 33 | #include <linux/platform_data/keypad-pxa27x.h> |
34 | #include <plat/pxa3xx_nand.h> | 34 | #include <linux/platform_data/mtd-nand-pxa3xx.h> |
35 | 35 | ||
36 | #include "devices.h" | 36 | #include "devices.h" |
37 | #include "generic.h" | 37 | #include "generic.h" |