From: shenwei.wang@nxp.com Date: Fri, 8 Jun 2018 19:22:36 +0000 (-0500) Subject: pwm: fsl-ftm: Enable support for the new SoC i.MX8QM X-Git-Tag: Ubuntu-5.10.0-12.13~7137^2~8 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=2c4f2e326bd4d02f4b30d58f35448575573d5a04;p=mirror_ubuntu-hirsute-kernel.git 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 Signed-off-by: Thierry Reding --- 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);