Skip to contentSkip to conversation

ep93xx: register the pwm devices on the ts72xx dev boards

PATCH New Matthieu Crapet 2 participants 2 messages Mar 8, 2010

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ep93xx: register the pwm devices on the ts72xx dev boards

Add the platform init code to register the pwm device that exist on the various ts72xx development boards.

---
 arch/arm/mach-ep93xx/ts72xx.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
arch/arm/mach-ep93xx/ts72xx.c +3 -0
index 259f782..1acb7bf 100644
@@ -176,6 +176,9 @@ static void __init ts72xx_init_machine(void)
 	ts72xx_register_flash();
 	platform_device_register(&ts72xx_rtc_device);
 
+	/* PWM1 is DIO_6 on TS-72xx header */
+	ep93xx_register_pwm(0, 1);
+
 	ep93xx_register_eth(&ts72xx_eth_data, 1);
 }
 
Signature · 1 line
1.6.6.1
#1 lore raw

PATCH 1/1 ep93xx: register the pwm devices on the ts72xx dev boards

Quoted 4 lines · Matthieu Crapet

Add the platform init code to register the pwm device that exist on the various ts72xx development boards.

Looks ok.

Quoted 17 lines
---
 arch/arm/mach-ep93xx/ts72xx.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
arch/arm/mach-ep93xx/ts72xx.c +3 -0
index 259f782..1acb7bf 100644
@@ -176,6 +176,9 @@ static void __init ts72xx_init_machine(void)
 	ts72xx_register_flash();
 	platform_device_register(&ts72xx_rtc_device);
 
+	/* PWM1 is DIO_6 on TS-72xx header */
+	ep93xx_register_pwm(0, 1);
+
 	ep93xx_register_eth(&ts72xx_eth_data, 1);
 }