This commit creates a new condition in which i.MX7 SoCs will be able to use the third and fourth PWM controllers in the pwm-imx driver.
Signed-off-by: Thomas Bonnefille <[email protected]> --- drivers/pwm/pwm-imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c index 28187b4fcbb..8e655943eec 100644 --- a/drivers/pwm/pwm-imx.c +++ b/drivers/pwm/pwm-imx.c @@ -43,7 +43,7 @@ struct pwm_regs *pwm_id_to_reg(int pwm_id) return (struct pwm_regs *)PWM1_BASE_ADDR; case 1: return (struct pwm_regs *)PWM2_BASE_ADDR; -#ifdef CONFIG_MX6 +#if defined(CONFIG_MX6) || defined(CONFIG_MX7) case 2: return (struct pwm_regs *)PWM3_BASE_ADDR; case 3: -- 2.52.0

