This is an automated email from Gerrit. Tomas Vanek ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/2867
-- gerrit commit 92299e6d00f48d78fe694b1c887a5614ef743ca5 Author: Tomas Vanek <[email protected]> Date: Tue Jul 14 22:10:55 2015 +0200 Kinetis: correct K22_M120 flash parameters K22_M120 has 3 variants with different flash type, distinguish them by DIEID in old style SDIS Change-Id: I2aca6f1f18819bb2b2ec4982036510de444ad2ac Signed-off-by: Tomas Vanek <[email protected]> diff --git a/src/flash/nor/kinetis.c b/src/flash/nor/kinetis.c index 6485bc3..f96301d 100644 --- a/src/flash/nor/kinetis.c +++ b/src/flash/nor/kinetis.c @@ -147,6 +147,8 @@ #define KINETIS_K_SDID_K21_M120 0x00000330 #define KINETIS_K_SDID_K22_M50 0x00000210 #define KINETIS_K_SDID_K22_M120 0x00000310 +#define KINETIS_K_SDID_K22_M120_FN256 0x00000A90 +#define KINETIS_K_SDID_K22_M120_FN512 0x00000E90 #define KINETIS_K_SDID_K30_M72 0x000000A0 #define KINETIS_K_SDID_K30_M100 0x00000120 #define KINETIS_K_SDID_K40_M72 0x000000B0 @@ -1104,10 +1106,26 @@ static int kinetis_read_part_info(struct flash_bank *bank) kinfo->flash_support = FS_PROGRAM_LONGWORD | FS_PROGRAM_SECTOR; kinfo->max_flash_prog_size = 2<<10; break; + case KINETIS_K_SDID_K22_M120_FN256: + case KINETIS_K_SDID_K22_M120_FN512: + /* 2kB sectors */ + pflash_sector_size_bytes = 2<<10; + kinfo->max_flash_prog_size = 2<<10; + nvm_sector_size_bytes = 2<<10; + num_blocks = 2; /* 1 or 2 blocks */ + kinfo->flash_support = FS_PROGRAM_LONGWORD; + break; + case KINETIS_K_SDID_K22_M120: + /* 4kB sectors (MK22FN1M0, FX512) */ + pflash_sector_size_bytes = 4<<10; + kinfo->max_flash_prog_size = 1<<10; + nvm_sector_size_bytes = 4<<10; + num_blocks = 2; + kinfo->flash_support = FS_PROGRAM_PHRASE | FS_PROGRAM_SECTOR; + break; case KINETIS_K_SDID_K10_M120: case KINETIS_K_SDID_K20_M120: case KINETIS_K_SDID_K21_M120: - case KINETIS_K_SDID_K22_M120: case KINETIS_K_SDID_K60_M150: case KINETIS_K_SDID_K70_M150: /* 4kB sectors */ -- ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
