summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVaishnav Achath <vaishnav.a@ti.com>2023-06-05 19:43:50 +0530
committerPraneeth Bajjuri <praneeth@ti.com>2023-06-07 17:32:09 -0500
commit5cbd4b721e391723363b375726a5ace70e11188f (patch)
treea9386c4ba59facf91e4b6244e7e6246f5dd15573
parent8a96ae09faf4b3b0e23a14ca3338e10d8c12812f (diff)
board: ti: j721e: Disable hyperflash fixup for J721E SK
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. Signed-off-by: Vaishnav Achath <vaishnav.a@ti.com>
-rw-r--r--board/ti/j721e/evm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c
index ee020bd2ca..c8125425f5 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);