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 14BBBC6FA89 for ; Thu, 15 Sep 2022 14:21:06 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D3A9884BDF; Thu, 15 Sep 2022 16:21:03 +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=1663251664; bh=6O4/m1cW1Tf30n46AJyhIVZESjXSWLIDAjQw2jJMxow=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=Pohxmh/LFSlWLSUVAs3+yaNAWdWVe84AY7nVBTaSvkeYSy5Vq9QosLAdBkA8mt6Ek cucz4PsAUCStunpgOtXXXDroXEG7dbQAyPogALVCgIIpYPBbs9/jR2fIPqouHKFar7 OfYcWY1GXqwT8hcmFrk9zPfXkf40WBaiLmPcTyiiJ8qVD8tnA/PeDuOET5D6uiWRLI NR0HW9ZNIF4v8kV0VZ+1oAo0BPUPzGpk3Nxn3ibKQrC0ynlE0mN7YXVi43Swn+afTI r2D6T7mcXA1/GkntFtZdTk4w7EGB1HYgil5DSiH5EUS1IV/YwmPfvfO5begFZ9aFzB YtVxleWr3z6iA== Received: by phobos.denx.de (Postfix, from userid 109) id 326D584B95; Thu, 15 Sep 2022 16:21:00 +0200 (CEST) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [IPv6:2001:67c:2050:101:465::107]) (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 052B784B55 for ; Thu, 15 Sep 2022 16:20:46 +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 [10.196.197.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-107.mailbox.org (Postfix) with ESMTPS id 4MSzrX0qqZz9sPl; Thu, 15 Sep 2022 16:20:44 +0200 (CEST) From: Stefan Roese To: u-boot@lists.denx.de Cc: pali@kernel.org, mibodhi@gmail.com, michael@walle.cc Subject: [PATCH v3 0/8] Enable CONFIG_TIMER for all Kirkwood / MVEBU boards Date: Thu, 15 Sep 2022 16:20:35 +0200 Message-Id: <20220915142043.1549061-1-sr@denx.de> MIME-Version: 1.0 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 This patchset enhaces the recently added Orion Timer driver to support all other Kirkwood & 32bit MVEBU Armada platforms. Additionally, this timer support is then enabled per default for those platforms, so that the board config files don't need to be changed. Also necessary is some dts hacking, so that the timer DT node is available in early U-Boot stages. I've successfully tested this patchset on an Armada XP board. Additional test on other boards and platforms are very welcome and necessary. Thanks, Stefan Stefan Roese (8): timer: orion-timer: Use timer_conv_64() to fix timer wrap around timer: orion-timer: Add support for other Armada SoC's timer: orion-timer: Add timer_get_boot_us() for BOOTSTAGE support arm: mvebu: Use CONFIG_TIMER on all MVEBU & KIRKWOOD platforms arm: mvebu: dts: Makefile: Compile Armada 375 dtb in a separate step arm: mvebu: dts: armada-375.dtsi: Add timer0 & timer1 arm: mvebu: dts: mvebu-u-boot.dtsi: Add "u-boot,dm-pre-reloc" to timer DT node kirkwood: lsxl: Sync defconfigs arch/arm/Kconfig | 4 + arch/arm/dts/Makefile | 6 +- arch/arm/dts/armada-375.dtsi | 4 +- arch/arm/dts/mvebu-u-boot.dtsi | 11 +++ arch/arm/mach-mvebu/include/mach/config.h | 5 -- configs/lschlv2_defconfig | 2 - configs/lsxhl_defconfig | 2 - drivers/timer/Kconfig | 5 +- drivers/timer/orion-timer.c | 103 +++++++++++++++++++--- 9 files changed, 118 insertions(+), 24 deletions(-) -- 2.37.3