Lines Matching refs:clock
26 * status register when enabling the clock.
34 * @data: clock specifier translation for clocks in this group
51 * struct mstp_clock - MSTP gating clock
78 struct mstp_clock *clock = to_mstp_clock(hw);
79 struct mstp_clock_group *group = clock->group;
80 u32 bitmask = BIT(clock->bit_index);
110 group->smstpcr, clock->bit_index);
127 struct mstp_clock *clock = to_mstp_clock(hw);
128 struct mstp_clock_group *group = clock->group;
136 return !(value & BIT(clock->bit_index));
150 struct mstp_clock *clock;
153 clock = kzalloc(sizeof(*clock), GFP_KERNEL);
154 if (!clock)
160 /* INTC-SYS is the module clock of the GIC, and must not be disabled */
168 clock->bit_index = index;
169 clock->group = group;
170 clock->hw.init = &init;
172 clk = clk_register(NULL, &clock->hw);
175 kfree(clock);
210 if (of_find_property(np, "clock-indices", &i))
211 idxname = "clock-indices";
213 idxname = "renesas,clock-indices";
222 ret = of_property_read_string_index(np, "clock-output-names",
233 pr_err("%s: invalid clock %pOFn %s index %u\n",
244 pr_err("%s: failed to register %pOFn %s clock (%ld)\n",
260 while (!of_parse_phandle_with_args(np, "clocks", "#clock-cells", i,
266 /* BSC on r8a73a4/sh73a0 uses zb_clk instead of an mstp clock */