ls1088ardb: Add SD Secure boot target support
[platform/kernel/u-boot.git] / drivers / pwm / pwm-uclass.c
index c2200af..69051fe 100644 (file)
@@ -9,6 +9,16 @@
 #include <dm.h>
 #include <pwm.h>
 
+int pwm_set_invert(struct udevice *dev, uint channel, bool polarity)
+{
+       struct pwm_ops *ops = pwm_get_ops(dev);
+
+       if (!ops->set_invert)
+               return -ENOSYS;
+
+       return ops->set_invert(dev, channel, polarity);
+}
+
 int pwm_set_config(struct udevice *dev, uint channel, uint period_ns,
                   uint duty_ns)
 {