summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/common/tracker_v1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/mediatek/common/tracker_v1.c')
-rw-r--r--src/soc/mediatek/common/tracker_v1.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/soc/mediatek/common/tracker_v1.c b/src/soc/mediatek/common/tracker_v1.c
index 746951b8de..00e5bc81dc 100644
--- a/src/soc/mediatek/common/tracker_v1.c
+++ b/src/soc/mediatek/common/tracker_v1.c
@@ -1,5 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#include <commonlib/bsd/helpers.h>
#include <soc/addressmap.h>
#include <soc/tracker.h>
#include <soc/tracker_common.h>
@@ -9,13 +10,16 @@
* offset[0] dump from offset 0x100 ~ 0x13C.
* offset[1] dump from offset 0x200 ~ 0x23C.
*/
+
+static const u32 offsets[] = { AR_TRACK_OFFSET, AW_TRACK_OFFSET };
+
struct tracker tracker_data[TRACKER_NUM] = {
[TRACKER_SYSTRACKER] = {
.base_addr = DBG_TRACKER_BASE,
.timeout = BUS_DBG_CON_TIMEOUT,
.entry = SYS_TRACK_ENTRY,
- .offset[0] = AR_TRACK_OFFSET,
- .offset[1] = AW_TRACK_OFFSET,
+ .offsets = offsets,
+ .offsets_size = ARRAY_SIZE(offsets),
.str = "systracker",
},
};