From patchwork Wed Jun 18 12:16:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 32132 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f197.google.com (mail-ve0-f197.google.com [209.85.128.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B1305206A0 for ; Wed, 18 Jun 2014 12:17:20 +0000 (UTC) Received: by mail-ve0-f197.google.com with SMTP id jz11sf2475813veb.0 for ; Wed, 18 Jun 2014 05:17:20 -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=u7DAH+aoOsz+zv1zfXkBGT4ERiocH6voexHaj/4ARSg=; b=Hu+kc/EBCxu4bswvaqOXtP7idZq3rBki4QIlnhu+48iwwn8z5O7P0CIRR/+pejl9wS iZy9iGrYiZTp6D2Hc8DwchWn+Gj6zVX5INzkXyTnLwD5dXoDgLxJgPHHtK9uTIqkqtEL QfQ5PSOEtMkVQX3IgeCSLzPsAdAqW1/0PNeQi9TzNRvwI5j6RoA4A0j3ATE44rNTESA2 bx+LgaPdjIFTkL1oYcImmPGIdQm3lvk/29IkFe/4CJXxVOP1Yv06/t2gMgmx9v2ey4Xe xhpYLR4wH1lxFZVqb0iMlw7VCOPRBP7uGj6WYCDiG0DrginaH5w3ZS1LvcBIE9O9xUVg 1MYw== X-Gm-Message-State: ALoCoQlBbAsGKurcSY15tx+jf3drE+4E4wcHn7iEpWKGvsstJTk2ige2T4bwvWSGABBu/hA+lOL+ X-Received: by 10.58.160.72 with SMTP id xi8mr618424veb.15.1403093840560; Wed, 18 Jun 2014 05:17:20 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.18.230 with SMTP id 93ls64350qgf.77.gmail; Wed, 18 Jun 2014 05:17:20 -0700 (PDT) X-Received: by 10.221.64.20 with SMTP id xg20mr966380vcb.3.1403093840475; Wed, 18 Jun 2014 05:17:20 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id gg3si794293veb.2.2014.06.18.05.17.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Jun 2014 05:17:20 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id hy10so682592vcb.15 for ; Wed, 18 Jun 2014 05:17:20 -0700 (PDT) X-Received: by 10.221.64.80 with SMTP id xh16mr941207vcb.35.1403093840398; Wed, 18 Jun 2014 05:17:20 -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.54.6 with SMTP id vs6csp280096vcb; Wed, 18 Jun 2014 05:17:19 -0700 (PDT) X-Received: by 10.68.202.167 with SMTP id kj7mr2124757pbc.160.1403093839553; Wed, 18 Jun 2014 05:17:19 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xk1si2033042pab.68.2014.06.18.05.17.18; Wed, 18 Jun 2014 05:17:18 -0700 (PDT) Received-SPF: none (google.com: linux-omap-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 S966308AbaFRMRL (ORCPT + 6 others); Wed, 18 Jun 2014 08:17:11 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:37328 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966020AbaFRMRI (ORCPT ); Wed, 18 Jun 2014 08:17:08 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s5ICH7sl027460; Wed, 18 Jun 2014 07:17:07 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s5ICH7VS012162; Wed, 18 Jun 2014 07:17:07 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Wed, 18 Jun 2014 07:17:06 -0500 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s5ICGxW3026917; Wed, 18 Jun 2014 07:17:03 -0500 From: Roger Quadros To: , CC: , , , , , , , , , Roger Quadros Subject: [PATCH 1/2] ARM: DRA7: hwmod: Add OCP2SCP3 module Date: Wed, 18 Jun 2014 15:16:55 +0300 Message-ID: <1403093816-10960-2-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1403093816-10960-1-git-send-email-rogerq@ti.com> References: <1403093816-10960-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-omap@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.170 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 Tested-by: Roger Quadros Tested-by: Kishon Vijay Abraham I --- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..cedef6b 100644 --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c @@ -1215,6 +1215,30 @@ static struct omap_hwmod dra7xx_ocp2scp1_hwmod = { }, }; +/* ocp2scp3 */ +static struct omap_hwmod dra7xx_ocp2scp3_hwmod; + +/* 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 dra7xx_ocp2scp3_hwmod = { + .name = "ocp2scp3", + .class = &dra7xx_ocp2scp_hwmod_class, + .clkdm_name = "l3init_clkdm", + .prcm = { + .omap4 = { + .clkctrl_offs = DRA7XX_CM_L3INIT_OCP2SCP3_CLKCTRL_OFFSET, + .context_offs = DRA7XX_RM_L3INIT_OCP2SCP3_CONTEXT_OFFSET, + .modulemode = MODULEMODE_HWCTRL, + }, + }, +}; + /* * 'qspi' class * @@ -2672,6 +2696,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,