1 /*
2  * Copyright 2021 NXP
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef SFP_ERROR_CODES_H
9 #define SFP_ERROR_CODES_H
10 
11  /* Error codes */
12 #define ERROR_FUSE_BARKER		0x1
13 #define ERROR_READFB_CMD		0x2
14 #define ERROR_PROGFB_CMD		0x3
15 #define ERROR_SRKH_ALREADY_BLOWN	0x4
16 #define ERROR_SRKH_WRITE		0x5
17 #define ERROR_OEMUID_ALREADY_BLOWN	0x6
18 #define ERROR_OEMUID_WRITE		0x7
19 #define ERROR_DCV_ALREADY_BLOWN		0x8
20 #define ERROR_DCV_WRITE			0x9
21 #define ERROR_DRV_ALREADY_BLOWN		0xa
22 #define ERROR_DRV_HAMMING_ERROR		0xb
23 #define ERROR_DRV_WRITE			0x18
24 #define ERROR_OTPMK_ALREADY_BLOWN	0xc
25 #define ERROR_OTPMK_HAMMING_ERROR	0xd
26 #define ERROR_OTPMK_USER_MIN		0xe
27 #define ERROR_OSPR1_ALREADY_BLOWN	0xf
28 #define ERROR_OSPR1_WRITE		0x10
29 #define ERROR_SC_ALREADY_BLOWN		0x11
30 #define ERROR_SC_WRITE			0x12
31 #define ERROR_POVDD_GPIO_FAIL		0x13
32 #define ERROR_GPIO_SET_FAIL		0x14
33 #define ERROR_GPIO_RESET_FAIL		0x15
34 #define ERROR_OTPMK_SEC_DISABLED	0x16
35 #define ERROR_OTPMK_SEC_ERROR		0x17
36 #define ERROR_OTPMK_WRITE		0x19
37 #define PLAT_ERROR_ENABLE_POVDD		0x20
38 #define PLAT_ERROR_DISABLE_POVDD	0x21
39 
40 #endif /* SFP_ERROR_CODES_H */
41