aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm
diff options
context:
space:
mode:
authorArnaud Patard <arnaud.patard@rtp-net.org>2007-02-16 17:50:32 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-02-17 06:17:40 -0500
commit52c477a34bd26f246485b04c75f700a0c2a52580 (patch)
treef76034a56f1f206a3973318a8e5b1e6282cbd25a /include/asm-arm
parenta7eec7b332e83ee63f7db08cc54bf3b4663eed67 (diff)
[ARM] 4215/1: s3c2410 usb device: per-platform vbus_draw
Introduce a platform_device (machine) specific callback function which gets called when the amount of power we can draw from Vbus has changed. Signed-off-by: Harald Welte <laforge@openmoko.org> Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org> Acked-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm')
-rw-r--r--include/asm-arm/arch-s3c2410/udc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-arm/arch-s3c2410/udc.h b/include/asm-arm/arch-s3c2410/udc.h
index 2529effb8078..e59ec339d614 100644
--- a/include/asm-arm/arch-s3c2410/udc.h
+++ b/include/asm-arm/arch-s3c2410/udc.h
@@ -12,6 +12,7 @@
12 * 14-Mar-2005 RTP Created file 12 * 14-Mar-2005 RTP Created file
13 * 02-Aug-2005 RTP File rename 13 * 02-Aug-2005 RTP File rename
14 * 07-Sep-2005 BJD Minor cleanups, changed cmd to enum 14 * 07-Sep-2005 BJD Minor cleanups, changed cmd to enum
15 * 18-Jan-2007 HMW Add per-platform vbus_draw function
15*/ 16*/
16 17
17#ifndef __ASM_ARM_ARCH_UDC_H 18#ifndef __ASM_ARM_ARCH_UDC_H
@@ -25,6 +26,7 @@ enum s3c2410_udc_cmd_e {
25 26
26struct s3c2410_udc_mach_info { 27struct s3c2410_udc_mach_info {
27 void (*udc_command)(enum s3c2410_udc_cmd_e); 28 void (*udc_command)(enum s3c2410_udc_cmd_e);
29 void (*vbus_draw)(unsigned int ma);
28 unsigned int vbus_pin; 30 unsigned int vbus_pin;
29 unsigned char vbus_pin_inverted; 31 unsigned char vbus_pin_inverted;
30}; 32};