From 0aadd0abceef92fd1ae32129759d5affb62b6aca Mon Sep 17 00:00:00 2001 From: Fredrik Ahlberg Date: Sun, 12 Jul 2020 22:27:46 +0200 Subject: [PATCH] Adiv6: Add comment on DEVTYPE and ARCHID fields with references --- src/target/adiv5.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/target/adiv5.c b/src/target/adiv5.c index 7e9d854f..dc20a822 100644 --- a/src/target/adiv5.c +++ b/src/target/adiv5.c @@ -159,6 +159,15 @@ enum arm_arch { * * We left out some of the Part numbers included in OpenOCD, we only include * the ones that have ARM as the designer. + * + * To properly identify ADIv6 CoreSight components, two additional fields, + * DEVTYPE and ARCHID are read. + * The dev_type and arch_id values in the table below were found in the + * corresponding logic in pyOCD: + * https://github.com/mbedmicro/pyOCD/blob/master/pyocd/coresight/component_ids.py + * + * Additional reference on the DEVTYPE and DEVARCH registers can be found in the + * ARM CoreSight Architecture Specification v3.0, sections B2.3.4 and B2.3.8. */ static const struct { uint16_t part_number;