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 096D7ECAAD2 for ; Mon, 29 Aug 2022 12:07:46 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6A9548483C; Mon, 29 Aug 2022 14:07:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1661774864; bh=GSGuZbJhweTrkQ6pzc8h+i87cIAigdoVd0+RyxaXcWg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=TZcrN5SoXJwLhzagWJSV4M8NDnwixDo7rShdpi+rClbqgasfU6j4Otysig5e5GaKR Mm2aySzG4q32If2J92Chd0qDLR354UBcFpITDH0lNbQ8/F5wKJrfqRyZ3rsNEzlj5F I6LFv5ktNUhi6PN01nKTaGA9QGgJjX6E+KGPt7riQCzM6xw61KDBqm/9hxpNFPIcbZ zWzM5LgCPpLi9a8gvFLgxnUYevR2p08MAUYhcBW1WrPqOdrlxTTmISQDBHShOwQOvZ xXKBZ6PbIVn3/kGM0CU3MZGHpcIovaWEEDgNckXG7LK8Yd3+ZJ/9Lmvs4JZuBg9mlK s0156RMOyicgw== Received: by phobos.denx.de (Postfix, from userid 109) id 3E70184927; Mon, 29 Aug 2022 14:07:43 +0200 (CEST) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [IPv6:2001:67c:2050:101:465::204]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0CD448480A for ; Mon, 29 Aug 2022 14:07:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4MGThm5jhrz9sSS; Mon, 29 Aug 2022 14:07:36 +0200 (CEST) Message-ID: Date: Mon, 29 Aug 2022 14:07:29 +0200 MIME-Version: 1.0 Subject: Re: mvebu - switch to orion-timer Content-Language: en-US To: Michael Walle Cc: mibodhi@gmail.com, pali@kernel.org, u-boot@lists.denx.de References: <20220824073509.64827-1-michael@walle.cc> From: Stefan Roese In-Reply-To: <20220824073509.64827-1-michael@walle.cc> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4MGThm5jhrz9sSS 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 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