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 AB943C25B4E for ; Tue, 24 Jan 2023 06:59:11 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 920BB85616; Tue, 24 Jan 2023 07:58:46 +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="O3AKLAcE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4D2C7855A1; Tue, 24 Jan 2023 07:58:37 +0100 (CET) Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (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 EBD0D85697 for ; Tue, 24 Jan 2023 07:58:32 +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-x32f.google.com with SMTP id e19-20020a05600c439300b003db1cac0c1fso10627018wmn.5 for ; Mon, 23 Jan 2023 22:58:32 -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=kmSN+S/AVsuNs1pqjBsLG81cMYpbIlCGdby1sfFSxxE=; b=O3AKLAcEYElYvhZPePoUovf+v5A13XQrzX9Mojoo3yqXsyuuuYaItJP+u6jP3tmTsE oNz1ofFinZzbYGS+tL4PZQcmVsErpZF8WtxdjZyl2H8cCSdlokexQwS0R/5c07WdfP4N PQCLrW7DLhYrE7cpZU3yzE7dsRttqGqAzrKK7KqDL7iA+mK+pRfvuFpZS/9qoNdwoC5R 06J12jzmYZT531aMoPeemZQUFj5ss+88AFhfdxao2gIedny9kCTAuLqvgJEAElgGPHnZ Q83kH8aSv+EXvGFQv72DT94mjW1FLoP/weqTQ2QM2PMzpZ82rOhFmJxSLiV24JhlCw/+ 9rWQ== 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=kmSN+S/AVsuNs1pqjBsLG81cMYpbIlCGdby1sfFSxxE=; b=BDvRL1hHXhWpzl4jsYctkSFujAdRNDNQkO6vP0VXnW3U30LMrNVryvQ5fE3pkE7TJj mhzd835m2mUitIuMjeA5ILO60uKgrfSKTHu1atm4ps3WhdadmgX31O27/sbMQLMOEz9q 0i663aq95bcvUQXO+1rBT2ZH+7pRrMSe6vFq51O22wu90oHIP3OtE4gkzWvpyDuIxYBn 4PByXDOH6eKT3ifORVMiH0Xn+8Zb8Bc9NqMm44LQbjzcID3Mf0Zg7XFe1c3TWpikOXdb a/869AOyZ5AK+S3PaxQyBugd+OBNJNWmXwYWbogJYB6ppA3l8e/Fh8Je5mb1QspHjVnv y12g== X-Gm-Message-State: AFqh2kr2fF7Pik5aRBGfu1eyZUBEWnCMOZcKpzgJoHKf69h7jy2SXBxV XdDBkvxkaoxY8wEkl4uh2n4= X-Google-Smtp-Source: AMrXdXsC+KSBqE2y/LMBEmBDBAefKugN91QaABGYUe+4H0hy6Pn48inxiI0AsnstyPVOmT46U2TBgw== X-Received: by 2002:a05:600c:3d16:b0:3cf:8b22:76b3 with SMTP id bh22-20020a05600c3d1600b003cf8b2276b3mr25436980wmb.0.1674543512354; Mon, 23 Jan 2023 22:58:32 -0800 (PST) Received: from xeon.. ([188.163.112.54]) by smtp.gmail.com with ESMTPSA id o25-20020a1c7519000000b003daf6e3bc2fsm1141695wmc.1.2023.01.23.22.58.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 22:58:31 -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 v6 3/3] ARM: tegra: include timer as default option Date: Tue, 24 Jan 2023 08:57:51 +0200 Message-Id: <20230124065751.5973-4-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230124065751.5973-1-clamor95@gmail.com> References: <20230124065751.5973-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. 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