Kconfig.defconfig 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # DalzenTwo NRF9151 board configuration
  2. # Copyright (c) 2023 Nordic Semiconductor ASA
  3. # SPDX-License-Identifier: Apache-2.0
  4. if BOARD_DALZENTWO_NRF9151 || BOARD_DALZENTWO_NRF9151_NS
  5. # For the secure version of the board the firmware is linked at the beginning
  6. # of the flash, or into the code-partition defined in DT if it is intended to
  7. # be loaded by MCUboot. If the secure firmware is to be combined with a non-
  8. # secure image (TRUSTED_EXECUTION_SECURE=y), the secure FW image shall always
  9. # be restricted to the size of its code partition.
  10. # For the non-secure version of the board, the firmware
  11. # must be linked into the code-partition (non-secure) defined in DT, regardless.
  12. # Apply this configuration below by setting the Kconfig symbols used by
  13. # the linker according to the information extracted from DT partitions.
  14. # Workaround for not being able to have commas in macro arguments
  15. DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition
  16. config FLASH_LOAD_SIZE
  17. default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION))
  18. depends on BOARD_DALZENTWO_NRF9151 && TRUSTED_EXECUTION_SECURE
  19. if BOARD_DALZENTWO_NRF9151_NS
  20. config FLASH_LOAD_OFFSET
  21. default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_CODE_PARTITION))
  22. config FLASH_LOAD_SIZE
  23. default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION))
  24. endif # BOARD_DALZENTWO_NRF9151_NS
  25. config BT_HCI_VS
  26. default y if BT
  27. config BT_WAIT_NOP
  28. default BT && $(dt_nodelabel_enabled,nrf5340_reset)
  29. config I2C
  30. default $(dt_compat_on_bus,$(DT_COMPAT_NXP_PCAL6408A),i2c)
  31. endif # BOARD_DALZENTWO_NRF9151 || BOARD_DALZENTWO_NRF9151_NS