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 11C58C32792 for ; Wed, 24 Aug 2022 07:35:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B43BC84802; Wed, 24 Aug 2022 09:35:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=walle.cc 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; secure) header.d=walle.cc header.i=@walle.cc header.b="IesxhfSR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 61A948423A; Wed, 24 Aug 2022 09:35:18 +0200 (CEST) Received: from mail.3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (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 CD58784802 for ; Wed, 24 Aug 2022 09:35:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michael@walle.cc Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id 18C064030; Wed, 24 Aug 2022 09:35:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1661326515; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5BaqwTOtIxRzRPyfQ/LhLkZhsLWb8V6b6Ps068hJXPo=; b=IesxhfSRVXjp8X5rW0Ws05OCvkolTLg0G8HJch5wQq/gmBL78DTmtr9/Qiz3BT1vn7p5eF 64YeP1k+OGFpFSjhDeCnHW5nJh/wL1MaIkVOnamZ5VCRHOkvG5l1gJBRltXiNSLZlQYw1b 6EO42m3US00jYOt3a+kgClBTvFqWrGvgiR61tlbUbKNsWdLm/RjXrKff9uhmdbumjetgoE zyjexyR9mT+W16+A/1cAbZrbXIgWlMQaQSUXaTtBLbRC4pI270gsNTGIod9mVhqBBxkDDF +CKzSU1ttgHI1+/kq+Kg+Rs65pF+2zYWe/dpv29dVc0JFHazvsRd+Ecfv6+MUA== From: Michael Walle To: sr@denx.de Cc: mibodhi@gmail.com, pali@kernel.org, u-boot@lists.denx.de, Michael Walle Subject: Re: mvebu - switch to orion-timer Date: Wed, 24 Aug 2022 09:35:09 +0200 Message-Id: <20220824073509.64827-1-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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, >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. -michael