Skip to content

Commit

Permalink
[ARM] 4215/1: s3c2410 usb device: per-platform vbus_draw
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnaud Patard authored and Russell King committed Feb 17, 2007
1 parent a7eec7b commit 52c477a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/asm-arm/arch-s3c2410/udc.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* 14-Mar-2005 RTP Created file
* 02-Aug-2005 RTP File rename
* 07-Sep-2005 BJD Minor cleanups, changed cmd to enum
* 18-Jan-2007 HMW Add per-platform vbus_draw function
*/

#ifndef __ASM_ARM_ARCH_UDC_H
Expand All @@ -25,6 +26,7 @@ enum s3c2410_udc_cmd_e {

struct s3c2410_udc_mach_info {
void (*udc_command)(enum s3c2410_udc_cmd_e);
void (*vbus_draw)(unsigned int ma);
unsigned int vbus_pin;
unsigned char vbus_pin_inverted;
};
Expand Down

0 comments on commit 52c477a

Please sign in to comment.