From mboxrd@z Thu Jan 1 00:00:00 1970 From: cavokz@gmail.com (Domenico Andreoli) Date: Fri, 12 Oct 2012 17:28:35 +0200 Subject: [PATCH 4/6] ARM: bcm476x: Add stub clock driver In-Reply-To: <20121012145221.2941.35101@nucleus> References: <20121007015300.828366635@gmail.com> <20121007015407.154476821@gmail.com> <20121012145221.2941.35101@nucleus> Message-ID: <20121012152835.GA2882@glitch> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, Oct 12, 2012 at 07:52:21AM -0700, Mike Turquette wrote: > Quoting Domenico Andreoli (2012-10-06 18:53:04) > > Index: b/drivers/clk/clk-bcm476x.c > > =================================================================== > > --- /dev/null > > +++ b/drivers/clk/clk-bcm476x.c > > @@ -0,0 +1,52 @@ > > +/* > > + * Broadcom BCM476x SoCs clocks > > + * > > + * Copyright (C) 2011-2012 Domenico Andreoli > > + * > > + * This program is free software; you can redistribute it and/or modify > > + * it under the terms of the GNU General Public License as published by > > + * the Free Software Foundation; either version 2 of the License, or > > + * (at your option) any later version. > > + * > > + * This program is distributed in the hope that it will be useful, > > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > > + * GNU General Public License for more details. > > + */ > > + > > +#include > > +#include > > Why clk-private.h? That is deprecated and should not be used unless > absolutely necessary. It will be removed once Tegra and OMAP stop using > it. > > > +#include > > +#include > > +#include > > + > > +/* > > + * These are fixed clocks (and device tree doesn't support clk!). > > + * > > + * They're probably not all root clocks and it may be possible to > > + * turn them on and off but until this is mapped out better it's > > + * the only way they can be used. > > + */ > > +DEFINE_CLK_FIXED_RATE(sys_pclk, CLK_IS_ROOT, 312000000, 0); > > +DEFINE_CLK_FIXED_RATE(apb_pclk, CLK_IS_ROOT, 156000000, 0); > > +DEFINE_CLK_FIXED_RATE(uart0_pclk, CLK_IS_ROOT, 78000000, 0); > > +DEFINE_CLK_FIXED_RATE(uart1_pclk, CLK_IS_ROOT, 78000000, 0); > > +DEFINE_CLK_FIXED_RATE(uart2_pclk, CLK_IS_ROOT, 78000000, 0); > > + > > Can you use clk_register_fixed_rate instead? Stephen already warned me, it'll be fixed in the next post. Thanks. Regards, Domenico