mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
board: ge: bx50v3: unify two switch statements
Simplify process_vpd() by unifying the switch statements handling product specific configurations. Signed-off-by: Nandor Han <nandor.han@ge.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
This commit is contained in:
parent
63f0ec57f2
commit
5ce9a1c84f
1 changed files with 3 additions and 10 deletions
|
|
@ -593,23 +593,16 @@ static void process_vpd(struct vpd_cache *vpd)
|
|||
switch (vpd->product_id) {
|
||||
case VPD_PRODUCT_B450:
|
||||
env_set("confidx", "1");
|
||||
i210_index = 0;
|
||||
fec_index = 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;
|
||||
fec_index = 1;
|
||||
break;
|
||||
case VPD_PRODUCT_B850:
|
||||
env_set("confidx", "3");
|
||||
i210_index = 1;
|
||||
fec_index = 2;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue