Skip to contentSkip to conversation

TQM5200: use automatic fdt memory fixup

PATCH New Martin Krause 2 participants 2 messages Feb 25, 2008 – Mar 2, 2008

lore
Share & tools
lore
#0 lore raw

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.

--
I consider this patch as bugfix, since linux 2.6 will not boot on boards with less SDRAM than the fixed value in the TQM5200 fdt (64 MiB AFAIK)
---

 board/tqm5200/tqm5200.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
board/tqm5200/tqm5200.c +1 -0
index 8c3f701..97e3099 100644
@@ -795,5 +795,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) */
#1 lore raw

PATCH 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 and TB5200_B to fixup the /memory node with the memory values detected by U-Boot.

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 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
The sooner our happiness together begins, the longer it will last.
	-- Miramanee, "The Paradise Syndrome", stardate 4842.6