Add support for 8641 Rev 2 silicon.
authorEd Swarthout <ed.swarthout@freescale.com>
Thu, 7 Dec 2006 16:34:14 +0000 (10:34 -0600)
committerJon Loeliger <jdl@freescale.com>
Thu, 22 Mar 2007 16:02:34 +0000 (11:02 -0500)
Without this patch, I am unable to get to the prompt on rev 2 silicon.
Only set ddrioovcr for rev1.

Signed-off-by: Ed Swarthout<ed.swarthout@freescale.com>
Signed-off-by: Jon Loeliger <jdl@freescale.com>
cpu/mpc86xx/spd_sdram.c

index b18e8225defb3a0e3963a5f63279abc0126ba736..ac9ff81ce602e1f9573254cfbcf5e26ef7ec3367 100644 (file)
@@ -284,9 +284,9 @@ spd_init(unsigned char i2c_address, unsigned int ddr_num,
        }
 
        /*
-        * Adjust DDR II IO voltage biasing.  It just makes it work.
+        * Adjust DDR II IO voltage biasing.  Rev1 only
         */
-       if (spd.mem_type == SPD_MEMTYPE_DDR2) {
+       if (((get_svr() & 0xf0) == 0x10) && (spd.mem_type == SPD_MEMTYPE_DDR2)) {
                gur->ddrioovcr = (0
                                  | 0x80000000          /* Enable */
                                  | 0x10000000          /* VSEL to 1.8V */