From patchwork Mon Mar 3 16:02:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 3755261 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4FCAABF13A for ; Mon, 3 Mar 2014 16:04:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 79A3C20397 for ; Mon, 3 Mar 2014 16:04:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A21D6203DF for ; Mon, 3 Mar 2014 16:04:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754903AbaCCQCx (ORCPT ); Mon, 3 Mar 2014 11:02:53 -0500 Received: from mail-ee0-f43.google.com ([74.125.83.43]:48860 "EHLO mail-ee0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754525AbaCCQCt (ORCPT ); Mon, 3 Mar 2014 11:02:49 -0500 Received: by mail-ee0-f43.google.com with SMTP id e53so3957213eek.2 for ; Mon, 03 Mar 2014 08:02:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ecI4Poq9yM5myrDx+HTJr2836ChZkk5Y5bT29actuCA=; b=gCuoEBIWIG82mITHBNx9Ww5BQ8HPPsAc/Q/Is8WAajOUmWhlJcJ2izmMyG/b7jYha4 AI1OIhkllZW5TtSwQBvUTMheEI46j0eMlHMVOMAKV+JX/B+wnrGZ45aeUcq41rwOwNQS dXiQbsXCydHXlXnYcX+hLCezF3BYInHnwyZjMaTPYXOKAQklkwa3YMFl7JfBULM4ZR/c dEdQ6QnvXJI19lVdawv+mWNwSKuVdg0o84kqEUQGWSvlrC7iXw0Wgx6KX0a94JrxXyhh jMkxLv3zpPoq62YpxNvLRkZj/f0pmDd36O8sculAFb88otB8PZntf/H+oc2ssy9iBxwj WHDw== X-Received: by 10.15.48.193 with SMTP id h41mr3501094eew.107.1393862568019; Mon, 03 Mar 2014 08:02:48 -0800 (PST) Received: from flatron.tomeq (87-207-52-162.dynamic.chello.pl. [87.207.52.162]) by mx.google.com with ESMTPSA id y51sm51430597eeu.0.2014.03.03.08.02.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Mar 2014 08:02:47 -0800 (PST) From: Tomasz Figa To: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , "Rafael J. Wysocki" , Pavel Machek , Len Brown , Russell King , Kukjin Kim , Kumar Gala , Ian Campbell , Mark Rutland , Pawel Moll , Rob Herring , Bartlomiej Zolnierkiewicz , Stephen Warren , Tomasz Figa , Mark Brown , Stephen Boyd , Lorenzo Pieralisi , Ulf Hansson , Marek Szyprowski , Tomasz Figa Subject: [PATCH v2 08/11] ARM: s3c64xx: dt: Enable SoC-level power management Date: Mon, 3 Mar 2014 17:02:13 +0100 Message-Id: <1393862536-9842-9-git-send-email-tomasz.figa@gmail.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1393862536-9842-1-git-send-email-tomasz.figa@gmail.com> References: <1393862536-9842-1-git-send-email-tomasz.figa@gmail.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, KHOP_BIG_TO_CC, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds call to s3c64xx_pm_init() from init_machine() callback of mach-s3c64xx-dt to enable SoC-level power management features, such as power domain management and sleep support. Signed-off-by: Tomasz Figa Reviewed-by: Mark Brown --- arch/arm/mach-s3c64xx/mach-s3c64xx-dt.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach-s3c64xx/mach-s3c64xx-dt.c b/arch/arm/mach-s3c64xx/mach-s3c64xx-dt.c index 2fddf38..45a4ddc 100644 --- a/arch/arm/mach-s3c64xx/mach-s3c64xx-dt.c +++ b/arch/arm/mach-s3c64xx/mach-s3c64xx-dt.c @@ -15,6 +15,7 @@ #include #include +#include #include #include @@ -49,9 +50,15 @@ static void __init s3c64xx_dt_map_io(void) static void __init s3c64xx_dt_init_machine(void) { samsung_wdt_reset_of_init(); + s3c64xx_pm_init(); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); } +static void __init s3c64xx_dt_init_late(void) +{ + s3c64xx_pm_late_initcall(); +} + static void s3c64xx_dt_restart(enum reboot_mode mode, const char *cmd) { if (mode != REBOOT_SOFT) @@ -72,5 +79,6 @@ DT_MACHINE_START(S3C6400_DT, "Samsung S3C64xx (Flattened Device Tree)") .dt_compat = s3c64xx_dt_compat, .map_io = s3c64xx_dt_map_io, .init_machine = s3c64xx_dt_init_machine, + .init_late = s3c64xx_dt_init_late, .restart = s3c64xx_dt_restart, MACHINE_END