From patchwork Fri Oct 30 04:24:32 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 56561 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 n9U4TS9M030529 for ; Fri, 30 Oct 2009 04:29:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753936AbZJ3E3Z (ORCPT ); Fri, 30 Oct 2009 00:29:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753973AbZJ3E3Z (ORCPT ); Fri, 30 Oct 2009 00:29:25 -0400 Received: from mail-yw0-f202.google.com ([209.85.211.202]:47309 "EHLO mail-yw0-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753936AbZJ3E3Z (ORCPT ); Fri, 30 Oct 2009 00:29:25 -0400 Received: by ywh40 with SMTP id 40so2376312ywh.33 for ; Thu, 29 Oct 2009 21:29:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :in-reply-to:references:subject; bh=K7bNNEJ48ldu5d0hJRc0rEOT2njXK4BopjLPxi5vqyo=; b=SxJNCp6jl2/iWaS8oUhMqkv4ntKCEHrq0yVXhpb2J4CPLLePGQC9zRsEyzbI4zVj4J bMfxBaflm8OEouE3AdofjC5VkLUE9RZQGL7YIGmdcLAnoJbT9Z4oKD5eG3JTo/ZKrji8 crjvzaM6bUTMJn8aJ5tA0AxbBx8N3Km/DNEFk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:in-reply-to:references:subject; b=RcnrQ8zWXm6cb5MwtWaA7wlgM59JwpzZB6MaAIH8mM8W5IKM1SLfynRDPgV9c/a+dT pmlaNpIsqXS1n2blMIlY5lFS5li+D0i5HJVTWHRWjD0i0SqHiDHhO4w3BudA8QMMlVhu pWE9rjlB5s+z/jz2O1y3gCOGNGtiju50b2fqg= Received: by 10.91.55.24 with SMTP id h24mr2969638agk.62.1256876969831; Thu, 29 Oct 2009 21:29:29 -0700 (PDT) Received: from rxone.opensource.se (49.14.32.202.bf.2iij.net [202.32.14.49]) by mx.google.com with ESMTPS id 22sm1201199yxe.3.2009.10.29.21.29.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 29 Oct 2009 21:29:29 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Fri, 30 Oct 2009 13:24:32 +0900 Message-Id: <20091030042432.11783.44657.sendpatchset@rxone.opensource.se> In-Reply-To: <20091030042331.11783.88942.sendpatchset@rxone.opensource.se> References: <20091030042331.11783.88942.sendpatchset@rxone.opensource.se> Subject: [PATCH 07/09] sh: Use RSMEM for sleep code on sh7724 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org --- 0012/arch/sh/kernel/cpu/shmobile/pm.c +++ work/arch/sh/kernel/cpu/shmobile/pm.c 2009-10-28 19:53:03.000000000 +0900 @@ -40,11 +40,15 @@ ATOMIC_NOTIFIER_HEAD(sh_mobile_post_slee * U-standby mode is low priority since it needs bootloader hacks */ -#define ILRAM_BASE 0xe5200000 +#ifdef CONFIG_CPU_SUBTYPE_SH7724 +#define RAM_BASE 0xfd800000 /* RSMEM */ +#else +#define RAM_BASE 0xe5200000 /* ILRAM */ +#endif void sh_mobile_call_standby(unsigned long mode) { - void *onchip_mem = (void *)ILRAM_BASE; + void *onchip_mem = (void *)RAM_BASE; struct sh_sleep_data *sdp = onchip_mem; void (*standby_onchip_mem)(unsigned long, unsigned long); @@ -55,7 +59,7 @@ void sh_mobile_call_standby(unsigned lon mode, NULL); /* Let assembly snippet in on-chip memory handle the rest */ - standby_onchip_mem(mode, ILRAM_BASE); + standby_onchip_mem(mode, RAM_BASE); atomic_notifier_call_chain(&sh_mobile_post_sleep_notifier_list, mode, NULL); @@ -73,7 +77,7 @@ void sh_mobile_register_self_refresh(uns void *pre_start, void *pre_end, void *post_start, void *post_end) { - void *onchip_mem = (void *)ILRAM_BASE; + void *onchip_mem = (void *)RAM_BASE; void *vp; struct sh_sleep_data *sdp; int n;