aboutsummaryrefslogtreecommitdiff
path: root/board/wandboard
diff options
context:
space:
mode:
authorFabio Estevam2019-06-12 12:34:40 -0300
committerStefano Babic2019-07-04 14:19:49 +0200
commit5b858582512883b8a85d74e108873f9beed1e954 (patch)
tree7155b63e70aa6992466b667950837e7b4cda0b89 /board/wandboard
parentdf51656986e913272546f33ce8f6f5a46b1ed2bf (diff)
wandboard: Add FIT image support
After the transition to DM, only the mx6dl/solo wandboard is supported. Add FIT image support so that all the wandboard variants can be supported, like it was prior to the DM conversion. Successfully booted Linux on mx6q/solo/qp wandboards. Signed-off-by: Fabio Estevam <festevam@gmail.com>
Diffstat (limited to 'board/wandboard')
-rw-r--r--board/wandboard/wandboard.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c
index 9d7a94ff9d9..74d7a17028b 100644
--- a/board/wandboard/wandboard.c
+++ b/board/wandboard/wandboard.c
@@ -500,3 +500,21 @@ int checkboard(void)
return 0;
}
+
+#ifdef CONFIG_SPL_LOAD_FIT
+int board_fit_config_name_match(const char *name)
+{
+ if (is_mx6dq()) {
+ if (!strcmp(name, "imx6q-wandboard-revb1"))
+ return 0;
+ } else if (is_mx6dqp()) {
+ if (!strcmp(name, "imx6qp-wandboard-revd1"))
+ return 0;
+ } else if (is_mx6dl() || is_mx6solo()) {
+ if (!strcmp(name, "imx6dl-wandboard-revb1"))
+ return 0;
+ }
+
+ return -EINVAL;
+}
+#endif