diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2017-11-27 10:25:10 -0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2017-12-29 11:18:59 +0100 |
commit | 6ca03f0dfb2f65c7834737f9e0befff24064e34a (patch) | |
tree | 4d03f4799e52d69dc1d86b3b06184aecdb6d11e6 /board/freescale/mx6sxsabresd | |
parent | 4555c26142f893aa5d23f95c8eb3982e4a05b334 (diff) | |
download | u-boot-6ca03f0dfb2f65c7834737f9e0befff24064e34a.tar.gz |
mx6sxsabresd: Load the correct dtb for revA board
Currently only imx6sx-sdb.dtb is loaded, but if revA board is used the
correct dtb is imx6sx-sdb-reva.dtb, so make this possible.
While at it, remove an extra 'mmc dev'.
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Diffstat (limited to 'board/freescale/mx6sxsabresd')
-rw-r--r-- | board/freescale/mx6sxsabresd/mx6sxsabresd.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/board/freescale/mx6sxsabresd/mx6sxsabresd.c b/board/freescale/mx6sxsabresd/mx6sxsabresd.c index 2aeef61ffd..3ad2140314 100644 --- a/board/freescale/mx6sxsabresd/mx6sxsabresd.c +++ b/board/freescale/mx6sxsabresd/mx6sxsabresd.c @@ -540,9 +540,23 @@ int board_init(void) return 0; } +static bool is_reva(void) +{ + return (nxp_board_rev() == 1); +} + +int board_late_init(void) +{ +#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG + if (is_reva()) + env_set("board_rev", "REVA"); +#endif + return 0; +} + int checkboard(void) { - puts("Board: MX6SX SABRE SDB\n"); + printf("Board: MX6SX SABRE SDB rev%c\n", nxp_board_rev_string()); return 0; } |