diff options
author | Simon Glass <sjg@chromium.org> | 2015-09-08 11:15:11 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-11-19 20:13:39 -0700 |
commit | 34ab37eef5a5f8023abc657ab38f7b9fe11c38b3 (patch) | |
tree | 3a8917301e9cffb9286c343a04f45316d4d164da /include/dm | |
parent | 2b24e09c66480f3723b137f434a6c3b0db764817 (diff) | |
download | u-boot-34ab37eef5a5f8023abc657ab38f7b9fe11c38b3.tar.gz u-boot-34ab37eef5a5f8023abc657ab38f7b9fe11c38b3.tar.xz u-boot-34ab37eef5a5f8023abc657ab38f7b9fe11c38b3.zip |
dm: usb: Add support for USB keyboards with driver model
Switch USB keyboards over to use driver model instead of scanning with the
horrible usb_get_dev_index() function. This involves creating a new uclass
for keyboards, although so far there is no API.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm')
-rw-r--r-- | include/dm/uclass-id.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dm/uclass-id.h b/include/dm/uclass-id.h index 327de3486b..27fa0b68db 100644 --- a/include/dm/uclass-id.h +++ b/include/dm/uclass-id.h @@ -37,6 +37,7 @@ enum uclass_id { UCLASS_I2C_EEPROM, /* I2C EEPROM device */ UCLASS_I2C_GENERIC, /* Generic I2C device */ UCLASS_I2C_MUX, /* I2C multiplexer */ + UCLASS_KEYBOARD, /* Keyboard input device */ UCLASS_LED, /* Light-emitting diode (LED) */ UCLASS_LPC, /* x86 'low pin count' interface */ UCLASS_MASS_STORAGE, /* Mass storage device */ |