sunxi: dram_sun4i/5i: 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.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
This commit is contained in:
Giulio Benetti 2021-12-03 00:57:54 +01:00 committed by Andre Przywara
parent eb31a4a141
commit d0ffd15cff
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@
static struct dram_para dram_para = { static struct dram_para dram_para = {
.clock = CONFIG_DRAM_CLK, .clock = CONFIG_DRAM_CLK,
.type = 3, .type = DRAM_MEMORY_TYPE_DDR3,
.rank_num = 1, .rank_num = 1,
.density = 0, .density = 0,
.io_width = 0, .io_width = 0,

View file

@ -7,7 +7,7 @@
static struct dram_para dram_para = { static struct dram_para dram_para = {
.clock = CONFIG_DRAM_CLK, .clock = CONFIG_DRAM_CLK,
.mbus_clock = CONFIG_DRAM_MBUS_CLK, .mbus_clock = CONFIG_DRAM_MBUS_CLK,
.type = 3, .type = DRAM_MEMORY_TYPE_DDR3,
.rank_num = 1, .rank_num = 1,
.density = 0, .density = 0,
.io_width = 0, .io_width = 0,