diff options
author | Tim Harvey <tharvey@gateworks.com> | 2022-04-13 11:31:08 -0700 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2022-04-21 12:44:24 +0200 |
commit | 93de85c9d76a45c3e1f9efc8894d356c9898255f (patch) | |
tree | 041229dd563663c9f67d7c3fcc0247d7fbd82e2e | |
parent | 61cf22505339a281befc715a5e4fbcc3ccfb2999 (diff) | |
download | u-boot-93de85c9d76a45c3e1f9efc8894d356c9898255f.zip u-boot-93de85c9d76a45c3e1f9efc8894d356c9898255f.tar.gz u-boot-93de85c9d76a45c3e1f9efc8894d356c9898255f.tar.bz2 |
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>
-rw-r--r-- | board/gateworks/venice/eeprom.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/gateworks/venice/eeprom.c b/board/gateworks/venice/eeprom.c index 62b8125..282d55f 100644 --- a/board/gateworks/venice/eeprom.c +++ b/board/gateworks/venice/eeprom.c @@ -259,8 +259,16 @@ const char *eeprom_get_dtb_name(int level, char *buf, int sz) break; case 2: /* don't care about PCB or BOM revision */ 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: return NULL; + break; } } |