From patchwork Mon Oct 28 16:49:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 3103351 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CB5CDBF924 for ; Mon, 28 Oct 2013 16:50:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 93182202F9 for ; Mon, 28 Oct 2013 16:50:15 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 43BC6202EC for ; Mon, 28 Oct 2013 16:50:14 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vaq0z-0003VZ-0f; Mon, 28 Oct 2013 16:50:05 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vaq0w-0002iA-D1; Mon, 28 Oct 2013 16:50:02 +0000 Received: from mail-oa0-f42.google.com ([209.85.219.42]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vaq0s-0002fN-Io for linux-arm-kernel@lists.infradead.org; Mon, 28 Oct 2013 16:49:59 +0000 Received: by mail-oa0-f42.google.com with SMTP id k14so3882266oag.15 for ; Mon, 28 Oct 2013 09:49:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=heA239AIBsXCPFHVbFsrJe/jsKjYiCesZDIj4s/M3QM=; b=eCnQB5AgdikMTL99yquOMtZnE0YAwTblVd3Tuhb6J8W7h3pvK1VaATbQKWSwFm/WnP xVYbL8RjXjCa9DjM3bpJgJXq19fO/f0EpYyVFKTWplix9I2MzUVd5hRI/+5tjpSDfsOQ 6VkU/D9o1hSPPRVgXCw5QwD/ChRAx4o0clbxh2TKjU/vg8KQiqAh2zJgzk5oY2EBFd3Y BfKdExjZm8xzT2JQWBoDpfjnQjiAWQH31tT5UwgHBoZMXeS90/V8BaqUcdrrzrKxpfX3 7oRydV/3554XbW9264KDb0sHa94ndDT+SKKDE2OKdM3y8hmy4bV+ATflBlgvMGc1NdcF /Rsw== X-Gm-Message-State: ALoCoQmHFZxqB9pJcgVythA9qa6ZXstm5SIJl+zQ4E4dXbTdfhrlj4RCMFgpfgms0TRk2U3xRCwJ X-Received: by 10.182.66.164 with SMTP id g4mr2533492obt.47.1382978977409; Mon, 28 Oct 2013 09:49:37 -0700 (PDT) Received: from localhost.localdomain (sccc-66-78-236-243.smartcity.com. [66.78.236.243]) by mx.google.com with ESMTPSA id nw5sm27719940obc.9.2013.10.28.09.49.36 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Oct 2013 09:49:37 -0700 (PDT) From: Daniel Lezcano To: kernel@pengutronix.de Subject: [RFC PATCH 3/3] ARM: imx: cpuidle: Move the drivers to drivers/cpuidle Date: Mon, 28 Oct 2013 09:49:33 -0700 Message-Id: <1382978973-4034-3-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1382978973-4034-1-git-send-email-daniel.lezcano@linaro.org> References: <1382978973-4034-1-git-send-email-daniel.lezcano@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131028_124958_800611_9AAE75F7 X-CRM114-Status: GOOD ( 10.99 ) X-Spam-Score: -2.6 (--) Cc: linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP For the sake of consistency and in order to facilitate code consolidation across cpuidle drivers, moving them to the drivers/cpuidle directory is appreciable. The different drivers for at91, calxeda, big-little (tc2), kirkwood, ux500 and zynq are now in this directory. As there is no more dependency between the low level pm code and the cpuidle backend driver we can safely move it to the directory the drivers belong to. Signed-off-by: Daniel Lezcano --- arch/arm/mach-imx/Makefile | 5 ----- drivers/cpuidle/Kconfig.arm | 14 ++++++++++++++ drivers/cpuidle/Makefile | 2 ++ .../mach-imx => drivers/cpuidle}/cpuidle-imx5.c | 0 .../mach-imx => drivers/cpuidle}/cpuidle-imx6q.c | 0 5 files changed, 16 insertions(+), 5 deletions(-) rename {arch/arm/mach-imx => drivers/cpuidle}/cpuidle-imx5.c (100%) rename {arch/arm/mach-imx => drivers/cpuidle}/cpuidle-imx6q.c (100%) diff --git a/arch/arm/mach-imx/cpuidle-imx5.c b/drivers/cpuidle/cpuidle-imx5.c similarity index 100% rename from arch/arm/mach-imx/cpuidle-imx5.c rename to drivers/cpuidle/cpuidle-imx5.c diff --git a/arch/arm/mach-imx/cpuidle-imx6q.c b/drivers/cpuidle/cpuidle-imx6q.c similarity index 100% rename from arch/arm/mach-imx/cpuidle-imx6q.c rename to drivers/cpuidle/cpuidle-imx6q.c diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index 5383c58..876c72d 100644 --- a/arch/arm/mach-imx/Makefile +++ b/arch/arm/mach-imx/Makefile @@ -27,11 +27,6 @@ obj-$(CONFIG_MXC_AVIC) += avic.o obj-$(CONFIG_MXC_USE_EPIT) += epit.o obj-$(CONFIG_MXC_DEBUG_BOARD) += 3ds_debugboard.o -ifeq ($(CONFIG_CPU_IDLE),y) -obj-$(CONFIG_SOC_IMX5) += cpuidle-imx5.o -obj-$(CONFIG_SOC_IMX6Q) += cpuidle-imx6q.o -endif - ifdef CONFIG_SND_IMX_SOC obj-y += ssi-fiq.o obj-y += ssi-fiq-ksym.o diff --git a/drivers/cpuidle/Kconfig.arm b/drivers/cpuidle/Kconfig.arm index f23bd75..2e1b9400 100644 --- a/drivers/cpuidle/Kconfig.arm +++ b/drivers/cpuidle/Kconfig.arm @@ -44,3 +44,17 @@ config ARM_AT91_CPUIDLE depends on ARCH_AT91 help Select this to enable cpuidle for AT91 processors + +config ARM_IMX5_CPUIDLE + bool "Cpu Idle Driver for the IMX5 processors" + default y + depends on SOC_IMX5 + help + Select this to enable cpuidle for IMX5 processors + +config ARM_IMX6Q_CPUIDLE + bool "Cpu Idle Driver for the IMX6Q processors" + default y + depends on SOC_IMX6Q + help + Select this to enable cpuidle for IMX6Q processors \ No newline at end of file diff --git a/drivers/cpuidle/Makefile b/drivers/cpuidle/Makefile index 527be28..0695880 100644 --- a/drivers/cpuidle/Makefile +++ b/drivers/cpuidle/Makefile @@ -13,3 +13,5 @@ obj-$(CONFIG_ARM_KIRKWOOD_CPUIDLE) += cpuidle-kirkwood.o obj-$(CONFIG_ARM_ZYNQ_CPUIDLE) += cpuidle-zynq.o obj-$(CONFIG_ARM_U8500_CPUIDLE) += cpuidle-ux500.o obj-$(CONFIG_ARM_AT91_CPUIDLE) += cpuidle-at91.o +obj-$(CONFIG_ARM_IMX5_CPUIDLE) += cpuidle-imx5.o +obj-$(CONFIG_ARM_IMX6Q_CPUIDLE) += cpuidle-imx6q.o