aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMike Westerhof <mwester@dls.net>2009-05-13 20:11:06 -0500
committerNelson Castillo <arhuaco@freaks-unidos.net>2009-05-15 00:12:31 -0500
commit37d2b0bea0314d0947af19152898c1ca7fe736cc (patch)
tree33e33514913ef7d7460f2d377f4c33566ec841a3 /arch
parentaded5330d196644b0f16423dfde9bb2344d991d5 (diff)
This patch adds the option to poll vbus status to the s3c24xx udc driver.
Machines that do not route the USB vbus signal to a GPIO can use this mechanism as an alternate way for the udc driver to detect the usb connect/disconnect state, which is useful (for example) to enable the link up/down state to be determined for the g_ether gadget. Signed-off-by: Mike Westerhof <mwester@dls.net>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/plat-s3c24xx/include/plat/udc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c24xx/include/plat/udc.h b/arch/arm/plat-s3c24xx/include/plat/udc.h
index 546bb4008f4..763aeba628e 100644
--- a/arch/arm/plat-s3c24xx/include/plat/udc.h
+++ b/arch/arm/plat-s3c24xx/include/plat/udc.h
@@ -27,6 +27,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);
+ int (*get_vbus_status)(void);
unsigned int vbus_pin;
unsigned char vbus_pin_inverted;
};