1271431Sbr/*-
2271431Sbr * Copyright (c) 2014 Ruslan Bukin <br@bsdpad.com>
3271431Sbr * All rights reserved.
4271431Sbr *
5271431Sbr * This software was developed by SRI International and the University of
6271431Sbr * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237)
7271431Sbr * ("CTSRD"), as part of the DARPA CRASH research programme.
8271431Sbr *
9271431Sbr * Redistribution and use in source and binary forms, with or without
10271431Sbr * modification, are permitted provided that the following conditions
11271431Sbr * are met:
12271431Sbr * 1. Redistributions of source code must retain the above copyright
13271431Sbr *    notice, this list of conditions and the following disclaimer.
14271431Sbr * 2. Redistributions in binary form must reproduce the above copyright
15271431Sbr *    notice, this list of conditions and the following disclaimer in the
16271431Sbr *    documentation and/or other materials provided with the distribution.
17271431Sbr *
18271431Sbr * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
19271431Sbr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20271431Sbr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21271431Sbr * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
22271431Sbr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23271431Sbr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24271431Sbr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25271431Sbr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26271431Sbr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27271431Sbr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28271431Sbr * SUCH DAMAGE.
29271431Sbr *
30271431Sbr * $FreeBSD: releng/11.0/sys/arm/altera/socfpga/socfpga_l3regs.h 271431 2014-09-11 18:12:28Z br $
31271431Sbr */
32271431Sbr
33271431Sbr#define	L3REGS_REMAP		0x0	/* Remap */
34271431Sbr#define	 REMAP_LWHPS2FPGA	(1 << 4)
35271431Sbr#define	 REMAP_HPS2FPGA		(1 << 3)
36271431Sbr#define	 REMAP_MPUZERO		(1 << 0)
37271431Sbr#define	L3REGS_L4MAIN		0x8	/* L4 main peripherals security */
38271431Sbr#define	L3REGS_L4SP		0xC	/* L4 SP Peripherals Security */
39271431Sbr#define	L3REGS_L4MP		0x10	/* L4 MP Peripherals Security */
40271431Sbr#define	L3REGS_L4OSC1		0x14	/* L4 OSC1 Peripherals Security */
41271431Sbr#define	L3REGS_L4SPIM		0x18	/* L4 SPIM Peripherals Security */
42271431Sbr#define	L3REGS_STM		0x1C	/* STM Peripheral Security */
43271431Sbr#define	L3REGS_LWHPS2FPGAREGS	0x20	/* LWHPS2FPGA AXI Bridge Security */
44271431Sbr#define	L3REGS_USB1		0x28	/* USB1 Peripheral Security */
45271431Sbr#define	L3REGS_NANDDATA		0x2C	/* NAND Flash Controller Data Sec */
46271431Sbr#define	L3REGS_USB0		0x80	/* USB0 Peripheral Security */
47271431Sbr#define	L3REGS_NANDREGS		0x84	/* NAND Flash Controller Security */
48271431Sbr#define	L3REGS_QSPIDATA		0x88	/* QSPI Flash Controller Data Sec */
49271431Sbr#define	L3REGS_FPGAMGRDATA	0x8C	/* FPGA Manager Data Peripheral Sec */
50271431Sbr#define	L3REGS_HPS2FPGAREGS	0x90	/* HPS2FPGA AXI Bridge Perip. Sec */
51271431Sbr#define	L3REGS_ACP		0x94	/* MPU ACP Peripheral Security */
52271431Sbr#define	L3REGS_ROM		0x98	/* ROM Peripheral Security */
53271431Sbr#define	L3REGS_OCRAM		0x9C	/* On-chip RAM Peripheral Security */
54271431Sbr#define	L3REGS_SDRDATA		0xA0	/* SDRAM Data Peripheral Security */
55