aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2008-04-20 12:32:16 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-05-19 11:25:58 -0400
commit284d115ec9b70d7c38752d10ad393a198db07a4b (patch)
treef694494fdbe31bb6df3ff815075a277c5bd6dfc5 /arch/arm
parent02a8e76979f9b439642e67955edb865c112926f6 (diff)
[ARM] pxa: separate PXA25x and PXA27x UDC register definitions
The PXA25x and PXA27x USB device controller register definitions are different. Currently, they live side by side in pxa-regs.h, but only one set is available depending on the setting of PXA25x or PXA27x. This means that if we build to support both PXA25x and PXA27x, the PXA27x definitions are unavailable, even to PXA27x specific code. Remove these definitions from pxa-regs.h, and place them in separate files. Include these files where appropriate. Note: according to the dependencies in drivers/usb/gadget/Kconfig, we do not support the UDC on PXA27x nor PXA3xx CPUs, so remove the platform devices from pxa27x.c and pxa3xx.c. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-pxa/em-x270.c1
-rw-r--r--arch/arm/mach-pxa/pxa27x.c2
-rw-r--r--arch/arm/mach-pxa/pxa3xx.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-pxa/em-x270.c b/arch/arm/mach-pxa/em-x270.c
index edc4f07a230d..1269ac991505 100644
--- a/arch/arm/mach-pxa/em-x270.c
+++ b/arch/arm/mach-pxa/em-x270.c
@@ -24,6 +24,7 @@
24 24
25#include <asm/arch/pxa-regs.h> 25#include <asm/arch/pxa-regs.h>
26#include <asm/arch/pxa2xx-gpio.h> 26#include <asm/arch/pxa2xx-gpio.h>
27#include <asm/arch/pxa27x-udc.h>
27#include <asm/arch/pxafb.h> 28#include <asm/arch/pxafb.h>
28#include <asm/arch/ohci.h> 29#include <asm/arch/ohci.h>
29#include <asm/arch/mmc.h> 30#include <asm/arch/mmc.h>
diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c
index 7e945836e129..cdaf573e0f17 100644
--- a/arch/arm/mach-pxa/pxa27x.c
+++ b/arch/arm/mach-pxa/pxa27x.c
@@ -353,7 +353,7 @@ void __init pxa_set_i2c_power_info(struct i2c_pxa_platform_data *info)
353} 353}
354 354
355static struct platform_device *devices[] __initdata = { 355static struct platform_device *devices[] __initdata = {
356 &pxa_device_udc, 356/* &pxa_device_udc, The UDC driver is PXA25x only */
357 &pxa_device_ffuart, 357 &pxa_device_ffuart,
358 &pxa_device_btuart, 358 &pxa_device_btuart,
359 &pxa_device_stuart, 359 &pxa_device_stuart,
diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c
index 644550bfa330..7fbe78649dad 100644
--- a/arch/arm/mach-pxa/pxa3xx.c
+++ b/arch/arm/mach-pxa/pxa3xx.c
@@ -520,7 +520,7 @@ void __init pxa3xx_init_irq(void)
520 */ 520 */
521 521
522static struct platform_device *devices[] __initdata = { 522static struct platform_device *devices[] __initdata = {
523 &pxa_device_udc, 523/* &pxa_device_udc, The UDC driver is PXA25x only */
524 &pxa_device_ffuart, 524 &pxa_device_ffuart,
525 &pxa_device_btuart, 525 &pxa_device_btuart,
526 &pxa_device_stuart, 526 &pxa_device_stuart,