1# BL654 USB adapter board configuration
2
3# Copyright (c) 2021-2022 Laird Connectivity
4# SPDX-License-Identifier: Apache-2.0
5
6if BOARD_BL654_USB
7
8config BOARD
9	default "bl654_usb"
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, and limit the maximum size to not protude into
17# the bootloader at the end of flash.
18
19# When building MCUBoot, MCUBoot itself will select USE_DT_CODE_PARTITION
20# which will make it link into the correct partition specified in DTS file,
21# so no override or limit is necessary.
22
23config FLASH_LOAD_OFFSET
24	default 0x1000
25	depends on !USE_DT_CODE_PARTITION
26
27config FLASH_LOAD_SIZE
28	default 0xdf000
29	depends on !USE_DT_CODE_PARTITION
30
31if USB_DEVICE_STACK
32
33config USB_UART_CONSOLE
34	default y
35
36config UART_LINE_CTRL
37	default y
38
39endif # USB_DEVICE_STACK
40
41if IEEE802154
42
43config IEEE802154_NRF5
44	default y
45
46endif # IEEE802154
47
48config BT_CTLR
49	default BT
50
51endif # BOARD_BL654_USB
52