[PATCH 06/10] clk: sunxi: mod0 support
Maxime Ripard
maxime.ripard at free-electrons.com
Wed Oct 2 10:38:25 EDT 2013
Hi Emilio
On Mon, Sep 30, 2013 at 08:37:46PM -0300, Emilio López wrote:
> >>+static const struct factors_data sun4i_mod0_data __initconst = {
> >>+ .enable = 31,
> >>+ .mux = 24,
> >>+ .table = &sun4i_mod0_config,
> >>+ .getter = sun4i_get_mod0_factors,
> >>+};
> >
> >How are the parents handled here for the mux part? Do you expect the
> >different parents in a precise order in the device tree, so that you
> >have a direct mapping to the value to put in the muxing registers, or do
> >you have a smarter way to do it?
>
> Indeed, the parents must be indicated on the DT using the same order
> as on the register. In other words, it works the same as all the
> other muxes we have implemented so far. The clock corresponding to
> bits 00 goes first, then the one corresponding to 01, etc.
Ok. It should be documented in the bindings doc then.
Thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131002/0d81db3f/attachment.sig>
More information about the linux-arm-kernel
mailing list