]> git.dujemihanovic.xyz Git - u-boot.git/commit
85xx: bugfix for reading maximum TLB size on mpc85xx
authorFredrik Arnerup <fredrik.arnerup@edgeware.tv>
Tue, 2 Jun 2009 21:27:10 +0000 (16:27 -0500)
committerWolfgang Denk <wd@denx.de>
Tue, 9 Jun 2009 20:58:18 +0000 (22:58 +0200)
commit90d13b8ac3d515349626d7c8a3dc34ef38c43fa6
treed2610ded5f795be469922fd2916420bbd78862dc
parent1b5291dddf5f16c7ae10e3cb165882fa96038b26
85xx: bugfix for reading maximum TLB size on mpc85xx

The MAXSIZE field in the TLB1CFG register is 4 bits, not 8 bits.
This made setup_ddr_tlbs() try to set up a TLB larger than the e500 maximum
(256 MB)
which made u-boot hang in board_init_f() when trying to create a new stack
in RAM.
I have an mpc8540 with one 1GB dimm.

Signed-off-by: Fredrik Arnerup <fredrik.arnerup@edgeware.tv>
Signed-off-by: Andy Fleming <afleming@freescale.com>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
cpu/mpc85xx/tlb.c