mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-16 23:07:00 +00:00
PPC4xx: Denali core: Fix incorrect DDR row bits
The SPD detection code for the Denali memory controller used on some ppc4xx processors incorrectly encodes DDR0_42. With certain memory configurations, this can cause the bootwrapper to incorrectly calculate the installed memory size, because the number of row bits is wrong. This patch fixes that encoding. Signed-off-by: Mike Nuss <mike@terascala.com> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
99dbd4efd6
commit
54f5f056aa
1 changed files with 1 additions and 1 deletions
|
@ -1159,7 +1159,7 @@ phys_size_t initdram(int board_type)
|
|||
|
||||
mtsdram(DDR0_31, DDR0_31_XOR_CHECK_BITS_ENCODE(0x0000));
|
||||
|
||||
mtsdram(DDR0_42, DDR0_42_ADDR_PINS_DECODE(14 - rows) |
|
||||
mtsdram(DDR0_42, DDR0_42_ADDR_PINS_ENCODE(14 - rows) |
|
||||
DDR0_42_CASLAT_LIN_GATE_ENCODE(2 * cas_latency));
|
||||
|
||||
program_ddr0_43(dimm_ranks, iic0_dimm_addr, num_dimm_banks, sdram_freq,
|
||||
|
|
Loading…
Add table
Reference in a new issue