Lines Matching defs:clock
25 * status register when enabling the clock.
33 * @data: clock specifier translation for clocks in this group
50 * struct mstp_clock - MSTP gating clock
77 struct mstp_clock *clock = to_mstp_clock(hw);
78 struct mstp_clock_group *group = clock->group;
79 u32 bitmask = BIT(clock->bit_index);
112 group->smstpcr, clock->bit_index);
131 struct mstp_clock *clock = to_mstp_clock(hw);
132 struct mstp_clock_group *group = clock->group;
140 return !(value & BIT(clock->bit_index));
154 struct mstp_clock *clock;
157 clock = kzalloc(sizeof(*clock), GFP_KERNEL);
158 if (!clock)
164 /* INTC-SYS is the module clock of the GIC, and must not be disabled */
172 clock->bit_index = index;
173 clock->group = group;
174 clock->hw.init = &init;
176 clk = clk_register(NULL, &clock->hw);
179 kfree(clock);
214 if (of_find_property(np, "clock-indices", &i))
215 idxname = "clock-indices";
217 idxname = "renesas,clock-indices";
226 ret = of_property_read_string_index(np, "clock-output-names",
237 pr_err("%s: invalid clock %pOFn %s index %u\n",
249 * clock by name and register aliases for non-DT
253 * clock will be instantiated from DT.
257 pr_err("%s: failed to register %pOFn %s clock (%ld)\n",
274 while (!of_parse_phandle_with_args(np, "clocks", "#clock-cells", i,
280 /* BSC on r8a73a4/sh73a0 uses zb_clk instead of an mstp clock */