diff options
author | Mike Looijmans <mike.looijmans@topic.nl> | 2016-07-26 07:34:07 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-08-08 13:32:52 -0400 |
commit | 5aa79f26762d197324866a0d0c2b31601a7fc8ee (patch) | |
tree | 3e5194d8a90c6b3eda98fcf28d2dd2eb804569ca /common | |
parent | 5405817a6e7a6538c4bcb1c3076ddc83fe5d03f9 (diff) |
spl_nor.c: Support devicetree sizes different from 16k
The devicetrees for various platforms already exceed 16k. Add a define
CONFIG_SYS_FDT_SIZE to specify the FDT size, and set to 16k for the
two boards that define this CONFIG_SYS_FDT_BASE parameter. This
allows platforms with larger devicetree blobs to boot from NOR.
Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Diffstat (limited to 'common')
-rw-r--r-- | common/spl/spl_nor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c index da2422f3051..8ea874c888e 100644 --- a/common/spl/spl_nor.c +++ b/common/spl/spl_nor.c @@ -40,11 +40,11 @@ int spl_nor_load_image(void) /* * Copy DT blob (fdt) to SDRAM. Passing pointer to - * flash doesn't work (16 KiB should be enough for DT) + * flash doesn't work */ memcpy((void *)CONFIG_SYS_SPL_ARGS_ADDR, (void *)(CONFIG_SYS_FDT_BASE), - (16 << 10)); + CONFIG_SYS_FDT_SIZE); return 0; } else { |