From: Wolfgang Denk Date: Mon, 09 Nov 2009 22:45:33 +0100 Subject: [U-Boot] AT91 Rework In-Reply-To: <4AF5CC8F.7040602@scharsoft.de> References: <4AF1D190.1010800@scharsoft.de> <4AF5CC8F.7040602@scharsoft.de> Message-ID: <20091109214533.6D44E3F6D7@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Jens Scharsig, In message <4AF5CC8F.7040602@scharsoft.de> you wrote: > > But I have a problem with lowlevel_init.s files > Both AT91 and AT91RM9200 use the register defines here. > The C header files have a > > #ifndef __assembly > ... > #endif > > to prevent assembler error. > > My Question: > > Should we move the handfull defines used by assembly code > to a separate header file (lowlevel.h), or > to the front of the lowlevel_init.s files, or > define it a #ifndef __assembly ... #endif block I'm not too familiar with that code, so I tend to trust you who knows it better than me - just apply common sense. If in doubt, go for the minimal invasive changes - this is something we can clean up later easily, too. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de There's another way to survive. Mutual trust -- and help. -- Kirk, "Day of the Dove", stardate unknown