diff mbox series

[2/5] board: ti: j721e: Add support for HyperFlash detection

Message ID 20200813092619.21027-3-vigneshr@ti.com
State Accepted
Delegated to: Lokesh Vutla
Headers show
Series J7200: Add HyperFlash boot support | expand

Commit Message

Vignesh Raghavendra Aug. 13, 2020, 9:26 a.m. UTC
On J7200 SoC OSPI and HypeFlash are muxed at HW level and only one of
them can be used at any time. J7200 EVM has both HyperFlash and OSPI
flash on board. There is a user switch (SW3.1) that can be toggled to
select OSPI flash vs HyperFlash.
Read the state of this switch via wkup_gpio0_6 line and fixup the DT
nodes to select OSPI vs HyperFlash

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
 board/ti/j721e/evm.c | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series


diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c
index ebaa6faa93..7925b76ab7 100644
--- a/board/ti/j721e/evm.c
+++ b/board/ti/j721e/evm.c
@@ -117,6 +117,13 @@  static void __maybe_unused detect_enable_hyperflash(void *blob)
+#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_TARGET_J7200_A72_EVM)
+void spl_perform_fixups(struct spl_image_info *spl_image)
+	detect_enable_hyperflash(spl_image->fdt_addr);
 #if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
 int ft_board_setup(void *blob, struct bd_info *bd)