summaryrefslogtreecommitdiffstats
path: root/include/dm/uclass-id.h
diff options
context:
space:
mode:
authorMario Six <mario.six@gdsys.cc>2018-07-31 11:44:11 +0200
committerSimon Glass <sjg@chromium.org>2018-09-29 11:49:35 -0600
commit5381c2856de3ed0191135b435cff39789e5f17ad (patch)
tree2e92bfc8b507348684a1f69821dbf72ee789d562 /include/dm/uclass-id.h
parent172942a4a0afe12a603470db7728f3871a81de01 (diff)
downloadu-boot-5381c2856de3ed0191135b435cff39789e5f17ad.tar.gz
u-boot-5381c2856de3ed0191135b435cff39789e5f17ad.tar.xz
u-boot-5381c2856de3ed0191135b435cff39789e5f17ad.zip
drivers: Add board uclass
Since there is no canonical "board device" that can be used in board files, it is difficult to use DM function for board initialization in these cases. Hence, add a uclass that implements a simple "board device", which can hold devices not suitable anywhere else in the device tree, and is also able to read encoded information, e.g. hard-wired GPIOs on a GPIO expander, read-only memory ICs, etc. that carry information about the hardware. The devices of this uclass expose methods to read generic data types (integers, strings, booleans) to encode the information provided by the hardware. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
Diffstat (limited to 'include/dm/uclass-id.h')
-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 7027ea076d..5e19465894 100644
--- a/include/dm/uclass-id.h
+++ b/include/dm/uclass-id.h
@@ -30,6 +30,7 @@ enum uclass_id {
UCLASS_ADC, /* Analog-to-digital converter */
UCLASS_AHCI, /* SATA disk controller */
UCLASS_BLK, /* Block device */
+ UCLASS_BOARD, /* Device information from hardware */
UCLASS_CLK, /* Clock source, e.g. used by peripherals */
UCLASS_CPU, /* CPU, typically part of an SoC */
UCLASS_CROS_EC, /* Chrome OS EC */