Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp665971yba; Thu, 9 May 2019 04:13:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzG9uXMAdfKD/8sKFBnuRF7fbxcQbN+OFXgbmUZoJy8HRQXcCIg8cnfl9YY35dtR+zd2d9n X-Received: by 2002:a62:4602:: with SMTP id t2mr4202912pfa.26.1557400430094; Thu, 09 May 2019 04:13:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557400430; cv=none; d=google.com; s=arc-20160816; b=ynqrStcGmI+a9I7SwUJc1hLY7hPO4Ss0f/3ur5AuPbCuPXEhw1aixIFh8w/c1uoQZi 1INv+4yKLej3NroPcYf3SPugH2tEztM6fsIWxw4OzNJnyhNDNibF2C9bwk0A06hIWkH5 poIT+0wq4qs4etCirhyvA9fbFevV8F8A+jJ4UkOP2ZnoFFFJLx3qCEF+EVoZEC+X8T9m vQVTUXcRUmAVi69of6x5foxAcRoY1sSPZa5xaco3qhvAUS5Suu5+0Bp0P6R2NRjD0ChL N/3F3KucVI7NBvxx3Nfgna/FEMP1yWq0RLC0+l6eS4RjGgho6lcEWfdPyTP6MJeSSgTs wi1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=QCYNgLeacHF6Po+7GOvr1beHIPnLrcjXHBlwdHrGCU0=; b=fqxjHZDdr+7gq2vtGilmPjEIm1SAuJ9zKu7LCZPyHWt+f4TkXtbwfqixKrhhfXaLkO D4PMHt1U8uxBIWoxYm2RXgJu3dym3Jo1kLZfcX1qlvuIK6rjdYT2SnCGLenW19FmjeFW NvZy+kZhEWlNv9NwbBKircWvOseous6w0Y3+cssuaRyaf+gdkBqh4fJKf4CNbB2TGxpo NZGOwb8aEUlQbcMFD77NUtyzQaaxVqnGSFJo8H+Ru/T+ZynvudLVK2cXJ/jnhQFMOj3s XjwgqXWkKVrkRjyT67OnBFAfRL1WFnQTH8tWhPu7mFab133jJZ3fVMjwhq91N4T05Tnk jFsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xrKRJ01F; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si2376843pge.593.2019.05.09.04.13.33; Thu, 09 May 2019 04:13:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xrKRJ01F; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726845AbfEILMM (ORCPT + 99 others); Thu, 9 May 2019 07:12:12 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:43395 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726706AbfEILLm (ORCPT ); Thu, 9 May 2019 07:11:42 -0400 Received: by mail-wr1-f66.google.com with SMTP id r4so2440129wro.10 for ; Thu, 09 May 2019 04:11:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QCYNgLeacHF6Po+7GOvr1beHIPnLrcjXHBlwdHrGCU0=; b=xrKRJ01FjexwcW6Amk2UUkgupUslrHuPLDtpflcQVkX5Ui7ZAjWgKS3dqp58CehLKT m7U0HLJL81DLGNl6Nx8C/Ze2rWrVrZwAO8aM27Roy/Ir2eESs+RkNsf/uY6dyUXS6US2 e/efAcycx/5aKwBol9pNrIh/G34Q/aw2VxmiGEk2XrAfc/dMaUXXsVbit8T/LT8KlTzB SKj1qIdFVKRAKmp4X13yEt/cAu12cSOGL6sjJjgG3NeQqmd9HoVWW9ItPzkBRyBTx2FF +WQJjZK3DHfwhBM/4FxygB9SdEVA7e38iRLAhYmZSg67u5I1ZWtN994Oppt1+kZR4FlQ 4fgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QCYNgLeacHF6Po+7GOvr1beHIPnLrcjXHBlwdHrGCU0=; b=m16gNsVTN9PfUS3mwxLeO49zUPHdB8y34L0QyP33nXcr/JsD9kgrenkVcIgzM1KS9h nfdyVGiXmMXFLr73zBE1VlPgQzaaZrC1x2Ti9LmUmvZC9tnySZzUcXWhqvVNfiRPFchN DcotpCfmGFskXntFnlI0pRm+lVwrVsKUd77uRHFP5SqBaR1BA4qKA27u+coBH2gOMRdS EKzRpOCbgDGrZ7Gi4BS7IcCZkRwZJNBr//4Lfu6WRo/J/M+YhiHtS7jxQ95fiQURfr0X ii+3/FNZl5yXpMGyugQ157GiiKMFGEOrSxPyJqDDxVizt9ObelVh2/iLxx8YiBtyvjxz nq2g== X-Gm-Message-State: APjAAAUaGkrHZJTLqL3qR4FEeh12Nh9A1czuXaIOa2QuxVI4/mDDYXro yMk9NEOzBC/W5C6vqkaxi/Tobg== X-Received: by 2002:a5d:6ad2:: with SMTP id u18mr2489123wrw.199.1557400299916; Thu, 09 May 2019 04:11:39 -0700 (PDT) Received: from mai.irit.fr ([141.115.39.235]) by smtp.gmail.com with ESMTPSA id z7sm2299778wme.26.2019.05.09.04.11.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 May 2019 04:11:39 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Alexandre Belloni , Nicolas Ferre , Ludovic Desroches , Russell King , linux-arm-kernel@lists.infradead.org (moderated list:ARM SUB-ARCHITECTURES) Subject: [PATCH 10/15] ARM: at91: Implement clocksource selection Date: Thu, 9 May 2019 13:10:43 +0200 Message-Id: <20190509111048.11151-10-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190509111048.11151-1-daniel.lezcano@linaro.org> References: <7e786ba3-a664-8fd9-dd17-6a5be996a712@linaro.org> <20190509111048.11151-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexandre Belloni Allow selecting and unselecting the PIT clocksource driver so it doesn't have to be compiled when unused. Signed-off-by: Alexandre Belloni Signed-off-by: Daniel Lezcano --- arch/arm/mach-at91/Kconfig | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 903f23c309df..da1d97a06c53 100644 --- a/arch/arm/mach-at91/Kconfig +++ b/arch/arm/mach-at91/Kconfig @@ -107,6 +107,29 @@ config SOC_AT91SAM9 AT91SAM9X35 AT91SAM9XE +comment "Clocksource driver selection" + +config ATMEL_CLOCKSOURCE_PIT + bool "Periodic Interval Timer (PIT) support" + depends on SOC_AT91SAM9 || SOC_SAMA5 + default SOC_AT91SAM9 || SOC_SAMA5 + select ATMEL_PIT + help + Select this to get a clocksource based on the Atmel Periodic Interval + Timer. It has a relatively low resolution and the TC Block clocksource + should be preferred. + +config ATMEL_CLOCKSOURCE_TCB + bool "Timer Counter Blocks (TCB) support" + default SOC_AT91RM9200 || SOC_AT91SAM9 || SOC_SAMA5 + select ATMEL_TCB_CLKSRC + help + Select this to get a high precision clocksource based on a + TC block with a 5+ MHz base clock rate. + On platforms with 16-bit counters, two timer channels are combined + to make a single 32-bit timer. + It can also be used as a clock event device supporting oneshot mode. + config HAVE_AT91_UTMI bool -- 2.17.1