From patchwork Fri May 9 12:37:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sekhar Nori X-Patchwork-Id: 29895 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E30D620534 for ; Fri, 9 May 2014 12:37:45 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id i7sf19763676oag.4 for ; Fri, 09 May 2014 05:37:45 -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 :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=ij2mHnPX4ch+LmG5YtLhBwSE3E7zOMrOu1ur99FmX/Q=; b=UunoDDO8tzlcFSaG6wQgDJsdKR+lGz4ULNT3ORj8hf+lGRoLtMdq9sAhQE1C9btEF1 LvoNhws3Zu0veoGDsypr94JPjN0zP9mvpoOo3d+/zfrGfjcTlaYpUb8LIU/y9bB/wRP6 Qn8ywkSkBiMKjrAf/OihXdfyvD7CqLQfcV01x6Nj0nQByEyUGMsenuvPexaVyHA16X7D b8aLFqP1q2Ktv4Iwrq29JocVGA1zzOGuWw+iZ2Tp2WZDntwsFq3vybfg2xKdEySnzH4p JbC3stxSt6yjoK1hVvZYVblGFg4BwuXNcEYSofKahfiK+AD1OLDaZTNMkCRBV5kW1zJs AETA== X-Gm-Message-State: ALoCoQm8DFqXo0vht6C6zmPoYn0VSooK7qmXpPSYx902Ut/RrHgbhI+P/602a4soy8Of0TBIMFrf X-Received: by 10.42.187.198 with SMTP id cx6mr4186012icb.8.1399639065179; Fri, 09 May 2014 05:37:45 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.98.229 with SMTP id o92ls309747qge.95.gmail; Fri, 09 May 2014 05:37:45 -0700 (PDT) X-Received: by 10.58.122.164 with SMTP id lt4mr8261354veb.2.1399639064989; Fri, 09 May 2014 05:37:44 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id c6si706770veo.54.2014.05.09.05.37.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 May 2014 05:37:44 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id lc6so5098402vcb.2 for ; Fri, 09 May 2014 05:37:44 -0700 (PDT) X-Received: by 10.58.22.38 with SMTP id a6mr244348vef.58.1399639064876; Fri, 09 May 2014 05:37:44 -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.220.221.72 with SMTP id ib8csp75913vcb; Fri, 9 May 2014 05:37:44 -0700 (PDT) X-Received: by 10.60.133.107 with SMTP id pb11mr13479215oeb.48.1399639064359; Fri, 09 May 2014 05:37:44 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id db3si2197713pbc.230.2014.05.09.05.37.43; Fri, 09 May 2014 05:37:43 -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 S1751240AbaEIMhn (ORCPT + 6 others); Fri, 9 May 2014 08:37:43 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:50543 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750712AbaEIMhm (ORCPT ); Fri, 9 May 2014 08:37:42 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s49CbIt7025357; Fri, 9 May 2014 07:37:18 -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 s49CbIOd015710; Fri, 9 May 2014 07:37:18 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Fri, 9 May 2014 07:37:18 -0500 Received: from psplinux063.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s49CbFnR025738; Fri, 9 May 2014 07:37:16 -0500 From: Sekhar Nori To: Tony Lindgren , Paul Walmsley CC: Linux OMAP Mailing List , Linux ARM Mailing List , Lokesh Vutla , Sekhar Nori Subject: [PATCH] ARM: DRA7: hwmod: add entry for RTCSS Date: Fri, 9 May 2014 18:07:05 +0530 Message-ID: X-Mailer: git-send-email 1.7.10.1 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: nsekhar@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.171 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: , From: Lokesh Vutla RTCSS on DRA7 provides a precise real-time clock. Add hwmod entry for this IP. Signed-off-by: Lokesh Vutla Signed-off-by: Sekhar Nori Reviewed-by: Rajendra Nayak Acked-by: Keerthy --- Applies to linux-next of 5th May. arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c index 810c205..402ffc7 100644 --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c @@ -1249,6 +1249,38 @@ static struct omap_hwmod dra7xx_qspi_hwmod = { }; /* + * 'rtcss' class + * + */ +static struct omap_hwmod_class_sysconfig dra7xx_rtcss_sysc = { + .sysc_offs = 0x0078, + .sysc_flags = SYSC_HAS_SIDLEMODE, + .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | + SIDLE_SMART_WKUP), + .sysc_fields = &omap_hwmod_sysc_type3, +}; + +static struct omap_hwmod_class dra7xx_rtcss_hwmod_class = { + .name = "rtcss", + .sysc = &dra7xx_rtcss_sysc, +}; + +/* rtcss */ +static struct omap_hwmod dra7xx_rtcss_hwmod = { + .name = "rtcss", + .class = &dra7xx_rtcss_hwmod_class, + .clkdm_name = "rtc_clkdm", + .main_clk = "sys_32k_ck", + .prcm = { + .omap4 = { + .clkctrl_offs = DRA7XX_CM_RTC_RTCSS_CLKCTRL_OFFSET, + .context_offs = DRA7XX_RM_RTC_RTCSS_CONTEXT_OFFSET, + .modulemode = MODULEMODE_SWCTRL, + }, + }, +}; + +/* * 'sata' class * */ @@ -2354,6 +2386,14 @@ static struct omap_hwmod_ocp_if dra7xx_l3_main_1__qspi = { .user = OCP_USER_MPU | OCP_USER_SDMA, }; +/* l4_per3 -> rtcss */ +static struct omap_hwmod_ocp_if dra7xx_l4_per3__rtcss = { + .master = &dra7xx_l4_per3_hwmod, + .slave = &dra7xx_rtcss_hwmod, + .clk = "l4_root_clk_div", + .user = OCP_USER_MPU | OCP_USER_SDMA, +}; + static struct omap_hwmod_addr_space dra7xx_sata_addrs[] = { { .name = "sysc", @@ -2683,6 +2723,7 @@ static struct omap_hwmod_ocp_if *dra7xx_hwmod_ocp_ifs[] __initdata = { &dra7xx_l4_cfg__mpu, &dra7xx_l4_cfg__ocp2scp1, &dra7xx_l3_main_1__qspi, + &dra7xx_l4_per3__rtcss, &dra7xx_l4_cfg__sata, &dra7xx_l4_cfg__smartreflex_core, &dra7xx_l4_cfg__smartreflex_mpu,