From bc8be110ff314cab0e09792a05b6871672c18302 Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Tue, 11 May 2010 11:16:33 +0800 Subject: 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 --- src/flash/nor/lpc2900.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/flash/nor/lpc2900.c') diff --git a/src/flash/nor/lpc2900.c b/src/flash/nor/lpc2900.c index 5b004951..3ae7bb4f 100644 --- a/src/flash/nor/lpc2900.c +++ b/src/flash/nor/lpc2900.c @@ -1830,6 +1830,7 @@ struct flash_driver lpc2900_flash = .erase = lpc2900_erase, .protect = lpc2900_protect, .write = lpc2900_write, + .read = default_flash_read, .probe = lpc2900_probe, .auto_probe = lpc2900_probe, .erase_check = lpc2900_erase_check, -- cgit v1.2.3