1# LPCXpresso55S28 board 2 3# Copyright (c) 2020 Lemonbeat GmbH 4# SPDX-License-Identifier: Apache-2.0 5 6if BOARD_LPCXPRESSO55S28 7 8if FXOS8700 9 10choice FXOS8700_MODE 11 default FXOS8700_MODE_ACCEL 12endchoice 13 14config FXOS8700_DRDY_INT1 15 default y 16 depends on FXOS8700_TRIGGER 17 18endif # FXOS8700 19 20# For the secure version of the board the firmware is linked at the beginning 21# of the flash, or into the code-partition defined in DT if it is intended to 22# be loaded by MCUboot. If the secure firmware is to be combined with a non- 23# secure image (TRUSTED_EXECUTION_SECURE=y), the secure FW image shall always 24# be restricted to the size of its code partition. 25# For the non-secure version of the board, the firmware 26# must be linked into the code-partition (non-secure) defined in DT, regardless. 27# Apply this configuration below by setting the Kconfig symbols used by 28# the linker according to the information extracted from DT partitions. 29 30# Workaround for not being able to have commas in macro arguments 31DT_CHOSEN_Z_CODE_PARTITION := zephyr,code-partition 32 33config FLASH_LOAD_SIZE 34 default $(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_CODE_PARTITION)) 35 depends on BOARD_LPCXPRESSO55S28 && TRUSTED_EXECUTION_SECURE 36 37if BOOTLOADER_MCUBOOT 38choice MCUBOOT_BOOTLOADER_MODE 39 # Board only supports MCUBoot via "upgrade only" method: 40 default MCUBOOT_BOOTLOADER_MODE_OVERWRITE_ONLY 41endchoice 42endif #BOOTLOADER_MCUBOOT 43 44endif # BOARD_LPCXPRESSO55S28 45