summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJulien Lacour2013-04-25 12:14:22 +0200
committerJulien Lacour2013-05-02 16:02:55 +0200
commit0cc4511ee5c1ec3b955cba62dc68ddd020836bf3 (patch)
tree230dcae41c4ad6b9a568ad5b473a54f40ce9c1c1 /common
parent9a3371264098a8833cbe1d6e52c28677fc91e823 (diff)
{common, cleo/linux/drivers}: Linux unlock flash at boot, refs 3931
Linux will unlock flash at boot if driver can determine it is locked at reset.
Diffstat (limited to 'common')
-rw-r--r--common/include/all_flash.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/include/all_flash.h b/common/include/all_flash.h
index 4cfda09b0c..810aa67cb9 100644
--- a/common/include/all_flash.h
+++ b/common/include/all_flash.h
@@ -25,8 +25,9 @@
#define FIELDS_OPENOCD(name, jedec, sector_sz, sector_nb, args...) \
name, jedec, sector_sz, sector_nb
-#define FIELDS_LINUX(name, jedec, sector_sz, sector_nb, flags, args...) \
- name, jedec, sector_sz, sector_nb, flags
+#define FIELDS_LINUX(name, jedec, sector_sz, sector_nb, flags, \
+ locked_at_reset, args...) \
+ name, jedec, sector_sz, sector_nb, flags, locked_at_reset
#define FLASH(type, args...) { GLUE(FIELDS_, type)(args) },