1/* 2 * Copyright (c) 2022, Arm Limited. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 */ 7 8#ifndef __FWU_CONFIG_H__ 9#define __FWU_CONFIG_H__ 10 11/* This file contains device specific configurations in FWU partition based 12 * on MCUboot. 13 */ 14 15/* Components if the device. When porting a specific bootloader to FWU partition, 16 * the bootloader specific image types can be defined here. 17 */ 18#if MCUBOOT_IMAGE_NUMBER > 1 19#define FWU_COMPONENT_ID_SECURE 0x00U 20#define FWU_COMPONENT_ID_NONSECURE 0x01U 21#else 22#define FWU_COMPONENT_ID_FULL 0x00U 23#endif 24#define FWU_COMPONENT_NUMBER MCUBOOT_IMAGE_NUMBER 25 26/* The maximum size of an image digest in bytes. This is dependent 27 * on the hash algorithm used. 28 */ 29#define TFM_FWU_MAX_DIGEST_SIZE 32 30 31/* The maximum permitted size for block in psa_fwu_write(), in bytes. */ 32#define TFM_CONFIG_FWU_MAX_WRITE_SIZE @TFM_CONFIG_FWU_MAX_WRITE_SIZE@ 33 34/* The maximum permitted size for manifest in psa_fwu_start(), in bytes. */ 35#define TFM_CONFIG_FWU_MAX_MANIFEST_SIZE @TFM_CONFIG_FWU_MAX_MANIFEST_SIZE@ 36 37/* Whether TRIAL component state is supported or not. This is device specific 38 * configuration. 39 */ 40#cmakedefine FWU_SUPPORT_TRIAL_STATE 41 42#endif /* __FWU_CONFIG_H__ */ 43