cfi_flash: Add weak default for cfi_flash_bank_addr()
authorStefan Roese <sr@denx.de>
Mon, 30 Aug 2010 08:11:51 +0000 (10:11 +0200)
committerStefan Roese <sr@denx.de>
Mon, 20 Sep 2010 13:08:43 +0000 (15:08 +0200)
commitb00e19cc6b99fdd0a2b2760f225465d0998ef88f
tree0ea12704539f668521ae354fbeef772b6319ab9b
parentcba34aafde5f50e61d242f86bd4d214207ec7ca7
cfi_flash: Add weak default for cfi_flash_bank_addr()

cfi_flash_bank_addr(int bank_nr) returns the base addresses of the
requested bank. Introducing this weak default enables boards to override
this functions with a board specific version when required.

This feature will be used in the lwmon5 board update, supporting runtime
detection of 2 board revisions with different flash layouts.

Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/cfi_flash.c