Lines Matching refs:chan

35 	struct chan_info chan[1];  member
164 static void memory_init(struct chan_info *chan, in memory_init() argument
167 struct rk322x_ddr_pctl *pctl = chan->pctl; in memory_init()
232 static u32 data_training(struct chan_info *chan) in data_training() argument
234 struct rk322x_ddr_phy *ddr_phy = chan->phy; in data_training()
235 struct rk322x_ddr_pctl *pctl = chan->pctl; in data_training()
367 struct rk322x_ddr_phy *ddr_phy = dram->chan[0].phy; in phy_softreset()
382 struct rk322x_ddr_pctl *pctl = dram->chan[0].pctl; in set_bw()
383 struct rk322x_ddr_phy *ddr_phy = dram->chan[0].phy; in set_bw()
470 static void phy_cfg(struct chan_info *chan, in phy_cfg() argument
473 struct rk322x_ddr_phy *ddr_phy = chan->phy; in phy_cfg()
474 struct rk322x_service_sys *axi_bus = chan->msch; in phy_cfg()
533 void dram_cfg_rbc(struct chan_info *chan, in dram_cfg_rbc() argument
539 struct rk322x_service_sys *axi_bus = chan->msch; in dram_cfg_rbc()
541 move_to_config_state(chan->pctl); in dram_cfg_rbc()
576 move_to_access_state(chan->pctl); in dram_cfg_rbc()
607 struct rk322x_service_sys *axi_bus = dram->chan[0].msch; in dram_cap_detect()
614 move_to_config_state(dram->chan[0].pctl); in dram_cap_detect()
617 if (data_training(&dram->chan[0]) == 0) { in dram_cap_detect()
622 move_to_lowpower_state(dram->chan[0].pctl); in dram_cap_detect()
624 move_to_config_state(dram->chan[0].pctl); in dram_cap_detect()
625 if (data_training(&dram->chan[0])) { in dram_cap_detect()
637 move_to_access_state(dram->chan[0].pctl); in dram_cap_detect()
699 phy_pctrl_reset(dram->cru, dram->chan[0].phy); in sdram_init()
700 phy_dll_bypass_set(dram->chan[0].phy, sdram_params->base.ddr_freq); in sdram_init()
701 pctl_cfg(dram->chan[0].pctl, sdram_params, dram->grf); in sdram_init()
702 phy_cfg(&dram->chan[0], sdram_params); in sdram_init()
703 writel(POWER_UP_START, &dram->chan[0].pctl->powctl); in sdram_init()
704 while (!(readl(&dram->chan[0].pctl->powstat) & POWER_UP_DONE)) in sdram_init()
706 memory_init(&dram->chan[0], sdram_params); in sdram_init()
707 move_to_access_state(dram->chan[0].pctl); in sdram_init()
711 dram_cfg_rbc(&dram->chan[0], sdram_params); in sdram_init()
797 priv->chan[0].msch = syscon_get_first_range(ROCKCHIP_SYSCON_MSCH); in rk322x_dmc_probe()
798 priv->chan[0].pctl = regmap_get_range(plat->map, 0); in rk322x_dmc_probe()
799 priv->chan[0].phy = regmap_get_range(plat->map, 1); in rk322x_dmc_probe()