diff options
author | Tim Harvey <tharvey@gateworks.com> | 2021-07-28 01:19:40 +0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2021-08-09 15:46:50 +0300 |
commit | 2eb85647c0e76a3be9616d67765eb8fa74ea7481 (patch) | |
tree | 71ab9f0f5ca14fd85fed9a6c890fbe719fad8d7c /board/gateworks | |
parent | c10bf27615a07e07722c66fd28b57ae5db969288 (diff) | |
download | u-boot-2eb85647c0e76a3be9616d67765eb8fa74ea7481.tar.xz |
board: gateworks: venice: add board model to dt
Add the specific board model from EEPROM config to the device-tree to
make it easier to access from Linux userspace.
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'board/gateworks')
-rw-r--r-- | board/gateworks/venice/imx8mm_venice.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/gateworks/venice/imx8mm_venice.c b/board/gateworks/venice/imx8mm_venice.c index ca01e75d0d..2a97d55d32 100644 --- a/board/gateworks/venice/imx8mm_venice.c +++ b/board/gateworks/venice/imx8mm_venice.c @@ -152,3 +152,11 @@ int board_mmc_get_env_dev(int devno) { return devno; } + +int ft_board_setup(void *blob, struct bd_info *bd) +{ + /* set board model dt prop */ + fdt_setprop_string(blob, 0, "board", gsc_get_model()); + + return 0; +} |