summaryrefslogtreecommitdiff
path: root/include/fdt_support.h
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2009-10-21 11:59:52 +0200
committerStefan Roese <sr@denx.de>2009-10-23 15:55:23 +0200
commit30d45c0d3ea2231f9131276ea113595959a0720e (patch)
tree8b96098e1b7d458715d1803b79a7c6d67efc2dbb /include/fdt_support.h
parent76706cb86b1c76954ff5353db6757ab99cfd95fb (diff)
downloadu-boot-imx-30d45c0d3ea2231f9131276ea113595959a0720e.zip
u-boot-imx-30d45c0d3ea2231f9131276ea113595959a0720e.tar.gz
u-boot-imx-30d45c0d3ea2231f9131276ea113595959a0720e.tar.bz2
fdt: Add fdt_fixup_nor_flash_size() to fixup NOR FLASH size in dtb
This function can be used to update the size in the "reg" property of the NOR FLASH device nodes. This is necessary for boards with non-fixed NOR FLASH sizes. Signed-off-by: Stefan Roese <sr@denx.de> Acked-by: Gerald Van Baren <vanbaren@cideas.com> Acked-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'include/fdt_support.h')
-rw-r--r--include/fdt_support.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h
index 16734c5..0a9dd0d 100644
--- a/include/fdt_support.h
+++ b/include/fdt_support.h
@@ -79,5 +79,7 @@ void ft_pci_setup(void *blob, bd_t *bd);
void set_working_fdt_addr(void *addr);
int fdt_resize(void *blob);
+int fdt_fixup_nor_flash_size(void *blob, int cs, u32 size);
+
#endif /* ifdef CONFIG_OF_LIBFDT */
#endif /* ifndef __FDT_SUPPORT_H */