Lines Matching refs:clk
70 static struct clk extalr_clk = {
78 static struct clk extal1_clk = {
86 static struct clk extal2_clk = {
94 static struct clk dv_clk = {
111 static struct clk system_clk = {
118 static struct clk r_clk = {
123 static unsigned long pllc01_recalc(struct clk *clk) in pllc01_recalc() argument
128 mult = ((__raw_readl(clk->enable_reg) >> 24) & 0x7f) + 1; in pllc01_recalc()
130 return clk->parent->rate * mult; in pllc01_recalc()
137 static struct clk pllc0_clk = {
144 static struct clk pllc1_clk = {
171 static struct clk *usb24s_parents[] = {
176 static int usb24s_enable(struct clk *clk) in usb24s_enable() argument
183 static void usb24s_disable(struct clk *clk) in usb24s_disable() argument
188 static int usb24s_set_parent(struct clk *clk, struct clk *parent) in usb24s_set_parent() argument
193 if (!clk->parent_table || !clk->parent_num) in usb24s_set_parent()
197 for (i = 0; i < clk->parent_num; i++) in usb24s_set_parent()
198 if (clk->parent_table[i] == parent) in usb24s_set_parent()
201 if (i == clk->parent_num) in usb24s_set_parent()
204 ret = clk_reparent(clk, parent); in usb24s_set_parent()
223 static struct clk usb24s_clk = {
230 static unsigned long usb24_recalc(struct clk *clk) in usb24_recalc() argument
232 return clk->parent->rate / in usb24_recalc()
236 static int usb24_set_rate(struct clk *clk, unsigned long rate) in usb24_set_rate() argument
243 val |= (rate > (clk->parent->rate / 4) * 3) << 6; in usb24_set_rate()
254 static struct clk usb24_clk = {
260 static struct clk fsiack_clk = {
263 static struct clk fsibck_clk = {
266 static struct clk *main_clks[] = {
288 static void div4_kick(struct clk *clk) in div4_kick() argument
317 static struct clk div4_clks[DIV4_NR] = {
339 static struct clk *hdmi_parent[] = {
345 static struct clk *vclk_parents[8] = {
353 static struct clk *fsia_parents[] = {
358 static struct clk *fsib_parents[] = {
363 static struct clk div6_reparent_clks[DIV6_REPARENT_NR] = {
382 static struct clk div6_clks[DIV6_NR] = {
387 static unsigned long hdmi12_recalc(struct clk *clk) in hdmi12_recalc() argument
390 int shift = (int)clk->priv; in hdmi12_recalc()
395 return clk->parent->rate / (1 << val); in hdmi12_recalc()
398 static int hdmi12_set_rate(struct clk *clk, unsigned long rate) in hdmi12_set_rate() argument
404 if (rate == clk->parent->rate / (1 << i)) in hdmi12_set_rate()
409 shift = (int)clk->priv; in hdmi12_set_rate()
424 static struct clk hdmi1_clk = {
430 static struct clk hdmi2_clk = {
436 static struct clk *late_main_clks[] = {
444 static struct clk fsidivs[] = {
468 static struct clk mstp_clks[MSTP_NR] = {