From: Vaishnav Achath <vaishnav.a@ti.com>
To: <u-boot@lists.denx.de>, <trini@konsulko.com>
Cc: <vigneshr@ti.com>, <nm@ti.com>, <gadiyar@ti.com>,
<u-kumar1@ti.com>, <vaishnav.a@ti.com>
Subject: [PATCH 2/2] board: ti: j721e: Disable hyperflash fixup for J721E SK
Date: Thu, 30 Mar 2023 23:10:05 +0530 [thread overview]
Message-ID: <20230330174005.24950-3-vaishnav.a@ti.com> (raw)
In-Reply-To: <20230330174005.24950-1-vaishnav.a@ti.com>
J721E SoM and J7200 SoM has hyperflash connected to the hyperbus
interface, other platforms like J721E SK does not have a hyperflash
available in the platform, limit the hyperflash fixups to J721E and
J7200 SoM only.
Fixes: 66a33f41e9ba ("ti: j721e: enable hyperflash spl fixup for j721e")
Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
---
board/ti/j721e/evm.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c
index d4e672a7ac..353422937e 100644
--- a/board/ti/j721e/evm.c
+++ b/board/ti/j721e/evm.c
@@ -111,6 +111,9 @@ static void __maybe_unused detect_enable_hyperflash(void *blob)
struct gpio_desc desc = {0};
char *hypermux_sel_gpio = (board_is_j721e_som()) ? "8" : "6";
+ if (!board_is_j721e_som() && !board_is_j7200_som())
+ return;
+
if (dm_gpio_lookup_name(hypermux_sel_gpio, &desc))
return;
@@ -511,6 +514,9 @@ static int __maybe_unused detect_SW3_1_state(void)
int ret;
char *hypermux_sel_gpio = (board_is_j721e_som()) ? "8" : "6";
+ if (!board_is_j721e_som() && !board_is_j7200_som())
+ return -ENODEV;
+
ret = dm_gpio_lookup_name(hypermux_sel_gpio, &desc);
if (ret) {
printf("error getting GPIO lookup name: %d\n", ret);
--
2.17.1
next prev parent reply other threads:[~2023-03-30 17:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-30 17:40 [PATCH 0/2] arm: dts: J721E Hyperbus Fixes Vaishnav Achath
2023-03-30 17:40 ` [PATCH 1/2] arm: dts: k3-j721e-mcu-wakeup: Disable hyperbus controller node Vaishnav Achath
2023-03-30 18:50 ` Nishanth Menon
2023-03-30 17:40 ` Vaishnav Achath [this message]
2023-03-30 17:43 ` [PATCH 0/2] arm: dts: J721E Hyperbus Fixes Gadiyar, Anand
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=20230330174005.24950-3-vaishnav.a@ti.com \
--to=vaishnav.a@ti.com \
--cc=gadiyar@ti.com \
--cc=nm@ti.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=u-kumar1@ti.com \
--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