* [U-Boot] [PATCH] pwm: imx: increase support up to PWM8
@ 2016-10-12 17:01 Christoph Fritz
2016-10-17 7:21 ` Stefano Babic
0 siblings, 1 reply; 5+ messages in thread
From: Christoph Fritz @ 2016-10-12 17:01 UTC (permalink / raw)
To: u-boot
This patch increases number of supported PWMs from previously
4 now up to 8.
Signed-off-by: Christoph Fritz <chf.fritz@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
^ permalink raw reply related [flat|nested] 5+ messages in thread* [U-Boot] [PATCH] pwm: imx: increase support up to PWM8
2016-10-12 17:01 [U-Boot] [PATCH] pwm: imx: increase support up to PWM8 Christoph Fritz
@ 2016-10-17 7:21 ` Stefano Babic
2016-10-17 7:24 ` Stefano Babic
0 siblings, 1 reply; 5+ messages in thread
From: Stefano Babic @ 2016-10-17 7:21 UTC (permalink / raw)
To: u-boot
On 12/10/2016 19:01, Christoph Fritz wrote:
> This patch increases number of supported PWMs from previously
> 4 now up to 8.
>
> Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
> ---
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] pwm: imx: increase support up to PWM8
2016-10-17 7:21 ` Stefano Babic
@ 2016-10-17 7:24 ` Stefano Babic
2016-11-22 11:01 ` [U-Boot] [PATCH v2] pwm: imx: increase support up to PWM8 for i.MX6SX Christoph Fritz
0 siblings, 1 reply; 5+ messages in thread
From: Stefano Babic @ 2016-10-17 7:24 UTC (permalink / raw)
To: u-boot
On 17/10/2016 09:21, Stefano Babic wrote:
> On 12/10/2016 19:01, Christoph Fritz wrote:
>> This patch increases number of supported PWMs from previously
>> 4 now up to 8.
>>
>> Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
>> ---
>
> Applied to u-boot-imx, thanks !
No, it is not. Not all i.MX (even MX6, the only user for PWM_IMX) has 8
PWMs. This patch breaks several boards aqnd must be fixed before applying.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH v2] pwm: imx: increase support up to PWM8 for i.MX6SX
2016-10-17 7:24 ` Stefano Babic
@ 2016-11-22 11:01 ` Christoph Fritz
2016-11-29 16:19 ` Stefano Babic
0 siblings, 1 reply; 5+ messages in thread
From: Christoph Fritz @ 2016-11-22 11:01 UTC (permalink / raw)
To: u-boot
This patch increases supported PWMs from previously PWM4 now up to PWM8
if i.MX6SX is in use.
Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
---
drivers/pwm/pwm-imx-util.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/drivers/pwm/pwm-imx-util.c b/drivers/pwm/pwm-imx-util.c
index 285564a..534dd8e 100644
--- a/drivers/pwm/pwm-imx-util.c
+++ b/drivers/pwm/pwm-imx-util.c
@@ -15,7 +15,7 @@
#include <div64.h>
#include <asm/arch/imx-regs.h>
-/* pwm_id from 0..3 */
+/* pwm_id from 0..7 */
struct pwm_regs *pwm_id_to_reg(int pwm_id)
{
switch (pwm_id) {
@@ -27,6 +27,16 @@ 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;
+#ifdef CONFIG_MX6SX
+ 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;
+#endif
default:
printf("unknown pwm_id: %d\n", pwm_id);
break;
--
2.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread* [U-Boot] [PATCH v2] pwm: imx: increase support up to PWM8 for i.MX6SX
2016-11-22 11:01 ` [U-Boot] [PATCH v2] pwm: imx: increase support up to PWM8 for i.MX6SX Christoph Fritz
@ 2016-11-29 16:19 ` Stefano Babic
0 siblings, 0 replies; 5+ messages in thread
From: Stefano Babic @ 2016-11-29 16:19 UTC (permalink / raw)
To: u-boot
On 22/11/2016 12:01, Christoph Fritz wrote:
> This patch increases supported PWMs from previously PWM4 now up to PWM8
> if i.MX6SX is in use.
>
> Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
> ---
> drivers/pwm/pwm-imx-util.c | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/pwm/pwm-imx-util.c b/drivers/pwm/pwm-imx-util.c
> index 285564a..534dd8e 100644
> --- a/drivers/pwm/pwm-imx-util.c
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-11-29 16:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-12 17:01 [U-Boot] [PATCH] pwm: imx: increase support up to PWM8 Christoph Fritz
2016-10-17 7:21 ` Stefano Babic
2016-10-17 7:24 ` Stefano Babic
2016-11-22 11:01 ` [U-Boot] [PATCH v2] pwm: imx: increase support up to PWM8 for i.MX6SX Christoph Fritz
2016-11-29 16:19 ` Stefano Babic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox