aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnton Moberg <anton.moberg@arm.com>2020-12-21 09:37:18 +0100
committerAnton Moberg <anton.moberg@arm.com>2021-01-18 09:06:30 +0100
commit8d65b6f7a4a291d90e20c44bf8d81a37b865cbd2 (patch)
tree9392a1ec5f461aa16d30e037b7ed5d3b50aa20e1 /include
parent033bb1bcbecd89734c64a84ccda4f12d6cedb8c0 (diff)
downloadethos-u-core-driver-8d65b6f7a4a291d90e20c44bf8d81a37b865cbd2.tar.gz
Added simplified driver setup
If NPU power is guaranteed always on parts of driver setup can be omitted to reduce the number of cycles required to setup the NPU drivers. By enabling dev_power_always_on, the setup cycles are reduced by approx. ~50%. (4462->2238 in prologue, 1167->642 in epilogue) Change-Id: I56d380c2571fedbc8888fb7c00fce0e4320f7fb7
Diffstat (limited to 'include')
-rw-r--r--include/ethosu_driver.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ethosu_driver.h b/include/ethosu_driver.h
index 46f777a..d47b676 100644
--- a/include/ethosu_driver.h
+++ b/include/ethosu_driver.h
@@ -44,6 +44,7 @@ struct ethosu_driver
uint64_t fast_memory;
size_t fast_memory_size;
bool status_error;
+ bool dev_power_always_on;
};
struct ethosu_version_id
@@ -126,6 +127,11 @@ void ethosu_abort(void);
*/
void ethosu_irq_handler(void);
+/**
+ * Set Ethos-U power mode.
+ */
+void ethosu_set_power_mode(bool);
+
#ifdef __cplusplus
}
#endif