Received: by 10.223.185.116 with SMTP id b49csp1633898wrg; Wed, 14 Feb 2018 22:05:43 -0800 (PST) X-Google-Smtp-Source: AH8x227C/F04LiQQ6Fw9cr2VBwfVWD49Gz5z3lWXSe1k7qUD/o4yzW6HLwPDPKDpdDbywMBTV99c X-Received: by 10.99.117.74 with SMTP id f10mr1256478pgn.385.1518674743479; Wed, 14 Feb 2018 22:05:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518674743; cv=none; d=google.com; s=arc-20160816; b=MHpmRdYbDWJgetEdEjM/M8ntr9uZA1c6g4j+KVmsPPyu8JKgceES/SJEJ1mfL989Yc 1Vn67vNYQ6F8lvg52lW7Zb+1TgcKYDf/gVmxA3LKce6laOUg7uBS09GMZClsQLQjj3IO eAsb3ItoxV4ZNt8z8boAalWQtnFE0Mz56uVhlq7yyx0fXMpbHEAX8JxY5t3gKMRJ+Az5 5EcZG0UHtomE+ILNe2ypLCej3YYEM8xaGwAUiG2xEDsppl9yemye5lT7JcRecv6xcz0Z rijEdwgthsz8RhhCEYv3ISuDzjYqixRyxlloIR5esdx2tR8QexUjjmDrzb2dKziSz0E1 XubQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=O/ccKpOY0R2NmoHMfAgTrt+efxN3ybIt5cL/xGq/OyI=; b=Yo7zoXecHW1sTMx65vXajfHkrTLeFwv601t7t2nCFAgb1D0byh2OcXoytGtapgbxQE e9e5eJpNZMpk5EDtRXSu5P94ou7LnDR5FthDFZOwF8z1MRCT8QLg8E4mSzl64WO22jMd I4gDoE2XgKWAWyRrIuECtvuxodE11jlP+STple0nQMzH8S/2AByOfphob80aEVMHV3Yo iHHw8m5YXHBAbo3dr0MprAfPDHFLtJVDn26D43TdhQGcBef4nEAaCHZT/NiU1hnMcoM3 HsRTCmH8xfoJvmS7svZMXoWscdGfbX8qs6peCWOozKm1ZzeR08POEDhWM/08A7sZJI8R pLhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=RPxB1pOn; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y17si7320778pgv.311.2018.02.14.22.05.29; Wed, 14 Feb 2018 22:05:43 -0800 (PST) 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=@ti.com header.s=ti-com-17Q1 header.b=RPxB1pOn; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754879AbeBOGE0 (ORCPT + 99 others); Thu, 15 Feb 2018 01:04:26 -0500 Received: from fllnx209.ext.ti.com ([198.47.19.16]:36957 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754854AbeBOGER (ORCPT ); Thu, 15 Feb 2018 01:04:17 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w1F63Ru0014696; Thu, 15 Feb 2018 00:03:27 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1518674607; bh=XuWNO2u//uU32wVBVd9U3jYKETPTvCZD3lG6fG6Eqr4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=RPxB1pOnq2xBa+09oUdRTbfhr08XHlyfAj7/iu22FGgHyb6snZaTUDbS96gizbUa9 UtpFUTvOwctHNGlK+p2xvgnDHgLuPlX7YJ/WqDKMh3jGOoRWMqDtwEyplJ+9wypmuB buWBqZLH3a6twyNnt05HsWTN5y7ffnhI+MOyOtIQ= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1F63Rdi009285; Thu, 15 Feb 2018 00:03:27 -0600 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Thu, 15 Feb 2018 00:03:27 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Thu, 15 Feb 2018 00:03:27 -0600 Received: from ula0393675.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1F62uf5020364; Thu, 15 Feb 2018 00:03:22 -0600 From: Keerthy To: , , , CC: , , , , , , , , , , , , Subject: [PATCH v11 05/10] arm: OMAP: Move dmtimer driver out of plat-omap to drivers under clocksource Date: Thu, 15 Feb 2018 11:31:46 +0530 Message-ID: <1518674511-26421-6-git-send-email-j-keerthy@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1518674511-26421-1-git-send-email-j-keerthy@ti.com> References: <1518674511-26421-1-git-send-email-j-keerthy@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move the dmtimer driver out of plat-omap to clocksource. So that non-omap devices also could use this. No Code changes done to the driver file only renamed to timer-ti-dm.c. Also removed the config dependencies for OMAP_DM_TIMER. Signed-off-by: Keerthy Reviewed-by: Sebastian Reichel Tested-by: Ladislav Michl --- arch/arm/plat-omap/Kconfig | 6 ------ arch/arm/plat-omap/Makefile | 1 - drivers/clocksource/Kconfig | 3 +++ drivers/clocksource/Makefile | 1 + arch/arm/plat-omap/dmtimer.c => drivers/clocksource/timer-ti-dm.c | 0 5 files changed, 4 insertions(+), 7 deletions(-) rename arch/arm/plat-omap/dmtimer.c => drivers/clocksource/timer-ti-dm.c (100%) diff --git a/arch/arm/plat-omap/Kconfig b/arch/arm/plat-omap/Kconfig index 7276afe..afc1a1d 100644 --- a/arch/arm/plat-omap/Kconfig +++ b/arch/arm/plat-omap/Kconfig @@ -106,12 +106,6 @@ config OMAP3_L2_AUX_SECURE_SERVICE_SET_ID help PPA routine service ID for setting L2 auxiliary control register. -config OMAP_DM_TIMER - bool "Use dual-mode timer" - depends on ARCH_OMAP16XX || ARCH_OMAP2PLUS - help - Select this option if you want to use OMAP Dual-Mode timers. - config OMAP_SERIAL_WAKE bool "Enable wake-up events for serial ports" depends on ARCH_OMAP1 && OMAP_MUX diff --git a/arch/arm/plat-omap/Makefile b/arch/arm/plat-omap/Makefile index 47e1867..7215ada 100644 --- a/arch/arm/plat-omap/Makefile +++ b/arch/arm/plat-omap/Makefile @@ -9,5 +9,4 @@ obj-y := sram.o dma.o counter_32k.o # omap_device support (OMAP2+ only at the moment) -obj-$(CONFIG_OMAP_DM_TIMER) += dmtimer.o obj-$(CONFIG_OMAP_DEBUG_LEDS) += debug-leds.o diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index b3b4ed9..5995086 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -21,6 +21,9 @@ config CLKEVT_I8253 config I8253_LOCK bool +config OMAP_DM_TIMER + bool + config CLKBLD_I8253 def_bool y if CLKSRC_I8253 || CLKEVT_I8253 || I8253_LOCK diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile index d6dec44..c8c5109 100644 --- a/drivers/clocksource/Makefile +++ b/drivers/clocksource/Makefile @@ -16,6 +16,7 @@ obj-$(CONFIG_EM_TIMER_STI) += em_sti.o obj-$(CONFIG_CLKBLD_I8253) += i8253.o obj-$(CONFIG_CLKSRC_MMIO) += mmio.o obj-$(CONFIG_DIGICOLOR_TIMER) += timer-digicolor.o +obj-$(CONFIG_OMAP_DM_TIMER) += timer-ti-dm.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 diff --git a/arch/arm/plat-omap/dmtimer.c b/drivers/clocksource/timer-ti-dm.c similarity index 100% rename from arch/arm/plat-omap/dmtimer.c rename to drivers/clocksource/timer-ti-dm.c -- 1.9.1