From: Wolfgang Denk Date: Tue, 11 Dec 2007 17:25:22 +0100 Subject: [U-Boot-Users] [PATCH 4/6] cfi_flash: Introduce read and write accessors In-Reply-To: Your message of "Tue, 11 Dec 2007 16:46:44 +0100." <20071211164644.6430849a@dhcp-252-066.norway.atmel.com> Message-ID: <20071211162522.1574024657@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 In message <20071211164644.6430849a@dhcp-252-066.norway.atmel.com> you wrote: > On Tue, 11 Dec 2007 09:35:21 -0600 > Kumar Gala wrote: > > > should these not use in/out macros from asm/io.h? > > That would probably be better. It's just that I'm having a hard time > finding a set of macros that > a) is available on all architectures > b) don't do any byte swapping or other tricks > > __raw_writeb() and friends would satisfy b) but not a)... Then we eventually should implement these for the missing architetures. Kumar is right. We definitely must use the "real" accessor functions. 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 365 Days of drinking Lo-Cal beer. = 1 Lite-year