From: Roger Quadros <rogerq@kernel.org>
To: vigneshr@ti.com, trini@konsulko.com
Cc: nm@ti.com, srk@ti.com, u-boot@lists.denx.de,
Roger Quadros <rogerq@kernel.org>
Subject: [PATCH 1/6] board: ti: am64x: Recognize AM64-HSEVM
Date: Tue, 4 Jul 2023 21:10:03 +0300 [thread overview]
Message-ID: <20230704181008.305561-2-rogerq@kernel.org> (raw)
In-Reply-To: <20230704181008.305561-1-rogerq@kernel.org>
use "am64x_evm" board name in environment for both AM64-GPEVM and
AM64-HSEVM.
Gets rid of "Unidentified board claims AM64-HSEVM in eeprom header"
Signed-off-by: Roger Quadros <rogerq@kernel.org>
---
board/ti/am64x/evm.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/board/ti/am64x/evm.c b/board/ti/am64x/evm.c
index 96f4e3013a..42795cbd22 100644
--- a/board/ti/am64x/evm.c
+++ b/board/ti/am64x/evm.c
@@ -18,7 +18,8 @@
#include "../common/board_detect.h"
-#define board_is_am64x_gpevm() board_ti_k3_is("AM64-GPEVM")
+#define board_is_am64x_evm() (board_ti_k3_is("AM64-GPEVM") || \
+ board_ti_k3_is("AM64-HSEVM"))
#define board_is_am64x_skevm() (board_ti_k3_is("AM64-SKEVM") || \
board_ti_k3_is("AM64B-SKEVM"))
@@ -57,7 +58,7 @@ int board_fit_config_name_match(const char *name)
{
bool eeprom_read = board_ti_was_eeprom_read();
- if (!eeprom_read || board_is_am64x_gpevm()) {
+ if (!eeprom_read || board_is_am64x_evm()) {
if (!strcmp(name, "k3-am642-r5-evm") || !strcmp(name, "k3-am642-evm"))
return 0;
} else if (board_is_am64x_skevm()) {
@@ -182,13 +183,13 @@ int checkboard(void)
#ifdef CONFIG_BOARD_LATE_INIT
static void setup_board_eeprom_env(void)
{
- char *name = "am64x_gpevm";
+ char *name = "am64x_evm";
if (do_board_detect())
goto invalid_eeprom;
- if (board_is_am64x_gpevm())
- name = "am64x_gpevm";
+ if (board_is_am64x_evm())
+ name = "am64x_evm";
else if (board_is_am64x_skevm())
name = "am64x_skevm";
else
--
2.34.1
next prev parent reply other threads:[~2023-07-04 18:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-04 18:10 [PATCH 0/6] ti: k3-am642: Add daughtercard support Roger Quadros
2023-07-04 18:10 ` Roger Quadros [this message]
2023-07-05 8:01 ` [PATCH 1/6] board: ti: am64x: Recognize AM64-HSEVM Roger Quadros
2023-07-04 18:10 ` [PATCH 2/6] board: ti: am64x: Add HSE NAND card detection support Roger Quadros
2023-07-04 18:10 ` [PATCH 3/6] arm: dts: k3-am642: Sync main_i2c0 with kernel Roger Quadros
2023-07-06 12:38 ` Nishanth Menon
2023-07-06 14:13 ` Roger Quadros
2023-07-06 14:25 ` Nishanth Menon
2023-07-04 18:10 ` [PATCH 4/6] arm: dts: k3-am642-r5-evm: Add I2C0 and Card detect GPIOs Roger Quadros
2023-07-06 12:38 ` Nishanth Menon
2023-07-04 18:10 ` [PATCH 5/6] arm: dts: k3-am642: Add I2C GPIO Expander Roger Quadros
2023-07-04 18:10 ` [PATCH 6/6] configs: am64x_evm_a53_defconfig: Enable I2C GPIO drivers Roger Quadros
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=20230704181008.305561-2-rogerq@kernel.org \
--to=rogerq@kernel.org \
--cc=nm@ti.com \
--cc=srk@ti.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=vigneshr@ti.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