From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Thu, 04 Feb 2010 10:57:16 -0600 Subject: [U-Boot] [PATCH V4 09/11] ARM/PPC: add a common way to access registers In-Reply-To: <4B6A96B3.4060803@denx.de> References: <1264513404-5991-1-git-send-email-sbabic@denx.de> <20100126150221.5049E3F6C0@gemini.denx.de> <4B62C655.3090707@denx.de> <20100203195312.E3700DEA7C0@gemini.denx.de> <4B6A96B3.4060803@denx.de> Message-ID: <4B6AFC6C.9060809@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Stefano Babic wrote: > Wolfgang Denk wrote: > >> I like this approach better than the precious one. >> >> However, I had hoped that we could do without such manual configu- >> ration like CONFIG_FSL_ESDHC_*_ENDIAN. I mean, we already know the >> target byte order, and you know in which byte order you want to >> access the data, or is this board dependent? > > It should be enough to include asm/byteorder.h. Based on __BYTE_ORDER, I > can select the correct accessors in the driver. How about adding additional I/O accessors that do native endian accesses instead of specified endian? -Scott