Skip to contentSkip to conversation

include: configs: verdin-am62: drop unused sdram address

PATCH In review Marcel Ziswiler 3 participants 3 messages Aug 28, 2023 – Sep 9, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 include: configs: verdin-am62: drop unused sdram address

From: Marcel Ziswiler <[email protected]>

Drop unused macro. This was copied straight from the AM62x EVM but while meant for a second region of DDR this is not even needed for the AM62x EVM configurations and has meanwhile also been dropped there.

Note that on the Verdin AM62, we do auto-detect the amount of SDRAM.

While at it also update the comment noting that CFG_SYS_SDRAM_SIZE is the maximum which is only used for such auto-detection.

---

 include/configs/verdin-am62.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
include/configs/verdin-am62.h +1 -2
index 7990ea83102..e1a5f5ad44b 100644
@@ -13,8 +13,7 @@
 
 /* DDR Configuration */
 #define CFG_SYS_SDRAM_BASE	0x80000000
-#define CFG_SYS_SDRAM_BASE1	0x880000000
-#define CFG_SYS_SDRAM_SIZE	SZ_2G /* Maximum supported size */
+#define CFG_SYS_SDRAM_SIZE	SZ_2G /* Maximum supported size, auto-detection is used */
 
 #define MEM_LAYOUT_ENV_SETTINGS \
 	"fdt_addr_r=0x90200000\0" \
Signature · 1 line
2.36.1
Reviewed-by on v1 1/1
#1 lore raw

Hi Marcel,

Thank you for following up this quickly on this.

Quoted 6 lines · Marcel Ziswiler

From: Marcel Ziswiler <[email protected]>

Drop unused macro. This was copied straight from the AM62x EVM but while meant for a second region of DDR this is not even needed for the AM62x EVM configurations and has meanwhile also been dropped there.

Quoted 6 lines

Note that on the Verdin AM62, we do auto-detect the amount of SDRAM.

While at it also update the comment noting that CFG_SYS_SDRAM_SIZE is the maximum which is only used for such auto-detection.

Quoted 22 lines

---

 include/configs/verdin-am62.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
include/configs/verdin-am62.h +1 -2
index 7990ea83102..e1a5f5ad44b 100644
@@ -13,8 +13,7 @@
 
 /* DDR Configuration */
 #define CFG_SYS_SDRAM_BASE	0x80000000
-#define CFG_SYS_SDRAM_BASE1	0x880000000
-#define CFG_SYS_SDRAM_SIZE	SZ_2G /* Maximum supported size */
+#define CFG_SYS_SDRAM_SIZE	SZ_2G /* Maximum supported size, auto-detection is used */
 
 #define MEM_LAYOUT_ENV_SETTINGS \
 	"fdt_addr_r=0x90200000\0" \
Signature · 1 line
2.36.1
#2 lore raw
In reply to Marcel Ziswiler
Quoted 6 lines · Marcel Ziswiler

From: Marcel Ziswiler <[email protected]>

Drop unused macro. This was copied straight from the AM62x EVM but while meant for a second region of DDR this is not even needed for the AM62x EVM configurations and has meanwhile also been dropped there.

Quoted 7 lines

Note that on the Verdin AM62, we do auto-detect the amount of SDRAM.

While at it also update the comment noting that CFG_SYS_SDRAM_SIZE is the maximum which is only used for such auto-detection.

Applied to u-boot/next, thanks!

Signature · 1 line
Tom