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 A5C28ECAAD4 for ; Tue, 30 Aug 2022 12:11:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BC6148497F; Tue, 30 Aug 2022 14:11:29 +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=1661861490; bh=DeSlSVIycFIb8JSHTF52b4D5MSn6YgQEexi+0hFSDVs=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=j2cPIDwryVD+bjIQMfy2V6x6yISSGouM8oYqb/ccjFE9qUkOLXK8gvwHIGj/65KA4 d1jlCKXxOwVzselbTxhez8hK+ftHBW9NMNpJYKJUXEHaKExNjUPh72qvchsvUNjUYA yNbmG9cQOXSjo2qgKdmpNxyw1gdw4PexjRRIuN8Onrvzsplu1j2KzaUvPRB3SPwAEC orF3j0+8tu0ydo7hlrCd6DYiX92qAnJ7pdZTZAlis3AC9Ja+iwuLaK1OES27qN52rU /o+NLT+GJ+nMhUvgRq43PBIJ6Xj0A067zPYtv8HzM3XfgtzCHDYA+dcpZYsgC4x6QF IwFTwP0AXJDqQ== Received: by phobos.denx.de (Postfix, from userid 109) id CE9F784988; Tue, 30 Aug 2022 14:11:28 +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 A78F0845F4 for ; Tue, 30 Aug 2022 14:11:26 +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 [IPv6:2001:67c:2050:b231:465::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 4MH5kh4xv8z9sQL; Tue, 30 Aug 2022 14:11:24 +0200 (CEST) Message-ID: <40111208-1578-63da-9f59-2b690bcd6fcc@denx.de> Date: Tue, 30 Aug 2022 14:11:23 +0200 MIME-Version: 1.0 Subject: Re: [PATCH 3/6] arm: mvebu: Use CONFIG_TIMER on all MVEBU & KIRKWOOD platforms Content-Language: en-US To: Michael Walle Cc: u-boot@lists.denx.de, pali@kernel.org, mibodhi@gmail.com References: <20220830115317.410812-1-sr@denx.de> <20220830115317.410812-4-sr@denx.de> From: Stefan Roese In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4MH5kh4xv8z9sQL 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 On 30.08.22 14:04, Michael Walle wrote: > 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? Sure. I can add another patch for this in the next patchset version. Please complain, if I forget to do this. ;) Thanks, Stefan >> >>  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 */ Viele Grüße, Stefan Roese -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de