Upgraded pwmd and qpwmc