[U-Boot] [PATCH V4 7/9] DM9000:Add a byte swap macro for dm9000 io operation.

Wolfgang Denk wd at denx.de
Mon Oct 17 21:59:12 CEST 2011


Dear Jason Jin,

In message <1314258403-31530-1-git-send-email-Jason.jin at 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 <Jason.jin at freescale.com>
> ---
> 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


More information about the U-Boot mailing list