From patchwork Thu Jul 3 11:01:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 33018 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f69.google.com (mail-pa0-f69.google.com [209.85.220.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 972FB20560 for ; Thu, 3 Jul 2014 11:01:42 +0000 (UTC) Received: by mail-pa0-f69.google.com with SMTP id kq14sf168540pab.4 for ; Thu, 03 Jul 2014 04:01:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=PDvgjxli5w0CN8BCQ67l+EMo2VlvfgTeUGzwWH7Z7zU=; b=gx7Y9ch3MM9EDaM4tEzoWFpnreDJPdSShvPh7OH49ul4MH3X44DI6421Cb584Soww0 I53374DTVSGdf76zftFpPwVt2bYst3EN/Z3NYSCLU2TEoOQJW7opAfwaNB+5SDRwe+09 KzinGvLc58THKzyLIrVMtK4cy48MLN0wYOVegHHPCG2HLTI8Q9mXgKgQAaZcMdVuzjGe mjATKAlvgkMkV6J+bC9Ltg1o4crQcGxpqiEP1clew8KRBZWlyoT1tfDz/zTFcklVShQe B9QvzzpNtGoMYuhZRmqBL7fwtj+01Bt2piHiSZey7f8dmQ760dXfrDPTjjZ1DqXNfsnv GeeQ== X-Gm-Message-State: ALoCoQl6usQPQ/yoPLMWoxXDn6qbmy8LznUUfagw6V+6tc15ZZXCDIt7cdUFKq6P8YNbaNrG2XcS X-Received: by 10.66.144.228 with SMTP id sp4mr1993686pab.5.1404385301911; Thu, 03 Jul 2014 04:01:41 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.24.242 with SMTP id 105ls76011qgr.59.gmail; Thu, 03 Jul 2014 04:01:41 -0700 (PDT) X-Received: by 10.58.29.164 with SMTP id l4mr3143169veh.8.1404385301777; Thu, 03 Jul 2014 04:01:41 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id ak16si5065742vdc.93.2014.07.03.04.01.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Jul 2014 04:01:41 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id ik5so26060vcb.35 for ; Thu, 03 Jul 2014 04:01:41 -0700 (PDT) X-Received: by 10.220.177.133 with SMTP id bi5mr3103697vcb.26.1404385301670; Thu, 03 Jul 2014 04:01:41 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp363663vcb; Thu, 3 Jul 2014 04:01:41 -0700 (PDT) X-Received: by 10.66.228.133 with SMTP id si5mr3986817pac.48.1404385300777; Thu, 03 Jul 2014 04:01:40 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cb12si32676104pac.144.2014.07.03.04.01.40; Thu, 03 Jul 2014 04:01:40 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753348AbaGCLBc (ORCPT + 27 others); Thu, 3 Jul 2014 07:01:32 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:37401 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752379AbaGCLBa (ORCPT ); Thu, 3 Jul 2014 07:01:30 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id s63B1SlJ013654; Thu, 3 Jul 2014 06:01:28 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s63B1SYO025498; Thu, 3 Jul 2014 06:01:28 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Thu, 3 Jul 2014 06:01:28 -0500 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s63B1LSN018213; Thu, 3 Jul 2014 06:01:25 -0500 From: Roger Quadros To: , CC: , , , , , , , , Roger Quadros Subject: [PATCH v2 1/3] ARM: DRA7: hwmod: Add OCP2SCP3 module Date: Thu, 3 Jul 2014 14:01:12 +0300 Message-ID: <1404385274-5093-2-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1404385274-5093-1-git-send-email-rogerq@ti.com> References: <1404385274-5093-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: rogerq@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This module is needed for the SATA and PCIe PHYs. Signed-off-by: Roger Quadros Reviewed-by: Rajendra Nayak Tested-by: Sekhar Nori > --- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c index 20b4398..c9daee4 100644 --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c @@ -1215,6 +1215,21 @@ static struct omap_hwmod dra7xx_ocp2scp1_hwmod = { }, }; +/* ocp2scp3 */ +static struct omap_hwmod dra7xx_ocp2scp3_hwmod = { + .name = "ocp2scp3", + .class = &dra7xx_ocp2scp_hwmod_class, + .clkdm_name = "l3init_clkdm", + .main_clk = "l4_root_clk_div", + .prcm = { + .omap4 = { + .clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP3_CLKCTRL_OFFSET, + .context_offs = DRA7XX_RM_L3INIT_OCP2SCP3_CONTEXT_OFFSET, + .modulemode = MODULEMODE_HWCTRL, + }, + }, +}; + /* * 'qspi' class * @@ -2326,6 +2341,14 @@ static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp1 = { .user = OCP_USER_MPU | OCP_USER_SDMA, }; +/* l4_cfg -> ocp2scp3 */ +static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp3 = { + .master = &dra7xx_l4_cfg_hwmod, + .slave = &dra7xx_ocp2scp3_hwmod, + .clk = "l4_root_clk_div", + .user = OCP_USER_MPU | OCP_USER_SDMA, +}; + static struct omap_hwmod_addr_space dra7xx_qspi_addrs[] = { { .pa_start = 0x4b300000, @@ -2672,6 +2695,7 @@ static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = { &dra7xx_l4_per1__mmc4, &dra7xx_l4_cfg__mpu, &dra7xx_l4_cfg__ocp2scp1, + &dra7xx_l4_cfg__ocp2scp3, &dra7xx_l3_main_1__qspi, &dra7xx_l4_cfg__sata, &dra7xx_l4_cfg__smartreflex_core,