1# SPDX-License-Identifier: Apache-2.0
2
3if(CONFIG_BOARD_NRF9160DK_NRF9160 OR CONFIG_BOARD_NRF9160DK_NRF9160_NS)
4  if(CONFIG_BOARD_NRF9160DK_NRF9160_NS)
5    set(TFM_PUBLIC_KEY_FORMAT "full")
6  endif()
7
8  if(CONFIG_TFM_FLASH_MERGED_BINARY)
9    set_property(TARGET runners_yaml_props_target PROPERTY hex_file tfm_merged.hex)
10  endif()
11
12  board_runner_args(jlink "--device=nRF9160_xxAA" "--speed=4000")
13  include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
14  include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
15  include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
16elseif(CONFIG_BOARD_NRF9160DK_NRF52840)
17  board_runner_args(jlink "--device=nRF52840_xxAA" "--speed=4000")
18  include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
19  include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
20  include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
21  include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake)
22endif()
23