1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2014 Steven Lawrance <stl@koffein.net>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $FreeBSD$
29 */
30
31 #ifndef FSL_OCOTPREG_H
32 #define FSL_OCOTPREG_H
33
34 #define FSL_OCOTP_CTRL 0x000
35 #define FSL_OCOTP_CTRL_SET 0x004
36 #define FSL_OCOTP_CTRL_CLR 0x008
37 #define FSL_OCOTP_CTRL_TOG 0x00C
38 #define FSL_OCOTP_TIMING 0x010
39 #define FSL_OCOTP_DATA 0x020
40 #define FSL_OCOTP_READ_CTRL 0x030
41 #define FSL_OCOTP_READ_FUSE_DATA 0x040
42 #define FSL_OCOTP_SW_STICKY 0x050
43 #define FSL_OCOTP_SCS 0x060
44 #define FSL_OCOTP_SCS_SET 0x064
45 #define FSL_OCOTP_SCS_CLR 0x068
46 #define FSL_OCOTP_SCS_TOG 0x06C
47 #define FSL_OCOTP_VERSION 0x090
48 #define FSL_OCOTP_LOCK 0x400
49 #define FSL_OCOTP_CFG0 0x410
50 #define FSL_OCOTP_CFG1 0x420
51 #define FSL_OCOTP_CFG2 0x430
52 #define FSL_OCOTP_CFG3 0x440
53 #define FSL_OCOTP_CFG3_SPEED_SHIFT 16
54 #define FSL_OCOTP_CFG3_SPEED_MASK \
55 (0x03 << FSL_OCOTP_CFG3_SPEED_SHIFT)
56 #define FSL_OCOTP_CFG3_SPEED_792MHZ 0
57 #define FSL_OCOTP_CFG3_SPEED_852MHZ 1
58 #define FSL_OCOTP_CFG3_SPEED_996MHZ 2
59 #define FSL_OCOTP_CFG3_SPEED_1200MHZ 3
60 #define FSL_OCOTP_CFG4 0x450
61 #define FSL_OCOTP_CFG5 0x460
62 #define FSL_OCOTP_CFG6 0x470
63 #define FSL_OCOTP_MEM0 0x480
64 #define FSL_OCOTP_MEM1 0x490
65 #define FSL_OCOTP_MEM2 0x4A0
66 #define FSL_OCOTP_MEM3 0x4B0
67 #define FSL_OCOTP_ANA0 0x4D0
68 #define FSL_OCOTP_ANA1 0x4E0
69 #define FSL_OCOTP_ANA2 0x4F0
70 #define FSL_OCOTP_SRK0 0x580
71 #define FSL_OCOTP_SRK1 0x590
72 #define FSL_OCOTP_SRK2 0x5A0
73 #define FSL_OCOTP_SRK3 0x5B0
74 #define FSL_OCOTP_SRK4 0x5C0
75 #define FSL_OCOTP_SRK5 0x5D0
76 #define FSL_OCOTP_SRK6 0x5E0
77 #define FSL_OCOTP_SRK7 0x5F0
78 #define FSL_OCOTP_HSJC_RESP0 0x600
79 #define FSL_OCOTP_HSJC_RESP1 0x610
80 #define FSL_OCOTP_MAC0 0x620
81 #define FSL_OCOTP_MAC1 0x630
82 #define FSL_OCOTP_GP1 0x660
83 #define FSL_OCOTP_GP2 0x670
84 #define FSL_OCOTP_MISC_CONF 0x6D0
85 #define FSL_OCOTP_FIELD_RETURN 0x6E0
86 #define FSL_OCOTP_SRK_REVOKE 0x6F0
87
88 #define FSL_OCOTP_LAST_REG FSL_OCOTP_SRK_REVOKE
89
90 #endif
Cache object: 797cf7aa90d84c63ecfea20e6383cf84
|