From: Jean-Christophe PLAGNIOL-VILLARD Date: Tue, 12 May 2009 02:25:53 +0200 Subject: [U-Boot] [PATCH v2 3/3] MX31: Add NAND SPL boot support to i.MX31 PDK board. In-Reply-To: <59b21cf20905102353m485acbe7l2e486ad0894266dc@mail.gmail.com> References: <20090509212810.GH13502@game.jcrosoft.org> <59b21cf20905101233g6669de70x538c611c33ac02b1@mail.gmail.com> <20090510203941.GH21079@game.jcrosoft.org> <59b21cf20905102353m485acbe7l2e486ad0894266dc@mail.gmail.com> Message-ID: <20090512002553.GF18336@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 > > >> > >> >> + > >> >> +.globl lowlevel_init > >> >> +lowlevel_init: > >> >> + ? ? /* Also setup the Peripheral Port Remap register inside the core */ > >> >> + ? ? ldr ? ? r0, =ARM_PPMRR ? ? ?/* start from AIPS 2GB region */ > >> >> + ? ? mcr ? ? p15, 0, r0, c15, c2, 4 > >> >> + > >> > for all hard code value please use macro > >> > and if possible macro to generate them > >> > >> Hmm. You want me to create a macro that expands to the above code? > > no I mean macro for 0xB8001010, 0x0000000c, etc... > > and if possible macro to generate these value > > I'm no .macro expert so I can't promise anything. there nothing to do with .macro it's somthing like this #define TOTO1 #define TOTO2 #define TOTO3 and use TOTOx to generate 0x0000000c please take a look in drivers/net/smc911x.h as example Best Regards, J.