[PATCH] board: xilinx: Enable changing default DTB pick up address

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] board: xilinx: Enable changing default DTB pick up address

Michal Simek-3
U-Boot on xilinx boards is checking one address where DTB can be placed as
the first location for DTB. Originally this code was developed for Versal
where QEMU was putting generated DTB for U-Boot to use.
The patch enables changing this address which is necessary for cases where
default address is pointing to location (DDR) which is not present. The
access to this location can cause exception.

Signed-off-by: Michal Simek <[hidden email]>
---

 board/xilinx/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/xilinx/Kconfig b/board/xilinx/Kconfig
index 73fc1be0141e..c80d0a881284 100644
--- a/board/xilinx/Kconfig
+++ b/board/xilinx/Kconfig
@@ -41,7 +41,7 @@ config XILINX_PS_INIT_FILE
 endif
 
 config XILINX_OF_BOARD_DTB_ADDR
- hex
+ hex "Default DTB pickup address"
  default 0x1000 if ARCH_VERSAL
  default 0x100000 if ARCH_ZYNQ || ARCH_ZYNQMP
  depends on OF_BOARD || OF_SEPARATE
--
2.28.0

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] board: xilinx: Enable changing default DTB pick up address

Michal Simek-4
čt 27. 8. 2020 v 13:54 odesílatel Michal Simek <[hidden email]> napsal:

>
> U-Boot on xilinx boards is checking one address where DTB can be placed as
> the first location for DTB. Originally this code was developed for Versal
> where QEMU was putting generated DTB for U-Boot to use.
> The patch enables changing this address which is necessary for cases where
> default address is pointing to location (DDR) which is not present. The
> access to this location can cause exception.
>
> Signed-off-by: Michal Simek <[hidden email]>
> ---
>
>  board/xilinx/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/board/xilinx/Kconfig b/board/xilinx/Kconfig
> index 73fc1be0141e..c80d0a881284 100644
> --- a/board/xilinx/Kconfig
> +++ b/board/xilinx/Kconfig
> @@ -41,7 +41,7 @@ config XILINX_PS_INIT_FILE
>  endif
>
>  config XILINX_OF_BOARD_DTB_ADDR
> -       hex
> +       hex "Default DTB pickup address"
>         default 0x1000 if ARCH_VERSAL
>         default 0x100000 if ARCH_ZYNQ || ARCH_ZYNQMP
>         depends on OF_BOARD || OF_SEPARATE
> --
> 2.28.0
>

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