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 59289C54EAA for ; Fri, 27 Jan 2023 07:14:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 64DE185712; Fri, 27 Jan 2023 08:14:12 +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="K/0e/Ka4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 10F58856C7; Fri, 27 Jan 2023 08:13:43 +0100 (CET) Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (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 3A4A785708 for ; Fri, 27 Jan 2023 08:13:38 +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-wm1-x32b.google.com with SMTP id k16so2768680wms.2 for ; Thu, 26 Jan 2023 23:13:38 -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=X3B2mpDmevf9k3qr42SiSVTMQJAVJkis4HowD9tdiiw=; b=K/0e/Ka4ttB9MQ/UJViBu87a6nqpY8oVSp4ovlxVPOqH1srQbOAbLhqXkLJnLlWjCI NerlBtqc6nk3LVVnm0yBnV34AMrwGOLE3aXxYOCVoaFzvMaSoMaGlyonMw1XQJzAuO3V jrIWSUSLnR5h5dQQ2PUQkC1ALBTbjqIF2KRLDs9UMq9oaC04z9sxDxpebnJU/kb7dSKz cVW05ZRcA5QHp9DdhNMOi27+p0m9adh1vUzej+hyxvIEZbo9DdZgV/F6XpYzH5oMAjmX LMZwx5UIqZD5bdBz6t2i+fZOE4i9VXvlTRQ33X3cGLE+foHmRE4/wntzKifSAGfcRyiV mL0A== 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=X3B2mpDmevf9k3qr42SiSVTMQJAVJkis4HowD9tdiiw=; b=mQ10JKS7d8cpeEtjktynnUpVbqiC2ncQHffh4xfbwLh9jSYrs2tj4qZ7o0mCEDLlo0 oOLiUPkbVeW6hCOYNhbq7mc9XRgnBEve/PUhmj5zNtMYsaCWTXGCwf/W9ZgAcWclBXj1 UE4cYrAWPeA3TEIbrbEwAcGqU68GjBdV2ROsg/FZFVDoubxMecspqJCQqGoSklRZAG1m H1iiv3JgUU16EdUi+PGtrQmykV94luvRksvUDQO+0h2DXdA/uFkxv/waKbS5RfzOhmWF LJIVebkzZuwZYTsacC+lekZQ5NjzOg0/EDFHzJ9qkLzlBIQuB5iCtuXSlYfa/h0yfNcM DFIA== X-Gm-Message-State: AO0yUKU62UcSW/w+l4gGf7oWFe+WMNJkwMLMxodmEvF0nv+DaRjkSRLN zfoy5/MZFuXL6ZJlkkftZYI= X-Google-Smtp-Source: AK7set8j3NplymYvj1k1KgnQeF5xT9JXGd1soywcs3Dzjr2aOBKCTuR/7RQKXUk6KlD6PCx8ZjoLKw== X-Received: by 2002:a05:600c:b56:b0:3dc:353c:8b34 with SMTP id k22-20020a05600c0b5600b003dc353c8b34mr1335184wmr.7.1674803617143; Thu, 26 Jan 2023 23:13:37 -0800 (PST) Received: from xeon.. ([188.163.112.54]) by smtp.gmail.com with ESMTPSA id v6-20020a05600c444600b003db09692364sm7637809wmn.11.2023.01.26.23.13.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 23:13:36 -0800 (PST) From: Svyatoslav Ryhel To: Rayagonda Kokatanur , Tom Warren , Thierry Reding , Marek Vasut , Svyatoslav Ryhel , Maxim Schwalm , Dmitry Osipenko , =?UTF-8?q?Jonas=20Schw=C3=B6bel?= , Agneli , 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 v7 3/3] ARM: tegra: include timer as default option Date: Fri, 27 Jan 2023 09:13:12 +0200 Message-Id: <20230127071312.13844-4-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230127071312.13844-1-clamor95@gmail.com> References: <20230127071312.13844-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 all Tegra devices and enable TEGRA_TIMER for TEGRA_ARMV7_COMMON and TEGRA210. 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 | 3 +++ include/configs/tegra-common.h | 6 ------ 3 files changed, 4 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..b50eec5b8c 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" @@ -134,6 +136,7 @@ config TEGRA210 select TEGRA_PINCTRL select TEGRA_PMC select TEGRA_PMC_SECURE + select TEGRA_TIMER config TEGRA186 bool "Tegra186 family" 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