summaryrefslogtreecommitdiff
path: root/common/ddr_spd.c
diff options
context:
space:
mode:
authorYork Sun <yorksun@freescale.com>2010-05-07 09:12:01 -0500
committerKumar Gala <galak@kernel.crashing.org>2010-05-12 04:54:30 -0500
commitbcb6c2bb84705bfd73eed5c9a31e9ff24833ee8c (patch)
treebb4f46357fba0cf1dd5a89871215f71c98ae5eca /common/ddr_spd.c
parentf54fe87acedbbad7d29ad18cab31d2b323717514 (diff)
downloadu-boot-imx-bcb6c2bb84705bfd73eed5c9a31e9ff24833ee8c.zip
u-boot-imx-bcb6c2bb84705bfd73eed5c9a31e9ff24833ee8c.tar.gz
u-boot-imx-bcb6c2bb84705bfd73eed5c9a31e9ff24833ee8c.tar.bz2
Enabled support for Rev 1.3 SPD for DDR2 DIMMs
SPD has minor change from Rev 1.2 to 1.3. This patch enables Rev 1.3. The difference has ben examined and the code is compatible. Speed bins is not verified on hardware for CL7 at this moment. This patch also enables SPD Rev 1.x where x is up to "F". According to SPD spec, the lower nibble is optionally used to determine which additinal bytes or attribute bits have been defined. Software can safely use defaults. However, the upper nibble should always be checked. Signed-off-by: York Sun <yorksun@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'common/ddr_spd.c')
-rw-r--r--common/ddr_spd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/ddr_spd.c b/common/ddr_spd.c
index c058e4f..a7a30de 100644
--- a/common/ddr_spd.c
+++ b/common/ddr_spd.c
@@ -20,11 +20,15 @@ spd_check(const u8 *buf, u8 spd_rev, u8 spd_cksum)
* Check SPD revision supported
* Rev 1.2 or less supported by this code
*/
- if (spd_rev > 0x12) {
+ if (spd_rev >= 0x20) {
printf("SPD revision %02X not supported by this code\n",
spd_rev);
return 1;
}
+ if (spd_rev > 0x13) {
+ printf("SPD revision %02X not verified by this code\n",
+ spd_rev);
+ }
/*
* Calculate checksum