]> git.sur5r.net Git - u-boot/commit
cfi_flash: Introduce read and write accessors
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Thu, 13 Dec 2007 11:56:32 +0000 (12:56 +0100)
committerStefan Roese <sr@denx.de>
Thu, 13 Dec 2007 12:15:11 +0000 (13:15 +0100)
commitcdbaefb5f5f03e54455d0439dcf6dbd97ead1f9d
tree2a89cf89f64c90da5f8307e81f41f2390241f940
parent812711ce6b3a386125dcf0d6a59588e461abbb87
cfi_flash: Introduce read and write accessors

Introduce flash_read{8,16,32,64) and flash_write{8,16,32,64} and use
them to access the flash memory. This makes it clearer when the flash
is actually being accessed; merely dereferencing a volatile pointer
looks just like any other kind of access.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
drivers/mtd/cfi_flash.c