Lines Matching full:timing
65 struct dram_timing timing; member
241 static int of_get_ddr_timings(struct dram_timing *timing, in of_get_ddr_timings() argument
247 &timing->ddr3_speed_bin); in of_get_ddr_timings()
249 &timing->pd_idle); in of_get_ddr_timings()
251 &timing->sr_idle); in of_get_ddr_timings()
253 &timing->sr_mc_gate_idle); in of_get_ddr_timings()
255 &timing->srpd_lite_idle); in of_get_ddr_timings()
257 &timing->standby_idle); in of_get_ddr_timings()
259 &timing->auto_pd_dis_freq); in of_get_ddr_timings()
261 &timing->dram_dll_dis_freq); in of_get_ddr_timings()
263 &timing->phy_dll_dis_freq); in of_get_ddr_timings()
265 &timing->ddr3_odt_dis_freq); in of_get_ddr_timings()
267 &timing->ddr3_drv); in of_get_ddr_timings()
269 &timing->ddr3_odt); in of_get_ddr_timings()
271 &timing->phy_ddr3_ca_drv); in of_get_ddr_timings()
273 &timing->phy_ddr3_dq_drv); in of_get_ddr_timings()
275 &timing->phy_ddr3_odt); in of_get_ddr_timings()
277 &timing->lpddr3_odt_dis_freq); in of_get_ddr_timings()
279 &timing->lpddr3_drv); in of_get_ddr_timings()
281 &timing->lpddr3_odt); in of_get_ddr_timings()
283 &timing->phy_lpddr3_ca_drv); in of_get_ddr_timings()
285 &timing->phy_lpddr3_dq_drv); in of_get_ddr_timings()
287 &timing->phy_lpddr3_odt); in of_get_ddr_timings()
289 &timing->lpddr4_odt_dis_freq); in of_get_ddr_timings()
291 &timing->lpddr4_drv); in of_get_ddr_timings()
293 &timing->lpddr4_dq_odt); in of_get_ddr_timings()
295 &timing->lpddr4_ca_odt); in of_get_ddr_timings()
297 &timing->phy_lpddr4_ca_drv); in of_get_ddr_timings()
299 &timing->phy_lpddr4_ck_cs_drv); in of_get_ddr_timings()
301 &timing->phy_lpddr4_dq_drv); in of_get_ddr_timings()
303 &timing->phy_lpddr4_odt); in of_get_ddr_timings()
315 uint32_t *timing; in rk3399_dmcfreq_probe() local
355 * Get dram timing and pass it to arm trust firmware, in rk3399_dmcfreq_probe()
357 * timing and to do dram initial. in rk3399_dmcfreq_probe()
359 if (!of_get_ddr_timings(&data->timing, np)) { in rk3399_dmcfreq_probe()
360 timing = &data->timing.ddr3_speed_bin; in rk3399_dmcfreq_probe()
363 arm_smccc_smc(ROCKCHIP_SIP_DRAM_FREQ, *timing++, index, in rk3399_dmcfreq_probe()
392 data->odt_dis_freq = data->timing.ddr3_odt_dis_freq; in rk3399_dmcfreq_probe()
395 data->odt_dis_freq = data->timing.lpddr3_odt_dis_freq; in rk3399_dmcfreq_probe()
398 data->odt_dis_freq = data->timing.lpddr4_odt_dis_freq; in rk3399_dmcfreq_probe()
425 data->odt_pd_arg0 = (data->timing.sr_idle & 0xff) | in rk3399_dmcfreq_probe()
426 ((data->timing.sr_mc_gate_idle & 0xff) << 8) | in rk3399_dmcfreq_probe()
427 ((data->timing.standby_idle & 0xffff) << 16); in rk3399_dmcfreq_probe()
428 data->odt_pd_arg1 = (data->timing.pd_idle & 0xfff) | in rk3399_dmcfreq_probe()
429 ((data->timing.srpd_lite_idle & 0xfff) << 16); in rk3399_dmcfreq_probe()