ADIv5: Introduce function to detect ROM Table location
commit0649fb2f6c7e1bea138769ecc2ec8dc17ae98044
authorMarek Vasut <marek.vasut@gmail.com>
Sun, 31 Oct 2010 04:24:36 +0000 (31 05:24 +0100)
committerMarek Vasut <marek.vasut@gmail.com>
Fri, 5 Nov 2010 10:25:57 +0000 (5 11:25 +0100)
treeafe135375d0a333d53618bf67cd2fb6f13b1b389
parent9e3d43cfe75df7c4f6797d630576f1a02428b218
ADIv5: Introduce function to detect ROM Table location

This patch adds function called "dap_detect_debug_base()", which should be
called to get location of the ROM Table. By walking ROM Table, it's possible to
discover the location of DAP.

Sadly, some CPUs misreport this value, therefore I had to introduce an fixup
table, which will be used in case such CPU is detected.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
src/target/arm_adi_v5.c
src/target/arm_adi_v5.h