[U-Boot] [PATCH 0/4 V2] Add basic NVIDIA Tegra2 SoC support
Wolfgang Denk
wd at denx.de
Tue Jan 18 00:27:49 CET 2011
Dear Tom Warren,
In message <AANLkTikCQ_0cNFRj_5S2zShcJ-2qyvi24yeH0DcqEPf_ at mail.gmail.com> you wrote:
>
> So instead of, say uart->lcr = 0, you'd prefer writel(0, uart->lcr),
> where writel = __arch_putl(v, a) = (*(volatile unsigned int *)(a) =
> (v))?
Please see the thread "ARM: Avoid compiler optimization for usages of
readb, writeb and friends."
> Is that different enough from 'uart->lcr = 0' to warrant the change?
Yes, it is - in recent (i. e. fixed) code.
> Does it add some HW barriers or forced read-before-write that the
> 'volatile' struct doesn't?
Yes, it does. See above.
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
Conquest is easy. Control is not.
-- Kirk, "Mirror, Mirror", stardate unknown
More information about the U-Boot
mailing list