diff options
author | Giulio Benetti <giulio.benetti@benettiengineering.com> | 2021-12-03 02:57:54 +0300 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2022-01-30 04:03:37 +0300 |
commit | d0ffd15cffa1467bcc5537d255e0d57d5a1c0128 (patch) | |
tree | 77b0139b0ebf610a136bc6b31cb6c042902ac848 /board/sunxi | |
parent | eb31a4a141bf401f92426bd053a965022e47290d (diff) | |
download | u-boot-d0ffd15cffa1467bcc5537d255e0d57d5a1c0128.tar.xz |
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>
Diffstat (limited to 'board/sunxi')
-rw-r--r-- | board/sunxi/dram_sun4i_auto.c | 2 | ||||
-rw-r--r-- | board/sunxi/dram_sun5i_auto.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/board/sunxi/dram_sun4i_auto.c b/board/sunxi/dram_sun4i_auto.c index e8bbee4ee5..547d1c0cb4 100644 --- a/board/sunxi/dram_sun4i_auto.c +++ b/board/sunxi/dram_sun4i_auto.c @@ -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, diff --git a/board/sunxi/dram_sun5i_auto.c b/board/sunxi/dram_sun5i_auto.c index a5f4f8b743..517506ccc4 100644 --- a/board/sunxi/dram_sun5i_auto.c +++ b/board/sunxi/dram_sun5i_auto.c @@ -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, |