diff mbox series

[v2,5/5] platform: kendryte/k210: Add some padding for FDT fixups

Message ID 20201018051449.2368918-6-anup.patel@wdc.com
State Accepted
Headers show
Series Builtin DTB improvements | expand

Commit Message

Anup Patel Oct. 18, 2020, 5:14 a.m. UTC
The Kendryte K210 platform has built-in DTB and does not provides
FW_PAYLOAD_FDT_ADDR. This means the FDT fixups will be done on
the built-in DTB in absence of FW_PAYLOAD_FDT_ADDR. This patch
adds some padding in built-in DTB for FDT fixups.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
---
 platform/kendryte/k210/objects.mk | 1 +
 1 file changed, 1 insertion(+)

Comments

Anup Patel Oct. 19, 2020, 4:17 a.m. UTC | #1
> -----Original Message-----
> From: Anup Patel <Anup.Patel@wdc.com>
> Sent: 18 October 2020 10:45
> To: Atish Patra <Atish.Patra@wdc.com>; Alistair Francis
> <Alistair.Francis@wdc.com>
> Cc: Damien Le Moal <Damien.LeMoal@wdc.com>; Anup Patel
> <anup@brainfault.org>; opensbi@lists.infradead.org; Anup Patel
> <Anup.Patel@wdc.com>
> Subject: [PATCH v2 5/5] platform: kendryte/k210: Add some padding for FDT
> fixups
> 
> The Kendryte K210 platform has built-in DTB and does not provides
> FW_PAYLOAD_FDT_ADDR. This means the FDT fixups will be done on the
> built-in DTB in absence of FW_PAYLOAD_FDT_ADDR. This patch adds some
> padding in built-in DTB for FDT fixups.
> 
> Signed-off-by: Anup Patel <anup.patel@wdc.com>
> Reviewed-by: Atish Patra <atish.patra@wdc.com>
> ---
>  platform/kendryte/k210/objects.mk | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/platform/kendryte/k210/objects.mk
> b/platform/kendryte/k210/objects.mk
> index 106f9f2..b74da74 100644
> --- a/platform/kendryte/k210/objects.mk
> +++ b/platform/kendryte/k210/objects.mk
> @@ -11,3 +11,4 @@ platform-objs-y += platform.o
> 
>  platform-objs-y += k210.o
>  platform-varprefix-k210.o = dt_k210
> +platform-padding-k210.o = 2048
> --
> 2.25.1

Applied this patch to the riscv/opensbi repo

Regards,
Anup
diff mbox series

Patch

diff --git a/platform/kendryte/k210/objects.mk b/platform/kendryte/k210/objects.mk
index 106f9f2..b74da74 100644
--- a/platform/kendryte/k210/objects.mk
+++ b/platform/kendryte/k210/objects.mk
@@ -11,3 +11,4 @@  platform-objs-y += platform.o
 
 platform-objs-y += k210.o
 platform-varprefix-k210.o = dt_k210
+platform-padding-k210.o = 2048