diff options
author | shenwei.wang@nxp.com <shenwei.wang@nxp.com> | 2018-06-08 15:22:36 -0400 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2018-07-09 13:08:26 -0400 |
commit | 2c4f2e326bd4d02f4b30d58f35448575573d5a04 (patch) | |
tree | e11e996f7a76fe842eda2aa6e9393366b915cfc1 /drivers/pwm/pwm-fsl-ftm.c | |
parent | db6c51ab156a2ec29edff41b1ebc1fe7d04a9614 (diff) |
pwm: fsl-ftm: Enable support for the new SoC i.MX8QM
Enabled the support for the new SoC i.MX8QM by adding the compatible
string of "fsl,imx8qm-ftm-pwm" and its per-compatible data with setting
"has_enable_bits" to "true".
Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-fsl-ftm.c')
-rw-r--r-- | drivers/pwm/pwm-fsl-ftm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-fsl-ftm.c b/drivers/pwm/pwm-fsl-ftm.c index 4d1d116250f6..883378d055c6 100644 --- a/drivers/pwm/pwm-fsl-ftm.c +++ b/drivers/pwm/pwm-fsl-ftm.c | |||
@@ -562,8 +562,13 @@ static const struct fsl_ftm_soc vf610_ftm_pwm = { | |||
562 | .has_enable_bits = false, | 562 | .has_enable_bits = false, |
563 | }; | 563 | }; |
564 | 564 | ||
565 | static const struct fsl_ftm_soc imx8qm_ftm_pwm = { | ||
566 | .has_enable_bits = true, | ||
567 | }; | ||
568 | |||
565 | static const struct of_device_id fsl_pwm_dt_ids[] = { | 569 | static const struct of_device_id fsl_pwm_dt_ids[] = { |
566 | { .compatible = "fsl,vf610-ftm-pwm", .data = &vf610_ftm_pwm }, | 570 | { .compatible = "fsl,vf610-ftm-pwm", .data = &vf610_ftm_pwm }, |
571 | { .compatible = "fsl,imx8qm-ftm-pwm", .data = &imx8qm_ftm_pwm }, | ||
567 | { /* sentinel */ } | 572 | { /* sentinel */ } |
568 | }; | 573 | }; |
569 | MODULE_DEVICE_TABLE(of, fsl_pwm_dt_ids); | 574 | MODULE_DEVICE_TABLE(of, fsl_pwm_dt_ids); |