From patchwork Mon May 9 07:26:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12843081 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 538C9C433F5 for ; Mon, 9 May 2022 07:24:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=UZ1EoV94lsfjPkis/3nyy3Lg5fIKWEdBrGI+xxp36Ck=; b=1y/5eLsVU5LB20 WPy++eWvg3F23iJgbKYwYlMHV+7xj5giYNf5xGeejAXhZwkXGT3Pb3TUT/WDdoQvlSEUbg3dXkSBQ 0GsLsJC58Hbz3gZ+J+pahMM3Jxc9gxr3N7ltqtAZtpq8Kk+GqeP5VLC2I+rrzdUoxovCqDXg9ozYE wP4b0yyjuFozslMOCkGw2GU9d9OgtxZ0vr10vW0A1O0obWjdUhnsmkhTAOHEypq6IJ3rzCeIZ2GBa yQsd9VvYZxiSvVxAjYLtN/WwCo7xPRgoPK1SdV7XzCXWAaGOmm6c+R57uOFK5Tc3uCklpNxB0b1hZ o+jkY22J1hcvt/jJcCFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nnxkA-00CpDi-Cl; Mon, 09 May 2022 07:23:46 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nnxk7-00CpCz-16 for linux-arm-kernel@lists.infradead.org; Mon, 09 May 2022 07:23:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1652081024; x=1683617024; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=PQ0v14kg+YX1kWC50pYpDVGqLmrEAVaJH6iokEaC8JY=; b=sJofP1lieQ7YM/qIijDL6ROMfqgaz5D+JkS/9qw1X7UK5K/XhquTtM9k aTS0EHIOVwcVUf/4EXbLY11TZO1opj/hSW4d5jPtwFwWlXAz5nPoS1DLY RTXiBWIXWm7YnVgy21BjjI1YQu1wLIyuUtSkB8u0ckzcOFCzekmCRVCNc HhEiAhqK5jJGB8HcElePBkTh6O+i9FWCAuL2m9I3S7NSjx8L4pSpGYazA SrhirG62e5HjZ7S4u54OMVCVKYMVuZ42ra0RgMaliUdj3dGmj5+NfBvqu lw/BuBDaCZHrJ8usiSlzHoq2TaJqnkLApTvqYbYG+ZyfcPmER30SC6jiS w==; X-IronPort-AV: E=Sophos;i="5.91,210,1647327600"; d="scan'208";a="162801641" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 09 May 2022 00:23:42 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Mon, 9 May 2022 00:23:40 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Mon, 9 May 2022 00:23:38 -0700 From: Claudiu Beznea To: , , CC: , , Claudiu Beznea Subject: [PATCH v2] ARM: at91: Kconfig: implement PIT64B selection Date: Mon, 9 May 2022 10:26:05 +0300 Message-ID: <20220509072605.4056145-1-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220509_002343_165414_1A0370E6 X-CRM114-Status: UNSURE ( 8.67 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Implement PIT64B selection thus it will be available for the necessary targets (at the moment SAM9X60 and SAMA7G5) w/o the necessity to specify it via defconfig. With this the current CONFIG_TIMER_OF dependency of PIT64B driver could be removed. Signed-off-by: Claudiu Beznea --- Changes in v2: - keep only Kconfig changes arch/arm/mach-at91/Kconfig | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 279810381256..1531b4625c76 100644 --- a/arch/arm/mach-at91/Kconfig +++ b/arch/arm/mach-at91/Kconfig @@ -165,6 +165,15 @@ config ATMEL_CLOCKSOURCE_TCB to make a single 32-bit timer. It can also be used as a clock event device supporting oneshot mode. +config MICROCHIP_CLOCKSOURCE_PIT64B + bool "64-bit Periodic Interval Timer (PIT64B) support" + default SOC_SAM9X60 || SOC_SAMA7 + select MICROCHIP_PIT64B + help + Select this to get a high resolution clockevent (SAM9X60) or + clocksource and clockevent (SAMA7G5) based on Microchip 64-bit + Periodic Interval Timer. + config HAVE_AT91_UTMI bool