Lines Matching +full:refclk +full:- +full:mux

1 // SPDX-License-Identifier: GPL-2.0+
21 clrsetbits_le32((*ctrl)->control_pbias, SDCARD_PWRDNZ, in isolate_io()
23 clrsetbits_le32((*ctrl)->control_pbias, SDCARD_BIAS_PWRDNZ, in isolate_io()
28 clrsetbits_le32((*prcm)->prm_io_pmctrl, PMCTRL_ISOCLK_OVERRIDE_MASK, in isolate_io()
31 (u32 *)(*prcm)->prm_io_pmctrl, LDELAY)) in isolate_io()
35 clrsetbits_le32((*ctrl)->ctrl_core_sma_sw_0, CTRL_ISOLATE_MASK, in isolate_io()
38 readl((*ctrl)->ctrl_core_sma_sw_0); in isolate_io()
41 clrsetbits_le32((*prcm)->prm_io_pmctrl, PMCTRL_ISOCLK_OVERRIDE_MASK, in isolate_io()
45 (u32 *)(*prcm)->prm_io_pmctrl, LDELAY)) in isolate_io()
55 /* Configure REFCLK period */ in calibrate_iodelay()
149 cpde = calculate_delay((*ctrl)->iodelay_config_base, CFG_REG_3_OFFSET, in do_set_iodelay()
154 fpde = calculate_delay((*ctrl)->iodelay_config_base, CFG_REG_4_OFFSET, in do_set_iodelay()
160 reg = get_cfg_reg(iodelay->a_delay, iodelay->g_delay, cpde, in do_set_iodelay()
162 writel(reg, base + iodelay->offset); in do_set_iodelay()
174 puts("IODELAY recalibration called from invalid context - use only from SPL in SRAM\n"); in __recalibrate_iodelay_start()
175 return -1; in __recalibrate_iodelay_start()
179 writel(CFG_IODELAY_UNLOCK_KEY, (*ctrl)->iodelay_config_base + in __recalibrate_iodelay_start()
182 ret = calibrate_iodelay((*ctrl)->iodelay_config_base); in __recalibrate_iodelay_start()
190 ret = update_delay_mechanism((*ctrl)->iodelay_config_base); in __recalibrate_iodelay_start()
201 puts("IODELAY recalibration called from invalid context - use only from SPL in SRAM\n"); in __recalibrate_iodelay_end()
209 writel(CFG_IODELAY_LOCK_KEY, (*ctrl)->iodelay_config_base + in __recalibrate_iodelay_end()
228 puts("IODELAY: De-isolation of Device IOs failed\n"); in __recalibrate_iodelay_end()
236 case -1: in __recalibrate_iodelay_end()
254 puts("IODELAY recalibration called from invalid context - use only from SPL in SRAM\n"); in __recalibrate_iodelay()
262 /* Configure Mux settings */ in __recalibrate_iodelay()
263 do_set_mux32((*ctrl)->control_padconf_core_base, pad, npads); in __recalibrate_iodelay()
266 ret = do_set_iodelay((*ctrl)->iodelay_config_base, iodelay, niodelays); in __recalibrate_iodelay()
282 writel(CFG_IODELAY_UNLOCK_KEY, (*ctrl)->iodelay_config_base + in late_recalibrate_iodelay()
285 ret = calibrate_iodelay((*ctrl)->iodelay_config_base); in late_recalibrate_iodelay()
289 ret = update_delay_mechanism((*ctrl)->iodelay_config_base); in late_recalibrate_iodelay()
291 /* Configure Mux settings */ in late_recalibrate_iodelay()
292 do_set_mux32((*ctrl)->control_padconf_core_base, pad, npads); in late_recalibrate_iodelay()
295 ret = do_set_iodelay((*ctrl)->iodelay_config_base, iodelay, niodelays); in late_recalibrate_iodelay()
301 writel(CFG_IODELAY_LOCK_KEY, (*ctrl)->iodelay_config_base + in late_recalibrate_iodelay()