From: Jean-Christophe PLAGNIOL-VILLARD Date: Sun, 31 May 2009 13:52:02 +0200 Subject: [U-Boot] [PATCH] arm: Kirkwood: Basic SOCs support In-Reply-To: <73173D32E9439E4ABB5151606C3E19E201CFBDC5A7@SC-VEXCH1.marvell.com> References: <20090529222221.GC28736@game.jcrosoft.org> <73173D32E9439E4ABB5151606C3E19E201CFBDC5A7@SC-VEXCH1.marvell.com> Message-ID: <20090531115202.GB20818@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 00:16 Sat 30 May , Prafulla Wadaskar wrote: > > > > -----Original Message----- > > From: Jean-Christophe PLAGNIOL-VILLARD [mailto:plagnioj at jcrosoft.com] > > Sent: Saturday, May 30, 2009 3:52 AM > > To: Prafulla Wadaskar > > Cc: u-boot at lists.denx.de; Manas Saksena; Ronen Shitrit; > > Nicolas Pitre; Ashish Karkare; Prabhanjan Sarnaik; Lennert Buijtenhek > > Subject: Re: [U-Boot] [PATCH] arm: Kirkwood: Basic SOCs support > > > > > + * > > > + * Reference Documentation: > > > + * Mbus-L to Mbus Bridge Registers Configuration. > > > + * (Sec 25.1 and 25.3 of Datasheet) > > > + */ > > > +int kw_config_adr_windows(void) > > > +{ > > > + struct kwwin_registers *winregs = > > > + (struct kwwin_registers *)KW_CPU_WIN_BASE; > > > + > > > + writel(KWCPU_WIN_CTRL_DATA(0xc0000, KWCPU_TARGET_PCIE, > > > + KWCPU_ATTR_PCIE_MEM, KWCPU_WIN_ENABLE), > > > + &winregs[0].ctrl); > > > + > > > + writel(0x90000000, &winregs[0].base); > > any chance to have some macro for the 0x90000000 & co... > Hi Jean, > Base address, remap address high, remap address low are the registers need to be programmed > with some address value. > Making it macro will not make much sense since the code line itself is readable for objective so please explain this in the code Best Regards, J.