All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] arm64: zynqmp: Add missing zynq_board_read_rom_ethaddr() prototype
@ 2017-12-08 14:40 Michal Simek
  2017-12-08 14:40 ` [U-Boot] [PATCH 2/2] arm64: zynqmp: Add support for zynqmp automotive silicons Michal Simek
  2017-12-09 19:34 ` [U-Boot] [PATCH 1/2] arm64: zynqmp: Add missing zynq_board_read_rom_ethaddr() prototype Joe Hershberger
  0 siblings, 2 replies; 3+ messages in thread
From: Michal Simek @ 2017-12-08 14:40 UTC (permalink / raw)
  To: u-boot

Add missing zynq_board_read_rom_ethaddr() prototype reported by sparse.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 arch/arm/include/asm/arch-zynqmp/sys_proto.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/include/asm/arch-zynqmp/sys_proto.h b/arch/arm/include/asm/arch-zynqmp/sys_proto.h
index f256c7d4a996..ad2856863363 100644
--- a/arch/arm/include/asm/arch-zynqmp/sys_proto.h
+++ b/arch/arm/include/asm/arch-zynqmp/sys_proto.h
@@ -30,6 +30,7 @@ enum {
 	TCM_SPLIT,
 };
 
+int zynq_board_read_rom_ethaddr(unsigned char *ethaddr);
 unsigned int zynqmp_get_silicon_version(void);
 
 void psu_init(void);
-- 
1.9.1

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

* [U-Boot] [PATCH 2/2] arm64: zynqmp: Add support for zynqmp automotive silicons
  2017-12-08 14:40 [U-Boot] [PATCH 1/2] arm64: zynqmp: Add missing zynq_board_read_rom_ethaddr() prototype Michal Simek
@ 2017-12-08 14:40 ` Michal Simek
  2017-12-09 19:34 ` [U-Boot] [PATCH 1/2] arm64: zynqmp: Add missing zynq_board_read_rom_ethaddr() prototype Joe Hershberger
  1 sibling, 0 replies; 3+ messages in thread
From: Michal Simek @ 2017-12-08 14:40 UTC (permalink / raw)
  To: u-boot

Remove silicon prefix. Automotive grade devices are using xazu instead
of xczu prefix.

The patch "fpga: xilinx: Check for substring in device ID validation"
(sha1: f72132673a01216e760864e442f168977cce2bd2)
enables this functionality for zynq devices that only substrings are
checked.
Unfortunately there is no way how to detect device grade that's why
this change is reasonable.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 board/xilinx/zynqmp/zynqmp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index 7aa9628414fe..44af49782cce 100644
--- a/board/xilinx/zynqmp/zynqmp.c
+++ b/board/xilinx/zynqmp/zynqmp.c
@@ -260,10 +260,10 @@ int board_init(void)
 	if (current_el() != 3) {
 		static char version[ZYNQMP_VERSION_SIZE];
 
-		strncat(version, "xczu", 4);
+		strncat(version, "zu", 2);
 		zynqmppl.name = strncat(version,
 					zynqmp_get_silicon_idcode_name(),
-					ZYNQMP_VERSION_SIZE - 5);
+					ZYNQMP_VERSION_SIZE - 3);
 		printf("Chip ID:\t%s\n", zynqmppl.name);
 		fpga_init();
 		fpga_add(fpga_xilinx, &zynqmppl);
-- 
1.9.1

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

* [U-Boot] [PATCH 1/2] arm64: zynqmp: Add missing zynq_board_read_rom_ethaddr() prototype
  2017-12-08 14:40 [U-Boot] [PATCH 1/2] arm64: zynqmp: Add missing zynq_board_read_rom_ethaddr() prototype Michal Simek
  2017-12-08 14:40 ` [U-Boot] [PATCH 2/2] arm64: zynqmp: Add support for zynqmp automotive silicons Michal Simek
@ 2017-12-09 19:34 ` Joe Hershberger
  1 sibling, 0 replies; 3+ messages in thread
From: Joe Hershberger @ 2017-12-09 19:34 UTC (permalink / raw)
  To: u-boot

On Fri, Dec 8, 2017 at 8:40 AM, Michal Simek <michal.simek@xilinx.com> wrote:
> Add missing zynq_board_read_rom_ethaddr() prototype reported by sparse.
>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>

Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>

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

end of thread, other threads:[~2017-12-09 19:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-08 14:40 [U-Boot] [PATCH 1/2] arm64: zynqmp: Add missing zynq_board_read_rom_ethaddr() prototype Michal Simek
2017-12-08 14:40 ` [U-Boot] [PATCH 2/2] arm64: zynqmp: Add support for zynqmp automotive silicons Michal Simek
2017-12-09 19:34 ` [U-Boot] [PATCH 1/2] arm64: zynqmp: Add missing zynq_board_read_rom_ethaddr() prototype Joe Hershberger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.