genodelabs/genode — pull request #677 by astarasikov (2013-03-01 13:55:24+00:00)
Title: Pull regulator support code

This adds the support for the abstract regulator class interface which can be used to implement voltage/current regulators and generally control any device that has a fixed value range and the discrete number of steps

A regulator service can have a policy that only allows a limited subset of regulators to be accessed by the client service

Additionally, the TWL6030 voltage regulator support is implemented for the OMAP4 SoC.

Any suggestions are welcome. I think the policy part could be factored out in future because many drivers (GPIO, Clocks) seem to need a similiar resource-limiting capability.

--- an example of policy usage ---