Make USB hid devices self-powered
Simplifies power budget negotiation. Signed-off-by: Riku Voipio <riku.voipio@nokia.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
c6703b4761
commit
659139d780
@ -100,7 +100,7 @@ static const uint8_t qemu_mouse_config_descriptor[] = {
|
|||||||
0x01, /* u8 bNumInterfaces; (1) */
|
0x01, /* u8 bNumInterfaces; (1) */
|
||||||
0x01, /* u8 bConfigurationValue; */
|
0x01, /* u8 bConfigurationValue; */
|
||||||
0x04, /* u8 iConfiguration; */
|
0x04, /* u8 iConfiguration; */
|
||||||
0xa0, /* u8 bmAttributes;
|
0xe0, /* u8 bmAttributes;
|
||||||
Bit 7: must be set,
|
Bit 7: must be set,
|
||||||
6: Self-powered,
|
6: Self-powered,
|
||||||
5: Remote wakeup,
|
5: Remote wakeup,
|
||||||
|
@ -113,7 +113,7 @@ static const uint8_t qemu_hub_config_descriptor[] = {
|
|||||||
0x01, /* u8 bNumInterfaces; (1) */
|
0x01, /* u8 bNumInterfaces; (1) */
|
||||||
0x01, /* u8 bConfigurationValue; */
|
0x01, /* u8 bConfigurationValue; */
|
||||||
0x00, /* u8 iConfiguration; */
|
0x00, /* u8 iConfiguration; */
|
||||||
0xc0, /* u8 bmAttributes;
|
0xe0, /* u8 bmAttributes;
|
||||||
Bit 7: must be set,
|
Bit 7: must be set,
|
||||||
6: Self-powered,
|
6: Self-powered,
|
||||||
5: Remote wakeup,
|
5: Remote wakeup,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user