Lines Matching full:creg
3 * Clk driver for NXP LPC18xx/43xx Configuration Registers (CREG)
47 struct clk_creg_data *creg = to_clk_creg(hw); in clk_creg_32k_prepare() local
50 ret = regmap_update_bits(creg->reg, LPC18XX_CREG_CREG0, in clk_creg_32k_prepare()
65 struct clk_creg_data *creg = to_clk_creg(hw); in clk_creg_32k_unprepare() local
67 regmap_update_bits(creg->reg, LPC18XX_CREG_CREG0, in clk_creg_32k_unprepare()
74 struct clk_creg_data *creg = to_clk_creg(hw); in clk_creg_32k_is_prepared() local
77 regmap_read(creg->reg, LPC18XX_CREG_CREG0, ®); in clk_creg_32k_is_prepared()
91 struct clk_creg_data *creg = to_clk_creg(hw); in clk_creg_enable() local
93 return regmap_update_bits(creg->reg, LPC18XX_CREG_CREG0, in clk_creg_enable()
94 creg->en_mask, creg->en_mask); in clk_creg_enable()
99 struct clk_creg_data *creg = to_clk_creg(hw); in clk_creg_disable() local
101 regmap_update_bits(creg->reg, LPC18XX_CREG_CREG0, in clk_creg_disable()
102 creg->en_mask, 0); in clk_creg_disable()
107 struct clk_creg_data *creg = to_clk_creg(hw); in clk_creg_is_enabled() local
110 regmap_read(creg->reg, LPC18XX_CREG_CREG0, ®); in clk_creg_is_enabled()
112 return !!(reg & creg->en_mask); in clk_creg_is_enabled()
184 CLK_OF_DECLARE_DRIVER(lpc18xx_creg_clk, "nxp,lpc1850-creg-clk",
214 { .compatible = "nxp,lpc1850-creg-clk" },
221 .name = "lpc18xx-creg-clk",