diff options
author | Jonny Svärd <jonny.svaerd@arm.com> | 2021-11-30 14:54:07 +0100 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2021-12-08 14:27:14 +0000 |
commit | 6d5b083e2e4279284f406d73c7f92e48ef28b218 (patch) | |
tree | ad71253ed293384c96c3ca93c3d795cfaa56000e /src/ethosu_pmu.c | |
parent | 1975b8d9845efdc9a3e2b997ace0a05fdaa11ed0 (diff) | |
download | ethos-u-core-driver-6d5b083e2e4279284f406d73c7f92e48ef28b218.tar.gz |
Minor bugfixes and clean up
Change error message to LOG_ERR from LOG_DEBUG and simplify
error checks
Remove redundant code in driver
Disable the PMU before enabling power/clock gating
Change-Id: I3092113250c1b165d985194ca2da213622629488
Diffstat (limited to 'src/ethosu_pmu.c')
-rw-r--r-- | src/ethosu_pmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ethosu_pmu.c b/src/ethosu_pmu.c index 6feb324..647f3b0 100644 --- a/src/ethosu_pmu.c +++ b/src/ethosu_pmu.c @@ -97,8 +97,8 @@ void ETHOSU_PMU_Enable(struct ethosu_driver *drv) void ETHOSU_PMU_Disable(struct ethosu_driver *drv) { LOG_DEBUG("Disable PMU"); - set_clock_and_power_request(drv, ETHOSU_PMU_REQUEST, ETHOSU_CLOCK_Q_ENABLE, ETHOSU_POWER_Q_ENABLE); drv->dev->reg->PMCR.word = 0; + set_clock_and_power_request(drv, ETHOSU_PMU_REQUEST, ETHOSU_CLOCK_Q_ENABLE, ETHOSU_POWER_Q_ENABLE); } void ETHOSU_PMU_Set_EVTYPER(struct ethosu_driver *drv, uint32_t num, enum ethosu_pmu_event_type type) |