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 0E0EEC54EB4 for ; Sat, 21 Jan 2023 20:10:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F3EA3856A2; Sat, 21 Jan 2023 21:09:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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; unprotected) header.d=gmail.com header.i=@gmail.com header.b="J57QM73U"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8344E85203; Sat, 21 Jan 2023 21:09:47 +0100 (CET) Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 51D08853B1 for ; Sat, 21 Jan 2023 21:09:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=clamor95@gmail.com Received: by mail-wr1-x436.google.com with SMTP id y1so3074791wru.2 for ; Sat, 21 Jan 2023 12:09:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eS22RtMJAzhgnZ9RRACkyvs/+xi/EbqmGUCvvO3nxvs=; b=J57QM73UUOG5CloHC6Pb/GV5cVh/TSjIhm8ICfiKc54ofHjfNR+zEymxw9LJxJfojJ ODMuVw+w9Q0R0yvnSwgOczFlyxNoCCE2v6UqyfWaSR/TN8r5PLWvgBZbjkc8JAG9ga6T cNdOH/9k00lFhN5kPebpGQ/JIx37hwWlI0vljPzH/yqcqrEO2HLY/UmotG5veLfkERTd 9kSOBRPziPHj2y7YsLIiS1oQbG9DCgLgqjm9r1jlXvS8Zhm9LZMknZRLNF8K2JluxSz5 iOA5EjHUYqiwL92laJPZ+iT///ukMwXF9m9NPZ1978bBfqQkDeRLABfedzZN/whc9tOf aLhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eS22RtMJAzhgnZ9RRACkyvs/+xi/EbqmGUCvvO3nxvs=; b=0pU4ORm0Ng3zJq+3B8+eLIGWVJL5ygxx6qCSvL3PEWl7218gzdhxqAO/wNCdkcop1A KBzSxr/XxzijrvgHtD2SASS1OD75gS0eQo4IM1YDz78CoCaL7iLb0iLIV4ME99CcipBL 2MzaSXuMG39ZUzgd522lv8TTH0A4wL02Ti4xPNPijEzZoBdFWzk11PVEQ0IHSH6LGWYz hXPv/J/80qEQMXkVWY8qdVIxH03hqOZdxqJWB2/2yodVEplKdbuHCnnUZCaN6kXLsERG lccQ6GPOh9umeYwtptR4jZcU+f39Ipp8ylNxFKz0yDFDnBVERMxWecbhS8e289rYxvkB HUyQ== X-Gm-Message-State: AFqh2koDnM1p6HPsKCJ0vDDkZ076g+YRwT3kEb+dF13zsmwLbYl9rR4c yPLcMUyICnYbWEISwlwABuA= X-Google-Smtp-Source: AMrXdXt5vwL+f2gR08ACEH87dMNR7BLbtnw/BMMpscv+W3B4VqRdjhZeUQwwK3UKMcF+5lgwkUlZdg== X-Received: by 2002:adf:ea91:0:b0:2be:47d8:691c with SMTP id s17-20020adfea91000000b002be47d8691cmr8866148wrm.32.1674331782989; Sat, 21 Jan 2023 12:09:42 -0800 (PST) Received: from xeon.. ([188.163.112.54]) by smtp.gmail.com with ESMTPSA id o2-20020a5d58c2000000b002bdbead763csm28009986wrf.95.2023.01.21.12.09.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Jan 2023 12:09:42 -0800 (PST) From: Svyatoslav Ryhel To: Rayagonda Kokatanur , Tom Warren , Thierry Reding , Marek Vasut , Svyatoslav Ryhel , Maxim Schwalm , Dmitry Osipenko , Heinrich Schuchardt , Michal Simek , Stefan Roese , Eugen Hristev , Michael Walle , Simon Glass , Jim Liu , William Zhang , Rick Chen , Stefan Herbrechtsmeier , Andre Przywara , Jaehoon Chung Cc: u-boot@lists.denx.de Subject: [PATCH v5 3/3] ARM: tegra: include timer as default option Date: Sat, 21 Jan 2023 22:09:11 +0200 Message-Id: <20230121200911.4182-4-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230121200911.4182-1-clamor95@gmail.com> References: <20230121200911.4182-1-clamor95@gmail.com> 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 Enable TIMER as default option for add Tegra devices and enable TEGRA_TIMER for TEGRA_ARMV7_COMMON. Additionally enable SPL_TIMER if build as SPL part and drop deprecated configs from common header. Signed-off-by: Svyatoslav Ryhel Reviewed-by: Simon Glass --- arch/arm/Kconfig | 1 + arch/arm/mach-tegra/Kconfig | 2 ++ include/configs/tegra-common.h | 6 ------ 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index c9a44ebc22..92cf509e97 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1284,6 +1284,7 @@ config ARCH_TEGRA select GPIO_EXTRA_HEADER imply DISTRO_DEFAULTS imply FAT_WRITE + imply SPL_TIMER if SPL config ARCH_VEXPRESS64 bool "Support ARMv8 Arm Ltd. VExpress based boards and models" diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig index 1b575cc0f4..cc3f00e501 100644 --- a/arch/arm/mach-tegra/Kconfig +++ b/arch/arm/mach-tegra/Kconfig @@ -56,6 +56,7 @@ config TEGRA_COMMON select MISC select OF_CONTROL select SPI + select TIMER imply CMD_DM imply CRC32_VERIFY @@ -81,6 +82,7 @@ config TEGRA_ARMV7_COMMON select TEGRA_NO_BPMP select TEGRA_PINCTRL select TEGRA_PMC + select TEGRA_TIMER config TEGRA_ARMV8_COMMON bool "Tegra 64-bit common options" diff --git a/include/configs/tegra-common.h b/include/configs/tegra-common.h index bde7ffce00..c558679d04 100644 --- a/include/configs/tegra-common.h +++ b/include/configs/tegra-common.h @@ -15,12 +15,6 @@ #include /* get chip and board defs */ -/* Use the Tegra US timer on ARMv7, but the architected timer on ARMv8. */ -#ifndef CONFIG_ARM64 -#define CFG_SYS_TIMER_RATE 1000000 -#define CFG_SYS_TIMER_COUNTER NV_PA_TMRUS_BASE -#endif - /* Environment */ /* -- 2.37.2