Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752457AbbGPGIB (ORCPT ); Thu, 16 Jul 2015 02:08:01 -0400 Received: from utopia.booyaka.com ([74.50.51.50]:51933 "EHLO utopia.booyaka.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751300AbbGPGIA (ORCPT ); Thu, 16 Jul 2015 02:08:00 -0400 Date: Thu, 16 Jul 2015 06:07:59 +0000 (UTC) From: Paul Walmsley To: Brian Hutchinson cc: mturquette@linaro.org, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Tero Kristo , Tony Lindgren Subject: Re: [PATCH 1/1] add pwm capability to dm816x In-Reply-To: Message-ID: References: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2954 Lines: 85 Hello Brian, On Mon, 15 Jun 2015, Brian Hutchinson wrote: > Clocks 4-7 are capable of PWM output on dm816x. > > This adds the pwm capability to those timers. > > Cc: Paul Walmsley > Cc: Tero Kristo > Cc: Tony Lindgren > Signed-off-by: Brian Hutchinson > This patch seems to be corrupted. The above line doesn't look right; there are some spurious newlines in the patch header, and tabs seem to have been converted to whitespace. Some of these issues may be due to mailer problems. Could you please fix and try again? - Paul > > --- arch/arm/mach-omap2/omap_hwmod_81xx_data.c_orig 2015-06-15 > 13:20:43.174343431 -0400 > +++ arch/arm/mach-omap2/omap_hwmod_81xx_data.c 2015-06-15 > 13:34:51.770551392 -0400 > @@ -546,6 +546,14 @@ static struct omap_timer_capability_dev_ > .timer_capability = OMAP_TIMER_ALWON, > }; > > +/* pwm timers dev attribute. > + * timers 4-7 may be used for PWM output - see datasheet timer terminal > + * functions table > + */ > +static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = { > + .timer_capability = OMAP_TIMER_ALWON | OMAP_TIMER_HAS_PWM, > +}; > + > static struct omap_hwmod dm816x_timer1_hwmod = { > .name = "timer1", > .clkdm_name = "alwon_l3s_clkdm", > @@ -619,7 +627,7 @@ static struct omap_hwmod dm816x_timer4_h > .modulemode = MODULEMODE_SWCTRL, > }, > }, > - .dev_attr = &capability_alwon_dev_attr, > + .dev_attr = &capability_pwm_dev_attr, > .class = &dm816x_timer_hwmod_class, > }; > > @@ -640,7 +648,7 @@ static struct omap_hwmod dm816x_timer5_h > .modulemode = MODULEMODE_SWCTRL, > }, > }, > - .dev_attr = &capability_alwon_dev_attr, > + .dev_attr = &capability_pwm_dev_attr, > .class = &dm816x_timer_hwmod_class, > }; > > @@ -661,7 +669,7 @@ static struct omap_hwmod dm816x_timer6_h > .modulemode = MODULEMODE_SWCTRL, > }, > }, > - .dev_attr = &capability_alwon_dev_attr, > + .dev_attr = &capability_pwm_dev_attr, > .class = &dm816x_timer_hwmod_class, > }; > > @@ -682,7 +690,7 @@ static struct omap_hwmod dm816x_timer7_h > .modulemode = MODULEMODE_SWCTRL, > }, > }, > - .dev_attr = &capability_alwon_dev_attr, > + .dev_attr = &capability_pwm_dev_attr, > .class = &dm816x_timer_hwmod_class, > }; > - Paul -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/