]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
pwm: fsl-ftm: Enable support for the new SoC i.MX8QM
authorshenwei.wang@nxp.com <shenwei.wang@nxp.com>
Fri, 8 Jun 2018 19:22:36 +0000 (14:22 -0500)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 9 Jul 2018 17:08:26 +0000 (19:08 +0200)
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>
drivers/pwm/pwm-fsl-ftm.c

index 4d1d116250f6776694d0ed778c7486633e460636..883378d055c64e5887371b077d7c62f70d6a8920 100644 (file)
@@ -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);