TQM5200: use automatic fdt memory fixup
PATCH 1/1 TQM5200: use automatic fdt memory fixup
Call fdt_fixup_memory() on the boards TQM5200, TQM5200_B, TQM5200S, TB5200 and TB5200_B to fixup the /memory node with the memory values detected by U-Boot.
Signed-off-by Martin Krause <[email protected]>
---
I forgot to include the header file. Please ignore the first version of the patch. Not my day ...
---
board/tqm5200/tqm5200.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
board/tqm5200/tqm5200.c +5 -0
@@ -43,6 +43,10 @@#include "mt48lc16m16a2-75.h" #endif +#ifdef CONFIG_OF_LIBFDT +#include <fdt_support.h> +#endif /* CONFIG_OF_LIBFDT */ +DECLARE_GLOBAL_DATA_PTR ;#ifdef CONFIG_PS2MULT
@@ -795,5 +799,6 @@ int board_get_height (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) */
Wolfgang Denk
AppliedPATCH 1/1 TQM5200: use automatic fdt memory fixup
Quoted 5 lines · In message <[email protected]> you wrote:
Call
fdt_fixup_memory()on the boards TQM5200,TQM5200_B, TQM5200S, TB5200 andTB5200_Bto fixup the /memory node with the memory values detected by U-Boot.Signed-off-by Martin Krause <[email protected]>
Applied, thanks.
Quoted 2 lines
I forgot to include the header file. Please ignore the first version of the patch. Not my day ...
git fixed this cleanly :-)
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de To program is to be.