[PATCH] common: Add Kconfig option for FDT mem alignment

Michal Simek michal.simek at xilinx.com
Mon Apr 20 10:28:08 CEST 2020

On 20. 04. 20 1:37, Simon Glass wrote:
> On Mon, 13 Apr 2020 at 02:03, Michal Simek <michal.simek at xilinx.com> wrote:
>> From: Ashok Reddy Soma <ashok.reddy.soma at xilinx.com>
>> FDT memory is aligned by 4KB. This is hardcoded in common/board_f.c.
>> Add Kconfig option, assign default value of 0x1000 and enable option to
>> change this value.
>> Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma at xilinx.com>
>> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
>> ---
>>  common/board_f.c | 3 ++-
>>  dts/Kconfig      | 7 +++++++
>>  2 files changed, 9 insertions(+), 1 deletion(-)
> +Marek since he is doing a similar thing

I talked to Marek and his approach is different

He is adding padding to DTB and based on our chat he wants to touch dtb
before this space is allocated. That's why I still don't think that this
4k space is really used anywhere.

It means I am heading to v2 where DTB start address should be aligned to
start at 64bit aligned address and remove this extra unused space. If
someone requires to have more space it should be done by adding padding
before DTB is built.

What do you think?


More information about the U-Boot mailing list