]> git.sur5r.net Git - u-boot/commit
board/tqm85xx: Create and tear down TLB for get_ram_size()
authorBecky Bruce <beckyb@kernel.crashing.org>
Mon, 18 Jul 2011 23:49:16 +0000 (18:49 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 22 Jul 2011 08:07:47 +0000 (03:07 -0500)
commit51f924e5ce4f69659ef385739f4604054d9b5bb7
treefeb642da76d6cb6726eede03341ab51e9ff69f3a
parent9cdfe2810693135773602e7c98b78a4af2873a61
board/tqm85xx: Create and tear down TLB for get_ram_size()

We need a TLB entry to call get_ram_size(); the common code doesn't create
one until *after* fixed_sdram() has determined the size.  So we set up tlbs
for the max possible size and tear them down once we're done with
get_ram_size(); the common 85xx code will then set up a final set of tlb
entries for the *actual* detected size of ddr.

This prevents us from having TLB entries that are larger than DDR sitting
around for very long, which is not a recommended scenario.

Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
board/tqc/tqm85xx/sdram.c
include/configs/TQM85xx.h