flash: EFM32 GG/LG page size detection fix16/1116/2
authorRoman D <me@iamroman.org>
Fri, 18 Jan 2013 06:53:43 +0000 (10:53 +0400)
committerSpencer Oliver <spen@spen-soft.co.uk>
Fri, 18 Jan 2013 09:19:21 +0000 (09:19 +0000)
commit3ad078cb60760a5a716c1ede0689540e9d01132a
treebd30c377de0f7cb39ba760b9ab624da60da4a2f8
parentdf7a6b08a69cdf13d4a0adc9b6fc9e56cdcaa18e
flash: EFM32 GG/LG page size detection fix

Fixed flash page size detection according to EFM32 GG/LG errata.
MEM_INFO_PAGE_SIZE register containts invalid value in devices with
revision number lower than 18 and should not be used.

Change-Id: Idb2832246efcbbec2fd98a5c458f72a36df386fb
Signed-off-by: Roman D <me@iamroman.org>
Reviewed-on: http://openocd.zylin.com/1116
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/flash/nor/efm32.c