From: Jean-Christophe PLAGNIOL-VILLARD Date: Sat, 30 May 2009 00:22:21 +0200 Subject: [U-Boot] [PATCH] arm: Kirkwood: Basic SOCs support In-Reply-To: <1243626217-9232-3-git-send-email-prafulla@marvell.com> References: <1243626217-9232-1-git-send-email-prafulla@marvell.com> <1243626217-9232-2-git-send-email-prafulla@marvell.com> <1243626217-9232-3-git-send-email-prafulla@marvell.com> Message-ID: <20090529222221.GC28736@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 > + * > + * 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... other fine Best Regards, J.