From ebcce7b13be837616a3f9d996f637cf3241e3948 Mon Sep 17 00:00:00 2001 From: Ian Molton Date: Tue, 19 Aug 2008 13:34:56 +0100 Subject: [ARM] eseries: move UDC defs to machine files This patchset moves the UDC definitons for e7xx compatible eseries machines to a common location and moves the 'oddball' e800 definition to its machine file. Signed-off-by: Ian Molton --- arch/arm/mach-pxa/e800.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'arch/arm/mach-pxa/e800.c') diff --git a/arch/arm/mach-pxa/e800.c b/arch/arm/mach-pxa/e800.c index 2f5e9061954..a293e09bfe2 100644 --- a/arch/arm/mach-pxa/e800.c +++ b/arch/arm/mach-pxa/e800.c @@ -24,6 +24,8 @@ #include #include +#include +#include #include "generic.h" #include "eseries.h" @@ -150,6 +152,14 @@ static struct platform_device e800_fb_device = { .resource = e800_fb_resources, }; +/* --------------------------- UDC definitions --------------------------- */ + +static struct pxa2xx_udc_mach_info e800_udc_mach_info = { + .gpio_vbus = GPIO_E800_USB_DISC, + .gpio_pullup = GPIO_E800_USB_PULLUP, + .gpio_pullup_inverted = 1 +}; + /* ----------------------------------------------------------------------- */ static struct platform_device *devices[] __initdata = { @@ -159,6 +169,7 @@ static struct platform_device *devices[] __initdata = { static void __init e800_init(void) { platform_add_devices(devices, ARRAY_SIZE(devices)); + pxa_set_udc_info(&e800_udc_mach_info); } MACHINE_START(E800, "Toshiba e800") -- cgit v1.2.3