summaryrefslogtreecommitdiff
path: root/source/hal/source/components/npu_ta
diff options
context:
space:
mode:
authorKshitij Sisodia <kshitij.sisodia@arm.com>2024-01-17 13:29:43 +0000
committerKshitij Sisodia <kshitij.sisodia@arm.com>2024-01-18 10:38:57 +0000
commit5385a64979c0380b60c57c74878ccb5189012c87 (patch)
treeba1879bb56501eae9334da379d3014ae99fd01fb /source/hal/source/components/npu_ta
parent001a8ff315dc766a206b05a3e00e831e3f972b0d (diff)
downloadml-embedded-evaluation-kit-5385a64979c0380b60c57c74878ccb5189012c87.tar.gz
Cleanup: Timing adapter definitions
The NPU timing adapter base addresses had been defined in mutiple places, making it difficult to determine which one is actually being used. This patch cleans up unused definitions from memory-map header files for different targets and the CMake template files. The expectation is for component base addresses to be set by platform specific CMake files that include/wrap the component directories. Change-Id: Ic39794ffbdb872b4b0c900cbcec8e386bb32c4eb Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
Diffstat (limited to 'source/hal/source/components/npu_ta')
-rw-r--r--source/hal/source/components/npu_ta/CMakeLists.txt9
-rw-r--r--source/hal/source/components/npu_ta/ethosu_ta_init.c4
2 files changed, 6 insertions, 7 deletions
diff --git a/source/hal/source/components/npu_ta/CMakeLists.txt b/source/hal/source/components/npu_ta/CMakeLists.txt
index 3778a14..9956384 100644
--- a/source/hal/source/components/npu_ta/CMakeLists.txt
+++ b/source/hal/source/components/npu_ta/CMakeLists.txt
@@ -1,5 +1,6 @@
#----------------------------------------------------------------------------
-# SPDX-FileCopyrightText: Copyright 2022 Arm Limited and/or its affiliates <open-source-office@arm.com>
+# SPDX-FileCopyrightText: Copyright 2022, 2024 Arm Limited and/or its
+# affiliates <open-source-office@arm.com>
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -30,16 +31,14 @@ project(${ETHOS_U_NPU_TA_COMPONENT}
DESCRIPTION "Ethos-U NPU timing adapter initialization library"
LANGUAGES C CXX ASM)
+#
# Checks
+#
## Source generated Source path check
if (NOT DEFINED SOURCE_GEN_DIR)
set(SOURCE_GEN_DIR ${CMAKE_BINARY_DIR}/generated/ta)
endif()
-# Base address definitions for the two timing adapters (platform should override these):
-set(TA0_BASE "0x58103000" CACHE STRING "Ethos-U NPU timing adapter 0")
-set(TA1_BASE "0x58103200" CACHE STRING "Ethos-U NPU timing adapter 1")
-
## If a TA config file is provided, we generate a settings file
if (DEFINED TA_CONFIG_FILE)
include(${TA_CONFIG_FILE})
diff --git a/source/hal/source/components/npu_ta/ethosu_ta_init.c b/source/hal/source/components/npu_ta/ethosu_ta_init.c
index 66fa9e7..1ef4ff5 100644
--- a/source/hal/source/components/npu_ta/ethosu_ta_init.c
+++ b/source/hal/source/components/npu_ta/ethosu_ta_init.c
@@ -48,7 +48,7 @@ int arm_ethosu_timing_adapter_init(void)
}
ta_set_all(&ta_0, &ta_0_settings);
- info("TA0 values set\n");
+ info("Configured TA0@0x%" PRIx32 "\n", TA0_BASE);
#endif /* defined (TA0_BASE) */
#if defined(TA1_BASE)
@@ -76,7 +76,7 @@ int arm_ethosu_timing_adapter_init(void)
}
ta_set_all(&ta_1, &ta_1_settings);
- info("TA1 values set\n");
+ info("Configured TA1@0x%" PRIx32 "\n", TA1_BASE);
#endif /* defined (TA1_BASE) */
return 0;