QUERY: How to handle SOC Configuration (Peripheral Multiplexing) in linux
Armando VISCONTI
armando.visconti at st.com
Mon Mar 15 12:02:49 EDT 2010
>
> What I think you really want is for your board-specific code (or some
> helper code elsewhere in your mach-* directory) to do the pin
> assignments, and the drivers just assume that the pins are all right.
> That's the approach used in OMAP2 and AT91, among others, and it seems
> to work out just fine.
>
Bill,
What you and Russell are saying is a little bit different from what I
got since
now, with people suggesting to implement a single linux image which is
then configured at runtime thru (for example) bootargs.
Now you both are saying that compile time options are better, correct?
So, we have two choices:
1. Stay as it is, which means to use menuconfig options.
2. Provide board-specific code in the mach-spear directory.
You are suggesting 2, which also seems to be the pin_config stuff
inside mach-pxa. Am I aligned?
If so, I think we can proceed in the suggested way.
It looks to me very clean.
> If you assume that the driver "just knows" what the multiplexer settings
> need to be, then sooner or later that same peripheral gets used in a
> different SoC and that assumption has to get tossed out. That's
> happening some with the AT91 drivers that can also be used on AVR32
> chips. Best to avoid that extra work by putting the platform-specific
> knowledge where it belongs: in the platform-specific code.
>
Correct.
I think this has never been our intention anyway.
The drivers shouldn't know anything about platform-specific stuff, as
they are expected to work across multiple platform.
Thx,
Arm
--
-- "Every step appears to be the unavoidable consequence of the
-- preceding one." (A. Einstein)
--
Armando Visconti Mobile: (+39) 346 8879146
Senior SW Engineer Fax: (+39) 02 93519290
CPG Work: (+39) 02 93519683
Computer System Division e-mail: armando.visconti at st.com
ST Microelectronics TINA: 051 4683
More information about the linux-arm-kernel
mailing list