summaryrefslogtreecommitdiff
path: root/board/ge/bx50v3
diff options
context:
space:
mode:
authorIan Ray <ian.ray@ge.com>2018-01-10 20:31:33 +0100
committerStefano Babic <sbabic@denx.de>2018-02-04 12:00:58 +0100
commitf07b3148d74b9859ddfa3de2dd5cacb504530f4f (patch)
treecf78fb4858313ad7c4693587147740c382ae50a0 /board/ge/bx50v3
parent6d6564957ced9a29ca62adee68a6e24040dd54be (diff)
board: ge: bx50v3: Support FIT and select configuration based on VPD
Modify configuration to support FIT. Set variable `confidx' from VPD, in order to load the correct device tree. Modify/simplify U-Boot environment to support loading FIT image. Signed-off-by: Ian Ray <ian.ray@ge.com> Signed-off-by: Martyn Welch <martyn.welch@collabora.co.uk> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Diffstat (limited to 'board/ge/bx50v3')
-rw-r--r--board/ge/bx50v3/bx50v3.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx50v3/bx50v3.c
index 48c26e0f9f..e35afa0317 100644
--- a/board/ge/bx50v3/bx50v3.c
+++ b/board/ge/bx50v3/bx50v3.c
@@ -592,6 +592,18 @@ static void process_vpd(struct vpd_cache *vpd)
switch (vpd->product_id) {
case VPD_PRODUCT_B450:
+ env_set("confidx", "1");
+ break;
+ case VPD_PRODUCT_B650:
+ env_set("confidx", "2");
+ break;
+ case VPD_PRODUCT_B850:
+ env_set("confidx", "3");
+ break;
+ }
+
+ switch (vpd->product_id) {
+ case VPD_PRODUCT_B450:
/* fall thru */
case VPD_PRODUCT_B650:
i210_index = 0;