summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91
diff options
context:
space:
mode:
authorRyan Mallon <ryan@bluewatersys.com>2010-07-13 05:09:16 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-07-18 20:39:10 +0100
commit4037242c4f5ff77afe61bf07ca1e8a99490219e5 (patch)
tree467e63d58278eaf401b5e4528702bc1d58c71bf3 /arch/arm/mach-at91
parent064baaca873c64feaea0e4476d14d4c9fd978e9e (diff)
downloadblackbird-op-linux-4037242c4f5ff77afe61bf07ca1e8a99490219e5.tar.gz
blackbird-op-linux-4037242c4f5ff77afe61bf07ca1e8a99490219e5.zip
ARM: 6209/3: at91_udc: Add vbus polarity and polling mode
Allow the vbus signal to optionally use polling. This is required if the vbus signal is connected to an non-interrupting io expander for example. If vbus is in polling mode, then it is assumed that the vbus gpio may sleep. Also add an option to have vbus be an active low signal. Both options are set in the platform data for the device. Signed-off-by: Ryan Mallon <ryan@bluewatersys.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r--arch/arm/mach-at91/include/mach/board.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/include/mach/board.h b/arch/arm/mach-at91/include/mach/board.h
index df2ed848c9f8..58528aa9c8a8 100644
--- a/arch/arm/mach-at91/include/mach/board.h
+++ b/arch/arm/mach-at91/include/mach/board.h
@@ -44,6 +44,8 @@
/* USB Device */
struct at91_udc_data {
u8 vbus_pin; /* high == host powering us */
+ u8 vbus_active_low; /* vbus polarity */
+ u8 vbus_polled; /* Use polling, not interrupt */
u8 pullup_pin; /* active == D+ pulled up */
u8 pullup_active_low; /* true == pullup_pin is active low */
};
OpenPOWER on IntegriCloud