[U-Boot] [PATCH V2 2/2] board/tqm85xx: Create and tear down TLB for get_ram_size()

Kumar Gala galak at kernel.crashing.org
Fri Jul 22 08:55:06 CEST 2011


On Jul 18, 2011, at 6:49 PM, Becky Bruce wrote:

> 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 at kernel.crashing.org>
> ---
> board/tqc/tqm85xx/sdram.c |    7 +++++++
> include/configs/TQM85xx.h |    6 ++++++
> 2 files changed, 13 insertions(+), 0 deletions(-)

applied to 85xx

- k


More information about the U-Boot mailing list