On Thu, Apr 11, 2013 at 12:35:47AM +0200, Arnd Bergmann wrote: > Sorry for not replying earlier. My idea for the register level interface > was to create a platform_device for each PWM, e.g. using the mfd_cell > infrastructure. You can then pass a "struct regmap" as the platform > data for each child of the timer node, and all the DT handling code > can stay in the parent driver. Dunno if it helps or not but there's also dev_get_regmap() if you're passing the struct device around or can fish one out of thhe parent.
Attachment:
signature.asc
Description: Digital signature