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"
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_NONE
49	bool "None"
50
51config ARM_ETHOS_U_LOG_LEVEL_ERR
52	bool "Error"
53
54config ARM_ETHOS_U_LOG_LEVEL_WRN
55	bool "Warning"
56
57config ARM_ETHOS_U_LOG_LEVEL_INF
58	bool "Info"
59
60config ARM_ETHOS_U_LOG_LEVEL_DBG
61	bool "Debug"
62
63config ARM_ETHOS_U_LOG_LEVEL_DEFAULT
64	bool "Default"
65
66endchoice
67
68config ARM_ETHOS_U_LOG_LEVEL
69	int
70	depends on STDOUT_CONSOLE
71	default 0 if ARM_ETHOS_U_LOG_LEVEL_NONE
72	default 1 if ARM_ETHOS_U_LOG_LEVEL_ERR
73	default 2 if ARM_ETHOS_U_LOG_LEVEL_WRN
74	default 3 if ARM_ETHOS_U_LOG_LEVEL_INF
75	default 4 if ARM_ETHOS_U_LOG_LEVEL_DBG
76
77endif
78