* Linus Walleij <linus.walleij@xxxxxxxxxx> [120926 06:28]: > On Wed, Sep 26, 2012 at 2:56 PM, Tomi Valkeinen <tomi.valkeinen@xxxxxx> wrote: > > [Me] > >> You can very well do clocks and regulators in these functions as well. > > > > That's not really what I mean. The regulators in question are OMAP > > version specific, so the driver shouldn't know which regulators are > > needed. > > So then it can't be done in generic code atleast, and it becomes a > matter for the OMAP driver, I guess you're referring to > Tony's pinctrl-single? Yes the pins are muxed with pinctrl-single. Then for the SoC specific regulator handling I suggest you use regulator names that make sense from the driver point of view that can be mapped in SoC specific way in the .dts files. If you need SoC specific more complicated handling, you may want to have SoC specific glue driver to the DSS core driver, like dss-44xx.c etc. Then you can select the appropriate glue layer based on the compatible flag. Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html