cfi_flash: Make all flash access functions weak
authorStefan Roese <sr@denx.de>
Mon, 17 Nov 2008 13:45:22 +0000 (14:45 +0100)
committerStefan Roese <sr@denx.de>
Mon, 24 Nov 2008 09:55:35 +0000 (10:55 +0100)
commit45aa5a7f4d5bcb79927ddfc896c1d7c4326e235d
treee09537e4e94eee767f4358109a4e7eed315bbdc6
parent9b827cf1720acda2473afa516956eab6f7cca9a1
cfi_flash: Make all flash access functions weak

This patch defines all flash access functions as weak so that
they can be overridden by board specific versions.

This will be used by the upcoming VCTH board support where the NOR
FLASH unfortunately can't be accessed memory-mapped. Special
accessor functions are needed here.

To enable this weak functions you need to define
CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS in your board config header.
Otherwise the "old" default functions will be used resulting
in smaller code.

Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
drivers/mtd/cfi_flash.c