[U-Boot] [PATCH 3/4] mtd: nand: add Freescale NFC driver
Scott Wood
scottwood at freescale.com
Thu Aug 14 00:54:53 CEST 2014
On Wed, 2014-08-13 at 17:44 -0400, Bill Pringlemeir wrote:
> Regarding "can't know in advance", I think that some of the register
> values maybe set by the boot rom. This might make more sense for Linux
> than U-Boot. However, after the initial configuration, many do need the
> 'read/modify/write' as there are many bit fields with different
> functionality.
If the register is only modified by software, and not asynchronously by
hardware, then you could read the value once when the driver starts, and
cache its value to avoid a reportedly expensive I/O access every time
you need to modify it.
-Scott
More information about the U-Boot
mailing list