FreeCalypso > hg > freecalypso-sw
diff 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 |
line wrap: on
line diff
--- a/loadtools/flash.h Thu Dec 19 08:32:33 2013 +0000 +++ b/loadtools/flash.h Mon Dec 23 07:26:37 2013 +0000 @@ -12,9 +12,16 @@ unsigned nsectors; }; +struct flash_idcheck { + uint16_t offset; + uint16_t expect_val; +}; + struct flash_bank_desc { struct flash_region_desc *regions; uint32_t prog_base_mask; + struct flash_idcheck *idcheck_table; + unsigned idcheck_num; }; struct flash_device_desc { @@ -36,4 +43,5 @@ struct flash_bank_desc *bank_desc; struct sector_info *sectors; unsigned nsectors; + int idcheck_done; };