From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from kukmak.uni-mb.si (kukmak.uni-mb.si [164.8.100.3]) by ozlabs.org (Postfix) with ESMTP id 0D068DDF43 for ; Mon, 26 Mar 2007 23:54:55 +1000 (EST) Date: Mon, 26 Mar 2007 15:23:09 +0200 From: Domen Puncer To: Grant Likely Subject: Re: [PATCH 5/5] lite5200b suspend: low-power mode Message-ID: <20070326132308.GD3846@nd47.coderock.org> References: <20070315103959.GA22215@moe.telargo.com> <20070315104447.GG22215@moe.telargo.com> <528646bc0703150709v49af8085p959bd36e0adf1e4a@mail.gmail.com> <20070315163648.GG19297@nd47.coderock.org> <20070322074109.GA4620@moe.telargo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20070322074109.GA4620@moe.telargo.com> Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 22/03/07 08:41 +0100, Domen Puncer wrote: > On 15/03/07 17:36 +0100, Domen Puncer wrote: > > On 15/03/07 08:09 -0600, Grant Likely wrote: > > > On 3/15/07, Domen Puncer wrote: > > ... > > > >+ /* map registers */ > > > >+ mbar = ioremap_nocache(0xf0000000, 0x8000); > > > > > > Magic numbers? Really? This should be retrieved from the device > > > tree. There is always the possibility of mbar getting moved. > > > > > ... > > > >+ gpw = mbar + 0xc00; > > > >+ bes = mbar + 0x1200; > > > >+ xlb = mbar + 0x1f00; > > > > > > Again, magic numbers > > > > Well... the code is only applicable for Lite5200b/mpc5200 > > and numbers are from specs. > > And it's shorter than mpc52xx_find_and_map() lines. > > I guess I could rewrite it. > > In asm code I need access to SDRAM controller registers (MBAR+0x100). > Do I add an entry to dts, or do you have other suggestions? And on efika, the same problem + there is no CDM nor (wakeup) gpio's in device tree. What to do there? Domen