summaryrefslogtreecommitdiff
path: root/include/configs/sifive-unmatched.h
diff options
context:
space:
mode:
authorZong Li <zong.li@sifive.com>2021-06-30 23:23:45 +0800
committerLeo Yu-Chi Liang <ycliang@andestech.com>2021-07-06 20:24:25 +0800
commit946afdf6209e19ce0b233ff938bc111ddbdceadf (patch)
tree05d151d0ea557ac8fe0059e7c6f2e5be3ac07ff8 /include/configs/sifive-unmatched.h
parentd6b156eb9061b5c6eafe48e3c238178351f772c9 (diff)
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 <paul.walmsley@sifive.com> Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com> Signed-off-by: Zong Li <zong.li@sifive.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Diffstat (limited to 'include/configs/sifive-unmatched.h')
-rw-r--r--include/configs/sifive-unmatched.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/configs/sifive-unmatched.h b/include/configs/sifive-unmatched.h
index 80cfd41ceb..d63a5f62fb 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 */