From patchwork Sat Jan 11 19:42:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 3470101 Return-Path: X-Original-To: patchwork-linux-arm@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 35EB8C02DC for ; Sat, 11 Jan 2014 19:48:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 76CB320160 for ; Sat, 11 Jan 2014 19:48:31 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 813202015A for ; Sat, 11 Jan 2014 19:48:30 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W24Vl-0002LH-BD; Sat, 11 Jan 2014 19:46:29 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W24Un-0000f4-BK; Sat, 11 Jan 2014 19:45:25 +0000 Received: from mail-ee0-f47.google.com ([74.125.83.47]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W24Tk-0000WD-3O for linux-arm-kernel@lists.infradead.org; Sat, 11 Jan 2014 19:44:22 +0000 Received: by mail-ee0-f47.google.com with SMTP id e51so2054961eek.34 for ; Sat, 11 Jan 2014 11:43:23 -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=i4WZARo9lYgu+A/L4WtBDaHe0q9JHoYoimBDBreF5ow=; b=bH0bA0uD7wfm9gG6wsTiBn1iZD5DrSUemUeDQLyLwR0COgZbSmT+bzpfPcOZbCS1hn bL78v9b7CIdrUtEQOdzwInFjXrfYKtHxWHY1SvisoE1IhOXH1dqUEoxgPNRotqpH5dM5 lWHKX2C4x3zOCoA70QDSSd04vhVcABCYhYpYHPZwISoa622R+GKbxjJSLrEQFi7/4IPl TxhixU3QCBmKqrbZZEYR6CJxwyYrMdDb6LHDAazc44DKcpnEfFyN//84Mo6IZo6J+DI0 D+NBhad7Nf4YL9mC7OffrCWQX2FAaxz3C8jNW0gd2S5RAXF/6c/khIf++SX9NguJ/DmT dzWA== X-Received: by 10.15.44.4 with SMTP id y4mr5460228eev.71.1389469402969; Sat, 11 Jan 2014 11:43:22 -0800 (PST) Received: from flatron.tomeq (87-207-52-162.dynamic.chello.pl. [87.207.52.162]) by mx.google.com with ESMTPSA id e3sm25312484eeg.11.2014.01.11.11.43.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Jan 2014 11:43:22 -0800 (PST) From: Tomasz Figa To: linux-pm@vger.kernel.org Subject: [PATCH RFC 07/10] ARM: s3c64xx: dt: Enable SoC-level power management Date: Sat, 11 Jan 2014 20:42:49 +0100 Message-Id: <1389469372-17199-8-git-send-email-tomasz.figa@gmail.com> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1389469372-17199-1-git-send-email-tomasz.figa@gmail.com> References: <1389469372-17199-1-git-send-email-tomasz.figa@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140111_144420_323064_803DA914 X-CRM114-Status: GOOD ( 10.84 ) X-Spam-Score: -2.7 (--) Cc: Mark Rutland , devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Russell King , Pawel Moll , Len Brown , Greg Kroah-Hartman , Tomasz Figa , Ian Campbell , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, Rob Herring , Tomasz Figa , Bartlomiej Zolnierkiewicz , Kukjin Kim , Pavel Machek , Kumar Gala , Stephen Warren , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable 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 --- 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