diff options
author | Ludwig Zenz <lzenz@dh-electronics.com> | 2019-07-02 15:49:49 +0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2019-07-19 21:32:24 +0300 |
commit | 8039211a8a9c8c9c97ee0d5bbd782e9e53c1d465 (patch) | |
tree | 6a89e3f399227aabbe4629c383fd4437b47c42fd /board/dhelectronics/dh_imx6 | |
parent | b10eaaf0b05158c4c7ebb62d61cf7095d3b5e557 (diff) | |
download | u-boot-8039211a8a9c8c9c97ee0d5bbd782e9e53c1d465.tar.xz |
ARM: imx6: DHCOM i.MX6 PDK: config SPL to load U-Boot fitImage with mulitple DTs
Configure fitImage for U-Boot with a device tree for imx6 quad/dual
and duallite/solo. This enables to support the imx6 derivates
quad/dual/duallite/solo with a single binary.
Signed-off-by: Ludwig Zenz <lzenz@dh-electronics.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'board/dhelectronics/dh_imx6')
-rw-r--r-- | board/dhelectronics/dh_imx6/dh_imx6.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/board/dhelectronics/dh_imx6/dh_imx6.c b/board/dhelectronics/dh_imx6/dh_imx6.c index 24141088c9..7b1a27ac37 100644 --- a/board/dhelectronics/dh_imx6/dh_imx6.c +++ b/board/dhelectronics/dh_imx6/dh_imx6.c @@ -355,3 +355,18 @@ int checkboard(void) puts("Board: DHCOM i.MX6\n"); return 0; } + +#ifdef CONFIG_MULTI_DTB_FIT +int board_fit_config_name_match(const char *name) +{ + if (is_mx6dq()) { + if (!strcmp(name, "imx6q-dhcom-pdk2")) + return 0; + } else if (is_mx6sdl()) { + if (!strcmp(name, "imx6dl-dhcom-pdk2")) + return 0; + } + + return -1; +} +#endif |