From 4dc73dcea25d951971ae306481d1f201c8d6ebdd Mon Sep 17 00:00:00 2001 From: Kristofer Jonsson Date: Fri, 16 Oct 2020 12:33:47 +0200 Subject: PMU counter shadow Storing PMU counters in shadow variables, in case the PMU was powered off or soft reset. Change-Id: I64ccf3fb6195f9be2d8315891ec612bb75404885 --- src/ethosu_config.h | 83 ----------------------------------------------------- 1 file changed, 83 deletions(-) (limited to 'src/ethosu_config.h') diff --git a/src/ethosu_config.h b/src/ethosu_config.h index 91fe660..7a9fae2 100644 --- a/src/ethosu_config.h +++ b/src/ethosu_config.h @@ -116,87 +116,4 @@ #define BASE_POINTER_OFFSET 0 #endif -#ifdef PMU_AUTOINIT -/* - * Register control - * b0 = CNT_EN = Enable counters (RW) - * b1 = EVENT_CNT_RST = Reset event counters (WO) - * b2 = CYCLE_CNT_RST = Reset cycle counter (WO) - * b[15:11] = Number of event counters (RO) - */ -#ifndef INIT_PMCR -#define INIT_PMCR 0x0 -#endif - -/* - * Bit k enables event counter k - * k=31 enables the cycle counter - * Read value is current status - */ -#ifndef INIT_PMCNTENSET -#define INIT_PMCNTENSET 0x0 -#endif - -/* - * Bit k disables event counter k - * k=31 disables the cycle counter - * Read value is current status - */ -#ifndef INIT_PMCNTENCLR -#define INIT_PMCNTENCLR 0x0 -#endif - -/* - * Overflow detection set - * Bit k is for counter k - * k=31 is cycle counter - */ -#ifndef INIT_PMOVSSET -#define INIT_PMOVSSET 0x0 -#endif - -/* - * Overflow detection clear - * Bit k is for counter k - * k=31 is cycle counter - */ -#ifndef INIT_PMOVSCLR -#define INIT_PMOVSCLR 0x0 -#endif - -/* - * Interrupt set - * Bit k is for counter k - * k=31 is cycle counter - */ -#ifndef INIT_PMINTSET -#define INIT_PMINTSET 0x0 -#endif - -/* - * Interrupt clear - * Bit k is for counter k - * k=31 is cycle counter - */ -#ifndef INIT_PMINTCLR -#define INIT_PMINTCLR 0x8003 -#endif - -/* Cycle counter - * 48 bits value - */ -#ifndef INIT_PMCCNTR -#define INIT_PMCCNTR 0x0 -#endif - -/* - * b[9:0] Start Event – this event number starts the cycle counter - * b[25:16] Stop Event – this event number stops the cycle counter - */ -#ifndef INIT_PMCCNTR_CFG -#define INIT_PMCCNTR_CFG 0x0 -#endif - -#endif /* #ifdef PMU_AUTOINIT */ - #endif /* #ifndef ETHOSU_CONFIG_H */ -- cgit v1.2.1