[PATCH] clk: shmobile: Add R8A7740-specific clock support
Ulrich Hecht
ulrich.hecht at gmail.com
Tue May 20 05:34:26 PDT 2014
On Mon, May 19, 2014 at 9:16 PM, Geert Uytterhoeven
<geert at linux-m68k.org> wrote:
> On Thu, May 15, 2014 at 2:20 PM, Ulrich Hecht <ulrich.hecht at gmail.com> wrote:
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/clock/renesas,r8a7740-cpg-clocks.txt
[...]
>> + - clocks: Reference to the two parent clocks
>
> Aren't there 3 parent clocks (extal1, extal2, extalr)?
Yes, there are.
>> +static struct div4_clk div4_clks[] = {
>> + { "i", CPG_FRQCRA, 20, 0x6fff, CLK_ENABLE_ON_INIT },
>> + { "zg", CPG_FRQCRA, 16, 0x6fff, CLK_ENABLE_ON_INIT },
>> + { "b", CPG_FRQCRA, 8, 0x6fff, CLK_ENABLE_ON_INIT },
>> + { "m1", CPG_FRQCRA, 4, 0x6fff, CLK_ENABLE_ON_INIT },
>> + { "hp", CPG_FRQCRB, 4, 0x6fff, 0 },
>> + { "hpp", CPG_FRQCRC, 20, 0x6fff, 0 },
>> + { "usbp", CPG_FRQCRC, 16, 0x6fff, 0 },
>> + { "s", CPG_FRQCRC, 12, 0x6fff, 0 },
>> + { "zb", CPG_FRQCRC, 8, 0x6fff, 0 },
>> + { "m3", CPG_FRQCRC, 4, 0x6fff, 0 },
>> + { "cp", CPG_FRQCRC, 0, 0x6fff, 0 },
>
> I assume the identical mask values (0x6fff) are not the final values, and will
> be updated when the field becomes used?
I copied them from the legacy driver, and they are the actual values.
And thus redundant. :) I'll remove the mask.
Thanks for your comments. I'll wait if Laurent has anything to add and
send a new patch then.
CU
Uli
More information about the linux-arm-kernel
mailing list