Skip to contentSkip to conversation

ep93xx: add errata info about pwm outputs

PATCH New H Hartley Sweeten 2 participants 3 messages Oct 13, 2009 – Oct 21, 2009

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

PATCH 1/1 ep93xx: add errata info about pwm outputs

The EP93xx User's guide has an error about the number of pwm channels available in the various chips. Add comments about this in the driver since the guide will probably never get updated.

EP9301/02 only have pwm.1, pin PMWOUT is not on the chip EP9307 only has pwm.0, pin PWMOUT1 (EGPIO14) is not on the chip EP9312/15 have both pwm0 and pwm.1

---

arch/arm/mach-ep93xx/core.c +1 -0
index f95dc16..f30be28 100644
@@ -648,6 +648,7 @@ static struct platform_device ep93xx_pwm1_device = {
 
 void __init ep93xx_register_pwm(int pwm0, int pwm1)
 {
+	/* NOTE: EP9301/02 do not have PWMOUT */
 	if (pwm0)
 		platform_device_register(&ep93xx_pwm0_device);
 
drivers/misc/ep93xx_pwm.c +11 -5
index ba46941..de9f405 100644
@@ -9,12 +9,18 @@
  *	as published by the Free Software Foundation; either version
  *	2 of the License, or (at your option) any later version.
  *
- *  EP9307 has only one channel:
- *    - PWMOUT
+ * The EP93xx User's Guide has an error about the number of pwm channels
+ * available in the various chips.
  *
- *  EP9301/02/12/15 have two channels:
- *    - PWMOUT
- *    - PWMOUT1 (alternate function for EGPIO14)
+ * EP9301 and EP9302 only have one pwm output:
+ *	pwm.1 - PWMOUT1 (alternate function for EGPIO14)
+ *
+ * EP9307 also only has one pwm output:
+ *	pwm.0 - PWMOUT
+ *
+ * EP9312 and EP9315 have two pwm outputs:
+ *	pwm.0 - PWMOUT
+ *	pwm.1 - PWMOUT1 (alternate function for EGPIO14)
  */
 
 #include <linux/module.h> 
#1 lore raw

PATCH 1/1 ep93xx: add errata info about pwm outputs

Quoted 31 lines · H Hartley Sweeten

The EP93xx User's guide has an error about the number of pwm channels available in the various chips. Add comments about this in the driver since the guide will probably never get updated.

EP9301/02 only have pwm.1, pin PMWOUT is not on the chip EP9307 only has pwm.0, pin PWMOUT1 (EGPIO14) is not on the chip EP9312/15 have both pwm0 and pwm.1

---

arch/arm/mach-ep93xx/core.c +1 -0
index f95dc16..f30be28 100644
@@ -648,6 +648,7 @@ static struct platform_device ep93xx_pwm1_device = {
 
 void __init ep93xx_register_pwm(int pwm0, int pwm1)
 {
+	/* NOTE: EP9301/02 do not have PWMOUT */
 	if (pwm0)
 		platform_device_register(&ep93xx_pwm0_device);
 
drivers/misc/ep93xx_pwm.c +0 -0
index ba46941..de9f405 100644

drivers/misc/ep93xx_pwm.c line 13

Quoted 7 lines
drivers/misc/ep93xx_pwm.c +2 -2
@@ -9,12 +9,18 @@
  *	as published by the Free Software Foundation; either version
  *	2 of the License, or (at your option) any later version.
  *
- *  EP9307 has only one channel:
- *    - PWMOUT
+ * The EP93xx User's Guide has an error about the number of pwm channels
+ * available in the various chips.

Is there an official errata for this that we can link to?

~Ryan

Signature · 7 lines
Bluewater Systems Ltd - ARM Technology Solution Centre

Ryan Mallon         		5 Amuri Park, 404 Barbadoes St
ryan at bluewatersys.com         	PO Box 13 889, Christchurch 8013
http://www.bluewatersys.com	New Zealand
Phone: +64 3 3779127		Freecall: Australia 1800 148 751
Fax:   +64 3 3779135			  USA 1800 261 2934
#2 lore raw

PATCH 1/1 ep93xx: add errata info about pwm outputs

Quoted 12 lines · Ryan Mallon
Quoted 12 lines

The EP93xx User's guide has an error about the number of pwm channels available in the various chips. Add comments about this in the driver since the guide will probably never get updated.

EP9301/02 only have pwm.1, pin PMWOUT is not on the chip EP9307 only has pwm.0, pin PWMOUT1 (EGPIO14) is not on the chip EP9312/15 have both pwm0 and pwm.1

[snip]

Quoted 1 line

Is there an official errata for this that we can link to?

Not that I have found. Cirrus is no longer developing the EP93xx so it will probably never be "officially" listed in any errata.

I just ran across this when I was trying to locate the PWMOUT pin on an EP9302 chip.

Regards,
Hartley