Skip to content
Snippets Groups Projects
Commit e612ddf5 authored by Jagan Teki's avatar Jagan Teki
Browse files

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: default avatarJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent cf6b11dc
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment