flash/nor: Allow CFI memory read/write functions be overriden 47/5147/17
authorMarek Vasut <marek.vasut@gmail.com>
Sat, 13 Apr 2019 20:44:45 +0000 (22:44 +0200)
committerTomas Vanek <vanekt@fbl.cz>
Thu, 16 Jan 2020 12:26:03 +0000 (12:26 +0000)
commit3192717ae910d387476b3a7980c325ceb0d2f733
tree321e51b81c913308097342108190547ccf12a01c
parent515a30f7200d69a41610984bee6dc4d967056ad4
flash/nor: Allow CFI memory read/write functions be overriden

Add possibility to supply custom CFI memory accessors via cfi_info
and override the default memory-mapped ones.

Change-Id: I1b6bc1db69fc33e8cdef96c41742c40e6d8917e9
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Reviewed-on: http://openocd.zylin.com/5147
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
src/flash/nor/cfi.c
src/flash/nor/cfi.h