add pwm init in platform