All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: xilinx: Never touch DDR if system has no DDR
@ 2020-03-23 14:46 Michal Simek
  2020-04-06 11:09 ` Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Simek @ 2020-03-23 14:46 UTC (permalink / raw)
  To: u-boot

If DDR is not mapped do not touch it. Default
XILINX_OF_BOARD_DTB_ADDR is pointing to DDR.

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

Depends on https://lists.denx.de/pipermail/u-boot/2020-March/403953.html
---
 board/xilinx/common/board.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c
index f87e2e91059e..e83c692f2174 100644
--- a/board/xilinx/common/board.c
+++ b/board/xilinx/common/board.c
@@ -41,12 +41,16 @@ int zynq_board_read_rom_ethaddr(unsigned char *ethaddr)
 #if defined(CONFIG_OF_BOARD) || defined(CONFIG_OF_SEPARATE)
 void *board_fdt_blob_setup(void)
 {
-	static void *fdt_blob = (void *)CONFIG_XILINX_OF_BOARD_DTB_ADDR;
+	static void *fdt_blob;
+
+#if !defined(CONFIG_VERSAL_NO_DDR) && !defined(CONFIG_ZYNQMP_NO_DDR)
+	fdt_blob = (void *)CONFIG_XILINX_OF_BOARD_DTB_ADDR;
 
 	if (fdt_magic(fdt_blob) == FDT_MAGIC)
 		return fdt_blob;
 
 	debug("DTB is not passed via %p\n", fdt_blob);
+#endif
 
 #ifdef CONFIG_SPL_BUILD
 	/* FDT is at end of BSS unless it is in a different memory region */
-- 
2.25.1

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

* [PATCH] arm64: xilinx: Never touch DDR if system has no DDR
  2020-03-23 14:46 [PATCH] arm64: xilinx: Never touch DDR if system has no DDR Michal Simek
@ 2020-04-06 11:09 ` Michal Simek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2020-04-06 11:09 UTC (permalink / raw)
  To: u-boot

po 23. 3. 2020 v 15:46 odes?latel Michal Simek <michal.simek@xilinx.com> napsal:
>
> If DDR is not mapped do not touch it. Default
> XILINX_OF_BOARD_DTB_ADDR is pointing to DDR.
>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
>
> Depends on https://lists.denx.de/pipermail/u-boot/2020-March/403953.html
> ---
>  board/xilinx/common/board.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c
> index f87e2e91059e..e83c692f2174 100644
> --- a/board/xilinx/common/board.c
> +++ b/board/xilinx/common/board.c
> @@ -41,12 +41,16 @@ int zynq_board_read_rom_ethaddr(unsigned char *ethaddr)
>  #if defined(CONFIG_OF_BOARD) || defined(CONFIG_OF_SEPARATE)
>  void *board_fdt_blob_setup(void)
>  {
> -       static void *fdt_blob = (void *)CONFIG_XILINX_OF_BOARD_DTB_ADDR;
> +       static void *fdt_blob;
> +
> +#if !defined(CONFIG_VERSAL_NO_DDR) && !defined(CONFIG_ZYNQMP_NO_DDR)
> +       fdt_blob = (void *)CONFIG_XILINX_OF_BOARD_DTB_ADDR;
>
>         if (fdt_magic(fdt_blob) == FDT_MAGIC)
>                 return fdt_blob;
>
>         debug("DTB is not passed via %p\n", fdt_blob);
> +#endif
>
>  #ifdef CONFIG_SPL_BUILD
>         /* FDT is at end of BSS unless it is in a different memory region */
> --
> 2.25.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:[~2020-04-06 11:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-23 14:46 [PATCH] arm64: xilinx: Never touch DDR if system has no DDR Michal Simek
2020-04-06 11:09 ` Michal Simek

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.