public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] PPC4xx: Denali core: Fix incorrect DDR row bits
@ 2009-10-05 16:33 Mike Nuss
  2009-10-07  7:36 ` Stefan Roese
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Nuss @ 2009-10-05 16:33 UTC (permalink / raw)
  To: u-boot

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>

diff --git a/cpu/ppc4xx/denali_spd_ddr2.c b/cpu/ppc4xx/denali_spd_ddr2.c
index 4705e21..5858cb3 100644
--- a/cpu/ppc4xx/denali_spd_ddr2.c
+++ b/cpu/ppc4xx/denali_spd_ddr2.c
@@ -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, 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] PPC4xx: Denali core: Fix incorrect DDR row bits
  2009-10-05 16:33 [U-Boot] [PATCH] PPC4xx: Denali core: Fix incorrect DDR row bits Mike Nuss
@ 2009-10-07  7:36 ` Stefan Roese
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Roese @ 2009-10-07  7:36 UTC (permalink / raw)
  To: u-boot

On Monday 05 October 2009 18:33:28 Mike Nuss wrote:
> 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.

Applied to u-boot-ppc4xx. Thanks.

Cheers,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-07  7:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-05 16:33 [U-Boot] [PATCH] PPC4xx: Denali core: Fix incorrect DDR row bits Mike Nuss
2009-10-07  7:36 ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox