[PATCH 1/2] ARM: PRIMA2: add of_dev_auxdata table for I2C, SPI, UART and PINCTRL
arnd at arndb.de
Wed Jul 4 09:10:49 EDT 2012
On Wednesday 04 July 2012, Barry Song wrote:
> > If it's about the pinctrl and clock parts, can't you just uses the
> > generate names like "b0050000.uart" directly?
> yes. names like "b0050000.uart" really work, and i have enabled and
> tested names like that in clock driver.
> but would people think them ugly?
No, that's fine.
> and what would the clock driver support two SoCs whose uarts have
> different map base address?
If they are different SoCs, then it would be likely be a different clock
that is connected to the UART.
A better solution is to use the new DT clock bindings to replace the
clock lookup in the source code. Have a look at
git://git.linaro.org/people/mturquette/linux.git to see how others
do this in new kernels.
More information about the linux-arm-kernel