[PATCH v2] [2.6.22] pasemi: cpufreq driver
Arnd Bergmann
arnd at arndb.de
Fri Apr 27 03:11:21 EST 2007
On Thursday 26 April 2007, Olof Johansson wrote:
> SDC is the system and debug controller, it contains a number of smaller
> devices such as the PIC, the PMU (Gizmo), RNG, and various debug
> features. Some already have drivers submitted, others will later on.
Oh well, these chips all seem to be the same. On cell, we have solved
the problem by introducing the 'cbe_regs' helper library that gives
access to all those miscellaneous registers to the individual device
drivers, so that not all of them need to scan the device tree for
the same registers and map them individually.
The problem with an of_platform_driver for this would be that you
can only have _one_ driver attached to the registers.
> Unfortunately the setting of the current active state is done to an SDC
> register, while information of the states is in the PMU, so access to
> both is needed in the driver.
One thing that you could do is to list only this one register of the
SDC in the reg property, not all of the SDC.
Arnd <><
More information about the Linuxppc-dev
mailing list