summaryrefslogtreecommitdiff
path: root/drivers/pwm
diff options
context:
space:
mode:
authorshenwei.wang@nxp.com <shenwei.wang@nxp.com>2018-06-08 14:22:36 -0500
committerThierry Reding <thierry.reding@gmail.com>2018-07-09 19:08:26 +0200
commit2c4f2e326bd4d02f4b30d58f35448575573d5a04 (patch)
treee11e996f7a76fe842eda2aa6e9393366b915cfc1 /drivers/pwm
parentdb6c51ab156a2ec29edff41b1ebc1fe7d04a9614 (diff)
downloadlinux-rpi-2c4f2e326bd4d02f4b30d58f35448575573d5a04.tar.gz
linux-rpi-2c4f2e326bd4d02f4b30d58f35448575573d5a04.tar.bz2
linux-rpi-2c4f2e326bd4d02f4b30d58f35448575573d5a04.zip
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')
-rw-r--r--drivers/pwm/pwm-fsl-ftm.c5
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 = {
.has_enable_bits = false,
};
+static const struct fsl_ftm_soc imx8qm_ftm_pwm = {
+ .has_enable_bits = true,
+};
+
static const struct of_device_id fsl_pwm_dt_ids[] = {
{ .compatible = "fsl,vf610-ftm-pwm", .data = &vf610_ftm_pwm },
+ { .compatible = "fsl,imx8qm-ftm-pwm", .data = &imx8qm_ftm_pwm },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, fsl_pwm_dt_ids);