From patchwork Mon Sep 1 18:09:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 36405 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E9C422032B for ; Mon, 1 Sep 2014 18:10:12 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id 29sf22115960yhl.6 for ; Mon, 01 Sep 2014 11:10:12 -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=3LzZVRXsHw9PdKF/jU3heixCdClXk+PwrVpbniyhCN0=; b=e23xiXp4ljWNJx8q0al6Mwz6jvwlSBL/pJfq5yl4ek0ZScKHaVox6ULVRSr1JLT3kL 4BP+/uXOUt9pdcKNwIHU5YftKBTrPxd8lFii6SRp40bFS8pomiv1zl6z7VOEtfXUcA1z uGZrfkdc/qclra07zJJnYyo/ZYich9AZ4koaAJkRLzR/kZEdudFP/GqQ7jMvduDdg8CM dm/c+S0ZqBYc9u5Vy4tkst7+8H3VeGIq0FKpV7Lc4IRJGOADxAsw1OwS2dz1hTISSG1Y IVtKt/HvUxzhliWufhKh0ROO8IURW1jZwKYGB7kwJFMw8S76NJezu/ZtMoChbs1PB1P4 KUDg== X-Gm-Message-State: ALoCoQmxWXtWla0rXEHOjJmItw57l4/LnyaL/3NIrvtrNLQAN9EhEyrnZL33sn4+qnvueAau+9yY X-Received: by 10.52.116.241 with SMTP id jz17mr982990vdb.9.1409595012709; Mon, 01 Sep 2014 11:10:12 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.51.170 with SMTP id u39ls2042700qga.21.gmail; Mon, 01 Sep 2014 11:10:12 -0700 (PDT) X-Received: by 10.52.127.5 with SMTP id nc5mr1370294vdb.59.1409595012595; Mon, 01 Sep 2014 11:10:12 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id um5si1095270vcb.53.2014.09.01.11.10.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Sep 2014 11:10:12 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id lf12so5681770vcb.25 for ; Mon, 01 Sep 2014 11:10:12 -0700 (PDT) X-Received: by 10.52.1.39 with SMTP id 7mr22483127vdj.17.1409595012513; Mon, 01 Sep 2014 11:10:12 -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.45.67 with SMTP id uj3csp421341vcb; Mon, 1 Sep 2014 11:10:12 -0700 (PDT) X-Received: by 10.66.182.10 with SMTP id ea10mr13484039pac.123.1409595011679; Mon, 01 Sep 2014 11:10:11 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tf5si2430384pab.88.2014.09.01.11.10.11 for ; Mon, 01 Sep 2014 11:10:11 -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 S1754680AbaIASKJ (ORCPT + 5 others); Mon, 1 Sep 2014 14:10:09 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:35724 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754675AbaIASKG (ORCPT ); Mon, 1 Sep 2014 14:10:06 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s81I9jFX025885; Mon, 1 Sep 2014 13:09:45 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s81I9juM009870; Mon, 1 Sep 2014 13:09:45 -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; Mon, 1 Sep 2014 13:09:45 -0500 Received: from sokoban.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s81I9JlC012145; Mon, 1 Sep 2014 13:09:43 -0500 From: Tero Kristo To: , , CC: Subject: [PATCH 13/26] ARM: AM33xx: PRM: add support for prm_init Date: Mon, 1 Sep 2014 21:09:02 +0300 Message-ID: <1409594955-1476-14-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1409594955-1476-1-git-send-email-t-kristo@ti.com> References: <1409594955-1476-1-git-send-email-t-kristo@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: t-kristo@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.180 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: , Added support for prm_init for AM33xx SoC. This is needed to register SoC specific prm_ll_data for these devices. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/io.c | 2 ++ arch/arm/mach-omap2/prm33xx.c | 13 +++++++++++++ arch/arm/mach-omap2/prm33xx.h | 2 ++ 3 files changed, 17 insertions(+) diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 26055d9..f1db801 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c @@ -53,6 +53,7 @@ #include "cminst44xx.h" #include "prm2xxx.h" #include "prm3xxx.h" +#include "prm33xx.h" #include "prm44xx.h" #include "opp2xxx.h" @@ -583,6 +584,7 @@ void __init am33xx_init_early(void) omap2_set_globals_cm(AM33XX_L4_WK_IO_ADDRESS(AM33XX_PRCM_BASE), NULL); omap3xxx_check_revision(); am33xx_check_features(); + am33xx_prm_init(); am33xx_cm_init(); am33xx_powerdomains_init(); am33xx_clockdomains_init(); diff --git a/arch/arm/mach-omap2/prm33xx.c b/arch/arm/mach-omap2/prm33xx.c index 62709cd..f149e7c 100644 --- a/arch/arm/mach-omap2/prm33xx.c +++ b/arch/arm/mach-omap2/prm33xx.c @@ -342,3 +342,16 @@ struct pwrdm_ops am33xx_pwrdm_operations = { .pwrdm_wait_transition = am33xx_pwrdm_wait_transition, .pwrdm_has_voltdm = am33xx_check_vcvp, }; + +static struct prm_ll_data am33xx_prm_ll_data; + +int __init am33xx_prm_init(void) +{ + return prm_register(&am33xx_prm_ll_data); +} + +static void __exit am33xx_prm_exit(void) +{ + prm_unregister(&am33xx_prm_ll_data); +} +__exitcall(am33xx_prm_exit); diff --git a/arch/arm/mach-omap2/prm33xx.h b/arch/arm/mach-omap2/prm33xx.h index 9b9918d..5cdfdc0 100644 --- a/arch/arm/mach-omap2/prm33xx.h +++ b/arch/arm/mach-omap2/prm33xx.h @@ -127,5 +127,7 @@ extern int am33xx_prm_is_hardreset_asserted(u8 shift, s16 inst, extern int am33xx_prm_assert_hardreset(u8 shift, s16 inst, u16 rstctrl_offs); extern int am33xx_prm_deassert_hardreset(u8 shift, u8 st_shift, s16 inst, u16 rstctrl_offs, u16 rstst_offs); +int am33xx_prm_init(void); + #endif /* ASSEMBLER */ #endif