[U-Boot] [PATCH] spl_nor.c: Support devicetree sizes different from 16k
Tom Rini
trini at konsulko.com
Mon Jul 25 15:48:16 CEST 2016
On Mon, Jul 25, 2016 at 01:20:39PM +0200, Mike Looijmans wrote:
> The devicetrees for various platforms already exceed 16k. Add a define
> CONFIG_SYS_FDT_SIZE to specify the FDT size, and default to 16k. This
> allows platforms with larger devicetree blobs to boot from NOR.
Ug, yes, that is too small.
> Signed-off-by: Mike Looijmans <mike.looijmans at topic.nl>
> ---
> common/spl/spl_nor.c | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c
> index da2422f..b37a023 100644
> --- a/common/spl/spl_nor.c
> +++ b/common/spl/spl_nor.c
> @@ -7,6 +7,11 @@
> #include <common.h>
> #include <spl.h>
>
> +/* 16 KiB default size for DT */
> +#ifndef CONFIG_SYS_FDT_SIZE
> +# define CONFIG_SYS_FDT_SIZE (16<<10)
> +#endif
There's not a lot of CONFIG_SPL_NOR_SUPPORT boards today, so can we
please move this into the config.h file for all, rather than "hide" this
here? Thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160725/581a1437/attachment.sig>
More information about the U-Boot
mailing list