Skip to content
Commit 05fd4001 authored by Dat Nguyen Duy's avatar Dat Nguyen Duy Committed by Carles Cufí
Browse files

drivers: pwm_nxp_s32_emios: prepare for support pwm capture



This prepares support pwm capture APIs by extended current pwm
shim driver but use a differrence hal component:

- Introduce a Kconfig options that will be set when PWM pulse
  generation API is used, it is also used to select the hal
  component. Guarding current code inside this Kconfig option

- Increase #pwm-cells to 3, flags is supported for PWM capture

- Do not require duty-cycle and polarity be set in dt, PWM
  capture doesn't need it.

- Rename emum value for pwm-mode to keep only key information

- Add preprocessor in case no channel is configured for generate
  PWM output, to avoid warning when build

Signed-off-by: default avatarDat Nguyen Duy <dat.nguyenduy@nxp.com>
parent e021108a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment