From patchwork Tue Oct 23 21:44:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 1635011 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 325C43FD4E for ; Tue, 23 Oct 2012 21:44:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754162Ab2JWVoM (ORCPT ); Tue, 23 Oct 2012 17:44:12 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:46627 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754237Ab2JWVoH (ORCPT ); Tue, 23 Oct 2012 17:44:07 -0400 Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id q9NLi6AF019279 for ; Tue, 23 Oct 2012 16:44:06 -0500 Received: from DLEE74.ent.ti.com (dlee74.ent.ti.com [157.170.170.8]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id q9NLi6A0028658 for ; Tue, 23 Oct 2012 16:44:06 -0500 Received: from dlelxv22.itg.ti.com (172.17.1.197) by DLEE74.ent.ti.com (157.170.170.8) with Microsoft SMTP Server id 14.1.323.3; Tue, 23 Oct 2012 16:44:06 -0500 Received: from localhost (kahuna.am.dhcp.ti.com [128.247.75.12]) by dlelxv22.itg.ti.com (8.13.8/8.13.8) with ESMTP id q9NLi60d019185; Tue, 23 Oct 2012 16:44:06 -0500 From: Nishanth Menon To: l-o CC: Kevin Hilman , Jean Pihet , J Keerthy , Nishanth Menon Subject: [RFC PATCH 6/6] PM / AVS / OMAP: move Smartreflex-class3 driver to power/avs Date: Tue, 23 Oct 2012 16:44:01 -0500 Message-ID: <1351028641-20832-7-git-send-email-nm@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1351028641-20832-1-git-send-email-nm@ti.com> References: <1351028641-20832-1-git-send-email-nm@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Move the SmartReflex AVS class3 driver to AVS directory along with the config definition Signed-off-by: Nishanth Menon --- arch/arm/mach-omap2/Makefile | 1 - arch/arm/plat-omap/Kconfig | 9 --------- drivers/power/avs/Kconfig | 9 +++++++++ drivers/power/avs/Makefile | 1 + .../power/avs}/smartreflex-class3.c | 0 5 files changed, 10 insertions(+), 10 deletions(-) rename {arch/arm/mach-omap2 => drivers/power/avs}/smartreflex-class3.c (100%) diff --git a/arch/arm/mach-omap2/smartreflex-class3.c b/drivers/power/avs/smartreflex-class3.c similarity index 100% rename from arch/arm/mach-omap2/smartreflex-class3.c rename to drivers/power/avs/smartreflex-class3.c diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index fe40d9e..1eae31d 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile @@ -71,7 +71,6 @@ obj-$(CONFIG_SOC_OMAP5) += omap-mpuss-lowpower.o sleep44xx.o obj-$(CONFIG_PM_DEBUG) += pm-debug.o obj-$(CONFIG_POWER_AVS_OMAP) += sr_device.o -obj-$(CONFIG_POWER_AVS_OMAP_CLASS3) += smartreflex-class3.o AFLAGS_sleep24xx.o :=-Wa,-march=armv6 AFLAGS_sleep34xx.o :=-Wa,-march=armv7-a$(plus_sec) diff --git a/arch/arm/plat-omap/Kconfig b/arch/arm/plat-omap/Kconfig index e5e7520..dba674b 100644 --- a/arch/arm/plat-omap/Kconfig +++ b/arch/arm/plat-omap/Kconfig @@ -46,15 +46,6 @@ config OMAP_DEBUG_LEDS depends on OMAP_DEBUG_DEVICES select LEDS_CLASS -config POWER_AVS_OMAP_CLASS3 - bool "Class 3 mode of Smartreflex Implementation" - depends on POWER_AVS_OMAP && TWL4030_CORE - help - Say Y to enable Class 3 implementation of Smartreflex - - Class 3 implementation of Smartreflex employs continuous hardware - voltage calibration. - config OMAP_RESET_CLOCKS bool "Reset unused clocks during boot" depends on ARCH_OMAP diff --git a/drivers/power/avs/Kconfig b/drivers/power/avs/Kconfig index 466a391..4f1c1b4 100644 --- a/drivers/power/avs/Kconfig +++ b/drivers/power/avs/Kconfig @@ -32,3 +32,12 @@ config POWER_AVS_OMAP Optionally autocompensation can be enabled in the kernel by default during system init via the enable_on_init flag which an be passed as platform data to the smartreflex driver. + +config POWER_AVS_OMAP_CLASS3 + bool "Class 3 mode of Smartreflex Implementation" + depends on POWER_AVS_OMAP && TWL4030_CORE + help + Say Y to enable Class 3 implementation of Smartreflex + + Class 3 implementation of Smartreflex employs continuous hardware + voltage calibration. diff --git a/drivers/power/avs/Makefile b/drivers/power/avs/Makefile index 0843386..ac72ec5 100644 --- a/drivers/power/avs/Makefile +++ b/drivers/power/avs/Makefile @@ -1 +1,2 @@ obj-$(CONFIG_POWER_AVS_OMAP) += smartreflex.o +obj-$(CONFIG_POWER_AVS_OMAP_CLASS3) += smartreflex-class3.o