diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2010-05-11 11:16:33 +0800 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-05-16 13:39:47 +0200 |
commit | bc8be110ff314cab0e09792a05b6871672c18302 (patch) | |
tree | 4b7d6fe290465142848a4e9d17c808f9564fafc8 /src/flash/nor/stm32x.c | |
parent | 24ebfffff54f5201f1503256df56717900e65e2d (diff) | |
download | riscv-openocd-bc8be110ff314cab0e09792a05b6871672c18302.zip riscv-openocd-bc8be110ff314cab0e09792a05b6871672c18302.tar.gz riscv-openocd-bc8be110ff314cab0e09792a05b6871672c18302.tar.bz2 |
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>
Diffstat (limited to 'src/flash/nor/stm32x.c')
-rw-r--r-- | src/flash/nor/stm32x.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flash/nor/stm32x.c b/src/flash/nor/stm32x.c index 7afd959..d11a8ed 100644 --- a/src/flash/nor/stm32x.c +++ b/src/flash/nor/stm32x.c @@ -1293,6 +1293,7 @@ struct flash_driver stm32x_flash = { .erase = stm32x_erase, .protect = stm32x_protect, .write = stm32x_write, + .read = default_flash_read, .probe = stm32x_probe, .auto_probe = stm32x_auto_probe, .erase_check = default_flash_mem_blank_check, |