summaryrefslogtreecommitdiff
path: root/include/dm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-06-23 15:38:45 -0600
committerSimon Glass <sjg@chromium.org>2015-07-21 17:39:24 -0600
commit5917112c9e9f7a60062c604b3224bd5713c41f46 (patch)
tree71c53336a056df66ac8ac1b1874f1c60f0d82a0a /include/dm
parent5725128507eca41bb110d702858ca2c8d7dc4085 (diff)
downloadu-boot-imx-5917112c9e9f7a60062c604b3224bd5713c41f46.zip
u-boot-imx-5917112c9e9f7a60062c604b3224bd5713c41f46.tar.gz
u-boot-imx-5917112c9e9f7a60062c604b3224bd5713c41f46.tar.bz2
dm: Add support for LEDs
Add a simple uclass for LEDs, so that these can be controlled by the device tree and activated when needed. LEDs are referred to by their label. This implementation requires a driver for each type of LED (e.g GPIO, I2C). Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/uclass-id.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dm/uclass-id.h b/include/dm/uclass-id.h
index 24baa5c..a961648 100644
--- a/include/dm/uclass-id.h
+++ b/include/dm/uclass-id.h
@@ -33,6 +33,7 @@ enum uclass_id {
UCLASS_I2C, /* I2C bus */
UCLASS_I2C_EEPROM, /* I2C EEPROM device */
UCLASS_I2C_GENERIC, /* Generic I2C device */
+ UCLASS_LED, /* Light-emitting diode (LED) */
UCLASS_LPC, /* x86 'low pin count' interface */
UCLASS_MASS_STORAGE, /* Mass storage device */
UCLASS_MOD_EXP, /* RSA Mod Exp device */