usb: gadget: accessory: Add Android Accessory function
authorBenoit Goby <benoit@android.com>
Mon, 19 Dec 2011 22:39:37 +0000 (14:39 -0800)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 20:40:38 +0000 (13:40 -0700)
commit9389147c6329c86899bd2a1ac8f084e8ccd99ebd
tree2276dcff0cb6f00ee41315cb637bdcb64efeaf9f
parent17c12acd8fcee70df65a054ef711c8d4d5ecfb6e
usb: gadget: accessory: Add Android Accessory function

USB accessory mode allows users to connect USB host hardware
specifically designed for Android-powered devices. The accessories
must adhere to the Android accessory protocol outlined in the
http://accessories.android.com documentation. This allows
Android devices that cannot act as a USB host to still interact with
USB hardware. When an Android device is in USB accessory mode, the
attached Android USB accessory acts as the host, provides power
to the USB bus, and enumerates connected devices.

Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers/usb/gadget/android.c
drivers/usb/gadget/f_accessory.c [new file with mode: 0644]
include/linux/usb/f_accessory.h [new file with mode: 0644]