[U-Boot] [PATCH] pwm: imx: increase support up to PWM8
Christoph Fritz
chf.fritz at googlemail.com
Wed Oct 12 19:01:48 CEST 2016
This patch increases number of supported PWMs from previously
4 now up to 8.
Signed-off-by: Christoph Fritz <chf.fritz at googlemail.com>
---
drivers/pwm/pwm-imx-util.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/pwm/pwm-imx-util.c b/drivers/pwm/pwm-imx-util.c
index f92c370..f030b44 100644
--- a/drivers/pwm/pwm-imx-util.c
+++ b/drivers/pwm/pwm-imx-util.c
@@ -27,6 +27,14 @@ struct pwm_regs *pwm_id_to_reg(int pwm_id)
return (struct pwm_regs *)PWM3_BASE_ADDR;
case 3:
return (struct pwm_regs *)PWM4_BASE_ADDR;
+ case 4:
+ return (struct pwm_regs *)PWM5_BASE_ADDR;
+ case 5:
+ return (struct pwm_regs *)PWM6_BASE_ADDR;
+ case 6:
+ return (struct pwm_regs *)PWM7_BASE_ADDR;
+ case 7:
+ return (struct pwm_regs *)PWM8_BASE_ADDR;
default:
printf("unknown pwm_id: %d\n", pwm_id);
break;
--
2.1.4
More information about the U-Boot
mailing list