]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: cfi: Zap cfi_flash_base in DM case
authorMarek Vasut <marek.vasut@gmail.com>
Tue, 12 Sep 2017 17:09:08 +0000 (19:09 +0200)
committerStefan Roese <sr@denx.de>
Tue, 26 Sep 2017 08:57:53 +0000 (10:57 +0200)
commit886f5e3a247f89323ea1b0fa37fd65de458340e7
tree634a3ca0fe61b9dd7cd03f0a58d4c3b41f219a87
parent3272dd3ef996707c367c7a3aae15bf1d8211c8eb
mtd: cfi: Zap cfi_flash_base in DM case

Embed the flash base into struct flash_info instead of having ad-hoc
static array in the code. This does not only remove static variable,
but also allows CFI-like controllers, ie. HyperFlash ones, to use most
of the CFI flash code by populating the flash_info with matching base
address.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/cfi_flash.c
include/flash.h