comparison loadtools/flash.h @ 203:99c234bf6a9b

fc-loadtool flash ID check: definitions created
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 23 Dec 2013 07:26:37 +0000
parents 278052b6afda
children f027c6fbe37e
comparison
equal deleted inserted replaced
202:b26b7459bd44 203:99c234bf6a9b
10 struct flash_region_desc { 10 struct flash_region_desc {
11 uint32_t sector_size; 11 uint32_t sector_size;
12 unsigned nsectors; 12 unsigned nsectors;
13 }; 13 };
14 14
15 struct flash_idcheck {
16 uint16_t offset;
17 uint16_t expect_val;
18 };
19
15 struct flash_bank_desc { 20 struct flash_bank_desc {
16 struct flash_region_desc *regions; 21 struct flash_region_desc *regions;
17 uint32_t prog_base_mask; 22 uint32_t prog_base_mask;
23 struct flash_idcheck *idcheck_table;
24 unsigned idcheck_num;
18 }; 25 };
19 26
20 struct flash_device_desc { 27 struct flash_device_desc {
21 char *name; 28 char *name;
22 struct flash_bank_desc *bank_desc; 29 struct flash_bank_desc *bank_desc;
34 uint32_t base_addr; 41 uint32_t base_addr;
35 uint32_t total_size; 42 uint32_t total_size;
36 struct flash_bank_desc *bank_desc; 43 struct flash_bank_desc *bank_desc;
37 struct sector_info *sectors; 44 struct sector_info *sectors;
38 unsigned nsectors; 45 unsigned nsectors;
46 int idcheck_done;
39 }; 47 };