Lines Matching refs:clk
35 struct clk clk; member
38 #define to_clk_utmi(_clk) container_of(_clk, struct clk_utmi, clk)
49 static int clk_utmi_enable(struct clk *clk) in clk_utmi_enable() argument
51 struct clk_utmi *utmi = to_clk_utmi(clk); in clk_utmi_enable()
55 ulong parent_rate = clk_get_parent_rate(clk); in clk_utmi_enable()
102 static int clk_utmi_disable(struct clk *clk) in clk_utmi_disable() argument
104 struct clk_utmi *utmi = to_clk_utmi(clk); in clk_utmi_disable()
111 static ulong clk_utmi_get_rate(struct clk *clk) in clk_utmi_get_rate() argument
123 struct clk *at91_clk_register_utmi(void __iomem *base, struct udevice *dev, in at91_clk_register_utmi()
128 struct clk *clk; in at91_clk_register_utmi() local
150 clk = &utmi->clk; in at91_clk_register_utmi()
151 clk->flags = CLK_GET_RATE_NOCACHE; in at91_clk_register_utmi()
152 ret = clk_register(clk, UBOOT_DM_CLK_AT91_UTMI, name, parent_name); in at91_clk_register_utmi()
155 clk = ERR_PTR(ret); in at91_clk_register_utmi()
158 return clk; in at91_clk_register_utmi()
168 static int clk_utmi_sama7g5_enable(struct clk *clk) in clk_utmi_sama7g5_enable() argument
170 struct clk_utmi *utmi = to_clk_utmi(clk); in clk_utmi_sama7g5_enable()
171 ulong parent_rate = clk_get_parent_rate(clk); in clk_utmi_sama7g5_enable()
202 struct clk *at91_clk_sama7g5_register_utmi(void __iomem *base, in at91_clk_sama7g5_register_utmi()
206 struct clk *clk; in at91_clk_sama7g5_register_utmi() local
218 clk = &utmi->clk; in at91_clk_sama7g5_register_utmi()
219 ret = clk_register(clk, UBOOT_DM_CLK_AT91_SAMA7G5_UTMI, name, in at91_clk_sama7g5_register_utmi()
223 clk = ERR_PTR(ret); in at91_clk_sama7g5_register_utmi()
226 return clk; in at91_clk_sama7g5_register_utmi()