blob: fe7e2bf324b26ec19b20706d9922db0270a151a4 [file] [log] [blame]
Sherry Zhang07b42412021-01-07 14:19:41 +08001/*
2 * Copyright (c) 2021, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#ifndef TFM_FWU_BOOTLOADER_DEFS_H
9#define TFM_FWU_BOOTLOADER_DEFS_H
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15/* Image type identities. When porting a specific bootloader to FWU partition,
16 * the bootloader specific image types can be defined here.
17 */
18#define FWU_IMAGE_TYPE_NONSECURE 0x01U
19#define FWU_IMAGE_TYPE_SECURE 0x02U
20#define FWU_IMAGE_TYPE_FULL 0x03U
21
Sherry Zhangf7e2ade2022-06-09 17:36:41 +080022/* FWU message types that distinguish FWU services. */
23#define TFM_FWU_WRITE 1001
24#define TFM_FWU_INSTALL 1002
25#define TFM_FWU_ABORT 1003
26#define TFM_FWU_QUERY 1004
27#define TFM_FWU_REQUEST_REBOOT 1005
28#define TFM_FWU_ACCEPT 1006
29
Sherry Zhang07b42412021-01-07 14:19:41 +080030#ifdef __cplusplus
31}
32#endif
33#endif /* TFM_FWU_BOOTLOADER_DEFS_H */