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 E67E9C4332F for ; Mon, 21 Nov 2022 16:30:15 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1FB02853A8; Mon, 21 Nov 2022 17:29:51 +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="R92mttqe"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9DA5D85373; Mon, 21 Nov 2022 17:29:28 +0100 (CET) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (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 842E28537C for ; Mon, 21 Nov 2022 17:29: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=clamor95@gmail.com Received: by mail-ej1-x634.google.com with SMTP id i10so29755146ejg.6 for ; Mon, 21 Nov 2022 08:29:24 -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=0PZXUeJ8moAJNcI1/jJ99K0N7MkKTrLWlSN5LzlLPYM=; b=R92mttqeoCf1ZDQ5JsoJy6Dg4RQGnwAdVzgdYgH3fcJWpJRZtY6FC6y6WsGFi76t5F cI54fIZ2aLsOhUKZX3DCqAF90W8y/74Umoib+LMg1mwXxZjxZzU6pJuowcXG804sWEYX 3Nulo8zDvK8TJYugQpC2EGSFDLe002u7neWgdRm4074HIMNicma4LwXcskT20h+tny00 j096er3gPadUIKMu2Za6hVRQQ757C3Yp5z3j/RWDQLt6nS2dVYQgvuPCpqZM3JKsf0LA mCZ2n/Uq9U2rg/fXELyXp2G7Y2DQTq1RWw+R5MZkhuJfY3qdip9j6AyDLwsDe/XhIGtj Gcdw== 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=0PZXUeJ8moAJNcI1/jJ99K0N7MkKTrLWlSN5LzlLPYM=; b=rRNG/fU9wosppnd0cIKG8+5dPXh2ZiFa5gNgCR3nXoRMepO1yKW7G2FMse07yMy5rQ mMUrTFY3RWuMGSiftjchOQrSsHBT2DsFFNkDACmmsNWxZ7fxmlF7/YzbGl7kg3k9lxB1 oNyS8gkxbHYkfxhvnS2mXx5cgJUFb7gyA5HxIPnf/Bod/ncQ7j4XptgbKDjIjptpquEH jsp7de1WikK8U/MDsEvxE07bLI/T7ObiyCBWCrf7fzQPK/5i7HFFC2WnqakhyrZq+428 K+ou8aDl54vFEY5b1g27hvCYAwcsd8cHBXpYSGkwR2yFFqfhizx68fPecSuOQY5egePg Kbnw== X-Gm-Message-State: ANoB5plj4osnjshkv2otsUy3eE8FKJtTR2dDkR4X8p2ADdjx4ech4Wsf evT1Q5v/tdUkADStUdleCXI= X-Google-Smtp-Source: AA0mqf7xEjmPzO/aapyQzeEFEZmlGFaYspSfLsYppkQW3pGE/XNWxPszms1QkLByFh+r8pJDr10IWQ== X-Received: by 2002:a17:906:a1a:b0:79e:9aea:7b60 with SMTP id w26-20020a1709060a1a00b0079e9aea7b60mr16597433ejf.444.1669048163975; Mon, 21 Nov 2022 08:29:23 -0800 (PST) Received: from localhost.localdomain ([188.163.112.61]) by smtp.gmail.com with ESMTPSA id er21-20020a056402449500b00451319a43dasm5350330edb.2.2022.11.21.08.29.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Nov 2022 08:29:23 -0800 (PST) From: Svyatoslav Ryhel To: Tom Warren , Marek Vasut , Heinrich Schuchardt , Svyatoslav Ryhel , Michal Simek , Stefan Roese , Eugen Hristev , Claudiu Beznea , =?UTF-8?q?Jonas=20Schw=C3=B6bel?= , Simon Glass , Jim Liu , Nick Hawkins , Stefan Herbrechtsmeier , Michael Walle , Maxim Schwalm Cc: u-boot@lists.denx.de Subject: [PATCH v2 3/3] ARM: tegra: include timer as default option Date: Mon, 21 Nov 2022 18:28:59 +0200 Message-Id: <20221121162859.5293-4-clamor95@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221121162859.5293-1-clamor95@gmail.com> References: <20221121162859.5293-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 453bef900e..95595ee2fd 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 a8956dcdc8..d2224327e4 100644 --- a/arch/arm/mach-tegra/Kconfig +++ b/arch/arm/mach-tegra/Kconfig @@ -66,6 +66,7 @@ config TEGRA_COMMON select MISC select OF_CONTROL select SPI + select TIMER imply CMD_DM imply CRC32_VERIFY @@ -91,6 +92,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 159ba093f2..780441664f 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.34.1