]> git.dujemihanovic.xyz Git - u-boot.git/commit
ram: starfive: Read memory size information from EEPROM
authorYanhong Wang <yanhong.wang@starfivetech.com>
Thu, 15 Jun 2023 09:36:51 +0000 (17:36 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 12 Jul 2023 05:21:40 +0000 (13:21 +0800)
commit38d900b409199df02a1a26dfcb464d4d2b6e27d2
treed808b9a2b1549c24b71d1683331e6803d47f169d
parent99f3a43d1cbc9abe14839734bb35444c1633f836
ram: starfive: Read memory size information from EEPROM

StarFive VisionFive 2 has two versions, 1.2A and 1.3B, each version of
DDR capacity includes 2G/4G/8G, a DT can not support multiple
capacities, so the capacity size information is recorded to EEPROM, when
DDR initialization required capacity size information is read from
EEPROM.

If there is no information in EEPROM, it is initialized with the default
size defined in DT.

Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/cpu/jh7110/spl.c
drivers/ram/starfive/starfive_ddr.c