1# nRF9160 innblue V2.2 board configuration 2 3# Copyright (c) 2020 InnBlue 4# SPDX-License-Identifier: Apache-2.0 5 6if BOARD_INNBLUE22 7 8# For the secure version of the board the firmware is linked at the beginning 9# of the flash, or into the code-partition defined in DT if it is intended to 10# be loaded by MCUboot. If the secure firmware is to be combined with a non- 11# secure image (TRUSTED_EXECUTION_SECURE=y), the secure FW image shall always 12# be restricted to the size of its code partition. 13# For the non-secure version of the board, the firmware 14# must be linked into the code-partition (non-secure) defined in DT, regardless. 15# Apply this configuration below by setting the Kconfig symbols used by 16# the linker according to the information extracted from DT partitions. 17 18 19# Workaround for not being able to have commas in macro arguments 20DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition 21 22if BOARD_INNBLUE22_NRF9160 && TRUSTED_EXECUTION_SECURE 23 24config FLASH_LOAD_SIZE 25 default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) 26 27endif # BOARD_INNBLUE22_NRF9160 && TRUSTED_EXECUTION_SECURE 28 29if BOARD_INNBLUE22_NRF9160_NS 30 31config FLASH_LOAD_OFFSET 32 default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) 33 34config FLASH_LOAD_SIZE 35 default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) 36 37endif # BOARD_INNBLUE22_NRF9160_NS 38 39config BT_HCI_VS 40 default y if BT 41 42config REGULATOR 43 default y if SENSOR 44 45endif # BOARD_INNBLUE22 46