diff options
| author | Michal Simek <[email protected]> | 2022-09-27 09:55:46 +0200 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2022-10-05 08:43:53 +0200 |
| commit | 2fe55d1827ea215d6fed7f9485b3899c48fb163a (patch) | |
| tree | 78be8f47680a23e6f9cd17cfdff30eef4471a93f | |
| parent | 1323d08bdfdd76cf368de7b40ed876e336cdcb9a (diff) | |
xilinx: zynq: Enable early eeprom decoding
Xilinx Zynq evaluation boards have factory program content in eeprom.
Enable reading and decoding eeprom content to get information about board
name, revision and especially getting ethernet mac address.
Signed-off-by: Michal Simek <[email protected]>
Link: https://lore.kernel.org/r/db334bd3c0a377074a43b7ae479fade98efb545f.1664265344.git.michal.simek@amd.com
| -rw-r--r-- | board/xilinx/zynq/board.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c index c96433be693..17ee541bd84 100644 --- a/board/xilinx/zynq/board.c +++ b/board/xilinx/zynq/board.c @@ -37,6 +37,9 @@ int board_init(void) if (IS_ENABLED(CONFIG_SPL_BUILD)) printf("Silicon version:\t%d\n", zynq_get_silicon_version()); + if (CONFIG_IS_ENABLED(DM_I2C) && CONFIG_IS_ENABLED(I2C_EEPROM)) + xilinx_read_eeprom(); + return 0; } |
