1# Copyright 2021-2022 Arm Limited and/or its affiliates <open-source-office@arm.com> 2# 3# SPDX-License-Identifier: Apache-2.0 4 5config ARM_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 12menu "Arm Ethos-U NPU configuration" 13choice ARM_ETHOS_U_NPU_CONFIG 14 prompt "Arm Ethos-U NPU configuration" 15 depends on ARM_ETHOS_U 16 default ARM_ETHOS_U55_128 17config ARM_ETHOS_U55_64 18 bool "using Ethos-U55 with 64 macs" 19config ARM_ETHOS_U55_128 20 bool "using Ethos-U55 with 128 macs" 21config ARM_ETHOS_U55_256 22 bool "using Ethos-U55 with 256 macs" 23config ARM_ETHOS_U65_128 24 bool "using Ethos-U65 with 128 macs" 25config ARM_ETHOS_U65_256 26 bool "using Ethos-U65 with 256 macs" 27config ARM_ETHOS_U65_512 28 bool "using Ethos-U65 with 512 macs" 29endchoice 30endmenu 31 32config ARM_ETHOS_U_NPU_NAME 33 string 34 default "ethos-u55-64" if ARM_ETHOS_U55_64 35 default "ethos-u55-128" if ARM_ETHOS_U55_128 36 default "ethos-u55-256" if ARM_ETHOS_U55_256 37 default "ethos-u65-128" if ARM_ETHOS_U65_128 38 default "ethos-u65-256" if ARM_ETHOS_U65_256 39 default "ethos-u65-512" if ARM_ETHOS_U65_512 40 help 41 Name of the used Arm NPU 42 43choice "ARM_ETHOS_U_LOG_LEVEL_CHOICE" 44 prompt "Max compiled-in log level for arm_ethos_u" 45 default ARM_ETHOS_U_LOG_LEVEL_WRN 46 depends on STDOUT_CONSOLE 47 48config ARM_ETHOS_U_LOG_LEVEL_ERR 49 bool "Error" 50 51config ARM_ETHOS_U_LOG_LEVEL_WRN 52 bool "Warning" 53 54config ARM_ETHOS_U_LOG_LEVEL_INF 55 bool "Info" 56 57config ARM_ETHOS_U_LOG_LEVEL_DBG 58 bool "Debug" 59 60config ARM_ETHOS_U_LOG_LEVEL_DEFAULT 61 bool "Default" 62 63endchoice 64 65config ARM_ETHOS_U_LOG_LEVEL 66 int 67 depends on STDOUT_CONSOLE 68 default 1 if ARM_ETHOS_U_LOG_LEVEL_ERR 69 default 2 if ARM_ETHOS_U_LOG_LEVEL_WRN 70 default 3 if ARM_ETHOS_U_LOG_LEVEL_INF 71 default 4 if ARM_ETHOS_U_LOG_LEVEL_DBG 72