diff options
author | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-09-29 12:03:36 +0200 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-10-03 13:44:55 +0200 |
commit | 4e53fee2700effd1510cb929e04865c454e9678d (patch) | |
tree | 373bbb962bd6efe90039ca98d972b79a2c1da992 /src | |
parent | 90ada2ea5681b2a2722a10d2898eac34c2510791 (diff) | |
download | ethos-u-core-driver-4e53fee2700effd1510cb929e04865c454e9678d.tar.gz |
Reading QREAD and STATUS register22.11-rc1
Allow the QREAD and STATUS registers to be read using the PMU
interface.
Change-Id: I7e349a0938404011588c1d5eb82b4a5dbc7c27e4
Diffstat (limited to 'src')
-rw-r--r-- | src/ethosu_pmu.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ethosu_pmu.c b/src/ethosu_pmu.c index df69026..af4e503 100644 --- a/src/ethosu_pmu.c +++ b/src/ethosu_pmu.c @@ -285,3 +285,17 @@ void ETHOSU_PMU_PMCCNTR_CFG_Set_Stop_Event(struct ethosu_driver *drv, enum ethos cfg.CYCLE_CNT_CFG_STOP = val; drv->dev->reg->PMCCNTR_CFG.word = cfg.word; } + +uint32_t ETHOSU_PMU_Get_QREAD(struct ethosu_driver *drv) +{ + uint32_t val = drv->dev->reg->QREAD.word; + LOG_DEBUG("qread=%u", val); + return val; +} + +uint32_t ETHOSU_PMU_Get_STATUS(struct ethosu_driver *drv) +{ + uint32_t val = drv->dev->reg->STATUS.word; + LOG_DEBUG("status=0x%x", val); + return val; +} |