diff options
author | Heiko Schocher <hs@denx.de> | 2009-12-01 19:30:47 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-12-07 22:39:38 +0100 |
commit | f8450829f921cf10667af98a8d08edfa3d998f04 (patch) | |
tree | 6888303f3522eab1fa6b9049c6036d9a24972411 /board | |
parent | 0ec81db20294efdad2454a753e79f1fe244a43ca (diff) | |
download | u-boot-f8450829f921cf10667af98a8d08edfa3d998f04.tar.gz u-boot-f8450829f921cf10667af98a8d08edfa3d998f04.tar.xz u-boot-f8450829f921cf10667af98a8d08edfa3d998f04.zip |
52xx, manroland: add fdt_fixup_memory() in ft_board_setup()
To update the real memory size in the memory node on the
uc101 and mucmc52 boards call fdt_fixup_memory() in
ft_board_setup().
Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'board')
-rw-r--r-- | board/mucmc52/mucmc52.c | 2 | ||||
-rw-r--r-- | board/uc101/uc101.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/board/mucmc52/mucmc52.c b/board/mucmc52/mucmc52.c index bac49befff..b4ed7357e4 100644 --- a/board/mucmc52/mucmc52.c +++ b/board/mucmc52/mucmc52.c @@ -31,6 +31,7 @@ */ #include <common.h> +#include <fdt_support.h> #include <mpc5xxx.h> #include <pci.h> #include <malloc.h> @@ -403,5 +404,6 @@ void pci_init_board (void) void ft_board_setup(void *blob, bd_t *bd) { ft_cpu_setup(blob, bd); + fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize); } #endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */ diff --git a/board/uc101/uc101.c b/board/uc101/uc101.c index 4030b9d0d8..1485c0249b 100644 --- a/board/uc101/uc101.c +++ b/board/uc101/uc101.c @@ -31,6 +31,7 @@ */ #include <common.h> +#include <fdt_support.h> #include <mpc5xxx.h> #include <pci.h> #include <malloc.h> @@ -376,5 +377,6 @@ void hw_watchdog_reset(void) void ft_board_setup(void *blob, bd_t *bd) { ft_cpu_setup(blob, bd); + fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize); } #endif /* defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) */ |