aboutsummaryrefslogtreecommitdiff
path: root/include/ethosu_driver.h
diff options
context:
space:
mode:
authorPer Åstrand <per.astrand@arm.com>2020-11-24 07:39:55 +0100
committerPer Åstrand <per.astrand@arm.com>2020-11-24 11:57:55 +0100
commit849cf69b01a6d226238882e28281c4285f0ddfbb (patch)
tree5ec6b617e95999cbe20b51b376c365f6dd86edcb /include/ethosu_driver.h
parente6498f0aa2e51b652a40b5f27e5991bd65422326 (diff)
downloadethos-u-core-driver-849cf69b01a6d226238882e28281c4285f0ddfbb.tar.gz
Restore default init values as init_v2
The addition of init_v3 accidentely changed default values for soft resetting Ethos-U. Restore the default parameters to non-secure, user mode for init_v1 and init_v2 and also make sure to check return value from ethosu_soft_reset. Change-Id: If7377f11ad1db7ff988fdcba03320a54e6e0c0c1
Diffstat (limited to 'include/ethosu_driver.h')
-rw-r--r--include/ethosu_driver.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ethosu_driver.h b/include/ethosu_driver.h
index 345f82f..46f777a 100644
--- a/include/ethosu_driver.h
+++ b/include/ethosu_driver.h
@@ -95,9 +95,9 @@ int ethosu_init_v3(const void *base_address,
uint32_t secure_enable,
uint32_t privilege_enable);
-#define ethosu_init(base_address) ethosu_init_v3(base_address, NULL, 0, 1, 1)
+#define ethosu_init(base_address) ethosu_init_v3(base_address, NULL, 0, 0, 0)
#define ethosu_init_v2(base_address, fast_memory, fast_memory_size) \
- ethosu_init_v3(base_address, fast_memory, fast_memory_size, 1, 1)
+ ethosu_init_v3(base_address, fast_memory, fast_memory_size, 0, 0)
/**
* Get Ethos-U version.