1# BL5340-DVK board configuration 2 3# Copyright (c) 2019-2020 Nordic Semiconductor ASA 4# Copyright (c) 2021-2023 Laird Connectivity 5# SPDX-License-Identifier: Apache-2.0 6 7if BOARD_BL5340_DVK_NRF5340_CPUAPP || BOARD_BL5340_DVK_NRF5340_CPUAPP_NS 8 9config I2C 10 default GPIO || DAC 11 12# Code Partition: 13# 14# For the secure version of the board the firmware is linked at the beginning 15# of the flash, or into the code-partition defined in DT if it is intended to 16# be loaded by MCUboot. If the secure firmware is to be combined with a non- 17# secure image (TRUSTED_EXECUTION_SECURE=y), the secure FW image shall always 18# be restricted to the size of its code partition. 19# 20# For the non-secure version of the board, the firmware 21# must be linked into the code-partition (non-secure) defined in DT, regardless. 22# Apply this configuration below by setting the Kconfig symbols used by 23# the linker according to the information extracted from DT partitions. 24 25# SRAM Partition: 26# 27# If the secure firmware is to be combined with a non-secure image 28# (TRUSTED_EXECUTION_SECURE=y), the secure FW image SRAM shall always 29# be restricted to the secure image SRAM partition (sram-secure-partition). 30# Otherwise (if TRUSTED_EXECUTION_SECURE is not set) the whole zephyr,sram 31# may be used by the image. 32# 33# For the non-secure version of the board, the firmware image SRAM is 34# always restricted to the allocated non-secure SRAM partition. 35# 36# Workaround for not being able to have commas in macro arguments 37DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition 38DT_CHOSEN_Z_SRAM_PARTITION := zephyr,sram-secure-partition 39 40if BOARD_BL5340_DVK_NRF5340_CPUAPP && TRUSTED_EXECUTION_SECURE 41 42config FLASH_LOAD_SIZE 43 default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) 44 45config SRAM_SIZE 46 default $(dt_chosen_reg_size_int,$(DT_CHOSEN_Z_SRAM_PARTITION),0,K) 47 48endif # BOARD_BL5340_DVK_NRF5340_CPUAPP && TRUSTED_EXECUTION_SECURE 49 50if BOARD_BL5340_DVK_NRF5340_CPUAPP_NS 51 52config FLASH_LOAD_OFFSET 53 default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) 54 55config FLASH_LOAD_SIZE 56 default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) 57 58endif # BOARD_BL5340_DVK_NRF5340_CPUAPP_NS 59 60config BT_HCI_IPC 61 default y if BT 62 63config HEAP_MEM_POOL_ADD_SIZE_BOARD 64 int 65 default 4096 if BT_HCI_IPC 66 67config BT_HCI_VS 68 default y if BT 69 70# 2.8" TFT Touch Shield for Arduino w/Capacitive Touch Screen Module 71# is mounted to the DVK using standoffs. 72# https://www.buydisplay.com/2-8-inch-tft-touch-shield-for-arduino-w-capacitive-touch-screen-module 73if DISPLAY 74 75config INPUT_FT5336_INTERRUPT 76 default y 77 78if LVGL 79 80config LV_Z_VDB_SIZE 81 default 64 82 83config LV_Z_BITS_PER_PIXEL 84 default 16 85 86choice LV_COLOR_DEPTH 87 default LV_COLOR_DEPTH_16 88endchoice 89 90configdefault LV_COLOR_16_SWAP 91 default y 92 93config INPUT 94 default y 95 96endif # LVGL 97 98endif # DISPLAY 99 100endif # BOARD_BL5340_DVK_NRF5340_CPUAPP || BOARD_BL5340_DVK_NRF5340_CPUAPP_NS 101 102if BOARD_BL5340_DVK_NRF5340_CPUNET 103 104config BT_ECC 105 default y if BT 106 107endif # BOARD_BL5340_DVK_NRF5340_CPUNET 108