diff mbox series

[v2,01/14] imx: mx7: fix DDRC size in A7-M4 mapping table

Message ID 20200715103105.8622-2-igor.opaniuk@gmail.com
State Accepted
Commit fb99ac9cafd1bfa9cf2317ddbce3a23a07638171
Delegated to: Stefano Babic
Headers show
Series toradex: imx: fixes and updates for v2020.10 | expand

Commit Message

Igor Opaniuk July 15, 2020, 10:30 a.m. UTC
From: Igor Opaniuk <igor.opaniuk@toradex.com>

According to i.MX 7Solo Applications Processor Reference Manual,
2.1.3 Cortex-M4 Memory Map, M4 can address only 1536MB of DDRC
(Start Address: 0x8000_0000; End Address: 0xDFFF_FFFF).
Correct DDRC size to 0x60000000.

Fixes: c0f037f6("mach-imx: bootaux: elf firmware support")
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
---

(no changes since v1)

 arch/arm/mach-imx/mx7/soc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefano Babic July 27, 2020, 7:09 p.m. UTC | #1
> From: Igor Opaniuk <igor.opaniuk@toradex.com>
> According to i.MX 7Solo Applications Processor Reference Manual,
> 2.1.3 Cortex-M4 Memory Map, M4 can address only 1536MB of DDRC
> (Start Address: 0x8000_0000; End Address: 0xDFFF_FFFF).
> Correct DDRC size to 0x60000000.
> Fixes: c0f037f6("mach-imx: bootaux: elf firmware support")
> Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/arch/arm/mach-imx/mx7/soc.c b/arch/arm/mach-imx/mx7/soc.c
index 798fe74a3d..9cb61f5c34 100644
--- a/arch/arm/mach-imx/mx7/soc.c
+++ b/arch/arm/mach-imx/mx7/soc.c
@@ -218,7 +218,7 @@  const struct rproc_att hostmap[] = {
 	{ 0x00940000, 0x00940000, 0x20000 }, /* OCRAM_PXP */
 	{ 0x20240000, 0x00940000, 0x20000 }, /* OCRAM_PXP */
 	{ 0x10000000, 0x80000000, 0x0fff0000 }, /* DDR Code alias */
-	{ 0x80000000, 0x80000000, 0xe0000000 }, /* DDRC */
+	{ 0x80000000, 0x80000000, 0x60000000 }, /* DDRC */
 	{ /* sentinel */ }
 };
 #endif