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>
This commit is contained in:
Ian Ray
2018-01-10 20:31:33 +01:00
committed by Stefano Babic
parent 6d6564957c
commit f07b3148d7
5 changed files with 20 additions and 83 deletions

View File

@ -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 */