forked from auracaster/openocd
NOR: add read() callback to struct flash_driver
Final target is to force bus_width size during CFI flash read. In this first step I need to replace default flash read with flash specific implementation. This patch introduces: - flash_driver_read() layer; - default_flash_read(), backward compatible; - read() callback in struct flash_driver; - proper initialization in every flash_driver instance. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
committed by
Øyvind Harboe
parent
24ebfffff5
commit
bc8be110ff
@@ -478,6 +478,7 @@ struct flash_driver lpc288x_flash = {
|
||||
.erase = lpc288x_erase,
|
||||
.protect = lpc288x_protect,
|
||||
.write = lpc288x_write,
|
||||
.read = default_flash_read,
|
||||
.probe = lpc288x_probe,
|
||||
.auto_probe = lpc288x_probe,
|
||||
.erase_check = lpc288x_erase_check,
|
||||
|
||||
Reference in New Issue
Block a user