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)
commit05e254862f201ae93fdf1f2e4fc0de203d25d325
tree737e407e044b851a3e8d5b751615959b16235d95
parent564d630e2653901f1f115a933a7390f884b9a24f
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