kinetis : improve kinetis flash driver. 94/1894/3
authorNemui Trinomius <nemuisan_kawausogasuki@live.jp>
Wed, 22 Jan 2014 14:46:32 +0000 (23:46 +0900)
committerSpencer Oliver <spen@spen-soft.co.uk>
Tue, 4 Feb 2014 13:17:31 +0000 (13:17 +0000)
commit3feac9a740917621de5af6f6ef008ec445b9d35a
treefde210ef5a1e3ea239fcf12d0948d03868b14b78
parent37d167a8040672c312dace7bca31df79f8f00bd4
kinetis : improve kinetis flash driver.

Kinetis K-series have different guranuarity for each frequency model.
This patch adding more minute guranuarity detection.
And adopted mass erase command not only L-series but also K-series.
Tested on MK20DX32VLF5,MK10DX32VLF5,and MKL25Z128VLK4.

Change-Id: Iffef850d4b388463756a13faf02c3890bfc19acf
Signed-off-by: Nemui Trinomius <nemuisan_kawausogasuki@live.jp>
Reviewed-on: http://openocd.zylin.com/1894
Tested-by: jenkins
Reviewed-by: Per Ekman <pekenator@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-by: Mateusz Kaduk <mateusz.kaduk@gmail.com>
src/flash/nor/kinetis.c