From: Tim Harvey <tharvey@gateworks.com>
To: Stefano Babic <sbabic@denx.de>,
Fabio Estevam <festevam@gmail.com>,
"NXP i . MX U-Boot Team" <uboot-imx@nxp.com>,
u-boot@lists.denx.de
Cc: Tim Harvey <tharvey@gateworks.com>
Subject: [PATCH v2 1/2] board: gateworks: venice: add additional levels for dtb name match
Date: Wed, 13 Apr 2022 11:31:08 -0700 [thread overview]
Message-ID: <20220413183109.5934-1-tharvey@gateworks.com> (raw)
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>
---
v2:
- rebase on imx/master
---
board/gateworks/venice/eeprom.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/board/gateworks/venice/eeprom.c b/board/gateworks/venice/eeprom.c
index 62b8125960c7..282d55f2ae30 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;
}
}
--
2.17.1
next reply other threads:[~2022-04-13 18:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-13 18:31 Tim Harvey [this message]
2022-04-13 18:31 ` [PATCH v2 2/2] board: gateworks: venice: add imx8mp-venice-gw740x support Tim Harvey
2022-04-21 12:27 ` sbabic
2022-04-21 12:26 ` [PATCH v2 1/2] board: gateworks: venice: add additional levels for dtb name match sbabic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220413183109.5934-1-tharvey@gateworks.com \
--to=tharvey@gateworks.com \
--cc=festevam@gmail.com \
--cc=sbabic@denx.de \
--cc=u-boot@lists.denx.de \
--cc=uboot-imx@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox