]> git.dujemihanovic.xyz Git - u-boot.git/commit
sf: Read flash bank addr register at probe time
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Wed, 19 Jun 2013 10:07:09 +0000 (15:37 +0530)
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Sun, 23 Jun 2013 16:32:50 +0000 (22:02 +0530)
commite612ddf5939ba257f2933c7539ee39a3f760e8ce
treeaa9a7fa125a05f0ded8ca452ff452b27531b2aef
parentcf6b11dcda2f13d1c05c2f20e2a1735a833a41fe
sf: Read flash bank addr register at probe time

Read the flash bank addr register to get the state of bank in
a perticular flash. and also bank write happens only when there is
a change in bank selection from user.

bank read only valid for flashes which has > 16Mbytes those are
opearted in 3-byte addr mode, each bank occupies 16Mytes.

Suppose if the flash has 64Mbytes size consists of 4 banks like
bank0, bank1, bank2 and bank3.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/mtd/spi/spi_flash.c
drivers/mtd/spi/spi_flash_internal.h
include/spi_flash.h