diff options
author | Zong Li | 2021-06-30 23:23:45 +0800 |
---|---|---|
committer | Leo Yu-Chi Liang | 2021-07-06 20:24:25 +0800 |
commit | 946afdf6209e19ce0b233ff938bc111ddbdceadf (patch) | |
tree | 05d151d0ea557ac8fe0059e7c6f2e5be3ac07ff8 /include/configs | |
parent | d6b156eb9061b5c6eafe48e3c238178351f772c9 (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')
-rw-r--r-- | include/configs/sifive-unmatched.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 */ |