u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* [PATCH] xilinx: zynq: Enable early eeprom decoding
@ 2022-09-27  7:55 Michal Simek
  2022-10-04 11:51 ` Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Simek @ 2022-09-27  7:55 UTC (permalink / raw)
  To: u-boot, git

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 <michal.simek@amd.com>
---

 board/xilinx/zynq/board.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c
index c96433be693b..17ee541bd840 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;
 }
 
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] xilinx: zynq: Enable early eeprom decoding
  2022-09-27  7:55 [PATCH] xilinx: zynq: Enable early eeprom decoding Michal Simek
@ 2022-10-04 11:51 ` Michal Simek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2022-10-04 11:51 UTC (permalink / raw)
  To: Michal Simek; +Cc: u-boot, git

út 27. 9. 2022 v 9:56 odesílatel Michal Simek <michal.simek@amd.com> napsal:
>
> 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 <michal.simek@amd.com>
> ---
>
>  board/xilinx/zynq/board.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c
> index c96433be693b..17ee541bd840 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;
>  }
>
> --
> 2.36.1
>

Applied.
M

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-04 11:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-27  7:55 [PATCH] xilinx: zynq: Enable early eeprom decoding Michal Simek
2022-10-04 11:51 ` Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).