powerpc/mpc85xx: Revise workaround for DDR-A003
authorYork Sun <yorksun@freescale.com>
Wed, 8 Jan 2014 21:00:42 +0000 (13:00 -0800)
committerYork Sun <yorksun@freescale.com>
Tue, 21 Jan 2014 21:40:52 +0000 (13:40 -0800)
commit76356eb57cdf607d4e77dd57cd0449d7f5b7bdab
tree8d2ce217904f1c62f5621eca34d898dfffe57c7e
parentb518816423014587ce89be242503e439c7ade956
powerpc/mpc85xx: Revise workaround for DDR-A003

Existing workaround only handles one RDIMM on reference design. In case
of two RDIMMs being used, the workaround requires two separate writes to
DDR_SDRAM_MD_CNTL register.

This patch also restores two debug registers changed by the workaround.

Signed-off-by: York Sun <yorksun@freescale.com>
CC: Ben Collins <ben.c@servergy.com>
CC: James Yang <James.Yang@freescale.com>
drivers/ddr/fsl/mpc85xx_ddr_gen3.c