[PATCH 2/5] arm/mxc: add clk members to ease dt clock support
Grant Likely
grant.likely at secretlab.ca
Tue Mar 8 04:53:37 EST 2011
On Mon, Mar 7, 2011 at 9:22 AM, Shawn Guo <shawn.guo at linaro.org> wrote:
> The 'rate' is added for fixed-clock support, while 'pll_base' is for
> pll clock. These two particular type of clocks are supposed to be
> gracefully supported by the common clk api when it gets ready.
How does the current imx clock code handle fixed and pll clocks?
Using the dt shouldn't require any special treatment in this regard.
g.
>
> Signed-off-by: Shawn Guo <shawn.guo at linaro.org>
> ---
> arch/arm/plat-mxc/include/mach/clock.h | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/plat-mxc/include/mach/clock.h b/arch/arm/plat-mxc/include/mach/clock.h
> index 753a598..a29dc45 100644
> --- a/arch/arm/plat-mxc/include/mach/clock.h
> +++ b/arch/arm/plat-mxc/include/mach/clock.h
> @@ -38,6 +38,10 @@ struct clk {
> /* Register address for clock's enable/disable control. */
> void __iomem *enable_reg;
> u32 flags;
> + /* clock rate used by fixed-clock */
> + unsigned long rate;
> + /* base address of pll */
> + void __iomem *pll_base;
> /* get the current clock rate (always a fresh value) */
> unsigned long (*get_rate) (struct clk *);
> /* Function ptr to set the clock to a new rate. The rate must match a
> --
> 1.7.1
>
>
> _______________________________________________
> linaro-dev mailing list
> linaro-dev at lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/linaro-dev
>
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
More information about the devicetree-discuss
mailing list