From nobody Tue Jun 23 07:08:45 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 870DEC433EF for ; Wed, 9 Mar 2022 10:07:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232250AbiCIKIJ (ORCPT ); Wed, 9 Mar 2022 05:08:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbiCIKII (ORCPT ); Wed, 9 Mar 2022 05:08:08 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35CC213D55E for ; Wed, 9 Mar 2022 02:07:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646820429; x=1678356429; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=OgkXGpZYo7BvkpR/FYU9AJidJxqpmQ20r41+loe2PsA=; b=ZhqGoDwVhW8koZxqNZVrzpMJjizFd8NYfwgGddqCMicrpWwXUC2jFOcb 8vwfDrmQOWrkbQfnUzdEAb95JTHIhnQfhObJqY2YK7iwC4Xga4Hybytnv xka82JcyDDv5/4FO6Ky3V7pqTPaIJnOgT82PYruWA1N3oXhupN/DMgzCm 9ufV3PyCnJSlpJFd5MlKBXFWPTtcr2PjtwtV7gykDc9UqyU9zYF/zN4pb UgLWTiVDE5A8dpiIYWeaPKXaJKn6ZRL1Pa7Tpjy4A5RG2aM3Q6Wdi6w7v yL97puM20ruStqjzSWbJ2PXkuBVJWKvQwAA4XplFNyLlTaC8nJm88TSDS g==; X-IronPort-AV: E=Sophos;i="5.90,167,1643698800"; d="scan'208";a="148595292" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 09 Mar 2022 03:07:08 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Wed, 9 Mar 2022 03:07:07 -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; Wed, 9 Mar 2022 03:07:05 -0700 From: Claudiu Beznea To: , , , CC: , , Claudiu Beznea Subject: [PATCH] ARM: at91: Kconfig: implement PIT64B selection Date: Wed, 9 Mar 2022 12:08:02 +0200 Message-ID: <20220309100802.3610259-1-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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. Along with changes on AT91 Kconfig removed CONFIG_MICROCHIP_PIT64B from defconfigs. Signed-off-by: Claudiu Beznea --- arch/arm/configs/at91_dt_defconfig | 1 - arch/arm/configs/multi_v7_defconfig | 1 - arch/arm/configs/sama7_defconfig | 1 - arch/arm/mach-at91/Kconfig | 9 +++++++++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/arch/arm/configs/at91_dt_defconfig b/arch/arm/configs/at91_dt_= defconfig index 549d01be0b47..04f71dac9c97 100644 --- a/arch/arm/configs/at91_dt_defconfig +++ b/arch/arm/configs/at91_dt_defconfig @@ -195,7 +195,6 @@ CONFIG_RTC_DRV_AT91SAM9=3Dy CONFIG_DMADEVICES=3Dy CONFIG_AT_HDMAC=3Dy CONFIG_AT_XDMAC=3Dy -CONFIG_MICROCHIP_PIT64B=3Dy # CONFIG_IOMMU_SUPPORT is not set CONFIG_IIO=3Dy CONFIG_AT91_ADC=3Dy diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v= 7_defconfig index 8863fa969ede..bec62d5aa3c6 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_defconfig @@ -989,7 +989,6 @@ CONFIG_APQ_MMCC_8084=3Dy CONFIG_MSM_GCC_8660=3Dy CONFIG_MSM_MMCC_8960=3Dy CONFIG_MSM_MMCC_8974=3Dy -CONFIG_MICROCHIP_PIT64B=3Dy CONFIG_BCM2835_MBOX=3Dy CONFIG_ROCKCHIP_IOMMU=3Dy CONFIG_TEGRA_IOMMU_GART=3Dy diff --git a/arch/arm/configs/sama7_defconfig b/arch/arm/configs/sama7_defc= onfig index 07b0494ef743..2b0f020a18eb 100644 --- a/arch/arm/configs/sama7_defconfig +++ b/arch/arm/configs/sama7_defconfig @@ -182,7 +182,6 @@ CONFIG_RTC_DRV_AT91SAM9=3Dy CONFIG_DMADEVICES=3Dy CONFIG_AT_XDMAC=3Dy CONFIG_STAGING=3Dy -CONFIG_MICROCHIP_PIT64B=3Dy # CONFIG_IOMMU_SUPPORT is not set CONFIG_IIO=3Dy CONFIG_IIO_SW_TRIGGER=3Dy 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. =20 +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 =20 --=20 2.32.0