arm_adi_v5: simplify handling of AP type
commitddbc13a6f22751aa40c8e6bd120e88dcb28257b0
authorAntonio Borneo <borneo.antonio@gmail.com>
Tue, 10 Aug 2021 16:09:28 +0000 (10 18:09 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 25 Sep 2021 13:00:55 +0000 (25 13:00 +0000)
tree9661ee40fbeaac6cd02c5ae79446404323ecac3a
parent06d2e430db6933b01b15246e9a4b9392afd8ddbc
arm_adi_v5: simplify handling of AP type

The complete AP type should include 'class' and 'manufacturer'.

Cleanup the definition of AP type from AP_REG_IDR register.
Include the check of 'class', together with manufacturer and type.
Add the new MEM-AP from ARM IHI0074C.

Change-Id: Ic8db7c040108ba237b54f73b1abe24b8b853699b
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6447
Tested-by: jenkins
Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-by: Daniel Goehring <dgoehrin@os.amperecomputing.com>
src/target/arm_adi_v5.c
src/target/arm_adi_v5.h