mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-10-01 02:31:27 +02:00
board: gateworks: venice: add additional levels for dtb name match
Gateworks produces many products from a single PCB with subloaded components. Add an additional two levels of dtb name matching so that for example a GW7400-A matches the dtb name of gw74xx.dtb Signed-off-by: Tim Harvey <tharvey@gateworks.com>
This commit is contained in:
parent
61cf225053
commit
93de85c9d7
@ -259,8 +259,16 @@ const char *eeprom_get_dtb_name(int level, char *buf, int sz)
|
|||||||
break;
|
break;
|
||||||
case 2: /* don't care about PCB or BOM revision */
|
case 2: /* don't care about PCB or BOM revision */
|
||||||
break;
|
break;
|
||||||
|
case 3: /* don't care about last digit of model */
|
||||||
|
buf[strlen(buf) - 1] = 'x';
|
||||||
|
break;
|
||||||
|
case 4: /* don't care about last two digits of model */
|
||||||
|
buf[strlen(buf) - 1] = 'x';
|
||||||
|
buf[strlen(buf) - 2] = 'x';
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return NULL;
|
return NULL;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user