diff options
Diffstat (limited to 'source/hal/source/components/npu_ta')
-rw-r--r-- | source/hal/source/components/npu_ta/CMakeLists.txt | 9 | ||||
-rw-r--r-- | source/hal/source/components/npu_ta/ethosu_ta_init.c | 4 |
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; |