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 C8F4AECAAA1 for ; Mon, 24 Oct 2022 11:51:12 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2F9FC806F6; Mon, 24 Oct 2022 13:50:55 +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="amtQmVft"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1ADF184F44; Mon, 24 Oct 2022 08:26:48 +0200 (CEST) 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 5D58984CDF for ; Mon, 24 Oct 2022 08:26:44 +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-x32f.google.com with SMTP id n14so1711749wmq.3 for ; Sun, 23 Oct 2022 23:26:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+/hbvPx88XxIroqW52TZRyo461ixH/QJtvAXKVvo77w=; b=amtQmVftdO+/X3QrbHKX6IWwQC7w3g2+QUuT9X3WbjOOUZeIXWNdwXge9HN92zpVKO 0s6qq7Xkb9nvFYee0sdC5XBJsSyaXj0Zotu1ADEnG1JkF2hsGuWfH35qV4RM9wD1j3LU ZffsAyrw1aC2O/POLPXiJrJmau+V2Vz+byemdl8IgTe9QE9437OjDvirGaTUrk7Wcv09 Ykc0hIQ0KnQCqXuxYkaz1EJVrmsMqVLGbCSs3Vzvohjjx0gQAB+y0c940jv9FHgp2ctD Qu6Am+UaoohCt/ZzRYxU/rTo7J/3J8ZW94KMYvG3DF2fq/Zz3i+/qAWUC9NFxG9lcMSC E0+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+/hbvPx88XxIroqW52TZRyo461ixH/QJtvAXKVvo77w=; b=cqxpBlPDgQP4bvhFYcOdVooPvcrxb/D8dj5BxixA1pdUEGaDuvk+axXQN9L7QRrpsA 7JjizGQr5drD5gBvecyXjom911as0aN+c/xvPECIrjtr/DOct7vTtIIdEH8IxdoDg8qe 8Sf9ZbaiENQfHnnuZZamD3xLzGiN2pUr8VPH2A1lcn0GSnL/YzeWsRSVhanA5zvRYkT3 L+TAOV2eXcHSSKQLQ5PWl/+DdXGFQ4Mk4Q9F0n5AHtpp/367N68JV1IJzo/2BDk6qs38 FTjKuzIGXqBTVyJU0/ZCDlaUtCURBei0Vl4Hu/KWUBfh6lXGbSeuSbizCjadR+20eKbj gRCA== X-Gm-Message-State: ACrzQf3NZOFZ43h+Wq5CnM3aprdG2lsU6DABgeaK0VGZnyEUI1ykzWld x9vGmTiFAqiE43l1CqqceZrfOHpAxRsZ/w== X-Google-Smtp-Source: AMsMyM4HJnFcLAzoUHpI85jwCmxufT+F3/qXyKN/GS6D9QhHMvCzVDf7pCWQyx06oKI+G9+O7d1X6w== X-Received: by 2002:a05:600c:3592:b0:3c6:f9db:a954 with SMTP id p18-20020a05600c359200b003c6f9dba954mr21060146wmq.170.1666592803698; Sun, 23 Oct 2022 23:26:43 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Oct 2022 23:26:43 -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=20Schw=C3=B6bel?= , Simon Glass , Jim Liu , Nick Hawkins , Stefan Herbrechtsmeier , Michael Walle Cc: u-boot@lists.denx.de Subject: [PATCH v1 0/3] Implement Tegra Timer with dependencies Date: Mon, 24 Oct 2022 09:26:18 +0300 Message-Id: <20221024062621.7942-1-clamor95@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 - rework clock_osc_freq detection as it is needed for timer - implement timer for ARMv7 Tegra devices - set timer to be selected automatically Svyatoslav Ryhel (3): ARM: tegra: remap clock_osc_freq for all Tegra family drivers: timer: add timer driver for ARMv7 based Tegra devices ARM: tegra: include timer as default option arch/arm/Kconfig | 1 + arch/arm/include/asm/arch-tegra/clock.h | 9 +- arch/arm/mach-tegra/Kconfig | 2 + arch/arm/mach-tegra/clock.c | 17 +++- arch/arm/mach-tegra/cpu.c | 70 ++++++++++--- arch/arm/mach-tegra/tegra114/clock.c | 13 +-- arch/arm/mach-tegra/tegra124/clock.c | 13 +-- arch/arm/mach-tegra/tegra20/clock.c | 4 +- arch/arm/mach-tegra/tegra210/clock.c | 22 +---- arch/arm/mach-tegra/tegra30/clock.c | 10 +- drivers/timer/Kconfig | 8 ++ drivers/timer/Makefile | 1 + drivers/timer/tegra-timer.c | 124 ++++++++++++++++++++++++ drivers/usb/host/ehci-tegra.c | 46 +++++++-- include/configs/tegra-common.h | 6 -- 15 files changed, 267 insertions(+), 79 deletions(-) create mode 100644 drivers/timer/tegra-timer.c -- 2.34.1