On Wednesday 04 July 2012, Barry Song wrote:
quoted
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.
Arnd