diff options
author | Tomas Vanek <vanekt@fbl.cz> | 2016-08-02 16:49:31 +0200 |
---|---|---|
committer | Freddie Chopin <freddie.chopin@gmail.com> | 2016-11-04 21:28:26 +0000 |
commit | 09253ffd13038a465ab7a2ffc8475259d54da1e4 (patch) | |
tree | ab54da52a874f51f8a153d244b2e9067f70b687c /src | |
parent | 61c18ee486fe7d4c5d65718ba540cb5f76b0da1f (diff) | |
download | riscv-openocd-09253ffd13038a465ab7a2ffc8475259d54da1e4.zip riscv-openocd-09253ffd13038a465ab7a2ffc8475259d54da1e4.tar.gz riscv-openocd-09253ffd13038a465ab7a2ffc8475259d54da1e4.tar.bz2 |
flash Kinetis: Family K8x added
Change-Id: I8c090a6fe6c204ce20622006490f896c2a55292f
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/3614
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/flash/nor/kinetis.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/flash/nor/kinetis.c b/src/flash/nor/kinetis.c index 3177473..49a6e27 100644 --- a/src/flash/nor/kinetis.c +++ b/src/flash/nor/kinetis.c @@ -207,6 +207,7 @@ #define KINETIS_SDID_FAMILYID_K4X 0x40000000 #define KINETIS_SDID_FAMILYID_K6X 0x60000000 #define KINETIS_SDID_FAMILYID_K7X 0x70000000 +#define KINETIS_SDID_FAMILYID_K8X 0x80000000 struct kinetis_flash_bank { bool probed; @@ -1679,6 +1680,16 @@ static int kinetis_probe(struct flash_bank *bank) num_blocks = 4; kinfo->flash_support = FS_PROGRAM_PHRASE | FS_PROGRAM_SECTOR | FS_INVALIDATE_CACHE_K; break; + + case KINETIS_SDID_FAMILYID_K8X | KINETIS_SDID_SUBFAMID_KX0: + case KINETIS_SDID_FAMILYID_K8X | KINETIS_SDID_SUBFAMID_KX1: + case KINETIS_SDID_FAMILYID_K8X | KINETIS_SDID_SUBFAMID_KX2: + /* K80FN256, K81FN256, K82FN256 */ + pflash_sector_size_bytes = 4<<10; + num_blocks = 1; + kinfo->flash_support = FS_PROGRAM_LONGWORD | FS_INVALIDATE_CACHE_K; + break; + default: LOG_ERROR("Unsupported Kinetis FAMILYID SUBFAMID"); } |