@@ -75,6 +75,7 @@
#define RZG2L_GTINTAD_GRP_MASK GENMASK(25, 24)
#define RZG2L_GTINTAD_OUTPUT_DISABLE_SAME_LEVEL_HIGH BIT(29)
+#define RZG2L_GTINTAD_OUTPUT_DISABLE_SAME_LEVEL_LOW BIT(30)
#define RZG2L_GTST_OABHF BIT(29)
#define RZG2L_GTST_OABLF BIT(30)
@@ -542,6 +543,14 @@ int rzg2l_gpt_poeg_disable_req_both_high(void *dev, u8 grp, bool on)
}
EXPORT_SYMBOL_GPL(rzg2l_gpt_poeg_disable_req_both_high);
+int rzg2l_gpt_poeg_disable_req_both_low(void *dev, u8 grp, bool on)
+{
+ int id = RZG2L_GTINTAD_OUTPUT_DISABLE_SAME_LEVEL_LOW;
+
+ return rzg2l_gpt_poeg_disable_req_endisable(dev, grp, id, on);
+}
+EXPORT_SYMBOL_GPL(rzg2l_gpt_poeg_disable_req_both_low);
+
static void rzg2l_gpt_reset_assert_pm_disable(void *data)
{
struct rzg2l_gpt_chip *rzg2l_gpt = data;
@@ -7,6 +7,7 @@ u32 rzg2l_gpt_poeg_disable_req_irq_status(void *dev, u8 grp);
int rzg2l_gpt_poeg_disable_req_clr(void *gpt_device, u8 grp);
int rzg2l_gpt_pin_reenable(void *gpt_device, u8 grp);
int rzg2l_gpt_poeg_disable_req_both_high(void *gpt_device, u8 grp, bool on);
+int rzg2l_gpt_poeg_disable_req_both_low(void *gpt_device, u8 grp, bool on);
#else
static inline u32 rzg2l_gpt_poeg_disable_req_irq_status(void *dev, u8 grp)
{
@@ -27,6 +28,11 @@ static inline int rzg2l_gpt_poeg_disable_req_both_high(void *gpt_device, u8 grp,
{
return -ENODEV;
}
+
+static inline int rzg2l_gpt_poeg_disable_req_both_low(void *gpt_device, u8 grp, bool on)
+{
+ return -ENODEV;
+}
#endif
#endif /* __LINUX_PWM_RZG2L_GPT_H__ */
This patch adds support for output disable request from gpt, when same time output level is low. Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> --- drivers/pwm/pwm-rzg2l-gpt.c | 9 +++++++++ include/linux/pwm/rzg2l-gpt.h | 6 ++++++ 2 files changed, 15 insertions(+)