diff options
author | Byron Kubert <byronk@google.com> | 2016-09-26 15:05:52 -0600 |
---|---|---|
committer | Freddie Chopin <freddie.chopin@gmail.com> | 2017-04-24 22:32:24 +0100 |
commit | e683ff2ac7d02966cd2f49df58d9d7425298ac44 (patch) | |
tree | 5eeb7f8381934cc02444701d969a066eaab1539c | |
parent | 8f3d16f4ae828345c7cf7cd782db32dfc560bdd6 (diff) | |
download | riscv-openocd-e683ff2ac7d02966cd2f49df58d9d7425298ac44.zip riscv-openocd-e683ff2ac7d02966cd2f49df58d9d7425298ac44.tar.gz riscv-openocd-e683ff2ac7d02966cd2f49df58d9d7425298ac44.tar.bz2 |
Added 512K flashing support for em3587
The Silicon Labs EM3587 and EM3588 may have 512K of flash.
This fix allows for 512K to be specifiied on the command line
when flashing a device.
Change-Id: I18cc4bd0d14e1f2069066734a7396bcccf3de941
Signed-off-by: Byron Kubert <byronk@google.com>
Reviewed-on: http://openocd.zylin.com/3795
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
-rw-r--r-- | src/flash/nor/em357.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/flash/nor/em357.c b/src/flash/nor/em357.c index 1501562..a11743b 100644 --- a/src/flash/nor/em357.c +++ b/src/flash/nor/em357.c @@ -702,6 +702,11 @@ static int em357_probe(struct flash_bank *bank) num_pages = 128; page_size = 2048; break; + case 0x80000: + /* 512k -- 256 2k pages */ + num_pages = 256; + page_size = 2048; + break; default: LOG_WARNING("No size specified for em357 flash driver, assuming 192k!"); num_pages = 96; |