[PATCH 2/2] board: ti: j721e: Disable hyperflash fixup for J721E SK

Vaishnav Achath vaishnav.a at ti.com
Thu Mar 30 19:40:05 CEST 2023


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 at 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



More information about the U-Boot mailing list