From patchwork Sat Feb 14 21:28:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 439801 X-Patchwork-Delegate: twarren@nvidia.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3564B140271 for ; Sun, 15 Feb 2015 08:29:53 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 76E63A7505; Sat, 14 Feb 2015 22:29:37 +0100 (CET) X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z_nQOY3FhuRs; Sat, 14 Feb 2015 22:29:37 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5B4E2A747C; Sat, 14 Feb 2015 22:29:12 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CE94BA7443 for ; Sat, 14 Feb 2015 22:29:01 +0100 (CET) X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZTgrXgxy8ea7 for ; Sat, 14 Feb 2015 22:29:01 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mout.web.de (mout.web.de [212.227.15.4]) by theia.denx.de (Postfix) with ESMTPS id A6C46A7439 for ; Sat, 14 Feb 2015 22:29:01 +0100 (CET) Received: from md1f2u6c.ww002.siemens.net ([95.157.58.223]) by smtp.web.de (mrweb003) with ESMTPSA (Nemesis) id 0LilMD-1Xjp9J3pO9-00cxdb; Sat, 14 Feb 2015 22:28:57 +0100 From: Jan Kiszka To: U-Boot Mailing List , Tom Warren Date: Sat, 14 Feb 2015 22:28:42 +0100 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: X-Provags-ID: V03:K0:SfWhlQD5xZYy/aQvQB0nGeMZBzo+2MrSgB2N0VRYzmO6sJmMt/I +Vx9kbw9PhQqTRJgWWSy0btm7T4xdihDfPjQlXY98fm39uxjfRZn1uhh0fVUTcCBVgQCqN1 iO/y0FwDShinIq1oBasjKd7JqGqHYiMrSwSfuwqsP6BGJoidL6lgFvFqrYr9ukeAhpIzBmn 92b+zk+Y9ihMfZ9KsU3ug== X-UI-Out-Filterresults: notjunk:1; Cc: Jan Kiszka , Paul Walmsley , Ian Campbell , Thierry Reding Subject: [U-Boot] [PATCH 6/9] tegra: Add ap_pm_init hook X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Jan Kiszka This function will be used to initialize CPU power management for Tegra SOCs. For now it does nothing. Signed-off-by: Jan Kiszka --- arch/arm/include/asm/arch-tegra/ap.h | 5 +++++ board/nvidia/common/board.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/arch/arm/include/asm/arch-tegra/ap.h b/arch/arm/include/asm/arch-tegra/ap.h index 5c8be94..208db90 100644 --- a/arch/arm/include/asm/arch-tegra/ap.h +++ b/arch/arm/include/asm/arch-tegra/ap.h @@ -63,6 +63,11 @@ int tegra_get_chip(void); */ int tegra_get_sku_info(void); +/** + * Initialize power management for application processors + */ +void ap_pm_init(void); + /* Do any chip-specific cache config */ void config_cache(void); diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index 80ef8fd..c62b3da 100644 --- a/board/nvidia/common/board.c +++ b/board/nvidia/common/board.c @@ -21,6 +21,7 @@ #include #endif #include +#include #include #include #include @@ -56,6 +57,7 @@ const struct tegra_sysinfo sysinfo = { CONFIG_TEGRA_BOARD_STRING }; +__weak void ap_pm_init(void) {} __weak void pinmux_init(void) {} __weak void pin_mux_usb(void) {} __weak void pin_mux_spi(void) {} @@ -96,6 +98,8 @@ int board_init(void) clock_init(); clock_verify(); + ap_pm_init(); + #ifdef CONFIG_TEGRA_SPI pin_mux_spi(); #endif