diff options
| author | Samuel Holland <[email protected]> | 2021-10-08 00:17:20 -0500 |
|---|---|---|
| committer | Andre Przywara <[email protected]> | 2021-10-12 09:50:56 +0100 |
| commit | 104950a7feae7926e40676f27cfbd279a43b4bc3 (patch) | |
| tree | ce45115b87c8d40491d8b1e3e44fcb1aaf050901 /scripts | |
| parent | 4ab39e74b640799748dfdef49f099b416a5ae497 (diff) | |
i2c: Add a DM_I2C driver for the sun6i P2WI controller
This bus controller is used to communicate with an X-Powers AXP PMIC.
Currently, various drivers access PMIC registers through a platform-
specific non-DM "pmic_bus" interface, which depends on the legacy I2C
framework. In order to convert those drivers to use DM_PMIC, this bus
needs a DM_I2C driver.
Refactor the p2wi functions to take the base address as a parameter,
and implement both the existing interface (which is still needed in
SPL) and the DM_I2C interface on top of them.
The register for switching between I2C/P2WI/RSB mode is the same across
all PMIC variants. Move that to the common header, so it can be used by
both interface implementations.
Signed-off-by: Samuel Holland <[email protected]>
Reviewed-by: Andre Przywara <[email protected]>
Signed-off-by: Andre Przywara <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
