aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTomas Vanek <vanekt@fbl.cz>2017-10-15 10:34:27 +0200
committerFreddie Chopin <freddie.chopin@gmail.com>2018-01-25 16:40:58 +0000
commitb7be0a873ca86cc9972e89ec7d22c25e56d71f0a (patch)
treeb30d70fe34bc7f306a384d7302720591d95fad21 /src
parente3f3b77729a07e8c0fa036c8ec1e021773142892 (diff)
downloadriscv-openocd-b7be0a873ca86cc9972e89ec7d22c25e56d71f0a.zip
riscv-openocd-b7be0a873ca86cc9972e89ec7d22c25e56d71f0a.tar.gz
riscv-openocd-b7be0a873ca86cc9972e89ec7d22c25e56d71f0a.tar.bz2
flash Kinetis: add K27 and K28 devices
Tested on FRDM-K28F. Thanks to Thomas Varghese for donating the kit. Change-Id: Idcdd8bcf992acebd19e5335f7f833356500c45dd Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: http://openocd.zylin.com/4255 Tested-by: jenkins Reviewed-by: Joakim NohlgÄrd <joakim.nohlgard@eistec.se> Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/flash/nor/kinetis.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/flash/nor/kinetis.c b/src/flash/nor/kinetis.c
index 2c2d062..48a5de4 100644
--- a/src/flash/nor/kinetis.c
+++ b/src/flash/nor/kinetis.c
@@ -2187,6 +2187,17 @@ static int kinetis_probe_chip(struct kinetis_chip *k_chip)
cpu_mhz = 180;
break;
+ case KINETIS_SDID_FAMILYID_K2X | KINETIS_SDID_SUBFAMID_KX7:
+ /* K27FN2M0 */
+ case KINETIS_SDID_FAMILYID_K2X | KINETIS_SDID_SUBFAMID_KX8:
+ /* K28FN2M0 */
+ k_chip->pflash_sector_size = 4<<10;
+ k_chip->max_flash_prog_size = 1<<10;
+ num_blocks = 4;
+ k_chip->flash_support = FS_PROGRAM_PHRASE | FS_PROGRAM_SECTOR | FS_ECC;
+ cpu_mhz = 150;
+ 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: