summaryrefslogtreecommitdiff
path: root/plat/sun50iw1p1/sunxi_power.h
AgeCommit message (Collapse)Author
2017-03-08sun50iw1p1: Rewrite PMIC driver.Christoph Muellner
The existing API to interact with the PMIC (AXP803) offers low-level calls to read and write PMIC registers. This patch adds two high-level APIs: * regulator-level API * task-level API The regulator-level API allows to enable, disable, and set the voltage level of regulators. The regulators are named by IDs in the form of AXP803_<regulator> (e.g. AXP803_DCDC2). The task-level API allows to perform a batch of regulator-level calls. Using this API allows to keep many invokations of the regulator-level API compact. Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>