diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2015-05-21 19:24:05 -0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2015-06-08 08:34:38 +0200 |
commit | 9a8804a85e37d774419ee6452a90cc6e57d925f3 (patch) | |
tree | 7e8adcad1447b586a5906862ee8f16c08a0bf0d2 /include/configs/wandboard.h | |
parent | c0c5341e732b0c52190b2fd85bb6b94c5879dfd9 (diff) |
wandboard: Add board revision detection support
There are two revisions of wandboard: version B1 and C1.
Add the revision detection support, so that the correct dtb file can
be automatically loaded.
Based on the patch from Richard Hu <hakahu@gmail.com>.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: Stefano Babic <sbabic@denx.de>
Tested-By: Vagrant Cascadian <vagrant@aikidev.net>
Diffstat (limited to 'include/configs/wandboard.h')
-rw-r--r-- | include/configs/wandboard.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/configs/wandboard.h b/include/configs/wandboard.h index 69590ad884..0cc0f034ac 100644 --- a/include/configs/wandboard.h +++ b/include/configs/wandboard.h @@ -194,10 +194,14 @@ "bootz; " \ "fi;\0" \ "findfdt="\ - "if test $board_rev = MX6Q ; then " \ + "if test $board_name = C1 && test $board_rev = MX6Q ; then " \ "setenv fdtfile imx6q-wandboard.dtb; fi; " \ - "if test $board_rev = MX6DL ; then " \ + "if test $board_name = C1 && test $board_rev = MX6DL ; then " \ "setenv fdtfile imx6dl-wandboard.dtb; fi; " \ + "if test $board_name = B1 && test $board_rev = MX6Q ; then " \ + "setenv fdtfile imx6q-wandboard-revb1.dtb; fi; " \ + "if test $board_name = B1 && test $board_rev = MX6DL ; then " \ + "setenv fdtfile imx6dl-wandboard-revb1.dtb; fi; " \ "if test $fdtfile = undefined; then " \ "echo WARNING: Could not determine dtb to use; fi; \0" \ |