[PATCH v4] GPIO PL061: Adding Clk framework support
Russell King - ARM Linux
linux at arm.linux.org.uk
Sat Jul 10 03:30:28 EDT 2010
On Sat, Jul 10, 2010 at 08:19:13AM +0100, Russell King - ARM Linux wrote:
> On Sat, Jul 10, 2010 at 01:55:26AM +0200, Linus Walleij wrote:
> > This looks mostly good to me (comments below) but will have as
> > a side effect that all clock frameworks on all platforms using PrimeCells
> > will need to be initialized *before* the PrimeCell devices are added.
>
> No it doesn't - it needs the clock API to be initialized before the
> first driver is probed. As drivers are registered during the initcalls,
> later than postcore level
... (to finish this) ...
drivers/amba/bus.c:postcore_initcall(amba_init);
This is the earliest that any driver can be registered, as the AMBA bus
type will not be registered until that point. So, provided the clk API
is initialized at or before postcore level, AMBA devices are fine.
What we do need to do is add a 'busck' to amba using platforms as the
NULL connection name for the function clock in the clkdev tables will
match.
More information about the linux-arm-kernel
mailing list