]> git.baikalelectronics.ru Git - uboot.git/commit
board: sifive: Add an interface to get PCB revision
authorZong Li <zong.li@sifive.com>
Wed, 30 Jun 2021 15:23:48 +0000 (23:23 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 6 Jul 2021 12:24:25 +0000 (20:24 +0800)
commitae31d0bcc3a85185415db1a5ab1309c7e2af8865
tree737e407e044b851a3e8d5b751615959b16235d95
parent6ec988ed6e5503077f8dcf1874543db2a930b860
board: sifive: Add an interface to get PCB revision

There are different DDR parameter settings for different board
revisions. Add a new interface to get the PCB revision to determine
which DT should be selected at runtime.

Signed-off-by: Zong Li <zong.li@sifive.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/include/asm/arch-fu740/eeprom.h [new file with mode: 0644]
board/sifive/unmatched/hifive-platform-i2c-eeprom.c