Skip to contentSkip to conversation

board/sunxi/dram_sun4i_auto: use DRAM_MEMORY_TYPE_DDR3 instead of magic number 3

PATCH New Giulio Benetti 1 participant 2 messages Dec 2, 2021 Arm/Allwinner sunXi SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 board/sunxi/dram_sun4i_auto: use DRAM_MEMORY_TYPE_DDR3 instead of magic number 3

Since DRAM_MEMORY_TYPE_DDR3 is defined let's use it instead of magic number 3.

---
 board/sunxi/dram_sun4i_auto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/sunxi/dram_sun4i_auto.c +1 -1
index e8bbee4ee5..547d1c0cb4 100644
@@ -4,7 +4,7 @@
 
 static struct dram_para dram_para = {
 	.clock = CONFIG_DRAM_CLK,
-	.type = 3,
+	.type = DRAM_MEMORY_TYPE_DDR3,
 	.rank_num = 1,
 	.density = 0,
 	.io_width = 0,
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 board/sunxi/dram_sun5i_auto: use DRAM_MEMORY_TYPE_DDR3 instead of magic number 3

Since DRAM_MEMORY_TYPE_DDR3 is defined let's use it instead of magic number 3.

---
 board/sunxi/dram_sun5i_auto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/sunxi/dram_sun5i_auto.c +1 -1
index a5f4f8b743..517506ccc4 100644
@@ -7,7 +7,7 @@
 static struct dram_para dram_para = {
 	.clock = CONFIG_DRAM_CLK,
 	.mbus_clock = CONFIG_DRAM_MBUS_CLK,
-	.type = 3,
+	.type = DRAM_MEMORY_TYPE_DDR3,
 	.rank_num = 1,
 	.density = 0,
 	.io_width = 0,
Signature · 1 line
2.25.1