summaryrefslogtreecommitdiff
path: root/include/ddr_spd.h
diff options
context:
space:
mode:
authorYork Sun <york.sun@nxp.com>2018-01-29 10:24:08 -0800
committerYork Sun <york.sun@nxp.com>2018-01-30 09:14:07 -0800
commit564e9383e53b567114bd3403246c0759a6d69c50 (patch)
tree2350bb47536eac77f3cd4c9f3f866abc345f5516 /include/ddr_spd.h
parentc0c32af0b2f037e3e167c7ac82e7110ebae48fb5 (diff)
drivers/ddr/fsl: Add calculation of register control words
DDR4 RDIMM has some information in SPD to be used to calculate the control words for register chip. The rest can be found from JEDEC spec DDR4RCD02. Signed-off-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'include/ddr_spd.h')
-rw-r--r--include/ddr_spd.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/ddr_spd.h b/include/ddr_spd.h
index d71cd9ab3c..20dc9ea1a6 100644
--- a/include/ddr_spd.h
+++ b/include/ddr_spd.h
@@ -382,9 +382,11 @@ struct ddr4_spd_eeprom_s {
/* 135 Register Revision Number */
uint8_t reg_rev;
/* 136 Address mapping from register to DRAM */
- uint8_t reg_map;
- /* 137~253 Reserved */
- uint8_t res_137[254-137];
+ u8 reg_map;
+ u8 ca_stren;
+ u8 clk_stren;
+ /* 139~253 Reserved */
+ u8 res_137[254 - 139];
/* 254~255 CRC */
uint8_t crc[2];
} registered;