summaryrefslogtreecommitdiff
path: root/drivers/pwm
diff options
context:
space:
mode:
authorMartyn Welch <martyn.welch@collabora.co.uk>2017-11-08 15:35:11 +0000
committerStefano Babic <sbabic@denx.de>2017-11-20 09:58:31 +0100
commit065a1ece7a4dadc525e9fb587c5c0c57c288e249 (patch)
treeeade0f9beb41a34f90d01dd98d5199493b5ba886 /drivers/pwm
parentecdfb4195b20eb2dcde3c4083170016c13c69e8b (diff)
downloadu-boot-065a1ece7a4dadc525e9fb587c5c0c57c288e249.tar.gz
pwm: imx: Enable PWM support on i.MX53
Add missing parts for i.MX53 PWM support Acked-by: Nandor Han <nandor.han@ge.com> Signed-off-by: Martyn Welch <martyn.welch@collabora.co.uk> Cc: Stefano Babic <sbabic@denx.de> Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'drivers/pwm')
-rw-r--r--drivers/pwm/pwm-imx-util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-imx-util.c b/drivers/pwm/pwm-imx-util.c
index 534dd8eece..97ac0c8fc0 100644
--- a/drivers/pwm/pwm-imx-util.c
+++ b/drivers/pwm/pwm-imx-util.c
@@ -23,10 +23,12 @@ 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
case 2:
return (struct pwm_regs *)PWM3_BASE_ADDR;
case 3:
return (struct pwm_regs *)PWM4_BASE_ADDR;
+#endif
#ifdef CONFIG_MX6SX
case 4:
return (struct pwm_regs *)PWM5_BASE_ADDR;