Lines Matching refs:dram

536 static void dram_all_config(const struct dram_info *dram,  in dram_all_config()  argument
558 dram_cfg_rbc(&dram->chan[chan], chan, sdram_params); in dram_all_config()
561 ddr_rank_2_row15en(dram->grf, 0); in dram_all_config()
563 ddr_rank_2_row15en(dram->grf, 1); in dram_all_config()
565 writel(sys_reg, &dram->pmu->sys_reg[2]); in dram_all_config()
568 static int sdram_rank_bw_detect(struct dram_info *dram, int channel, in sdram_rank_bw_detect() argument
573 const struct chan_info *chan = &dram->chan[channel]; in sdram_rank_bw_detect()
576 ddr_rank_2_row15en(dram->grf, 0); in sdram_rank_bw_detect()
599 dram->grf); in sdram_rank_bw_detect()
609 ddr_phy_ctl_reset(dram->cru, channel, 1); in sdram_rank_bw_detect()
611 ddr_phy_ctl_reset(dram->cru, channel, 0); in sdram_rank_bw_detect()
629 static int sdram_col_row_detect(struct dram_info *dram, int channel, in sdram_col_row_detect() argument
634 const struct chan_info *chan = &dram->chan[channel]; in sdram_col_row_detect()
657 ddr_rank_2_row15en(dram->grf, 1); in sdram_col_row_detect()
713 static int sdram_init(struct dram_info *dram, in sdram_init() argument
726 ret = clk_set_rate(&dram->ddr_clk, sdram_params->base.ddr_freq); in sdram_init()
733 const struct chan_info *chan = &dram->chan[channel]; in sdram_init()
737 phy_pctrl_reset(dram->cru, publ, channel); in sdram_init()
742 pctl_cfg(channel, pctl, sdram_params, dram->grf); in sdram_init()
758 sdram_params->ch[channel].bw, dram->grf); in sdram_init()
778 sdram_rank_bw_detect(dram, channel, sdram_params); in sdram_init()
791 ret = sdram_col_row_detect(dram, channel, sdram_params); in sdram_init()
800 dram_all_config(dram, sdram_params); in sdram_init()