Received: by 2002:a05:6a10:144:0:0:0:0 with SMTP id 4csp272094pxw; Fri, 8 Apr 2022 07:14:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzw+DRmmh2204vKOjYJU61WwUj7lB985L7xcQe/vHSnOl28674xjYwoiBAdPS/XnDOkdkmk X-Received: by 2002:a17:906:3a4f:b0:6cf:86e0:586c with SMTP id a15-20020a1709063a4f00b006cf86e0586cmr18428870ejf.626.1649427245092; Fri, 08 Apr 2022 07:14:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649427245; cv=none; d=google.com; s=arc-20160816; b=aC03hxemeO/YcIKv0ykmdCvThAufekaMoQf4vsq1XTcwdPZ49yATgONCi1J0mU0qeZ 1f7iNBdAEL+VR3SBrvmdCPNZwqGBUAZ+zsBsrYRB+BdDNSHGcm/Ot21ymNKdKOpKg24S LVGSwUZRtyqt3IO5QWna8jSOVNJe6qxCeASipnKuSjPq9nCVdAPH3U7Tybwpy8OSwZMg VnrgxOECSJhml3fiqcykSYqYMIk2D2Z0uRDYzvXkvo49RJryZhjGXGvB98FputOLvSDF JP+DGxwW21egEWcvniWENQMOE7lNsn0YzM1Zz0qTLxBYirVnxDq+4tZh5XfF+7r9BZzp M8mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=bowIZAuDchDqdY00vq4MLb+GN8MY+eG/TUuV1j6DgiE=; b=tFNdtN51q18uwcDY5CXC/WamMj2rvD7PBouWGeR1hUT4LNgVCsgy8TNaY6l0X4xDEw b2m50BwagqhzRvq2Vw2sd3kYHEk4ou4yG0fqQwggCZf0diIRGTpv0IvZlfVHtt8whj2A 2qoDs2BKjEvUCfsb2Jd2REyKfDanpLJcTYqEjxVtqEjC++oxjd1RWta438atUYUjQTNX W8z3bY9JJFQ7nVxE4uW+bg1A3KKCZ0IOXODvkfVRCZr6JZTekO/dbKEqxLFAJbjkPz+2 EuqatLylZFboG2oHtKnjRyv9+t0B0ENizYu+ci3y9I9XOifcTwfJew6q1CikeqxHAYjM kRZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j17-20020a1709062a1100b006df76385dbesi1031200eje.606.2022.04.08.07.13.25; Fri, 08 Apr 2022 07:14:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234302AbiDHKTi (ORCPT + 99 others); Fri, 8 Apr 2022 06:19:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234261AbiDHKTb (ORCPT ); Fri, 8 Apr 2022 06:19:31 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E282F28E; Fri, 8 Apr 2022 03:17:28 -0700 (PDT) Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 9478B8171; Fri, 8 Apr 2022 10:15:02 +0000 (UTC) From: Tony Lindgren To: Daniel Lezcano , Thomas Gleixner Cc: linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Keerthy , Nishanth Menon , Vignesh Raghavendra Subject: [PATCH 2/3] clocksource/drivers/timer-ti-dm: Make timer selectable for ARCH_K3 Date: Fri, 8 Apr 2022 13:17:14 +0300 Message-Id: <20220408101715.43697-3-tony@atomide.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220408101715.43697-1-tony@atomide.com> References: <20220408101715.43697-1-tony@atomide.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Let's make timer-ti-dm selectable for ARCH_K3, and add a separate option for OMAP_DM_SYSTIMER as there should be no need for it on ARCH_K3. For older TI SoCs, we are already selecting OMAP_DM_TIMER in arch/arm/mach-omap*/Kconfig. For mach-omap2, we need to now also select OMAP_DM_SYSTIMER. Cc: Keerthy Cc: Nishanth Menon Cc: Vignesh Raghavendra Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/Kconfig | 2 ++ drivers/clocksource/Kconfig | 8 +++++++- drivers/clocksource/Makefile | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig @@ -105,6 +105,7 @@ config ARCH_OMAP2PLUS select MACH_OMAP_GENERIC select MEMORY select MFD_SYSCON + select OMAP_DM_SYSTIMER select OMAP_DM_TIMER select OMAP_GPMC select PINCTRL @@ -160,6 +161,7 @@ config SOC_OMAP2420 bool "OMAP2420 support" depends on ARCH_OMAP2 default y + select OMAP_DM_SYSTIMER select OMAP_DM_TIMER select SOC_HAS_OMAP2_SDRC diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -22,7 +22,7 @@ config CLKEVT_I8253 config I8253_LOCK bool -config OMAP_DM_TIMER +config OMAP_DM_SYSTIMER bool select TIMER_OF @@ -56,6 +56,12 @@ config DIGICOLOR_TIMER help Enables the support for the digicolor timer driver. +config OMAP_DM_TIMER + tristate "OMAP dual-mode timer driver" if ARCH_K3 || COMPILE_TEST + select TIMER_OF + help + Enables the support for the TI dual-mode timer driver. + config DW_APB_TIMER bool "DW APB timer driver" if COMPILE_TEST help diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile --- a/drivers/clocksource/Makefile +++ b/drivers/clocksource/Makefile @@ -18,7 +18,7 @@ obj-$(CONFIG_CLKSRC_MMIO) += mmio.o obj-$(CONFIG_DAVINCI_TIMER) += timer-davinci.o obj-$(CONFIG_DIGICOLOR_TIMER) += timer-digicolor.o obj-$(CONFIG_OMAP_DM_TIMER) += timer-ti-dm.o -obj-$(CONFIG_OMAP_DM_TIMER) += timer-ti-dm-systimer.o +obj-$(CONFIG_OMAP_DM_SYSTIMER) += timer-ti-dm-systimer.o obj-$(CONFIG_DW_APB_TIMER) += dw_apb_timer.o obj-$(CONFIG_DW_APB_TIMER_OF) += dw_apb_timer_of.o obj-$(CONFIG_FTTMR010_TIMER) += timer-fttmr010.o -- 2.35.1