1# SPDX-FileCopyrightText: <text>Copyright 2021-2022, 2024 Arm Limited and/or its
2# affiliates <open-source-office@arm.com></text>
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
12if ARM_ETHOS_U
13menu "Arm Ethos-U NPU configuration"
14choice  ARM_ETHOS_U_NPU_CONFIG
15	prompt "Arm Ethos-U NPU configuration"
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"
29config ARM_ETHOS_U85_128
30	bool "using Ethos-U85 with 128 macs"
31config ARM_ETHOS_U85_256
32	bool "using Ethos-U85 with 256 macs"
33config ARM_ETHOS_U85_512
34	bool "using Ethos-U85 with 512 macs"
35config ARM_ETHOS_U85_1024
36	bool "using Ethos-U85 with 1024 macs"
37config ARM_ETHOS_U85_2048
38	bool "using Ethos-U85 with 2048 macs"
39endchoice
40endmenu
41
42config ARM_ETHOS_U_NPU_NAME
43	string
44	default "ethos-u55-64" if ARM_ETHOS_U55_64
45	default "ethos-u55-128" if ARM_ETHOS_U55_128
46	default "ethos-u55-256" if ARM_ETHOS_U55_256
47	default "ethos-u65-128" if ARM_ETHOS_U65_128
48	default "ethos-u65-256" if ARM_ETHOS_U65_256
49	default "ethos-u65-512" if ARM_ETHOS_U65_512
50	default "ethos-u85-128" if ARM_ETHOS_U85_128
51	default "ethos-u85-256" if ARM_ETHOS_U85_256
52	default "ethos-u85-512" if ARM_ETHOS_U85_512
53	default "ethos-u85-1024" if ARM_ETHOS_U85_1024
54	default "ethos-u85-2048" if ARM_ETHOS_U85_2048
55	help
56		Name of the used Arm NPU
57
58choice "ARM_ETHOS_U_LOG_LEVEL_CHOICE"
59	prompt "Max compiled-in log level for arm_ethos_u"
60	default ARM_ETHOS_U_LOG_LEVEL_WRN
61	depends on STDOUT_CONSOLE
62
63config ARM_ETHOS_U_LOG_LEVEL_NONE
64	bool "None"
65
66config ARM_ETHOS_U_LOG_LEVEL_ERR
67	bool "Error"
68
69config ARM_ETHOS_U_LOG_LEVEL_WRN
70	bool "Warning"
71
72config ARM_ETHOS_U_LOG_LEVEL_INF
73	bool "Info"
74
75config ARM_ETHOS_U_LOG_LEVEL_DBG
76	bool "Debug"
77
78config ARM_ETHOS_U_LOG_LEVEL_DEFAULT
79	bool "Default"
80
81endchoice
82
83config ARM_ETHOS_U_LOG_LEVEL
84	int
85	depends on STDOUT_CONSOLE
86	default 0 if ARM_ETHOS_U_LOG_LEVEL_NONE
87	default 1 if ARM_ETHOS_U_LOG_LEVEL_ERR
88	default 2 if ARM_ETHOS_U_LOG_LEVEL_WRN
89	default 3 if ARM_ETHOS_U_LOG_LEVEL_INF
90	default 4 if ARM_ETHOS_U_LOG_LEVEL_DBG
91
92endif
93