NOR: add read() callback to struct flash_driver
[fw/openocd] / src / flash / nor / avrf.c
index 5b40ad73d80a78541e98360f898b3a34f584b747..7cdab5193f70b2b55e94f5fb14e874050c62672a 100644 (file)
@@ -50,7 +50,7 @@
 #define AVR_JTAG_REG_ProgrammingCommand_Len                    15
 #define AVR_JTAG_REG_FlashDataByte_Len                         16
 
-struct avrf_type avft_chips_info[] =
+static struct avrf_type avft_chips_info[] =
 {
 /*     name, chip_id,  flash_page_size, flash_page_num,
  *                     eeprom_page_size, eeprom_page_num
@@ -497,6 +497,7 @@ struct flash_driver avr_flash = {
        .erase = avrf_erase,
        .protect = avrf_protect,
        .write = avrf_write,
+       .read = default_flash_read,
        .probe = avrf_probe,
        .auto_probe = avrf_auto_probe,
        .erase_check = default_flash_mem_blank_check,