Home
last modified time | relevance | path

Searched refs:spd_cb (Results 1 – 4 of 4) sorted by relevance

/openbmc/u-boot/board/ti/ks2_evm/
H A Dddr3_k2hk.c20 struct ddr3_spd_cb spd_cb; in ddr3_init() local
22 if (ddr3_get_dimm_params_from_spd(&spd_cb)) { in ddr3_init()
29 printf("Detected SO-DIMM [%s]\n", spd_cb.dimm_name); in ddr3_init()
33 printf("DDR3 speed %d\n", spd_cb.ddrspdclock); in ddr3_init()
34 if (spd_cb.ddrspdclock == 1600) in ddr3_init()
45 spd_cb.phy_cfg.zq0cr1 |= 0x10000; in ddr3_init()
46 spd_cb.phy_cfg.zq1cr1 |= 0x10000; in ddr3_init()
47 spd_cb.phy_cfg.zq2cr1 |= 0x10000; in ddr3_init()
53 ddr3_size = spd_cb.ddr_size_gbyte; in ddr3_init()
56 spd_cb.emif_cfg.sdcfg |= 0x1000; in ddr3_init()
[all …]
H A Dddr3_k2e.c18 struct ddr3_spd_cb spd_cb; in ddr3_init() local
20 if (ddr3_get_dimm_params_from_spd(&spd_cb)) { in ddr3_init()
27 printf("Detected SO-DIMM [%s]\n", spd_cb.dimm_name); in ddr3_init()
29 printf("DDR3 speed %d\n", spd_cb.ddrspdclock); in ddr3_init()
30 if (spd_cb.ddrspdclock == 1600) in ddr3_init()
38 spd_cb.phy_cfg.zq0cr1 |= 0x10000; in ddr3_init()
39 spd_cb.phy_cfg.zq1cr1 |= 0x10000; in ddr3_init()
40 spd_cb.phy_cfg.zq2cr1 |= 0x10000; in ddr3_init()
41 ddr3_init_ddrphy(KS2_DDR3A_DDRPHYC, &spd_cb.phy_cfg); in ddr3_init()
44 printf("DRAM: %d GiB\n", spd_cb.ddr_size_gbyte); in ddr3_init()
[all …]
H A Dddr3_cfg.h17 int ddr3_get_dimm_params_from_spd(struct ddr3_spd_cb *spd_cb);
/openbmc/u-boot/arch/arm/mach-keystone/
H A Dddr3_spd.c160 struct ddr3_spd_cb *spd_cb) in ddrtimingcalculation() argument
176 clk_freq = spd_cb->ddrspdclock / 2; in ddrtimingcalculation()
193 spd_cb->ddrspdclock); in ddrtimingcalculation()
194 if (spd_cb->ddrspdclock == 1333) { in ddrtimingcalculation()
311 spd_cb->phy_cfg.ptr2 = 0; in init_ddr3param()
318 spd_cb->phy_cfg.dcr_val = 1 << 10; in init_ddr3param()
361 spd_cb->phy_cfg.zq0cr1 = 0x0000005D; in init_ddr3param()
375 spd_cb->emif_cfg.sdcfg |= 1 << 3; in init_ddr3param()
461 spd_cb->dimm_name[18] = '\0'; in ddr3_get_dimm_params_from_spd()
463 init_ddr3param(spd_cb, &spd); in ddr3_get_dimm_params_from_spd()
[all …]