Searched refs:spd_cb (Results 1 – 4 of 4) sorted by relevance
/third_party/uboot/u-boot-2020.01/board/ti/ks2_evm/ |
D | ddr3_k2hk.c | 20 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() 49 ddr3_init_ddrphy(KS2_DDR3A_DDRPHYC, &spd_cb.phy_cfg); in ddr3_init() 51 ddr3_init_ddremif(KS2_DDR3A_EMIF_CTRL_BASE, &spd_cb.emif_cfg); in ddr3_init() [all …]
|
D | ddr3_k2e.c | 18 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() 42 ddr3_init_ddremif(KS2_DDR3A_EMIF_CTRL_BASE, &spd_cb.emif_cfg); in ddr3_init() [all …]
|
D | ddr3_cfg.h | 17 int ddr3_get_dimm_params_from_spd(struct ddr3_spd_cb *spd_cb);
|
/third_party/uboot/u-boot-2020.01/arch/arm/mach-keystone/ |
D | ddr3_spd.c | 160 struct ddr3_spd_cb *spd_cb) in ddrtimingcalculation() argument 175 spd_cb->ddrspdclock = 2000000 / spd->t_ck; in ddrtimingcalculation() 176 clk_freq = spd_cb->ddrspdclock / 2; in ddrtimingcalculation() 193 spd_cb->ddrspdclock); in ddrtimingcalculation() 194 if (spd_cb->ddrspdclock == 1333) { in ddrtimingcalculation() 199 } else if (spd_cb->ddrspdclock == 1600) { in ddrtimingcalculation() 205 printf("Unsupported DDR3 speed %d\n", spd_cb->ddrspdclock); in ddrtimingcalculation() 296 spd_cb->ddr_size_gbyte = ddr3_get_size_in_mb(buf) / 1024; in ddrtimingcalculation() 301 static void init_ddr3param(struct ddr3_spd_cb *spd_cb, in init_ddr3param() argument 304 spd_cb->phy_cfg.pllcr = (spd->freqsel & 3) << 18 | 0xE << 13; in init_ddr3param() [all …]
|