1# nRF52840 MDK USB Dongle board configuration
2#
3# Copyright (c) 2018 Nordic Semiconductor ASA
4#
5# Copyright (c) 2022 Nikola Trifunovic
6#
7# SPDX-License-Identifier: Apache-2.0
8
9if BOARD_NRF52840_MDK_USB_DONGLE
10
11# To let the nRF5 bootloader load an application, the application
12# must be linked after Nordic MBR, that is factory-programmed on the board.
13
14# Nordic nRF5 bootloader exists outside of the partitions specified in the
15# DTS file, so we manually override FLASH_LOAD_OFFSET to link the application
16# correctly, after Nordic MBR.
17
18# When building MCUBoot, MCUBoot itself will select USE_DT_CODE_PARTITION
19# which will make it link into the correct partition specified in DTS file,
20# so no override is necessary.
21
22config FLASH_LOAD_OFFSET
23	default 0x1000
24	depends on BOARD_HAS_NRF5_BOOTLOADER && !USE_DT_CODE_PARTITION
25
26source "boards/common/usb/Kconfig.cdc_acm_serial.defconfig"
27
28endif # BOARD_NRF52840_MDK_USB_DONGLE
29