aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
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 /drivers/usb
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 'drivers/usb')
-rw-r--r--drivers/usb/gadget/pxa2xx_udc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/usb/gadget/pxa2xx_udc.c b/drivers/usb/gadget/pxa2xx_udc.c
index 08f699b1fc57..63db96adc0b0 100644
--- a/drivers/usb/gadget/pxa2xx_udc.c
+++ b/drivers/usb/gadget/pxa2xx_udc.c
@@ -46,19 +46,25 @@
46#include <linux/err.h> 46#include <linux/err.h>
47#include <linux/seq_file.h> 47#include <linux/seq_file.h>
48#include <linux/debugfs.h> 48#include <linux/debugfs.h>
49#include <linux/io.h>
49 50
50#include <asm/byteorder.h> 51#include <asm/byteorder.h>
51#include <asm/dma.h> 52#include <asm/dma.h>
52#include <asm/gpio.h> 53#include <asm/gpio.h>
53#include <asm/io.h>
54#include <asm/system.h> 54#include <asm/system.h>
55#include <asm/mach-types.h> 55#include <asm/mach-types.h>
56#include <asm/unaligned.h> 56#include <asm/unaligned.h>
57#include <asm/hardware.h>
58 57
59#include <linux/usb/ch9.h> 58#include <linux/usb/ch9.h>
60#include <linux/usb/gadget.h> 59#include <linux/usb/gadget.h>
61 60
61/*
62 * This driver is PXA25x only. Grab the right register definitions.
63 */
64#ifdef CONFIG_ARCH_PXA
65#include <asm/arch/pxa25x-udc.h>
66#endif
67
62#include <asm/mach/udc_pxa2xx.h> 68#include <asm/mach/udc_pxa2xx.h>
63 69
64 70