]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sunxi: dram_sun4i/5i: use DRAM_MEMORY_TYPE_DDR3 instead of magic number 3
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Thu, 2 Dec 2021 23:57:54 +0000 (00:57 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 30 Jan 2022 01:03:37 +0000 (01:03 +0000)
Since DRAM_MEMORY_TYPE_DDR3 is defined let's use it instead of magic
number 3.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
board/sunxi/dram_sun4i_auto.c
board/sunxi/dram_sun5i_auto.c

index e8bbee4ee5e010f7b79ccc597bed224e79b441cf..547d1c0cb4dea3fe2a261b47f0e9c8769f302824 100644 (file)
@@ -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,
index a5f4f8b7434f302563c47d822b2323920f92f87e..517506ccc4f0f5f457a51d5fb452fbe2b36768aa 100644 (file)
@@ -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,