* [PATCH] ep93xx: add errata info about pwm outputs
@ 2009-10-13 23:58 H Hartley Sweeten
2009-10-21 0:55 ` Ryan Mallon
0 siblings, 1 reply; 3+ messages in thread
From: H Hartley Sweeten @ 2009-10-13 23:58 UTC (permalink / raw)
To: linux-arm-kernel
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
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ryan Mallon <ryan@bluewatersys.com>
---
diff --git a/arch/arm/mach-ep93xx/core.c b/arch/arm/mach-ep93xx/core.c
index f95dc16..f30be28 100644
--- a/arch/arm/mach-ep93xx/core.c
+++ b/arch/arm/mach-ep93xx/core.c
@@ -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);
diff --git a/drivers/misc/ep93xx_pwm.c b/drivers/misc/ep93xx_pwm.c
index ba46941..de9f405 100644
--- a/drivers/misc/ep93xx_pwm.c
+++ b/drivers/misc/ep93xx_pwm.c
@@ -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>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] ep93xx: add errata info about pwm outputs
2009-10-13 23:58 [PATCH] ep93xx: add errata info about pwm outputs H Hartley Sweeten
@ 2009-10-21 0:55 ` Ryan Mallon
2009-10-21 0:58 ` H Hartley Sweeten
0 siblings, 1 reply; 3+ messages in thread
From: Ryan Mallon @ 2009-10-21 0:55 UTC (permalink / raw)
To: linux-arm-kernel
H Hartley Sweeten wrote:
> 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
>
> Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
> Cc: Ryan Mallon <ryan@bluewatersys.com>
>
> ---
>
> diff --git a/arch/arm/mach-ep93xx/core.c b/arch/arm/mach-ep93xx/core.c
> index f95dc16..f30be28 100644
> --- a/arch/arm/mach-ep93xx/core.c
> +++ b/arch/arm/mach-ep93xx/core.c
> @@ -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);
>
> diff --git a/drivers/misc/ep93xx_pwm.c b/drivers/misc/ep93xx_pwm.c
> index ba46941..de9f405 100644
> --- a/drivers/misc/ep93xx_pwm.c
> +++ b/drivers/misc/ep93xx_pwm.c
> @@ -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
--
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] ep93xx: add errata info about pwm outputs
2009-10-21 0:55 ` Ryan Mallon
@ 2009-10-21 0:58 ` H Hartley Sweeten
0 siblings, 0 replies; 3+ messages in thread
From: H Hartley Sweeten @ 2009-10-21 0:58 UTC (permalink / raw)
To: linux-arm-kernel
On Tuesday, October 20, 2009 5:56 PM, Ryan Mallon wrote:
>> 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
>>
>> Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
>> Cc: Ryan Mallon <ryan@bluewatersys.com>
>>
[snip]
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-21 0:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-13 23:58 [PATCH] ep93xx: add errata info about pwm outputs H Hartley Sweeten
2009-10-21 0:55 ` Ryan Mallon
2009-10-21 0:58 ` H Hartley Sweeten
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).