From f8450829f921cf10667af98a8d08edfa3d998f04 Mon Sep 17 00:00:00 2001 From: Heiko Schocher Date: Tue, 1 Dec 2009 19:30:47 +0100 Subject: 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 --- board/mucmc52/mucmc52.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'board/mucmc52') diff --git a/board/mucmc52/mucmc52.c b/board/mucmc52/mucmc52.c index bac49be..b4ed735 100644 --- a/board/mucmc52/mucmc52.c +++ b/board/mucmc52/mucmc52.c @@ -31,6 +31,7 @@ */ #include +#include #include #include #include @@ -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) */ -- cgit v1.1 From 00b6d927ba8900cdf218b90b277e1090e284bea6 Mon Sep 17 00:00:00 2001 From: Heiko Schocher Date: Thu, 3 Dec 2009 11:20:06 +0100 Subject: 5xxx, fdt: move fdt_fixup_memory() to cpu.c file u-boot updates, before starting Linux, the memory node in the DTS. As this is a "standard" feature, move this functionality to the cpu.c file for mpc5xxx and mpc512x processors. Signed-off-by: Heiko Schocher --- board/mucmc52/mucmc52.c | 1 - 1 file changed, 1 deletion(-) (limited to 'board/mucmc52') diff --git a/board/mucmc52/mucmc52.c b/board/mucmc52/mucmc52.c index b4ed735..66973f0 100644 --- a/board/mucmc52/mucmc52.c +++ b/board/mucmc52/mucmc52.c @@ -404,6 +404,5 @@ 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) */ -- cgit v1.1