[U-Boot] [PATCH v4] ns16550: change to allow 32 bit access to registers

Wolfgang Denk wd at denx.de
Sat Oct 1 21:54:22 CEST 2011


Dear Dave Aldridge,

In message <1314953234-3977-1-git-send-email-fovsoft at gmail.com> you wrote:
> If CONFIG_SYS_NS16550_MEM32 is defined then 32 bit memory
> mapped access will be used to read/write the uart registers.
> 
> This is especially useful for SoC devices that implement 16550
> compatible uarts but that have peripheral access width constraints.
> 
> Signed-off-by: Dave Aldridge <fovsoft at gmail.com>
> ---
> Changes for v2:
>     - Add endian support
> 
> Changes for v3:
>     - Use in_be32()/out_be32() and in_le32/out_le32() functions
>       to provide endian support
> 
> Changes for v4:
>     - use u32 instead of unsigned int in include/ns16550.h
>       to remove any ambiguity about the register size
> 
>  drivers/serial/ns16550.c |    6 ++++++
>  include/ns16550.h        |    4 ++++
>  2 files changed, 10 insertions(+), 0 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
Of course there's no reason for it, it's just our policy.


More information about the U-Boot mailing list