Hi Heiko,
On 11/05/22 13:54, Heiko Schocher wrote:
Hello Achath,
On 11.05.22 08:03, Vaishnav Achath wrote:
Currently the SPI flash to load from is defined through the compile
time config CONFIG_SF_DEFAULT_BUS and CONFIG_SF_DEFAULT_CS, this
prevents the loading of binaries from different SPI
(drivers/mtd/spi-nor/sfdp.c).
Signed-off-by: Vaishnav Achath
---
drivers/mtd/spi/spi-nor-core.c | 34 --
1 file changed, 32 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c
index 3b7c817c02..90d05da1d8 100644
implement overrides for spl_spi_boot_bus() and spl_spi_boot_cs()
lookup functions according to bootmode selection, so as to support
both QSPI and OSPI boot using the same build.
Signed-off-by: Vaishnav Achath
Reviewed-by: Pratyush Yadav
---
V2->V3 : removed unnecessary spl_spi_boot
due to this limitation.
This commit adds lookup functions spl_spi_boot_bus()
and spl_spi_boot_cs for identifying the flash device based on the
selected boot device, when not overridden the lookup functions are
weakly defined in common/spl/spl_spi.c.
Signed-off-by: Vaishnav Achath
Reviewed
erride for J721E,
suggested by Pratyush Yadav
Vaishnav Achath (2):
common: spl: spl_spi: add support for dynamic override of sf bus
arm: k3: j721e: add dynamic sf bus override support for j721e
arch/arm/mach-k3/j721e_init.c | 11 +++
arch/arm/mach-k3/sysfw-loader.c | 4 ++--
comm
device thus allowing platforms to override the SF_BUS
and SF_CS to load from the desired flash.
Changes tested on J721E for OSPI and QSPI boot.
V1->V2:
* drop unnecessary Kconfig option for SF bus override,
suggested by Heiko Schocher.
Vaishnav Achath (2):
common: spl: spl_spi: add supp
implement overrides for spl_spi_boot_bus() and spl_spi_boot_cs()
lookup functions according to bootmode selection, so as to support
both QSPI and OSPI boot using the same build.
Signed-off-by: Vaishnav Achath
---
arch/arm/mach-k3/j721e_init.c | 17 +
arch/arm/mach-k3/sysfw
due to this limitation.
This commit adds lookup functions spl_spi_boot_bus()
and spl_spi_boot_cs for identifying the flash device based on the
selected boot device, when not overridden the lookup functions are
weakly defined in common/spl/spl_spi.c.
Signed-off-by: Vaishnav Achath
---
common/spl
Hi Heiko,
On 09/05/22 12:49, Heiko Schocher wrote:
Hello Achat,
On 09.05.22 08:43, Vaishnav Achath wrote:
Currently the SPI flash to load from is defined through the compile
time config CONFIG_SF_DEFAULT_BUS and CONFIG_SF_DEFAULT_CS, this
prevents the loading of binaries from different SPI
add support for loading system firmware from hyperflash.
Signed-off-by: Vaishnav Achath
---
arch/arm/mach-k3/sysfw-loader.c | 28
1 file changed, 28 insertions(+)
diff --git a/arch/arm/mach-k3/sysfw-loader.c b/arch/arm/mach-k3/sysfw-loader.c
index 5e48c36ccd
add u-boot,dm-spl pre-relocation property to enable hbmc in SPL.
Signed-off-by: Vaishnav Achath
---
.../k3-j721e-common-proc-board-u-boot.dtsi| 24 +++
1 file changed, 24 insertions(+)
diff --git a/arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi
b/arch/arm/dts/k3-j721e
Add wkup_gpio pinmux setting which will be used for performing the
DT fixup for hbmc node according to mux selection state, on J721E
EVM, hypermux sel is tied to ·WKUP_GPIO0_8.
Signed-off-by: Vaishnav Achath
---
arch/arm/dts/k3-j721e-common-proc-board.dts | 11 +++
1 file changed, 11
GPIO when checking
hypermux selection state:
* J7200 - hypermux sel connected to WKUP_GPIO0_6
* J721E - hypermux·sel·connected·to·WKUP_GPIO0_8
Signed-off-by: Vaishnav Achath
---
board/ti/j721e/evm.c | 57 +---
1 file changed, 54 insertions(+), 3 deletions
Enable HBMC and HyperFlash in R5SPL, A72 SPL and A72 U-Boot
Signed-off-by: Vaishnav Achath
---
configs/j721e_evm_a72_defconfig | 5 +
configs/j721e_evm_r5_defconfig | 14 ++
2 files changed, 19 insertions(+)
diff --git a/configs/j721e_evm_a72_defconfig b/configs
Define CONFIG_SYS_FLASH_BASE to indicate start address of
Flash memory
Signed-off-by: Vaishnav Achath
---
include/configs/j721e_evm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h
index 2590ee6b01..91dc52b9fd 100644
--- a/include
selection state similar to as done for J7200.
Changes were tested on J721E SR1.1 for Hyperflash and OSPI boot.
Thanks and Regards,
Vaishnav
Vaishnav Achath (9):
arm: dts: k3-j721e-mcu-wakeup: Add HyperBus Controller node
arm: dts: k3-j721e-som-p0: Add HyperFlash node
arm: dts: k3-j721e-r5
Add DT node for HyperBus Memory Controller and hbmc-mux in the
FSS. hbmc-am654 driver uses syscon_get_regmap() call which fails
with current compatible setting.
Signed-off-by: Vaishnav Achath
---
arch/arm/dts/k3-j721e-mcu-wakeup.dtsi | 20 +++-
1 file changed, 19 insertions
J721e SoM as a 64MB HyperFlash on board. Add pinmux and DT node
for the same.
Signed-off-by: Vaishnav Achath
---
arch/arm/dts/k3-j721e-som-p0.dtsi | 32 +++
1 file changed, 32 insertions(+)
diff --git a/arch/arm/dts/k3-j721e-som-p0.dtsi
b/arch/arm/dts/k3-j721e-som
J721e SoM as a 64MB HyperFlash on board. Add pinmux and DT node
for the same.
Signed-off-by: Vaishnav Achath
---
.../arm/dts/k3-j721e-r5-common-proc-board.dts | 45 +++
1 file changed, 45 insertions(+)
diff --git a/arch/arm/dts/k3-j721e-r5-common-proc-board.dts
b/arch/arm/dts
: mt35xu512aba (65536 Kbytes)
Signed-off-by: Vaishnav Achath
---
common/spl/spl_spi.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/common/spl/spl_spi.c b/common/spl/spl_spi.c
index cf3f7ef4c0..113a85bec9 100644
--- a/common/spl/spl_spi.c
+++ b/common/spl/spl_spi.c
@@ -162,6 +162,11 @@ static
due to this limitation.
This commit adds lookup functions spl_spi_boot_bus()
and spl_spi_boot_cs for identifying the flash device based on the
selected boot devic, when not overridden the lookup functions are
weakly defined in common/spl/spl_spi.c.
Signed-off-by: Vaishnav Achath
---
common/spl
implement overrides for spl_spi_boot_bus() and spl_spi_boot_cs()
lookup functions according to bootmode selection, so as to support
both QSPI and OSPI boot using the same build.
Also enable the CONFIG_SPL_DYNAMIC_SF_BUS_DETECT for j721e R5
and A72.
Signed-off-by: Vaishnav Achath
---
arch/arm
device thus allowing platforms to override the SF_BUS
and SF_CS to load from the desired flash.
Changes tested on J721E for OSPI and QSPI boot.
Vaishnav Achath (2):
common: spl: spl_spi: add support for dynamic detection of sf bus
arm: k3: j721e: enable dynamic sf bus detect support for j721e
AC mode forces to read minimum 4 bytes
> + * which is unsupported on some flash devices during register
> + * reads, prefer STIG mode for such small reads.
> + */
> + if (!op->addr.nbytes ||
> + op->data.nbytes < CQSPI_STIG_D
;)
Signed-off-by: Vaishnav Achath
---
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 __ma
platforms which does not explicitly disable the
hbmc node in board dts, thus disable hyperbus node by default.
Fixes: 297daac43afb ("arm: dts: k3-j721e-mcu-wakeup: Add HyperBus Controller
node")
Signed-off-by: Vaishnav Achath
---
Since this node is not present in corresponding upstr
will be sent separately,
but hyperbus and OSPI controller being active was also one of the issues
causing boot failure.
Changes were tested on J721E EVM and J721E SK for basic boot and hyperflash
functionality(EVM).
Vaishnav Achath (2):
arm: dts: k3-j721e-mcu-wakeup: Disable hyperbus controller
27 matches
Mail list logo