make PWM work on G2