[PATCH 7/8] bcmring: add gpio csp code and header

Russell King - ARM Linux linux at arm.linux.org.uk
Sat Oct 10 14:03:19 EDT 2009


On Sat, Oct 10, 2009 at 09:56:43AM -0700, Scott Branden wrote:
> I do see a lot of pin mux'ing code in various arch
> directories, but I do not see a common mechanism in the kernel to handle
> this.

Pin muxing seems to be very SoC specific, and so it is not covered by
a common implementation (yet).

Also, experience shows us that drivers should not be doing any pin
muxing operations themselves - the best place for that appears to be
the board support code itself, which knows how the board is wired up.
In addition, there are SoCs where putting pin muxing code in the driver
would make things really complicated, involving platforms having to
pass this information into drivers.



More information about the linux-arm-kernel mailing list