1/*	$NetBSD: imx51_tzicreg.h,v 1.1 2010/11/13 07:11:03 bsh Exp $	*/
2/*
3 * Copyright (c) 2010  Genetec Corporation.  All rights reserved.
4 * Written by Hashimoto Kenichi for Genetec Corporation.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 *    notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 *    notice, this list of conditions and the following disclaimer in the
13 *    documentation and/or other materials provided with the distribution.
14 *
15 * THIS SOFTWARE IS PROVIDED BY GENETEC CORPORATION ``AS IS'' AND
16 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL GENETEC CORPORATION
19 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 * POSSIBILITY OF SUCH DAMAGE.
26 */
27#ifndef _ARM_IMX_IMX51_TZICREG_H_
28#define	_ARM_IMX_IMX51_TZICREG_H_
29
30#include <sys/cdefs.h>
31
32#define	TZIC_SIZE		0x4000
33#define	TZIC_INTCNTL		0x0000
34#define	 INTCNTL_NSEN_MASK	__BIT(31)
35#define	 INTCNTL_NSEN		__BIT(16)
36#define	 INTCNTL_EN		__BIT(0)
37#define	TZIC_INTTYPE		0x0004
38#define	TZIC_PRIOMASK		0x000c
39#define	TZIC_SYNCCTRL		0x0010
40#define	TZIC_DSMINT		0x0014
41#define	TZIC_INTSEC(n)		(0x0080 + 0x04 * (n))
42#define	TZIC_ENSET(n)		(0x0100 + 0x04 * (n))
43#define	TZIC_ENCLEAR(n)		(0x0180 + 0x04 * (n))
44#define	TZIC_SRCSET(n)		(0x0200 + 0x04 * (n))
45#define	TZIC_SRCCLAR(n)		(0x0280 + 0x04 * (n))
46#define	TZIC_PRIORITY(n)	(0x0400 + 0x04 * (n))
47#define	TZIC_PND(n)		(0x0d00 + 0x04 * (n))
48#define	TZIC_HIPND(n)		(0x0d80 + 0x04 * (n))
49#define	TZIC_WAKEUP(n)		(0x0e00 + 0x04 * (n))
50#define	TZIC_SWINT		0x0f00
51
52#define	TZIC_INTNUM		128
53#endif /* _ARM_IMX_IMX51_TZICREG_H_ */
54