1# Copyright (c) 2021 Telink Semiconductor
2# SPDX-License-Identifier: Apache-2.0
3
4if BOARD_TLSR9518ADK80D
5
6config BOARD
7	default "tlsr9518adk80d"
8
9config SOC_FLASH_TELINK_B91
10	default y if FLASH
11
12if BT
13
14# BLE Controller SDK from hal_telink requires
15# Telink's toolchain with FPU support
16config FPU
17	default y if "$(ZEPHYR_TOOLCHAIN_VARIANT)" != "zephyr"
18
19config BT_HCI_ACL_FLOW_CONTROL
20	default n
21
22choice BT_HCI_BUS_TYPE
23	default BT_B91
24endchoice
25
26endif # BT
27
28# Workaround for not being able to have commas in macro arguments
29DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition
30
31config FLASH_LOAD_OFFSET
32	default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) if USE_DT_CODE_PARTITION
33
34# Buffer for image writter shall be less(multiple of access alignment) or
35# equal to flash page. tlsr9518adk80d boards use external P25Q16 IC as
36# flesh memory. Flash page size of the IC is 256 bytes. So that, it is
37# maximum image writer buffer size for such kind of boards.
38config IMG_BLOCK_BUF_SIZE
39	default 256 if MCUBOOT_IMG_MANAGER
40
41endif
42