1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright (C) 2021 Foundries.io Ltd
4  */
5 
6 #ifndef __DRIVERS_ZYNQMP_EFUSE_H__
7 #define __DRIVERS_ZYNQMP_EFUSE_H__
8 
9 #include <util.h>
10 
11 #define ZYNQMP_EFUSE_DNA_OFFSET 0xc
12 #define ZYNQMP_EFUSE_DNA_LENGTH 12
13 
14 #define ZYNQMP_EFUSE_IP_DISABLE_OFFSET 0x18
15 #define ZYNQMP_EFUSE_IP_DISABLE_LENGTH 4
16 
17 #define ZYNQMP_EFUSE_USER0_OFFSET 0x20
18 #define ZYNQMP_EFUSE_USER0_LENGTH 4
19 
20 #define ZYNQMP_EFUSE_USER1_OFFSET 0x24
21 #define ZYNQMP_EFUSE_USER1_LENGTH 4
22 
23 #define ZYNQMP_EFUSE_USER2_OFFSET 0x28
24 #define ZYNQMP_EFUSE_USER2_LENGTH 4
25 
26 #define ZYNQMP_EFUSE_USER3_OFFSET 0x2c
27 #define ZYNQMP_EFUSE_USER3_LENGTH 4
28 
29 #define ZYNQMP_EFUSE_USER4_OFFSET 0x30
30 #define ZYNQMP_EFUSE_USER4_LENGTH 4
31 
32 #define ZYNQMP_EFUSE_USER5_OFFSET 0x34
33 #define ZYNQMP_EFUSE_USER5_LENGTH 4
34 
35 #define ZYNQMP_EFUSE_USER6_OFFSET 0x38
36 #define ZYNQMP_EFUSE_USER6_LENGTH 4
37 
38 #define ZYNQMP_EFUSE_USER7_OFFSET 0x3c
39 #define ZYNQMP_EFUSE_USER7_LENGTH 4
40 
41 #define ZYNQMP_EFUSE_MISC_USER_CTRL_OFFSET 0x40
42 #define ZYNQMP_EFUSE_MISC_USER_CTRL_LENGTH 4
43 
44 #define ZYNQMP_EFUSE_MISC_USER_CTRL_USR_WRLK_0	BIT(0)
45 #define ZYNQMP_EFUSE_MISC_USER_CTRL_USR_WRLK_1	BIT(1)
46 #define ZYNQMP_EFUSE_MISC_USER_CTRL_USR_WRLK_2	BIT(2)
47 #define ZYNQMP_EFUSE_MISC_USER_CTRL_USR_WRLK_3	BIT(3)
48 #define ZYNQMP_EFUSE_MISC_USER_CTRL_USR_WRLK_4	BIT(4)
49 #define ZYNQMP_EFUSE_MISC_USER_CTRL_USR_WRLK_5	BIT(5)
50 #define ZYNQMP_EFUSE_MISC_USER_CTRL_USR_WRLK_6	BIT(6)
51 #define ZYNQMP_EFUSE_MISC_USER_CTRL_USR_WRLK_7	BIT(7)
52 
53 #define ZYNQMP_EFUSE_SEC_CTRL_OFFSET 0x58
54 #define ZYNQMP_EFUSE_SEC_CTRL_LENGTH 4
55 
56 #endif /*__DRIVERS_ZYNQMP_EFUSE_H__*/
57