diff options
author | Samin Guo <samin.guo@starfivetech.com> | 2023-07-07 10:22:36 +0300 |
---|---|---|
committer | Samin Guo <samin.guo@starfivetech.com> | 2023-07-10 06:36:17 +0300 |
commit | b354251c68d6ee4404ec08159a3d7a7bc948f78e (patch) | |
tree | 4388a512c7c69e30621f0672d385324eb232add9 /arch | |
parent | 496d25d55c6e90cabe38395f8faa5ff5d7d9473a (diff) | |
download | u-boot-b354251c68d6ee4404ec08159a3d7a7bc948f78e.tar.xz |
dram: jh7110: Macro definitions STARFIVE_JH7110_EEPROM_DDRINFO_OFFSET
In order to read DDR info from eeprom.
Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/riscv/cpu/jh7110/dram.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/riscv/cpu/jh7110/dram.c b/arch/riscv/cpu/jh7110/dram.c index ad8baeba93..ddcb3da64e 100644 --- a/arch/riscv/cpu/jh7110/dram.c +++ b/arch/riscv/cpu/jh7110/dram.c @@ -10,6 +10,7 @@ #include <linux/sizes.h> DECLARE_GLOBAL_DATA_PTR; +#define STARFIVE_JH7110_EEPROM_DDRINFO_OFFSET 91 static bool check_eeprom_dram_info(phys_size_t size) { @@ -34,7 +35,7 @@ int dram_init(void) data = 0; len = 1; - offset = 91; /*offset of memory size stored in eeprom*/ + offset = STARFIVE_JH7110_EEPROM_DDRINFO_OFFSET; /*offset of memory size stored in eeprom*/ ret = fdtdec_setup_mem_size_base(); if (ret) goto err; |