summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/Documentation
diff options
context:
space:
mode:
authorGreg Kroah-Hartman2015-01-15 02:08:03 +0100
committerGreg Kroah-Hartman2015-01-15 06:10:31 +0100
commitc86117a8a8b4aaff67a65dc9a415352f48ef45d0 (patch)
tree95889880ecd5593711b1d93fea1696adc8408ce9 /drivers/staging/greybus/Documentation
parentgreybus: rename es1-ap-usb.ko to gb-es1.ko (diff)
downloadkernel-qcow2-linux-c86117a8a8b4aaff67a65dc9a415352f48ef45d0.tar.gz
kernel-qcow2-linux-c86117a8a8b4aaff67a65dc9a415352f48ef45d0.tar.xz
kernel-qcow2-linux-c86117a8a8b4aaff67a65dc9a415352f48ef45d0.zip
greybus: Move the es1_ap_desc.c file to Documentation directory
This .c file isn't needed by the kernel driver, it's there for firmware developers only, so just move it into the Documentation directory to reduce confusion. Signed-off-by: Greg Kroah-Hartman <greg@kroah.com> Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'drivers/staging/greybus/Documentation')
-rw-r--r--drivers/staging/greybus/Documentation/es1_ap_desc.c70
1 files changed, 70 insertions, 0 deletions
diff --git a/drivers/staging/greybus/Documentation/es1_ap_desc.c b/drivers/staging/greybus/Documentation/es1_ap_desc.c
new file mode 100644
index 000000000000..1502089ec29c
--- /dev/null
+++ b/drivers/staging/greybus/Documentation/es1_ap_desc.c
@@ -0,0 +1,70 @@
+/* ES1 AP Bridge Chip USB descriptor definitions */
+
+static const u8 es1_dev_descriptor[] = {
+ 0x12, /* __u8 bLength */
+ 0x01, /* __u8 bDescriptorType; Device */
+ 0x00, 0x02 /* __le16 bcdUSB v2.0 */
+ 0x00, /* __u8 bDeviceClass */
+ 0x00, /* __u8 bDeviceClass */
+ 0x00, /* __u8 bDeviceSubClass; */
+ 0x00, /* __u8 bDeviceProtocol; */
+ 0x40, /* __u8 bMaxPacketSize0; 2^64 = 512 Bytes */
+
+ 0xff, 0xff, /* __le16 idVendor; 0xffff made up for now */
+ 0x01, 0x00, /* __le16 idProduct; 0x0001 made up for now */
+ 0x01, 0x00, /* __le16 bcdDevice; ES1 */
+
+ 0x03, /* __u8 iManufacturer; */
+ 0x02, /* __u8 iProduct; */
+ 0x01, /* __u8 iSerialNumber; */
+ 0x01 /* __u8 bNumConfigurations; */
+};
+
+static const u8 es1_config_descriptor[] = {
+ /* one configuration */
+ 0x09, /* __u8 bLength; */
+ 0x02, /* __u8 bDescriptorType; Configuration */
+ 0x19, 0x00, /* __le16 wTotalLength; */
+ 0x01, /* __u8 bNumInterfaces; (1) */
+ 0x01, /* __u8 bConfigurationValue; */
+ 0x00, /* __u8 iConfiguration; */
+ 0xc0, /* __u8 bmAttributes;
+ Bit 7: must be set,
+ 6: Self-powered,
+ 5: Remote wakeup,
+ 4..0: resvd */
+ 0x00, /* __u8 MaxPower; */
+
+ /* one interface */
+ 0x09, /* __u8 if_bLength; */
+ 0x04, /* __u8 if_bDescriptorType; Interface */
+ 0x00, /* __u8 if_bInterfaceNumber; */
+ 0x00, /* __u8 if_bAlternateSetting; */
+ 0x03, /* __u8 if_bNumEndpoints; */
+ 0xff, /* __u8 if_bInterfaceClass; Vendor-specific */
+ 0xff, /* __u8 if_bInterfaceSubClass; Vendor-specific */
+ 0xff, /* __u8 if_bInterfaceProtocol; Vendor-specific */
+ 0x00, /* __u8 if_iInterface; */
+
+ /* three endpoints */
+ 0x07, /* __u8 ep_bLength; */
+ 0x05, /* __u8 ep_bDescriptorType; Endpoint */
+ 0x81, /* __u8 ep_bEndpointAddress; IN Endpoint 1 */
+ 0x03, /* __u8 ep_bmAttributes; Interrupt */
+ 0x00, 0x04, /* __le16 ep_wMaxPacketSize; 1024 */
+ 0x40, /* __u8 ep_bInterval; 64ms */
+
+ 0x07, /* __u8 ep_bLength; */
+ 0x05, /* __u8 ep_bDescriptorType; Endpoint */
+ 0x82, /* __u8 ep_bEndpointAddress; IN Endpoint 2 */
+ 0x02, /* __u8 ep_bmAttributes; Bulk */
+ 0x00, 0x04, /* __le16 ep_wMaxPacketSize; 1024 */
+ 0x40 /* __u8 ep_bInterval; */
+
+ 0x07, /* __u8 ep_bLength; */
+ 0x05, /* __u8 ep_bDescriptorType; Endpoint */
+ 0x02, /* __u8 ep_bEndpointAddress; Out Endpoint 2 */
+ 0x02, /* __u8 ep_bmAttributes; Bulk */
+ 0x00, 0x04, /* __le16 ep_wMaxPacketSize; 1024 */
+ 0x40 /* __u8 ep_bInterval; */
+};