Skip to content

Fix TQM8560 DDR boot issue

Becky Bruce u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v13 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2powerpc/mpc85xx: Add clear_ddr_tlbs functionarch/powerpc/cpu/mpc85xx/cpu.c arch/powerpc/cpu/mpc85xx/tlb.c arch/powerpc/include/asm/mmu.h+33 -112 replies
2/2board/tqm85xx: Create and tear down TLB for get_ram_size()board/tqc/tqm85xx/sdram.c include/configs/TQM85xx.h+13 -02 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchWolfgang Denk
1/2T-b
2/2T-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [U-Boot] [PATCH v2 0/2] Fix TQM8560 DDR boot issue

Series to fix the TQM85xx issue reported by Wolfgang.... the problem turned out to be that those boards use get_ram_size(), which requires that a TLB entry be set up for the DDR region. My earlier patches changed the way this was done and broke this.

I've created a new function, clear_ddr_tlbs(), so that there is now a setup_ddr_tlbs() and a matching clear_ddr_tlbs() that boards can use if they need to temporarily set up a TLB entry for this purpose. The tqm85xx ddr init code now uses this and the board is able to boot.

NOTE: There was another patch in this series that changed some include logic in the TQM85xx.h header file. I have dropped that patch as it was screwed up and not needed.

Cheers,
Becky

 arch/powerpc/cpu/mpc85xx/cpu.c |   14 +++-----------
 arch/powerpc/cpu/mpc85xx/tlb.c |   29 +++++++++++++++++++++++++++++
 arch/powerpc/include/asm/mmu.h |    1 +
 board/tqc/tqm85xx/sdram.c      |    7 +++++++
 include/configs/TQM85xx.h      |    6 ++++++
 5 files changed, 46 insertions(+), 11 deletions(-)