Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754199AbaAKTn3 (ORCPT ); Sat, 11 Jan 2014 14:43:29 -0500 Received: from mail-ee0-f44.google.com ([74.125.83.44]:42857 "EHLO mail-ee0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754039AbaAKTnY (ORCPT ); Sat, 11 Jan 2014 14:43:24 -0500 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 , Tomasz Figa 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> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 1.8.5.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/