blob: fe7e2bf324b26ec19b20706d9922db0270a151a4 [file] [log] [blame]
/*
* Copyright (c) 2021, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#ifndef TFM_FWU_BOOTLOADER_DEFS_H
#define TFM_FWU_BOOTLOADER_DEFS_H
#ifdef __cplusplus
extern "C" {
#endif
/* Image type identities. When porting a specific bootloader to FWU partition,
* the bootloader specific image types can be defined here.
*/
#define FWU_IMAGE_TYPE_NONSECURE 0x01U
#define FWU_IMAGE_TYPE_SECURE 0x02U
#define FWU_IMAGE_TYPE_FULL 0x03U
/* FWU message types that distinguish FWU services. */
#define TFM_FWU_WRITE 1001
#define TFM_FWU_INSTALL 1002
#define TFM_FWU_ABORT 1003
#define TFM_FWU_QUERY 1004
#define TFM_FWU_REQUEST_REBOOT 1005
#define TFM_FWU_ACCEPT 1006
#ifdef __cplusplus
}
#endif
#endif /* TFM_FWU_BOOTLOADER_DEFS_H */