From patchwork Mon Oct 12 15:03:10 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter 'p2' De Schrijver X-Patchwork-Id: 53148 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9CFAQf9031731 for ; Mon, 12 Oct 2009 15:10:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932536AbZJLPEr (ORCPT ); Mon, 12 Oct 2009 11:04:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932532AbZJLPEr (ORCPT ); Mon, 12 Oct 2009 11:04:47 -0400 Received: from smtp.nokia.com ([192.100.105.134]:31049 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932533AbZJLPEq (ORCPT ); Mon, 12 Oct 2009 11:04:46 -0400 Received: from esebh106.NOE.Nokia.com (esebh106.ntc.nokia.com [172.21.138.213]) by mgw-mx09.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n9CF32e0005933 for ; Mon, 12 Oct 2009 10:03:18 -0500 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by esebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 12 Oct 2009 18:03:16 +0300 Received: from mgw-sa01.ext.nokia.com ([147.243.1.47]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Mon, 12 Oct 2009 18:03:16 +0300 Received: from localhost.localdomain (esdhcp041183.research.nokia.com [172.21.41.183]) by mgw-sa01.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n9CF3Eu8028484; Mon, 12 Oct 2009 18:03:14 +0300 From: "Peter 'p2' De Schrijver" To: linux-omap@vger.kernel.org Cc: "Peter 'p2' De Schrijver" Subject: [PATCH] OMAP3 PM restore observability settings after off mode Date: Mon, 12 Oct 2009 18:03:10 +0300 Message-Id: <1255359790-10407-1-git-send-email-peter.de-schrijver@nokia.com> X-Mailer: git-send-email 1.6.2.4 X-OriginalArrivalTime: 12 Oct 2009 15:03:16.0107 (UTC) FILETIME=[205DE5B0:01CA4B4D] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/mach-omap2/debobs.c b/arch/arm/mach-omap2/debobs.c index 4fbabef..d25b9a2 100644 --- a/arch/arm/mach-omap2/debobs.c +++ b/arch/arm/mach-omap2/debobs.c @@ -190,6 +190,15 @@ static inline int __init _new_debobs_pad(struct debobs_pad *pad, char *name, /* Public functions */ +void debobs_restore(void) +{ + struct debobs_pad *p = &debobs_pads[0]; + int i; + + for (i = 0; i < NUM_OF_DEBOBS_PADS; i++, p++) + debobs_set(&p->core_obs, p->core_obs.value); +} + void debug_gpio_set(unsigned gpio, int value) { if (!debobs_initialized) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index 553fe02..20c7ea2 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c @@ -42,6 +42,7 @@ #include #include #include +#include #include #include "cm.h" @@ -124,6 +125,9 @@ static void omap3_core_restore_context(void) /* Restore the interrupt controller context */ omap3_intc_restore_context(); omap_dma_global_context_restore(); + /* restore debobs context */ + debobs_restore(); + } static void omap3_save_secure_ram_context(u32 target_mpu_state) diff --git a/arch/arm/plat-omap/include/mach/debobs.h b/arch/arm/plat-omap/include/mach/debobs.h index 67f765d..1e04bcd 100644 --- a/arch/arm/plat-omap/include/mach/debobs.h +++ b/arch/arm/plat-omap/include/mach/debobs.h @@ -3,5 +3,6 @@ void debug_gpio_set(unsigned gpio, int value); int debug_gpio_get(unsigned gpio); +void debobs_restore(void); #endif