From mboxrd@z Thu Jan 1 00:00:00 1970 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 112F8C54EE9 for ; Fri, 2 Sep 2022 06:26:03 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2A7B784A46; Fri, 2 Sep 2022 08:26:01 +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=1662099961; bh=QNc7RZB34vXKOT/sAhjn8v52tAmKQxOHi2IJfotWjIY=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=hJV0qHbHopNoWRhEKclPp26FvEcRgZNAMjdVrnT8n/dU321LALk7pZAWtT1etnpGN rQzFnHyEhQrlXlzYVBL+/2HokYbxf+8bqmy5FtVQe1SMr/N7EfOdHghFb/+6G5Znmu fXPQQlF2dG15YmPxLLa0lVqnfVGtOOI94XAT5oAlNq7T99VzTiHYfZ8DjuAlr3yqVC VrtwTgE9wXoXqGKEELf8iZtlXTRD1+uAoK7DEkFRVmH7WXqP+/7K9Hw6Ek4nMHxzqi E3by6fmr8M290J1y8XkIVTsB7Fwp6zRtOGy1y3Yr3ZRsKbdVgSUGuKTVDkS/TC11Hg sOu7+4PuFqAhg== Received: by phobos.denx.de (Postfix, from userid 109) id 9524484A3F; Fri, 2 Sep 2022 08:25:59 +0200 (CEST) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [80.241.59.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 9B237840B1 for ; Fri, 2 Sep 2022 08:25:57 +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 smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (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 4MJnwg5fqmz9sSP; Fri, 2 Sep 2022 08:25:55 +0200 (CEST) From: Stefan Roese To: u-boot@lists.denx.de Cc: pali@kernel.org, mibodhi@gmail.com, michael@walle.cc, sjg@chromium.org Subject: [PATCH v2 0/8] Enable CONFIG_TIMER for all Kirkwood / MVEBU boards Date: Fri, 2 Sep 2022 08:25:46 +0200 Message-Id: <20220902062554.1197435-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 | 3 -- configs/lsxhl_defconfig | 3 -- drivers/timer/Kconfig | 5 ++- drivers/timer/orion-timer.c | 53 +++++++++++++++++++++-- 9 files changed, 75 insertions(+), 19 deletions(-) -- 2.37.3