diff mbox series

[RFC,04/11] mfd: max77693: Add defines for OTG control

Message ID 20240530-max77693-charger-extcon-v1-4-dc2a9e5bdf30@gmail.com
State New
Headers show
Series power: supply: max77693: Toggle charging/OTG based on extcon status | expand

Commit Message

Artur Weber May 30, 2024, 8:55 a.m. UTC
These three bits are used to enable OTG control in the charger
driver. Add them in preparation for an updated driver.

Signed-off-by: Artur Weber <aweber.kernel@gmail.com>
---
 include/linux/mfd/max77693-private.h | 3 +++
 1 file changed, 3 insertions(+)

Comments

Krzysztof Kozlowski May 31, 2024, 9:36 a.m. UTC | #1
On 30/05/2024 10:55, Artur Weber wrote:
> These three bits are used to enable OTG control in the charger
> driver. Add them in preparation for an updated driver.
> 
> Signed-off-by: Artur Weber <aweber.kernel@gmail.com>
> ---
>  include/linux/mfd/max77693-private.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/include/linux/mfd/max77693-private.h b/include/linux/mfd/max77693-private.h
> index 4570646e2f33..4448b024255d 100644
> --- a/include/linux/mfd/max77693-private.h
> +++ b/include/linux/mfd/max77693-private.h
> @@ -209,7 +209,10 @@ enum max77693_charger_battery_state {
>  
>  /* MAX77693 CHG_CNFG_00 register */
>  #define CHG_CNFG_00_CHG_MASK		0x1
> +#define CHG_CNFG_00_OTG_MASK		0x2
>  #define CHG_CNFG_00_BUCK_MASK		0x4
> +#define CHG_CNFG_00_BOOST_MASK		0x8
> +#define CHG_CNFG_00_DIS_MUIC_CTRL_MASK	0x20

Please squash.

Best regards,
Krzysztof
diff mbox series

Patch

diff --git a/include/linux/mfd/max77693-private.h b/include/linux/mfd/max77693-private.h
index 4570646e2f33..4448b024255d 100644
--- a/include/linux/mfd/max77693-private.h
+++ b/include/linux/mfd/max77693-private.h
@@ -209,7 +209,10 @@  enum max77693_charger_battery_state {
 
 /* MAX77693 CHG_CNFG_00 register */
 #define CHG_CNFG_00_CHG_MASK		0x1
+#define CHG_CNFG_00_OTG_MASK		0x2
 #define CHG_CNFG_00_BUCK_MASK		0x4
+#define CHG_CNFG_00_BOOST_MASK		0x8
+#define CHG_CNFG_00_DIS_MUIC_CTRL_MASK	0x20
 
 /* MAX77693_CHG_REG_CHG_CNFG_01 register */
 #define CHG_CNFG_01_FCHGTIME_SHIFT	0