From patchwork Wed Jun 18 19:50:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 32156 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f198.google.com (mail-yk0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8934B203F3 for ; Wed, 18 Jun 2014 19:50:52 +0000 (UTC) Received: by mail-yk0-f198.google.com with SMTP id 9sf2771954ykp.1 for ; Wed, 18 Jun 2014 12:50:52 -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=3o0ogsP0E5IuwGjwHjV/NTs1dNEWKb1ddCg0EPdpDgI=; b=iQrxsAscGDwF/5q4g4SYO58dkt47zEAq+1jQk1++T+72Y5AvY3pF1rcIBpsQnduzTy nXp/tPkQtaETpc6N5oPhDj8EC11gyY6WcYQruNK9SZaOTW8PV3aCjlGAHWDLYVXAfU2U U2KqVrR/Xxl0qD8+PW27C/l1KpmvRLBcR5P0mjDn54jQ9KKfhnEmUedHsbVjmo9ilJiJ Sct+/S2+dYkQVMKbaeqmx9Koxic1MvxBAngjnbvlJ5KqXZ2yy6Zfj3/m+/P1+4GbQEIC rt9UJ4zL93gYvKqykrBzCEp+gwfxKXqVnkfrP9xCJk1PVgnKoyAXEAdqdjbPIzuJ/2C5 sBwQ== X-Gm-Message-State: ALoCoQn/vZDehNjUBaXdUubta4ol1M0ovrvfBJqnFFtywto1gIsY5P2lwNpns9rvGP5qr70evwyn X-Received: by 10.236.141.11 with SMTP id f11mr124466yhj.54.1403121052307; Wed, 18 Jun 2014 12:50:52 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.107.247 with SMTP id h110ls299267qgf.44.gmail; Wed, 18 Jun 2014 12:50:52 -0700 (PDT) X-Received: by 10.53.8.162 with SMTP id dl2mr154135vdd.24.1403121052222; Wed, 18 Jun 2014 12:50:52 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id k5si117037vet.76.2014.06.18.12.50.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Jun 2014 12:50:52 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id la4so1305877vcb.14 for ; Wed, 18 Jun 2014 12:50:52 -0700 (PDT) X-Received: by 10.220.53.72 with SMTP id l8mr186463vcg.16.1403121052121; Wed, 18 Jun 2014 12:50:52 -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 vs6csp309438vcb; Wed, 18 Jun 2014 12:50:51 -0700 (PDT) X-Received: by 10.68.135.67 with SMTP id pq3mr92364pbb.165.1403121051280; Wed, 18 Jun 2014 12:50:51 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hp1si3260660pad.83.2014.06.18.12.50.50; Wed, 18 Jun 2014 12:50:50 -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 S1755128AbaFRTut (ORCPT + 6 others); Wed, 18 Jun 2014 15:50:49 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:40700 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754579AbaFRTus (ORCPT ); Wed, 18 Jun 2014 15:50:48 -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 s5IJok3F007925; Wed, 18 Jun 2014 14:50:46 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s5IJokXs009378; Wed, 18 Jun 2014 14:50:46 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Wed, 18 Jun 2014 14:50:46 -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 s5IJohUu030181; Wed, 18 Jun 2014 14:50:43 -0500 From: Roger Quadros To: , CC: , , , , , , , , , Roger Quadros Subject: [PATCH v2 1/2] ARM: DRA7: hwmod: Add OCP2SCP3 module Date: Wed, 18 Jun 2014 22:50:40 +0300 Message-ID: <1403121040-22523-1-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1403093816-10960-2-git-send-email-rogerq@ti.com> References: <1403093816-10960-2-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.169 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 Reviewed-by: Rajendra Nayak --- v2: - added .main_clk to hwmod. - moved interface structure to the right place. 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,