1261938Sian/*-
2261938Sian * Copyright (c) 2014 Steven Lawrance <stl@koffein.net>
3261938Sian * All rights reserved.
4261938Sian *
5261938Sian * Redistribution and use in source and binary forms, with or without
6261938Sian * modification, are permitted provided that the following conditions
7261938Sian * are met:
8261938Sian * 1. Redistributions of source code must retain the above copyright
9261938Sian *    notice, this list of conditions and the following disclaimer.
10261938Sian * 2. Redistributions in binary form must reproduce the above copyright
11261938Sian *    notice, this list of conditions and the following disclaimer in the
12261938Sian *    documentation and/or other materials provided with the distribution.
13261938Sian *
14261938Sian * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15261938Sian * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16261938Sian * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17261938Sian * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18261938Sian * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19261938Sian * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20261938Sian * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21261938Sian * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22261938Sian * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23261938Sian * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24261938Sian * SUCH DAMAGE.
25261938Sian *
26261938Sian * $FreeBSD: releng/11.0/sys/arm/freescale/fsl_ocotpreg.h 261956 2014-02-16 03:09:39Z ian $
27261938Sian */
28261938Sian
29261946Sian#ifndef	FSL_OCOTPREG_H
30261946Sian#define	FSL_OCOTPREG_H
31261938Sian
32261946Sian#define	FSL_OCOTP_CTRL				0x000
33261946Sian#define	FSL_OCOTP_CTRL_SET			0x004
34261946Sian#define	FSL_OCOTP_CTRL_CLR			0x008
35261946Sian#define	FSL_OCOTP_CTRL_TOG			0x00C
36261946Sian#define	FSL_OCOTP_TIMING			0x010
37261946Sian#define	FSL_OCOTP_DATA				0x020
38261946Sian#define	FSL_OCOTP_READ_CTRL			0x030
39261946Sian#define	FSL_OCOTP_READ_FUSE_DATA		0x040
40261946Sian#define	FSL_OCOTP_SW_STICKY			0x050
41261946Sian#define	FSL_OCOTP_SCS				0x060
42261946Sian#define	FSL_OCOTP_SCS_SET			0x064
43261946Sian#define	FSL_OCOTP_SCS_CLR			0x068
44261946Sian#define	FSL_OCOTP_SCS_TOG			0x06C
45261946Sian#define	FSL_OCOTP_VERSION			0x090
46261946Sian#define	FSL_OCOTP_LOCK				0x400
47261946Sian#define	FSL_OCOTP_CFG0				0x410
48261946Sian#define	FSL_OCOTP_CFG1				0x420
49261946Sian#define	FSL_OCOTP_CFG2				0x430
50261946Sian#define	FSL_OCOTP_CFG3				0x440
51261956Sian#define	  FSL_OCOTP_CFG3_SPEED_SHIFT		  16
52261956Sian#define	  FSL_OCOTP_CFG3_SPEED_MASK		  \
53261956Sian    (0x03 << FSL_OCOTP_CFG3_SPEED_SHIFT)
54261956Sian#define	  FSL_OCOTP_CFG3_SPEED_792MHZ		  0
55261956Sian#define	  FSL_OCOTP_CFG3_SPEED_852MHZ		  1
56261956Sian#define	  FSL_OCOTP_CFG3_SPEED_996MHZ		  2
57261956Sian#define	  FSL_OCOTP_CFG3_SPEED_1200MHZ		  3
58261946Sian#define	FSL_OCOTP_CFG4				0x450
59261946Sian#define	FSL_OCOTP_CFG5				0x460
60261946Sian#define	FSL_OCOTP_CFG6				0x470
61261946Sian#define	FSL_OCOTP_MEM0				0x480
62261946Sian#define	FSL_OCOTP_MEM1				0x490
63261946Sian#define	FSL_OCOTP_MEM2				0x4A0
64261946Sian#define	FSL_OCOTP_MEM3				0x4B0
65261946Sian#define	FSL_OCOTP_ANA0				0x4D0
66261946Sian#define	FSL_OCOTP_ANA1				0x4E0
67261946Sian#define	FSL_OCOTP_ANA2				0x4F0
68261946Sian#define	FSL_OCOTP_SRK0				0x580
69261946Sian#define	FSL_OCOTP_SRK1				0x590
70261946Sian#define	FSL_OCOTP_SRK2				0x5A0
71261946Sian#define	FSL_OCOTP_SRK3				0x5B0
72261946Sian#define	FSL_OCOTP_SRK4				0x5C0
73261946Sian#define	FSL_OCOTP_SRK5				0x5D0
74261946Sian#define	FSL_OCOTP_SRK6				0x5E0
75261946Sian#define	FSL_OCOTP_SRK7				0x5F0
76261946Sian#define	FSL_OCOTP_HSJC_RESP0			0x600
77261946Sian#define	FSL_OCOTP_HSJC_RESP1			0x610
78261946Sian#define	FSL_OCOTP_MAC0				0x620
79261946Sian#define	FSL_OCOTP_MAC1				0x630
80261946Sian#define	FSL_OCOTP_GP1				0x660
81261946Sian#define	FSL_OCOTP_GP2				0x670
82261946Sian#define	FSL_OCOTP_MISC_CONF			0x6D0
83261946Sian#define	FSL_OCOTP_FIELD_RETURN			0x6E0
84261946Sian#define	FSL_OCOTP_SRK_REVOKE			0x6F0
85261938Sian
86261946Sian#define	FSL_OCOTP_LAST_REG			FSL_OCOTP_SRK_REVOKE
87261938Sian
88261938Sian#endif
89