Lines Matching +full:down +full:- +full:scaling
6 * SPDX-License-Identifier: GPL-2.0+
12 * etc.) which would make common driver an ifdef nightmare :-(
20 #include <asm/arch/imx-regs.h>
37 while (--timeout) { in mxs_ocotp_wait_busy_clear()
38 reg = readl(&ocotp_regs->hw_ocotp_ctrl); in mxs_ocotp_wait_busy_clear()
45 return -EINVAL; in mxs_ocotp_wait_busy_clear()
55 writel(OCOTP_CTRL_ERROR, &ocotp_regs->hw_ocotp_ctrl_clr); in mxs_ocotp_clear_error()
64 &ocotp_regs->hw_ocotp_ctrl_set); in mxs_ocotp_read_bank_open()
75 &ocotp_regs->hw_ocotp_ctrl_clr); in mxs_ocotp_read_bank_open()
88 * scaling the voltage from it's current value down to 2.8V in mxs_ocotp_scale_vddio()
92 scale_val = readl(&power_regs->hw_power_vddioctrl); in mxs_ocotp_scale_vddio()
99 * Start scaling VDDIO down to 0x2, which is 2.8V . Actually, in mxs_ocotp_scale_vddio()
106 clrsetbits_le32(&power_regs->hw_power_vddioctrl, in mxs_ocotp_scale_vddio()
107 POWER_VDDIOCTRL_TRG_MASK, --scale_val); in mxs_ocotp_scale_vddio()
111 /* Start scaling VDDIO up to original value . */ in mxs_ocotp_scale_vddio()
113 clrsetbits_le32(&power_regs->hw_power_vddioctrl, in mxs_ocotp_scale_vddio()
126 while (--timeout) { in mxs_ocotp_wait_hclk_ready()
127 reg = readl(&clkctrl_regs->hw_clkctrl_hbus); in mxs_ocotp_wait_hclk_ready()
133 return -EINVAL; in mxs_ocotp_wait_hclk_ready()
149 &clkctrl_regs->hw_clkctrl_clkseq_set); in mxs_ocotp_scale_hclk()
153 *val = readl(&clkctrl_regs->hw_clkctrl_hbus); in mxs_ocotp_scale_hclk()
167 &clkctrl_regs->hw_clkctrl_hbus_set); in mxs_ocotp_scale_hclk()
169 &clkctrl_regs->hw_clkctrl_hbus_clr); in mxs_ocotp_scale_hclk()
179 &clkctrl_regs->hw_clkctrl_clkseq_clr); in mxs_ocotp_scale_hclk()
202 puts("Failed scaling down the HCLK!\n"); in mxs_ocotp_write_fuse()
214 writel(addr | OCOTP_CTRL_WR_UNLOCK_KEY, &ocotp_regs->hw_ocotp_ctrl); in mxs_ocotp_write_fuse()
217 writel(mask, &ocotp_regs->hw_ocotp_data); in mxs_ocotp_write_fuse()
228 if (readl(&ocotp_regs->hw_ocotp_ctrl) & OCOTP_CTRL_ERROR) { in mxs_ocotp_write_fuse()
230 ret = -EPERM; in mxs_ocotp_write_fuse()
237 puts("Failed scaling up the HCLK!\n"); in mxs_ocotp_write_fuse()
247 reg = ((uint32_t)&ocotp_regs->hw_ocotp_cust0) + (reg << 4); in mxs_ocotp_read_fuse()
277 return -EINVAL; in mxs_ocotp_valid()
279 return -EINVAL; in mxs_ocotp_valid()
310 /* We do not support sensing :-( */ in fuse_sense()
311 return -EINVAL; in fuse_sense()
316 /* We do not support overriding :-( */ in fuse_override()
317 return -EINVAL; in fuse_override()