1# SPDX-FileCopyrightText: <text>Copyright 2021-2022, 2024-2025 Arm Limited and/or its 2# affiliates <open-source-office@arm.com></text> 3# SPDX-License-Identifier: Apache-2.0 4 5config ETHOS_U 6 bool "Ethos-U core driver" 7 default n 8 depends on MULTITHREADING 9 help 10 This option enables the Arm Ethos-U core driver. 11 12if ETHOS_U 13menu "Ethos-U NPU configuration" 14choice ETHOS_U_NPU_CONFIG 15 prompt "Ethos-U NPU configuration" 16 default ETHOS_U55_128 if SOC_SERIES_MPS3 17 default ETHOS_U65_256 if SOC_MPS4_CORSTONE315 18 default ETHOS_U85_256 if SOC_MPS4_CORSTONE320 19 default ETHOS_U55_256 if SOC_SERIES_M55M1X 20config ETHOS_U55_64 21 bool "using Ethos-U55 with 64 macs" 22config ETHOS_U55_128 23 bool "using Ethos-U55 with 128 macs" 24config ETHOS_U55_256 25 bool "using Ethos-U55 with 256 macs" 26config ETHOS_U65_128 27 bool "using Ethos-U65 with 128 macs" 28config ETHOS_U65_256 29 bool "using Ethos-U65 with 256 macs" 30config ETHOS_U65_512 31 bool "using Ethos-U65 with 512 macs" 32config ETHOS_U85_128 33 bool "using Ethos-U85 with 128 macs" 34config ETHOS_U85_256 35 bool "using Ethos-U85 with 256 macs" 36config ETHOS_U85_512 37 bool "using Ethos-U85 with 512 macs" 38config ETHOS_U85_1024 39 bool "using Ethos-U85 with 1024 macs" 40config ETHOS_U85_2048 41 bool "using Ethos-U85 with 2048 macs" 42endchoice 43endmenu 44 45config ETHOS_U_NPU_NAME 46 string 47 default "ethos-u55-64" if ETHOS_U55_64 48 default "ethos-u55-128" if ETHOS_U55_128 49 default "ethos-u55-256" if ETHOS_U55_256 50 default "ethos-u65-128" if ETHOS_U65_128 51 default "ethos-u65-256" if ETHOS_U65_256 52 default "ethos-u65-512" if ETHOS_U65_512 53 default "ethos-u85-128" if ETHOS_U85_128 54 default "ethos-u85-256" if ETHOS_U85_256 55 default "ethos-u85-512" if ETHOS_U85_512 56 default "ethos-u85-1024" if ETHOS_U85_1024 57 default "ethos-u85-2048" if ETHOS_U85_2048 58 help 59 Name of the used Ethos-U NPU 60 61choice "ETHOS_U_LOG_LEVEL_CHOICE" 62 prompt "Max compiled-in log level for ETHOS_U" 63 default ETHOS_U_LOG_LEVEL_WRN 64 depends on STDOUT_CONSOLE 65 66config ETHOS_U_LOG_LEVEL_NONE 67 bool "None" 68 69config ETHOS_U_LOG_LEVEL_ERR 70 bool "Error" 71 72config ETHOS_U_LOG_LEVEL_WRN 73 bool "Warning" 74 75config ETHOS_U_LOG_LEVEL_INF 76 bool "Info" 77 78config ETHOS_U_LOG_LEVEL_DBG 79 bool "Debug" 80 81config ETHOS_U_LOG_LEVEL_DEFAULT 82 bool "Default" 83 84endchoice 85 86config ETHOS_U_LOG_LEVEL 87 int 88 depends on STDOUT_CONSOLE 89 default 0 if ETHOS_U_LOG_LEVEL_NONE 90 default 1 if ETHOS_U_LOG_LEVEL_ERR 91 default 2 if ETHOS_U_LOG_LEVEL_WRN 92 default 3 if ETHOS_U_LOG_LEVEL_INF 93 default 4 if ETHOS_U_LOG_LEVEL_DBG 94 95endif 96