From 946afdf6209e19ce0b233ff938bc111ddbdceadf Mon Sep 17 00:00:00 2001 From: Zong Li Date: Wed, 30 Jun 2021 23:23:45 +0800 Subject: board: sifive: unmatched: add initial support for a platform ID EEPROM Add initial support for the PCB description EEPROM for SiFive HiFive Unmatched boards. This implementation is refactored based on Paul Walmsley's porting and adopt the suggestions from David Abdurachmanov. Signed-off-by: Paul Walmsley Signed-off-by: David Abdurachmanov Signed-off-by: Zong Li Reviewed-by: Leo Yu-Chi Liang --- include/configs/sifive-unmatched.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/configs') diff --git a/include/configs/sifive-unmatched.h b/include/configs/sifive-unmatched.h index 80cfd41cebc..d63a5f62fbc 100644 --- a/include/configs/sifive-unmatched.h +++ b/include/configs/sifive-unmatched.h @@ -81,4 +81,10 @@ "fdt addr ${fdtcontroladdr};" #endif /* CONFIG_SPL_BUILD */ +#define CONFIG_SYS_EEPROM_BUS_NUM 0 +#define CONFIG_SYS_I2C_EEPROM_ADDR 0x54 +#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 0x1 + +#define CONFIG_ID_EEPROM + #endif /* __SIFIVE_UNMATCHED_H */ -- cgit v1.2.3