[U-Boot] [PATCH] serial: ns16550: fix different reg size access

Wolfgang Denk wd at denx.de
Thu Mar 31 17:58:51 CEST 2011


Dear Lei Wen,

In message <1301586774-25447-1-git-send-email-leiwen at marvell.com> you wrote:
> Some hardware would dysfunctional if only access the register by
> byte. This patch is tend to recover original access the responding
> register according to CONFIG_SYS_NS16550_REG_SIZE.

Can you please explain on what board, and with which tool chain, you
see any problems?

> +- CONFIG_SYS_NS16550_MAX_REG_SIZE:
> +		Define the ns16550 max register size,
> +		if the CONFIG_SYS_NS16550_REG_SIZE is smaller than this value,
> +		use padding to fill those gap.

This makes no sense to me.  A register is always one specific size,
so the term "MAX_REG_SIZE" is bogus.

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
Landru! Guide us!
	-- A Beta 3-oid, "The Return of the Archons", stardate 3157.4


More information about the U-Boot mailing list