diff mbox series

ARM: dts: renesas: Reserve space in 64bit R-Car DTs

Message ID 20240519204044.187165-1-marek.vasut+renesas@mailbox.org
State New
Delegated to: Marek Vasut
Headers show
Series ARM: dts: renesas: Reserve space in 64bit R-Car DTs | expand

Commit Message

Marek Vasut May 19, 2024, 8:40 p.m. UTC
Reserve 4 kiB of space in 64bit R-Car DTs when those DTs are compiled
to permit patching in OpTee-OS /firmware node, /reserved-memory node,
possibly also additional /memory@ nodes and RPC node by TFA.

This duplicates behavior in arch/arm/dts/Makefile with OF_UPSTREAM.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
---
Cc: Sumit Garg <sumit.garg@linaro.org>
Cc: Tom Rini <trini@konsulko.com>
---
 dts/upstream/src/arm64/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Sumit Garg May 20, 2024, 9:55 a.m. UTC | #1
On Mon, 20 May 2024 at 02:11, Marek Vasut
<marek.vasut+renesas@mailbox.org> wrote:
>
> Reserve 4 kiB of space in 64bit R-Car DTs when those DTs are compiled
> to permit patching in OpTee-OS /firmware node, /reserved-memory node,
> possibly also additional /memory@ nodes and RPC node by TFA.
>
> This duplicates behavior in arch/arm/dts/Makefile with OF_UPSTREAM.
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
> ---
> Cc: Sumit Garg <sumit.garg@linaro.org>
> Cc: Tom Rini <trini@konsulko.com>
> ---
>  dts/upstream/src/arm64/Makefile | 4 ++++
>  1 file changed, 4 insertions(+)
>

Reviewed-by: Sumit Garg <sumit.garg@linaro.org>

-Sumit

> diff --git a/dts/upstream/src/arm64/Makefile b/dts/upstream/src/arm64/Makefile
> index 9a8f6aa3584..26a83d3d29d 100644
> --- a/dts/upstream/src/arm64/Makefile
> +++ b/dts/upstream/src/arm64/Makefile
> @@ -7,6 +7,10 @@ targets += $(dtb-y)
>  # Add any required device tree compiler flags here
>  DTC_FLAGS += -a 0x8
>
> +ifdef CONFIG_RCAR_64
> +DTC_FLAGS += -R 4 -p 0x1000
> +endif
> +
>  PHONY += dtbs
>  dtbs: $(addprefix $(obj)/, $(dtb-y))
>         @:
> --
> 2.43.0
>
diff mbox series

Patch

diff --git a/dts/upstream/src/arm64/Makefile b/dts/upstream/src/arm64/Makefile
index 9a8f6aa3584..26a83d3d29d 100644
--- a/dts/upstream/src/arm64/Makefile
+++ b/dts/upstream/src/arm64/Makefile
@@ -7,6 +7,10 @@  targets += $(dtb-y)
 # Add any required device tree compiler flags here
 DTC_FLAGS += -a 0x8
 
+ifdef CONFIG_RCAR_64
+DTC_FLAGS += -R 4 -p 0x1000
+endif
+
 PHONY += dtbs
 dtbs: $(addprefix $(obj)/, $(dtb-y))
 	@: