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 9FDCAC4332F for ; Tue, 13 Dec 2022 15:57:57 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AFF23854BD; Tue, 13 Dec 2022 16:57:24 +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="pmxSYZoq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AD1EB8549B; Tue, 13 Dec 2022 16:57:18 +0100 (CET) Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (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 355E5854B5 for ; Tue, 13 Dec 2022 16:57:14 +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-x336.google.com with SMTP id ay14-20020a05600c1e0e00b003cf6ab34b61so8247450wmb.2 for ; Tue, 13 Dec 2022 07:57:14 -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=TVvmetgPBZhGfkSz/ljgUZYJ7fMqxVgQgyen4j4OgGY=; b=pmxSYZoq0bMrV5vKWbFePSyhHSfnRYmfcFKFOvyWw9xuqu86efRZz+DD/Hk/WtFVme gJbLXzseMJU9Ow8ctQ0lHYe1PG2wx4mJomSc48zYk+ntrKHTlRqJa/rWwQgPnGcuAVyY LFjYHcGRPUKIw5pY39clmxVp2EXrbd8kFf28juCv4L4vCwemRd+LC+TTuztTaZhQncJC JGwkdNL0PA+MLC/X22JdDVpLvHfUjrR7Jm3LKXGLaCNRSY0NhNYJO5IXDehgIHBiqxd/ HobQS++8JrAY/kNGtQz2xqxJm/ewzVYOE+KtxDARTUY4N/wzlE0Q6LdMXo+l700QwSc7 AKaw== 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=TVvmetgPBZhGfkSz/ljgUZYJ7fMqxVgQgyen4j4OgGY=; b=hi38A8kBXGv8n976X0TZ7JN1M4lN4WsqDIN0adftsZhuiC1waBJxHlsOptmVWEqU6Q srUQmyc8I70SgANf0iDcSLO5tYjj/6uXE4gMDnmQiJZJ+p7BfnFubzrSuGONaysAEOWL jp32wVqp8h9zCiC/pTKaDcLPSUShz3m1q+rJO+MN+Az/3j5+5qmAuEqdgeV0m32gief8 +nB/ZNQQQ1eZScFE0P8MrjNgEEmxewFAXfl9/s4iXO6m26QZTSh7swIgU2ACyeXKtxp8 dK5hG1qI9BRJHBD55u34JWV/tV4Ant42SQXiGM8dS14tN3HKXpPvL+56lz3vKqbjWZM2 nVoQ== X-Gm-Message-State: ANoB5pmsS46NxojU8sRZlm4jx4IWfcwqi+HAfdx3Emmw2d00c/qkbGNU 073nVgYvUYDR98L+0Jklsfo= X-Google-Smtp-Source: AA0mqf7f46YItfywiCAxj9JWrj6JbgF8oJv78l2fplSr2ZPlNkaF4g+LjSHDZqoNNlUhp9h6519g4g== X-Received: by 2002:a7b:cd89:0:b0:3d2:2651:64bd with SMTP id y9-20020a7bcd89000000b003d2265164bdmr6456154wmj.10.1670947033304; Tue, 13 Dec 2022 07:57:13 -0800 (PST) Received: from xeon.. ([188.163.112.59]) by smtp.gmail.com with ESMTPSA id q184-20020a1c43c1000000b003b4fdbb6319sm13434493wma.21.2022.12.13.07.57.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Dec 2022 07:57:13 -0800 (PST) From: Svyatoslav Ryhel To: Tom Warren , Marek Vasut , Heinrich Schuchardt , Svyatoslav Ryhel , Michal Simek , Eugen Hristev , Stefan Roese , Nick Hawkins , Andre Przywara , Simon Glass , Jim Liu , William Zhang , Patrice Chotard , Stanley Chu , =?UTF-8?q?Jonas=20Schw=C3=B6bel?= , Jaehoon Chung , Maxim Schwalm Cc: u-boot@lists.denx.de Subject: [PATCH v3 3/3] ARM: tegra: include timer as default option Date: Tue, 13 Dec 2022 17:56:47 +0200 Message-Id: <20221213155647.4504-4-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221213155647.4504-1-clamor95@gmail.com> References: <20221213155647.4504-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 --- 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 3f68d0988b..4fce820350 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1334,6 +1334,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 1bef2fb233..173be3c439 100644 --- a/arch/arm/mach-tegra/Kconfig +++ b/arch/arm/mach-tegra/Kconfig @@ -62,6 +62,7 @@ config TEGRA_COMMON select MISC select OF_CONTROL select SPI + select TIMER imply CMD_DM imply CRC32_VERIFY @@ -87,6 +88,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 2915db7f8b..390a2387ea 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 CONFIG_SYS_TIMER_RATE 1000000 -#define CONFIG_SYS_TIMER_COUNTER NV_PA_TMRUS_BASE -#endif - /* Environment */ /* -- 2.37.2