[PATCH v1 4/4] arm64: mvebu: extend the mmio region

Stefan Roese sr at denx.de
Fri Apr 30 15:29:50 CEST 2021


From: Grzegorz Jaszczyk <jaz at semihalf.com>

Some of the setups including cn9130 opens mmio window starting from
0xc0000000, reflect it in the u-boot code.

Signed-off-by: Grzegorz Jaszczyk <jaz at semihalf.com>
Signed-off-by: Kostya Porotchkin <kostap at marvell.com>
Signed-off-by: Stefan Roese <sr at denx.de>
---

 arch/arm/mach-mvebu/armada8k/cpu.c         | 4 ++--
 arch/arm/mach-mvebu/include/mach/fw_info.h | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-mvebu/armada8k/cpu.c b/arch/arm/mach-mvebu/armada8k/cpu.c
index d76e17632556..939abce000f6 100644
--- a/arch/arm/mach-mvebu/armada8k/cpu.c
+++ b/arch/arm/mach-mvebu/armada8k/cpu.c
@@ -46,8 +46,8 @@ static struct mm_region mvebu_mem_map[] = {
 	},
 	{
 		/* MMIO regions */
-		.phys = SOC_REGS_PHY_BASE,
-		.virt = SOC_REGS_PHY_BASE,
+		.phys = MMIO_REGS_PHY_BASE,
+		.virt = MMIO_REGS_PHY_BASE,
 		.size = SZ_1G,
 
 		.attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
diff --git a/arch/arm/mach-mvebu/include/mach/fw_info.h b/arch/arm/mach-mvebu/include/mach/fw_info.h
index 6ab972e36e93..1382438e390e 100644
--- a/arch/arm/mach-mvebu/include/mach/fw_info.h
+++ b/arch/arm/mach-mvebu/include/mach/fw_info.h
@@ -13,4 +13,6 @@
 /* Firmware related definition used for SMC calls */
 #define MV_SIP_DRAM_SIZE		0x82000010
 
+#define MMIO_REGS_PHY_BASE		0xc0000000
+
 #endif /* _FW_INFO_H_ */
-- 
2.31.1



More information about the U-Boot mailing list