diff options
author | Wadim Egorov <w.egorov@phytec.de> | 2017-06-19 12:36:39 +0200 |
---|---|---|
committer | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2017-07-11 15:23:38 +0200 |
commit | ad98f882e86d3b7231b8c02bbdf8f7eee735aee6 (patch) | |
tree | 46dec00657901fc02709e039af3d7b74c7d63585 /include/power | |
parent | 8926c2f5841148ba0f1b67bb71314797e45229c2 (diff) |
power: regulator: rk8xx: Allow input current/charger shutdown configuration
The RK818 PMIC contains a charger. Add very basic charger functionality
to be able to regulate the USB input current and charger shutdown limits.
Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Diffstat (limited to 'include/power')
-rw-r--r-- | include/power/rk8xx_pmic.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/power/rk8xx_pmic.h b/include/power/rk8xx_pmic.h index 589f8c4e1a..47a6b36e7e 100644 --- a/include/power/rk8xx_pmic.h +++ b/include/power/rk8xx_pmic.h @@ -189,5 +189,7 @@ struct rk8xx_priv { }; int rk8xx_spl_configure_buck(struct udevice *pmic, int buck, int uvolt); +int rk818_spl_configure_usb_input_current(struct udevice *pmic, int current_ma); +int rk818_spl_configure_usb_chrg_shutdown(struct udevice *pmic, int uvolt); #endif |