2021-07-09 16:36:26 +08:00
|
|
|
# Copyright (c) 2021 Telink Semiconductor
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
if BOARD_TLSR9518ADK80D
|
|
|
|
|
2021-07-26 17:46:53 +08:00
|
|
|
config SOC_FLASH_TELINK_B91
|
|
|
|
default y if FLASH
|
|
|
|
|
2022-05-30 20:07:55 +08:00
|
|
|
# Workaround for not being able to have commas in macro arguments
|
|
|
|
DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition
|
|
|
|
|
|
|
|
config FLASH_LOAD_OFFSET
|
|
|
|
default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) if USE_DT_CODE_PARTITION
|
|
|
|
|
2022-07-06 21:47:56 +08:00
|
|
|
# Buffer for image writter shall be less(multiple of access alignment) or
|
|
|
|
# equal to flash page. tlsr9518adk80d boards use external P25Q16 IC as
|
|
|
|
# flesh memory. Flash page size of the IC is 256 bytes. So that, it is
|
|
|
|
# maximum image writer buffer size for such kind of boards.
|
|
|
|
config IMG_BLOCK_BUF_SIZE
|
|
|
|
default 256 if MCUBOOT_IMG_MANAGER
|
|
|
|
|
2021-07-09 16:36:26 +08:00
|
|
|
endif
|