From patchwork Mon Oct 24 06:26:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Ryhel X-Patchwork-Id: 1693907 X-Patchwork-Delegate: twarren@nvidia.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=V6n9Un1s; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MwtjL2Kzjz23js for ; Mon, 24 Oct 2022 22:52:22 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2E65480713; Mon, 24 Oct 2022 13:51:18 +0200 (CEST) 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="V6n9Un1s"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 14E3584DE8; Mon, 24 Oct 2022 08:26:54 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 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 0F0B084F48 for ; Mon, 24 Oct 2022 08:26:48 +0200 (CEST) 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 v130-20020a1cac88000000b003bcde03bd44so9279454wme.5 for ; Sun, 23 Oct 2022 23:26:48 -0700 (PDT) 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=L3KuA6HVkTSnSZSoP9SRew1DYX3hlbtnfLWAyHb7uJk=; b=V6n9Un1swFHMLcgKtwuSS6kiPbcD+CaHVcJ3gxPIm6ZCcBU10taHyrhsX0W5U5fheC wG5ooP8qAlRzVmAEYMsUH+kY9vkq/gFBHdEGpkSFRdzgvm+LEvB0KwwwZAzHZnd4zaTR VAmsn5Kjdz2ah6uiPh5bRN/5+A7huS5d/LxhsqDI1L+8LJdALjGqK3++zgmUT+JD/Oli F/gJ2/TpmfNhb1/H6gRB9gkyX/+x7D8Aw+W5huuA7RwTUEoomz+BQFLSxuVfU9XIWNb5 ROuwOmXqLM/GLWuqDj+WXWyrWFGko7tvjdNUHTqMxbAw2jqtVyY8UHBda5Jip3ziJMYc eRtA== 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=L3KuA6HVkTSnSZSoP9SRew1DYX3hlbtnfLWAyHb7uJk=; b=sbPgr57CYpvJBlxiRM0Fn+ocyw0wq0OwOIZuSIRHaW9mV+Ji+cW735KdBZpk2XPkVB 339t+/v5IJM8GjirWQKb3zhex80wB4BRWvyN4cesDCaurAOPdpyG6cfmsCbVtoRHzajN bwRi+PZYDFsLfAGAYsq+HlrUUfCrKuzMb1Y4NmYPqiLqJchx43kNvarMK4LjL6oHo3lA /2M3uUQKpbRc3J8tNw9XeXPhtM+TzbyiU9Up8cqNvXswC6JEm2Ut+Gno2KBVeL6Ra2xz Js1nFEylfJxqQ78c5Kvps4lRDSJaTOJk6iXZEZ4GuCA6pQd9NMjOBsXN15+P1NEk09Xj XA+Q== X-Gm-Message-State: ACrzQf2PV2Bo/5Ca77CfmJyZ0/m0qqtmStXn097Aw0dOpafsjVMBB9GD A2/PY+8qUnHP/lciSNV5zug= X-Google-Smtp-Source: AMsMyM4P+aOc4yF42plFB/To5GP4uh6oi/39lsFAyon9QCpPosxv0LsSf0vztETY2JQesC6l5xcJcg== X-Received: by 2002:a1c:2743:0:b0:3b3:4066:fa61 with SMTP id n64-20020a1c2743000000b003b34066fa61mr43148341wmn.79.1666592807355; Sun, 23 Oct 2022 23:26:47 -0700 (PDT) Received: from localhost.localdomain ([188.163.112.70]) by smtp.gmail.com with ESMTPSA id j28-20020a5d6e5c000000b0022cd27bc8c1sm30981057wrz.9.2022.10.23.23.26.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Oct 2022 23:26:47 -0700 (PDT) From: Svyatoslav Ryhel To: Tom Warren , Marek Vasut , Heinrich Schuchardt , Svyatoslav Ryhel , Michal Simek , Stefan Roese , Eugen Hristev , Claudiu Beznea , =?utf-8?q?Jonas_Schw=C3=B6be?= =?utf-8?q?l?= , Simon Glass , Jim Liu , Nick Hawkins , Stefan Herbrechtsmeier , Michael Walle Cc: u-boot@lists.denx.de Subject: [PATCH v1 3/3] ARM: tegra: include timer as default option Date: Mon, 24 Oct 2022 09:26:21 +0300 Message-Id: <20221024062621.7942-4-clamor95@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221024062621.7942-1-clamor95@gmail.com> References: <20221024062621.7942-1-clamor95@gmail.com> MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 24 Oct 2022 13:50:49 +0200 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 2e83394052..3eebf8443a 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1356,6 +1356,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 */ /*