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 216C9ECAAA1 for ; Tue, 30 Aug 2022 12:04:09 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C744C845F4; Tue, 30 Aug 2022 14:04:07 +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="zofwVIfF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 298E784335; Tue, 30 Aug 2022 14:04:06 +0200 (CEST) Received: from mail.3ffe.de (0001.3ffe.de [159.69.201.130]) (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 B169D845F4 for ; Tue, 30 Aug 2022 14:04:03 +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 3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (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 3180A7F2C; Tue, 30 Aug 2022 14:04:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1661861043; 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=6PklLHp0afv3PtUBEaC6p5mJ3w4y/ffm/+Ebwb4Hyh0=; b=zofwVIfFE1JCsQLpy9OXSN/7VfJd4q63ey3AX4XK0ICJuQho+cItgguGHMQxjh8Mus3+Rz YsHZvBVDMMrm4hyPWCK2HB1gmKj2qhOVmMFcF9lf4LI4tgjGPUU6BD9dVp6Uag4lrkKSoN 4jdjRtCtnal/8hRpUdHGoXpw0zDuTnc/B0h4uAxQugl3nGNli5jily9Vm4QkbijM9Devx/ /AVlcuhoDVc6UjrNEYOSR3L5QfDIum3OlFcrbdvjjbD8oBlD0UF6yu061eRhJx52cY6tCh CHT9W2IUt7pygfAm9U1jhhC9DPD2RXDhqZ8PZ9IJvXvmrXPE2ebSnICvKWU5pQ== MIME-Version: 1.0 Date: Tue, 30 Aug 2022 14:04:03 +0200 From: Michael Walle To: Stefan Roese Cc: u-boot@lists.denx.de, pali@kernel.org, mibodhi@gmail.com Subject: Re: [PATCH 3/6] arm: mvebu: Use CONFIG_TIMER on all MVEBU & KIRKWOOD platforms In-Reply-To: <20220830115317.410812-4-sr@denx.de> References: <20220830115317.410812-1-sr@denx.de> <20220830115317.410812-4-sr@denx.de> User-Agent: Roundcube Webmail/1.4.13 Message-ID: X-Sender: michael@walle.cc Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit 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 Am 2022-08-30 13:53, schrieb Stefan Roese: > Now that the new timer support is available for these platforms, let's > select this IF for all these platforms. This way it's not necessary > that each board changes it's config header. > > Signed-off-by: Stefan Roese > --- > arch/arm/Kconfig | 4 ++++ > arch/arm/mach-mvebu/include/mach/config.h | 5 ----- > 2 files changed, 4 insertions(+), 5 deletions(-) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index 0b72e4f6503e..60f524a2d118 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -618,6 +618,7 @@ config ARCH_KIRKWOOD > select BOARD_EARLY_INIT_F > select CPU_ARM926EJS > select GPIO_EXTRA_HEADER > + select TIMER If selected by the arch now (and the timer driver defaulting to y on this arch), could you clean the lschvl2 and lsxhl_defconfigs up and remove the two symbols there? > > config ARCH_MVEBU > bool "Marvell MVEBU family (Armada XP/375/38x/3700/7K/8K)" > @@ -629,6 +630,8 @@ config ARCH_MVEBU > select GPIO_EXTRA_HEADER > select SPL_DM_SPI if SPL > select SPL_DM_SPI_FLASH if SPL > + select SPL_TIMER if SPL > + select TIMER > select OF_CONTROL > select OF_SEPARATE > select SPI > @@ -639,6 +642,7 @@ config ARCH_ORION5X > select CPU_ARM926EJS > select GPIO_EXTRA_HEADER > select SPL_SEPARATE_BSS if SPL > + select TIMER > > config TARGET_STV0991 > bool "Support stv0991" > diff --git a/arch/arm/mach-mvebu/include/mach/config.h > b/arch/arm/mach-mvebu/include/mach/config.h > index 4add0d9e1030..9b5036c31dd3 100644 > --- a/arch/arm/mach-mvebu/include/mach/config.h > +++ b/arch/arm/mach-mvebu/include/mach/config.h > @@ -41,9 +41,4 @@ > #endif > #endif > > -/* Use common timer */ > -#define CONFIG_SYS_TIMER_COUNTS_DOWN > -#define CONFIG_SYS_TIMER_COUNTER (MVEBU_TIMER_BASE + 0x14) > -#define CONFIG_SYS_TIMER_RATE 25000000 > - > #endif /* __MVEBU_CONFIG_H */