Skip to contentSkip to conversation

Hyperflash boot fixes for j721e

PATCH Superseded Anurag Dutta 2 participants 5 messages Apr 16, 2025 – Apr 24, 2025

Subsystems (2)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

cover Hyperflash boot fixes for j721e

This series introdues a couple of small fixes that involves enabling hyperflash at R5 SPL stage and Kconfig changes that are required for HBMC boot on j721e

Test logs : https://gist.github.com/anuragdutta731/103e84e84f013093fa089803719d997d

Anurag Dutta (2):
mtd: Kconfig: Add SPL_MUX_MMIO dependency to HBMC driver
arm: dts: k3-j721e-r5-common-proc-board: Enable HBMC in R5 SPL stage

 arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 1 +
 drivers/mtd/Kconfig                            | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/2 mtd: Kconfig: Add SPL_MUX_MMIO dependency to HBMC driver

The MUX_MMIO is enabled both in SPL as well as U-Boot proper. Hence, add SPL_MUX_MMIO dependency from HBMC driver.

---
 drivers/mtd/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/Kconfig +1 -1
index 2b7f5e5ed7b..729db904200 100644
@@ -202,7 +202,7 @@ config RENESAS_RPC_HF
 
 config HBMC_AM654
 	bool "HyperBus controller driver for AM65x SoC"
-	depends on MULTIPLEXER && MUX_MMIO
+	depends on MULTIPLEXER && (MUX_MMIO || SPL_MUX_MMIO) 
 	help
 	 This is the driver for HyperBus controller on TI's AM65x and
 	 other SoCs
Signature · 1 line
2.34.1
Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] mtd: Kconfig: Add SPL_MUX_MMIO dependency to HBMC driver

Quoted 2 lines · Anurag Dutta

The MUX_MMIO is enabled both in SPL as well as U-Boot proper. Hence, add SPL_MUX_MMIO dependency from HBMC driver.

May be you can reword commit message

MUX_MMIO is needed by HBMC ,
So enable it at SPL and u-boot proper stage.

Quoted 11 lines
---
  drivers/mtd/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/Kconfig +0 -0
index 2b7f5e5ed7b..729db904200 100644

drivers/mtd/Kconfig config RENESAS_RPC_HF · line 205

Quoted 5 lines
drivers/mtd/Kconfig +1 -1
@@ -202,7 +202,7 @@ config RENESAS_RPC_HF
 
  config HBMC_AM654
  	bool "HyperBus controller driver for AM65x SoC"
-	depends on MULTIPLEXER && MUX_MMIO
+	depends on MULTIPLEXER && (MUX_MMIO || SPL_MUX_MMIO)

With above change in commit message

Quoted 3 lines
drivers/mtd/Kconfig +0 -0
  	help
  	 This is the driver for HyperBus controller on TI's AM65x and
  	 other SoCs
#3 lore raw

PATCH 2/2 arm: dts: k3-j721e-r5-common-proc-board: Enable HBMC in R5 SPL stage

In reply to Anurag Dutta

Enable HBMC in the R5 SPL stage

---
 arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +1 -0
index c775432505b..e4f799dfb27 100644
@@ -52,6 +52,7 @@
 };
 
 &hbmc {
+	status = "okay";
 	reg = <0x0 0x47040000 0x0 0x100>,
 		<0x0 0x50000000 0x0 0x8000000>;
 	ranges = <0x0 0x0 0x0 0x50000000 0x4000000>,
Signature · 1 line
2.34.1
Reviewed-by on v1 2/2
#4 lore raw

Re: [PATCH 2/2] arm: dts: k3-j721e-r5-common-proc-board: Enable HBMC in R5 SPL stage

Quoted 1 line · Anurag Dutta

Enable HBMC in the R5 SPL stage

Please add

Fixes c9df79ee64d0: ("arm: dts: k3-j721e-r5-common: Add HBMC overrides for R5 SPL")

Quoted 10 lines
---
  arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 1 +
  1 file changed, 1 insertion(+)
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +0 -0
index c775432505b..e4f799dfb27 100644

arch/arm/dts/k3-j721e-r5-common-proc-board.dts line 55

Quoted 4 lines
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +1 -0
@@ -52,6 +52,7 @@
  };
 
  &hbmc {
+	status = "okay";

With fixes tag added,  Please use

Quoted 3 lines
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +0 -0
  	reg = <0x0 0x47040000 0x0 0x100>,
  		<0x0 0x50000000 0x0 0x8000000>;
  	ranges = <0x0 0x0 0x0 0x50000000 0x4000000>,