1# Copyright (c) 2017 Linaro Limited
2# Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
3# SPDX-License-Identifier: Apache-2.0
4
5if BOARD_MPS2_AN383 || BOARD_MPS2_AN385 || BOARD_MPS2_AN386 || BOARD_MPS2_AN500
6
7if SERIAL
8
9config UART_INTERRUPT_DRIVEN
10	default y
11
12endif # SERIAL
13
14config ZTEST_STACK_SIZE
15	default 4096 if ZTEST
16
17if COVERAGE_GCOV
18
19config MAIN_STACK_SIZE
20	default 4096
21
22config IDLE_STACK_SIZE
23	default 4096
24
25config PRIVILEGED_STACK_SIZE
26	default 4096
27
28config ISR_STACK_SIZE
29	default 4096
30
31config TEST_EXTRA_STACK_SIZE
32	default 4096
33
34endif # COVERAGE_GCOV
35
36endif
37
38if BOARD_MPS2_AN521_CPU0 || BOARD_MPS2_AN521_CPU0_NS || BOARD_MPS2_AN521_CPU1
39
40# MPU-based null-pointer dereferencing detection cannot
41# be applied as the (0x0 - 0x400) is unmapped but QEMU
42# will still permit bus access.
43choice NULL_POINTER_EXCEPTION_DETECTION
44	bool
45	default NULL_POINTER_EXCEPTION_DETECTION_NONE if QEMU_TARGET
46
47endchoice
48
49# By default, if we build for a Non-Secure version of the board,
50# force building with TF-M as the Secure Execution Environment.
51config BUILD_WITH_TFM
52	default y if TRUSTED_EXECUTION_NONSECURE
53
54if SERIAL
55
56config UART_INTERRUPT_DRIVEN
57	default y
58
59endif # SERIAL
60
61endif
62