Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 22A1DECAAD4 for ; Mon, 29 Aug 2022 12:50:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DBF3384924; Mon, 29 Aug 2022 14:50:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="lk3N4wyv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9220C84924; Mon, 29 Aug 2022 14:50:44 +0200 (CEST) Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id F2EC68492F for ; Mon, 29 Aug 2022 14:50:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 89F66B80EB8; Mon, 29 Aug 2022 12:50:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3579BC433C1; Mon, 29 Aug 2022 12:50:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661777439; bh=xo3zgVlGKoGl+gXXD/WMg4Cjy3PRgcdRhq2cP2TBSTs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lk3N4wyv3IhsOAcOFxCnDymeCiUwQRn739y1iWHhzVoqYVUxq+ijJGvhfXCT5mXSZ r99vROn2lKxeoE06tF9bddLtgm1Z2qNCEAr/LKlup/c9mpbm853pXPt9mLID3KjsQB BRs11YXktpiaGpDkMKk+K50pWMC1/apmE+CsFsEZcOQge1ymbrewYynWXdp11xOVf7 323ModFNk6TpnoyeenfBJsn0CEjz6dtbi+Rz2MnaZPfsB5t/cu246Snp4yxS1Rma+p x0dSqWCE5H0t2mFK/SHF3bY38RC9H8Y1bi32JLubjxAgKgxdFPYdukW7OQvYwWMxbA q2RedXnGgeSjw== Received: by pali.im (Postfix) id 15B817DE; Mon, 29 Aug 2022 14:50:36 +0200 (CEST) Date: Mon, 29 Aug 2022 14:50:35 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Stefan Roese Cc: Michael Walle , mibodhi@gmail.com, u-boot@lists.denx.de Subject: Re: mvebu - switch to orion-timer Message-ID: <20220829125035.3wguyakw2dr7sjl6@pali> References: <20220824073509.64827-1-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On Monday 29 August 2022 14:07:29 Stefan Roese wrote: > Hi Michael, Pali, Tony & all, > > On 24.08.22 09:35, Michael Walle wrote: > > Hi, > > > > > On 24.08.22 00:33, Pali Rohár wrote: > > > > Hello Stefan! Now when U-Boot contains new orion-timer.c driver, which > > > > Michael wrote, I think that it mvebu platform should switch to use it. > > > > Because build process for armada boards prints deprecation warning that > > > > new timer is not being used. Could you look at it, if it is possible to > > > > do global switch for mach-mvebu and mach-kirkwood? I think it does not > > > > make sense to do per-board switching as it is de-facto platform related > > > > code. > > > > > > Yes, I also though about this. > > > > > > But... > > > > > > In Linux we have 2 different timer clocksource drivers for Orion / > > > Kirkwood and Armada XP / 370 etc: > > > > > > drivers/clocksource/timer-orion.c > > > drivers/clocksource/timer-armada-370-xp.c > > > > > > I did not check, if and why this is necessary to handle those chips > > > via different drivers yet. Perhaps later this week. Or someone of > > > you beats me with this. ;) > > > > One thing which is definitely missing is > > https://elixir.bootlin.com/u-boot/v2022.10-rc3/source/arch/arm/mach-mvebu/timer.c#L33 > > > > I didn't bother to handle that one. And of course all the compatibles are > > missing. > > Thanks. Just a short status update: > > I'm currently busy with this CONFIG_TIMER migration for MVEBU / > Kirkwood. Looks good so far - I can only test on Armada XP right now. > So I need some extensive testing on all other kind of Marvell 32bit > users / developers. I expect to send the first draft patchset in a few > days. > > Thanks, > Stefan I will test it on Turris Omnia - A385.