From: Wolfgang Denk Date: Tue, 18 Jan 2011 00:27:49 +0100 Subject: [U-Boot] [PATCH 0/4 V2] Add basic NVIDIA Tegra2 SoC support In-Reply-To: References: <1295025097-25680-1-git-send-email-twarren@nvidia.com> <1295035196.29642.6471.camel@petert> <1295041018.29642.6610.camel@petert> Message-ID: <20110117232749.9695AD1CAD5@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 Tom Warren, In message 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