Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754772AbbK3ShQ (ORCPT ); Mon, 30 Nov 2015 13:37:16 -0500 Received: from muru.com ([72.249.23.125]:49418 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754104AbbK3ShO (ORCPT ); Mon, 30 Nov 2015 13:37:14 -0500 Date: Mon, 30 Nov 2015 10:37:07 -0800 From: Tony Lindgren To: Neil Armstrong Cc: Thierry Reding , linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, Grant Erickson , NeilBrown , Joachim Eastwood Subject: Re: [PATCH 3/3] arm: plat-omap: Add PWM dmtimer platform data quirks Message-ID: <20151130183707.GK2517@atomide.com> References: <56374592.4060201@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56374592.4060201@baylibre.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2822 Lines: 76 * Neil Armstrong [151102 03:14]: > In order to set the currently platform dependent dmtimer > functions pointers as platform data for the pwm-omap-dmtimer > platform driver, add it to plat-omap auxdata_lookup table. > > Suggested-by: Tony Lindgren > Signed-off-by: Neil Armstrong Actually this one will need to wait for Thierry to merge the driver first because of the dependency to the platform_data. Please resend this one separately once the driver hits the mainline tree. Regards, Tony > --- > arch/arm/mach-omap2/pdata-quirks.c | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c > index ea56397..647dec5 100644 > --- a/arch/arm/mach-omap2/pdata-quirks.c > +++ b/arch/arm/mach-omap2/pdata-quirks.c > @@ -23,6 +23,8 @@ > #include > #include > #include > +#include > +#include > > #include > #include > @@ -453,6 +455,24 @@ void omap_auxdata_legacy_init(struct device *dev) > dev->platform_data = &twl_gpio_auxdata; > } > > +/* Dual mode timer PWM callbacks platdata */ > +#if IS_ENABLED(CONFIG_OMAP_DM_TIMER) > +struct pwm_omap_dmtimer_pdata pwm_dmtimer_pdata = { > + .request_by_node = omap_dm_timer_request_by_node, > + .free = omap_dm_timer_free, > + .enable = omap_dm_timer_enable, > + .disable = omap_dm_timer_disable, > + .get_fclk = omap_dm_timer_get_fclk, > + .start = omap_dm_timer_start, > + .stop = omap_dm_timer_stop, > + .set_load = omap_dm_timer_set_load, > + .set_match = omap_dm_timer_set_match, > + .set_pwm = omap_dm_timer_set_pwm, > + .set_prescaler = omap_dm_timer_set_prescaler, > + .write_counter = omap_dm_timer_write_counter, > +}; > +#endif > + > /* > * Few boards still need auxdata populated before we populate > * the dev entries in of_platform_populate(). > @@ -506,6 +526,9 @@ static struct of_dev_auxdata omap_auxdata_lookup[] __initdata = { > OF_DEV_AUXDATA("ti,am4372-wkup-m3", 0x44d00000, "44d00000.wkup_m3", > &wkup_m3_data), > #endif > +#if IS_ENABLED(CONFIG_OMAP_DM_TIMER) > + OF_DEV_AUXDATA("ti,omap-dmtimer-pwm", 0, NULL, &pwm_dmtimer_pdata), > +#endif > #if defined(CONFIG_ARCH_OMAP4) || defined(CONFIG_SOC_OMAP5) > OF_DEV_AUXDATA("ti,omap4-iommu", 0x4a066000, "4a066000.mmu", > &omap4_iommu_pdata), > -- > 1.9.1 > -- 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/