summaryrefslogtreecommitdiff
path: root/src/flash/nor/avrf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash/nor/avrf.c')
-rw-r--r--src/flash/nor/avrf.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/flash/nor/avrf.c b/src/flash/nor/avrf.c
index 4dc7c239..5a2482e4 100644
--- a/src/flash/nor/avrf.c
+++ b/src/flash/nor/avrf.c
@@ -22,7 +22,6 @@
#endif
#include "imp.h"
-#include "avrf.h"
#include <target/avrt.h>
@@ -50,6 +49,22 @@
#define AVR_JTAG_REG_ProgrammingCommand_Len 15
#define AVR_JTAG_REG_FlashDataByte_Len 16
+struct avrf_type
+{
+ char name[15];
+ uint16_t chip_id;
+ int flash_page_size;
+ int flash_page_num;
+ int eeprom_page_size;
+ int eeprom_page_num;
+};
+
+struct avrf_flash_bank
+{
+ int ppage_size;
+ int probed;
+};
+
static struct avrf_type avft_chips_info[] =
{
/* name, chip_id, flash_page_size, flash_page_num,