drivers: pwm: Enable PWM capture feature for TPM

This implementation refers to the code from FTM,
which supports to capture pulse and period.

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2 files changed