aboutsummaryrefslogtreecommitdiff
path: root/include/ethosu_driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ethosu_driver.h')
-rw-r--r--include/ethosu_driver.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/ethosu_driver.h b/include/ethosu_driver.h
index 16f0a25..4089932 100644
--- a/include/ethosu_driver.h
+++ b/include/ethosu_driver.h
@@ -49,6 +49,8 @@ struct ethosu_driver
bool reserved;
volatile bool irq_triggered;
void *semaphore;
+ uint8_t clock_request;
+ uint8_t power_request;
};
struct ethosu_version_id
@@ -81,6 +83,12 @@ struct ethosu_version
struct ethosu_version_config cfg;
};
+enum ethosu_request_clients
+{
+ ETHOSU_PMU_REQUEST = 0,
+ ETHOSU_INFERENCE_REQUEST = 1,
+};
+
/******************************************************************************
* Variables
******************************************************************************/
@@ -169,6 +177,14 @@ struct ethosu_driver *ethosu_reserve_driver(void);
void ethosu_release_driver(struct ethosu_driver *drv);
/**
+ * Set clock and power request bits
+ */
+enum ethosu_error_codes set_clock_and_power_request(struct ethosu_driver *drv,
+ enum ethosu_request_clients client,
+ enum ethosu_clock_q_request clock_request,
+ enum ethosu_power_q_request power_request);
+
+/**
* Static inline for backwards-compatibility
*/
static inline int ethosu_invoke_v2(const void *custom_data_ptr,