diff options
| author | Ludwig Zenz <[email protected]> | 2019-07-02 14:49:49 +0200 |
|---|---|---|
| committer | Stefano Babic <[email protected]> | 2019-07-19 20:32:24 +0200 |
| commit | 8039211a8a9c8c9c97ee0d5bbd782e9e53c1d465 (patch) | |
| tree | 6a89e3f399227aabbe4629c383fd4437b47c42fd /board/dhelectronics | |
| parent | b10eaaf0b05158c4c7ebb62d61cf7095d3b5e557 (diff) | |
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 <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
Diffstat (limited to 'board/dhelectronics')
| -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 24141088c99..7b1a27ac370 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 |
