Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755720Ab3FCJXo (ORCPT ); Mon, 3 Jun 2013 05:23:44 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:54256 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751838Ab3FCJXl convert rfc822-to-8bit (ORCPT ); Mon, 3 Jun 2013 05:23:41 -0400 From: Arnd Bergmann To: Heiko =?ISO-8859-1?Q?St=FCbner?= Cc: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , John Stultz , Thomas Gleixner , Mike Turquette , Seungwon Jeon , Jaehoon Chung , Chris Ball , linux-mmc@vger.kernel.org, Grant Likely , Rob Herring , Linus Walleij , devicetree-discuss@lists.ozlabs.org, Russell King , Olof Johansson Subject: Re: [PATCH 10/10] arm: add basic support for Rockchip RK3066a boards Date: Mon, 03 Jun 2013 11:22:35 +0200 Message-ID: <9452845.qTGjLPCfXq@wuerfel> User-Agent: KMail/4.10.2 (Linux/3.10.0-rc3-next-20130527+; KDE/4.10.3; x86_64; ; ) In-Reply-To: <201306031023.49364.heiko@sntech.de> References: <201306030055.15413.heiko@sntech.de> <5760087.7O4UgypAot@wuerfel> <201306031023.49364.heiko@sntech.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" X-Provags-ID: V02:K0:Puj2kGZ/RFhLvuRqzUk9KJZLQZRnGGo33X4rtGZNLPB A1Bi69t4vFpv0OsNY/VbpjlQcUGyIq6dWYGFnJzKpNjz4Qv8Y6 Av6bPWU9pmaMsx31qV2gZTA4HZu4laex/MXKOPTE1+/MCyIRil rw1rUE+KVdFkhkxqR1FsCrk14tpSLph9y9bijsNFDTZlMT25X3 cry3F+xmfWMLbP17eg2H5NER5HKPOdKIXMlvCDNuJx6ItbQ1ZE TLuVtTzyHN7Y3Tpbs6Bd45Tjox3M9mnvz1VwB4eja4kn9XXifA X6EgEkLWhzVViKuxSN/eM9b3rGfWIjSD6G0kOuUjaqNfAq3ISq lCUYe4qxxexs21Ger4gQ= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2085 Lines: 62 On Monday 03 June 2013 10:23:49 Heiko St?bner wrote: > Am Montag, 3. Juni 2013, 04:15:46 schrieb Arnd Bergmann: > > > > Can't you use > > > > of_clk_init(NULL); > > clocksource_of_init(); > > > > here and change the two drivers to provide the respective macros? > > hmm, while this would make a lot of things easier I don't see right now how > this would work. > > The dw_apb_timer clocksource does not have its own device node, but instead > uses two timer devices as clocksource and clockevent. > > Hmm ... one idea would be to wrap them in the dt, like > > clocksource { > compatible = "snps,dw-apb-clocksource" > > timer@2003a000 { > compatible = "snps,dw-apb-timer-osc"; > reg = <0x2003a000 0x100>; > interrupts = ; > clocks = <&clk_gates1 1>, <&clk_gates7 8>; > clock-names = "timer", "pclk"; > }; > > timer@2000e000 { > compatible = "snps,dw-apb-timer-osc"; > reg = <0x2000e000 0x100>; > interrupts = ; > clocks = <&clk_gates1 2>, <&clk_gates7 9>; > clock-names = "timer", "pclk"; > }; > }; Can't you just have multiple CLOCKSOURCE_OF_DECLARE() lines, one for each of the nodes? > > > +DT_MACHINE_START(ROCKCHIP_DT, "Rockchip Cortex-A9 (Device Tree)") > > > + .map_io = debug_ll_io_init, > > > + .init_machine = rockchip_dt_init, > > > + .init_time = rockchip_timer_init, > > > + .dt_compat = rockchip_board_dt_compat, > > > +MACHINE_END > > > > The map_io line can already get removed. > > Yesterday I did grep thru the linux-next I was using as base looking for the > debug_ll_io_init default I read about but was not able to find it ... most > likely my linux-next is a tad to old. Yes, it only showed up in today's linux-next. I thought it was older. Arnd -- 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/