blob: 7d4b6b92e17ec2fd6ab124a39bfea36ea3bef65a [file] [log] [blame]
Peng Fand4191db2019-09-23 10:12:31 +00001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright 2019 NXP
4 */
5
6#ifndef SC_SECO_API_H
7#define SC_SECO_API_H
8
9/* Includes */
10
Peng Fan2e0644a2023-04-28 12:08:09 +080011#include <firmware/imx/sci/types.h>
Peng Fand4191db2019-09-23 10:12:31 +000012
13/* Defines */
14#define SC_SECO_AUTH_CONTAINER 0U /* Authenticate container */
15#define SC_SECO_VERIFY_IMAGE 1U /* Verify image */
16#define SC_SECO_REL_CONTAINER 2U /* Release container */
17#define SC_SECO_AUTH_SECO_FW 3U /* SECO Firmware */
18#define SC_SECO_AUTH_HDMI_TX_FW 4U /* HDMI TX Firmware */
19#define SC_SECO_AUTH_HDMI_RX_FW 5U /* HDMI RX Firmware */
Peng Fane89a3912023-06-15 18:09:04 +080020#define SC_SECO_EVERIFY_IMAGE 6U /* Enhanced verify image */
Peng Fand4191db2019-09-23 10:12:31 +000021
22#define SC_SECO_RNG_STAT_UNAVAILABLE 0U /* Unable to initialize the RNG */
23#define SC_SECO_RNG_STAT_INPROGRESS 1U /* Initialization is on-going */
24#define SC_SECO_RNG_STAT_READY 2U /* Initialized */
25
26/* Types */
27
Peng Fane89a3912023-06-15 18:09:04 +080028/*
Peng Fand4191db2019-09-23 10:12:31 +000029 * This type is used to issue SECO authenticate commands.
30 */
31typedef u8 sc_seco_auth_cmd_t;
32
Peng Fane89a3912023-06-15 18:09:04 +080033/*
Peng Fand4191db2019-09-23 10:12:31 +000034 * This type is used to return the RNG initialization status.
35 */
36typedef u32 sc_seco_rng_stat_t;
37
38#endif /* SC_SECO_API_H */