From f07b3148d74b9859ddfa3de2dd5cacb504530f4f Mon Sep 17 00:00:00 2001 From: Ian Ray Date: Wed, 10 Jan 2018 20:31:33 +0100 Subject: 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 Signed-off-by: Martyn Welch Signed-off-by: Sebastian Reichel --- board/ge/bx50v3/bx50v3.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'board/ge/bx50v3') 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 @@ -590,6 +590,18 @@ static void process_vpd(struct vpd_cache *vpd) int fec_index = -1; int i210_index = -1; + 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 */ -- cgit