From: Wolfgang Denk Date: Mon, 17 Oct 2011 21:59:12 +0200 Subject: [U-Boot] [PATCH V4 7/9] DM9000:Add a byte swap macro for dm9000 io operation. In-Reply-To: <1314258403-31530-1-git-send-email-Jason.jin@freescale.com> References: <1314258403-31530-1-git-send-email-Jason.jin@freescale.com> Message-ID: <20111017195912.3FF8B1408742@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 Jason Jin, In message <1314258403-31530-1-git-send-email-Jason.jin@freescale.com> you wrote: > commit a45dde2293c816138e53c26eca6fd0322583f9a6 changed the dm9000 > direct register access to standard IO. This should work > on the ColdFire platform as there are corresponding macros for > the LE devices. But the hardware settings on some ColdFire boards had > swapped the byte order which make the original macros such as out_le16 > cannot work. To avoid changing the common io access code on ColdFire > platform, the DM9000_BYTE_SWAPPED define was added to make the dm9000 use > __raw* IO access on some ColdFire boards. > > Signed-off-by: Jason Jin > --- > Changes for V2: Remove the 'volatile' in the macro. > > Changes for V3: Seperate the dm9000 code support and the platform > code to two patches so that it can be accepted by different custodian. > > Resend: Add Ben Warren > > Changes for V4: rename the DM9000_BYTE_SWAPPED to CONFIG_DM9000_BYTE_SWAPPED > > drivers/net/dm9000x.c | 10 +++++++++- > 1 files changed, 9 insertions(+), 1 deletions(-) Applied, thanks. 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 To live is always desirable. -- Eleen the Capellan, "Friday's Child", stardate 3498.9