flash/nor/nrf5: detect newer devices without HWID table 48/4848/3
authorTomas Vanek <vanekt@fbl.cz>
Sun, 13 Jan 2019 08:31:03 +0000 (09:31 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Tue, 26 Nov 2019 07:19:43 +0000 (07:19 +0000)
commit5da746fa09dc1fbc28b4b4431035f5058a7e76a2
tree7fe0ea6800d922a0a450eb83633ff65388041904
parent006d8e5444a67c8f569dcbd30add975d46635e38
flash/nor/nrf5: detect newer devices without HWID table

nrf5 flash driver detected devices by looking up the HWID in the table
of known devices. Unfortunately chips are produced with many different
HWIDs for each type.

All nRF52 devices have FICR INFO field suitable for device identification
without need of HWID lookup.
Some newer nRF51 devices have FICR INFO too although undocumented.
Use this information to identify the device.

nrf5_info() is reworked to show just concise info.
Decoding FICR and UICR registers was moved from nrf5_info()
to a new command 'nrf5 info' without functional changes.

The flash bank for UICR page has the same size as program flash sector.

Change-Id: I900095b9ae23ee995f8e2bef8539b75d00300da5
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/4848
Tested-by: jenkins
doc/openocd.texi
src/flash/nor/nrf5.c