aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorJakob Hauser <jahau@rocketmail.com>2023-05-15 22:57:14 +0200
committerLee Jones <lee@kernel.org>2023-06-08 18:17:14 +0100
commitb7653853d5b12637c16b5ca5c8bab39b486bfe99 (patch)
tree7c2409716ea0b8785d6085956090339b35a308bc /include/linux/mfd
parentmfd: rt5033: Apply preparatory changes before adding rt5033-charger driver (diff)
downloadwireguard-linux-b7653853d5b12637c16b5ca5c8bab39b486bfe99.tar.xz
wireguard-linux-b7653853d5b12637c16b5ca5c8bab39b486bfe99.zip
power: supply: rt5033_charger: Add RT5033 charger device driver
This patch adds device driver of Richtek RT5033 PMIC. The driver supports switching charger. rt5033 charger provides three charging modes. The charging modes are pre-charge mode, fast charge mode and constant voltage mode. They vary in charge rate, the charge parameters can be controlled by i2c interface. Tested-by: Raymond Hackley <raymondhackley@protonmail.com> Signed-off-by: Jakob Hauser <jahau@rocketmail.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/9556d4ebb30fd321e37aa0eb343554122e4720c9.1684182964.git.jahau@rocketmail.com
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/rt5033.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/linux/mfd/rt5033.h b/include/linux/mfd/rt5033.h
index e99e2ab0c1c1..3992fb2ef0a8 100644
--- a/include/linux/mfd/rt5033.h
+++ b/include/linux/mfd/rt5033.h
@@ -39,20 +39,4 @@ struct rt5033_battery {
struct power_supply *psy;
};
-/* RT5033 charger platform data */
-struct rt5033_charger_data {
- unsigned int pre_uamp;
- unsigned int pre_uvolt;
- unsigned int const_uvolt;
- unsigned int eoc_uamp;
- unsigned int fast_uamp;
-};
-
-struct rt5033_charger {
- struct device *dev;
- struct rt5033_dev *rt5033;
- struct power_supply *psy;
- struct rt5033_charger_data *chg;
-};
-
#endif /* __RT5033_H__ */