[PATCH v5 18/46] pwm: add the core infrastructure to allow atomic update