summaryrefslogtreecommitdiff
path: root/source/hal/components/ethosu_ta_init/include/ethosu_ta_init.h
diff options
context:
space:
mode:
authorIsabella Gottardi <isabella.gottardi@arm.com>2022-02-25 14:29:32 +0000
committerIsabella Gottardi <isabella.gottardi@arm.com>2022-02-28 16:48:09 +0000
commitee4920b338f7d1e690377093bcfaaf0ba203bff0 (patch)
treed42d1bef843c5244544ae620687e2ef5a7ab3ee7 /source/hal/components/ethosu_ta_init/include/ethosu_ta_init.h
parentef2b9ddd7771589e049c4103859ecef67fe87855 (diff)
downloadml-embedded-evaluation-kit-ee4920b338f7d1e690377093bcfaaf0ba203bff0.tar.gz
MLECO-2976: Configurable Ethos-U cache size for Dedicated_Sram
MLECO-2949: Platform drivers should own NPU and TA init Change-Id: I13606a0197f137816bae803eb9d7d46c358b5fb8 Signed-off-by: Isabella Gottardi <isabella.gottardi@arm.com>
Diffstat (limited to 'source/hal/components/ethosu_ta_init/include/ethosu_ta_init.h')
-rw-r--r--source/hal/components/ethosu_ta_init/include/ethosu_ta_init.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/source/hal/components/ethosu_ta_init/include/ethosu_ta_init.h b/source/hal/components/ethosu_ta_init/include/ethosu_ta_init.h
new file mode 100644
index 0000000..2ab7fb2
--- /dev/null
+++ b/source/hal/components/ethosu_ta_init/include/ethosu_ta_init.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2022 Arm Limited. All rights reserved.
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#ifndef ETHOS_U_TA_INIT_H
+#define ETHOS_U_TA_INIT_H
+
+#if defined(ARM_NPU) && defined(TIMING_ADAPTER_AVAILABLE)
+
+/**
+ * @brief Initialises the Arm Ethos-U NPU timing adapter
+ * @return 0 if successful, error code otherwise
+ **/
+int arm_ethosu_timing_adapter_init(void);
+
+#endif /* ARM_NPU && TIMING_ADAPTER_AVAILABLE */
+
+#endif /* ETHOS_U_TA_INIT_H */