From patchwork Fri Sep 14 09:20:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Santosh Shilimkar X-Patchwork-Id: 1456381 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 3F0B3DF280 for ; Fri, 14 Sep 2012 09:21:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758498Ab2INJUw (ORCPT ); Fri, 14 Sep 2012 05:20:52 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:44404 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758328Ab2INJUv (ORCPT ); Fri, 14 Sep 2012 05:20:51 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id q8E9KfCX010939; Fri, 14 Sep 2012 04:20:41 -0500 Received: from DBDE71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id q8E9KeD3023819; Fri, 14 Sep 2012 14:50:40 +0530 (IST) Received: from dbdp33.itg.ti.com (172.24.170.252) by DBDE71.ent.ti.com (172.24.170.149) with Microsoft SMTP Server id 14.1.323.3; Fri, 14 Sep 2012 14:50:39 +0530 Received: from ula0393909.apr.dhcp.ti.com (smtpvbd.itg.ti.com [172.24.170.250]) by dbdp33.itg.ti.com (8.13.8/8.13.8) with ESMTP id q8E9KaPw011518; Fri, 14 Sep 2012 14:50:37 +0530 From: Santosh Shilimkar To: CC: , , Santosh Shilimkar , Arnd Bergmann , Tony Lindgren Subject: [PATCH 1/1] drivers: bus: Move the OMAP interconnect driver to drivers/bus/ Date: Fri, 14 Sep 2012 14:50:34 +0530 Message-ID: <1347614434-15938-1-git-send-email-santosh.shilimkar@ti.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org OMAP interconnect drivers are used for the interconnect error handling. Since they are bus driver, lets move it to newly created drivers/bus. Cc: Arnd Bergmann Cc: Tony Lindgren Tested-by: Lokesh Vutla Signed-off-by: Santosh Shilimkar Acked-by: Tony Lindgren --- Patch just moves OMAP interconnect drivers as is to the newly created driver/bus/* directory. Patch is generated against "arm-soc/drivers/ocp2scp" tree and test on all OMAP boards. arch/arm/mach-omap2/Kconfig | 2 ++ arch/arm/mach-omap2/Makefile | 5 ----- drivers/bus/Kconfig | 6 ++++++ drivers/bus/Makefile | 3 +++ {arch/arm/mach-omap2 => drivers/bus}/omap_l3_noc.c | 0 {arch/arm/mach-omap2 => drivers/bus}/omap_l3_noc.h | 0 {arch/arm/mach-omap2 => drivers/bus}/omap_l3_smx.c | 0 {arch/arm/mach-omap2 => drivers/bus}/omap_l3_smx.h | 0 8 files changed, 11 insertions(+), 5 deletions(-) rename {arch/arm/mach-omap2 => drivers/bus}/omap_l3_noc.c (100%) rename {arch/arm/mach-omap2 => drivers/bus}/omap_l3_noc.h (100%) rename {arch/arm/mach-omap2 => drivers/bus}/omap_l3_smx.c (100%) rename {arch/arm/mach-omap2 => drivers/bus}/omap_l3_smx.h (100%) diff --git a/arch/arm/mach-omap2/omap_l3_noc.c b/drivers/bus/omap_l3_noc.c similarity index 100% rename from arch/arm/mach-omap2/omap_l3_noc.c rename to drivers/bus/omap_l3_noc.c diff --git a/arch/arm/mach-omap2/omap_l3_noc.h b/drivers/bus/omap_l3_noc.h similarity index 100% rename from arch/arm/mach-omap2/omap_l3_noc.h rename to drivers/bus/omap_l3_noc.h diff --git a/arch/arm/mach-omap2/omap_l3_smx.c b/drivers/bus/omap_l3_smx.c similarity index 100% rename from arch/arm/mach-omap2/omap_l3_smx.c rename to drivers/bus/omap_l3_smx.c diff --git a/arch/arm/mach-omap2/omap_l3_smx.h b/drivers/bus/omap_l3_smx.h similarity index 100% rename from arch/arm/mach-omap2/omap_l3_smx.h rename to drivers/bus/omap_l3_smx.h diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index dd2db02..7d3c8ab 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig @@ -44,6 +44,7 @@ config ARCH_OMAP3 select ARM_CPU_SUSPEND if PM select MULTI_IRQ_HANDLER select SOC_HAS_OMAP2_SDRC + select OMAP_INTERCONNECT config ARCH_OMAP4 bool "TI OMAP4" @@ -63,6 +64,7 @@ config ARCH_OMAP4 select USB_ARCH_HAS_EHCI if USB_SUPPORT select ARM_CPU_SUSPEND if PM select ARCH_NEEDS_CPU_IDLE_COUPLED + select OMAP_INTERCONNECT config SOC_OMAP5 bool "TI OMAP5" diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index f6a24b3..7fed980 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile @@ -199,11 +199,6 @@ obj-$(CONFIG_ARCH_OMAP4) += omap_hwmod_44xx_data.o # EMU peripherals obj-$(CONFIG_OMAP3_EMU) += emu.o -# L3 interconnect -obj-$(CONFIG_ARCH_OMAP3) += omap_l3_smx.o -obj-$(CONFIG_ARCH_OMAP4) += omap_l3_noc.o -obj-$(CONFIG_SOC_OMAP5) += omap_l3_noc.o - obj-$(CONFIG_OMAP_MBOX_FWK) += mailbox_mach.o mailbox_mach-objs := mailbox.o diff --git a/drivers/bus/Kconfig b/drivers/bus/Kconfig index 6270415..bbec35d 100644 --- a/drivers/bus/Kconfig +++ b/drivers/bus/Kconfig @@ -12,4 +12,10 @@ config OMAP_OCP2SCP OCP2SCP and in OMAP5, both USB PHY and SATA PHY is connected via OCP2SCP. +config OMAP_INTERCONNECT + tristate "OMAP INTERCONNECT DRIVER" + depends on ARCH_OMAP2PLUS + + help + Driver to enable OMAP interconnect error handling driver. endmenu diff --git a/drivers/bus/Makefile b/drivers/bus/Makefile index 0ec50bc..45d997c 100644 --- a/drivers/bus/Makefile +++ b/drivers/bus/Makefile @@ -3,3 +3,6 @@ # obj-$(CONFIG_OMAP_OCP2SCP) += omap-ocp2scp.o + +# Interconnect bus driver for OMAP SoCs. +obj-$(CONFIG_OMAP_INTERCONNECT) += omap_l3_smx.o omap_l3_noc.o