From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Hilman Subject: Re: [PATCH-V5 3/3] ARM: OMAP: Make OMAP clocksource source selection using kernel param Date: Tue, 01 May 2012 10:03:49 -0700 Message-ID: <8762cfj0ju.fsf@ti.com> References: <1335362340-14960-1-git-send-email-hvaibhav@ti.com> <1335362340-14960-4-git-send-email-hvaibhav@ti.com> <79CD15C6BA57404B839C016229A409A83E9FF819@DBDE01.ent.ti.com> <79CD15C6BA57404B839C016229A409A83EA000B5@DBDE01.ent.ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from na3sys009aog126.obsmtp.com ([74.125.149.155]:38481 "EHLO na3sys009aog126.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756174Ab2EARDw (ORCPT ); Tue, 1 May 2012 13:03:52 -0400 Received: by ghrr20 with SMTP id r20so3229719ghr.27 for ; Tue, 01 May 2012 10:03:51 -0700 (PDT) In-Reply-To: <79CD15C6BA57404B839C016229A409A83EA000B5@DBDE01.ent.ti.com> (Vaibhav Hiremath's message of "Fri, 27 Apr 2012 05:31:07 +0000") Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: "Hiremath, Vaibhav" Cc: Paul Walmsley , "linux-omap@vger.kernel.org" , "tony@atomide.com" , "Shilimkar, Santosh" , "Cousson, Benoit" , "linux-arm-kernel@lists.infradead.org" , "Balbi, Felipe" , "DebBarma, Tarun Kanti" , Ming Lei "Hiremath, Vaibhav" writes: > On Fri, Apr 27, 2012 at 04:08:07, Paul Walmsley wrote: >> On Thu, 26 Apr 2012, Paul Walmsley wrote: >> >> > Okay, thanks for testing. Please do update this patch to use >> > omap_hwmod_enable(), etc.; see for example omap_dm_timer_init_one(). >> >> And, just to be explicit, the ioremap(), clk_get(), and clk_enable() >> should no longer be needed for OMAP2+, once you add the >> omap_hwmod_enable(). >> > > What about OMAP1 architecture? Will it work? You'll need to move the ioremap/clk* usage into OMAP1 code (mach-omap1/timer32k.c), and move the omap_hwmod_enable() into OMAP2+ code (mach-omap2/timer.c). Then make the omap_init_clocksource_32k() just take the base address. If counter_32k were a real driver (and it should be) this is how things would work. For example, the GPIO driver is shared between OMAP1 and OMAP2+ and any SoC specific init is done in the SoC specific device init code instead of the driver. Hope this helps, Kevin From mboxrd@z Thu Jan 1 00:00:00 1970 From: khilman@ti.com (Kevin Hilman) Date: Tue, 01 May 2012 10:03:49 -0700 Subject: [PATCH-V5 3/3] ARM: OMAP: Make OMAP clocksource source selection using kernel param In-Reply-To: <79CD15C6BA57404B839C016229A409A83EA000B5@DBDE01.ent.ti.com> (Vaibhav Hiremath's message of "Fri, 27 Apr 2012 05:31:07 +0000") References: <1335362340-14960-1-git-send-email-hvaibhav@ti.com> <1335362340-14960-4-git-send-email-hvaibhav@ti.com> <79CD15C6BA57404B839C016229A409A83E9FF819@DBDE01.ent.ti.com> <79CD15C6BA57404B839C016229A409A83EA000B5@DBDE01.ent.ti.com> Message-ID: <8762cfj0ju.fsf@ti.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org "Hiremath, Vaibhav" writes: > On Fri, Apr 27, 2012 at 04:08:07, Paul Walmsley wrote: >> On Thu, 26 Apr 2012, Paul Walmsley wrote: >> >> > Okay, thanks for testing. Please do update this patch to use >> > omap_hwmod_enable(), etc.; see for example omap_dm_timer_init_one(). >> >> And, just to be explicit, the ioremap(), clk_get(), and clk_enable() >> should no longer be needed for OMAP2+, once you add the >> omap_hwmod_enable(). >> > > What about OMAP1 architecture? Will it work? You'll need to move the ioremap/clk* usage into OMAP1 code (mach-omap1/timer32k.c), and move the omap_hwmod_enable() into OMAP2+ code (mach-omap2/timer.c). Then make the omap_init_clocksource_32k() just take the base address. If counter_32k were a real driver (and it should be) this is how things would work. For example, the GPIO driver is shared between OMAP1 and OMAP2+ and any SoC specific init is done in the SoC specific device init code instead of the driver. Hope this helps, Kevin