From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Date: Mon, 20 Apr 2020 10:28:08 +0200 Subject: [PATCH] common: Add Kconfig option for FDT mem alignment In-Reply-To: References: Message-ID: <3ec227d9-382e-29a0-4ea0-18a04b636080@xilinx.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 20. 04. 20 1:37, Simon Glass wrote: > On Mon, 13 Apr 2020 at 02:03, Michal Simek wrote: >> >> From: Ashok Reddy Soma >> >> 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 >> Signed-off-by: Michal Simek >> --- >> >> 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 https://lists.denx.de/pipermail/u-boot/2020-April/406438.html 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? Thanks, Michal