pwm: fsl-ftm: Added the support of per-compatible data
authorshenwei.wang@nxp.com <shenwei.wang@nxp.com>
Fri, 8 Jun 2018 19:22:35 +0000 (14:22 -0500)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 9 Jul 2018 17:06:21 +0000 (19:06 +0200)
commitdb6c51ab156a2ec29edff41b1ebc1fe7d04a9614
tree9ead980e09f479c2cdf72135d3d4bd85f80af7c8
parent82a9c55a2bb0a47b16c75e93d8ce54e8944758c0
pwm: fsl-ftm: Added the support of per-compatible data

On the i.MX8x SoC family, an additional PWM enable bit is added for each
PWM channel in the register FTM_SC[23:16]. It supports 8 channels. Bit
16 is for channel 0, and bit 23 is for channel 7. As the IP version
information can not be obtained via any of the FTM registers, a property
of "has_enable_bits" is added via per-compatible data structure.

Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-fsl-ftm.c