xref: /netbsd-src/sys/arch/arm/nxp/imx6_platform.h (revision 8644267a503e0f573f2833152303dbf2ce4aca52)
1*8644267aSskrll /*	$NetBSD: imx6_platform.h,v 1.1 2020/12/23 14:42:38 skrll Exp $	*/
2*8644267aSskrll /*-
3*8644267aSskrll  * Copyright (c) 2019 Genetec Corporation.  All rights reserved.
4*8644267aSskrll  * Written by Hashimoto Kenichi for Genetec Corporation.
5*8644267aSskrll  *
6*8644267aSskrll  * Redistribution and use in source and binary forms, with or without
7*8644267aSskrll  * modification, are permitted provided that the following conditions
8*8644267aSskrll  * are met:
9*8644267aSskrll  * 1. Redistributions of source code must retain the above copyright
10*8644267aSskrll  *    notice, this list of conditions and the following disclaimer.
11*8644267aSskrll  * 2. Redistributions in binary form must reproduce the above copyright
12*8644267aSskrll  *    notice, this list of conditions and the following disclaimer in the
13*8644267aSskrll  *    documentation and/or other materials provided with the distribution.
14*8644267aSskrll  *
15*8644267aSskrll  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16*8644267aSskrll  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17*8644267aSskrll  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18*8644267aSskrll  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19*8644267aSskrll  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
20*8644267aSskrll  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21*8644267aSskrll  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
22*8644267aSskrll  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23*8644267aSskrll  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24*8644267aSskrll  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25*8644267aSskrll  * SUCH DAMAGE.
26*8644267aSskrll  */
27*8644267aSskrll #ifndef _ARM_NXP_IMX6_PLATFORM_H
28*8644267aSskrll #define _ARM_NXP_IMX6_PLATFORM_H
29*8644267aSskrll 
30*8644267aSskrll #include <arch/evbarm/fdt/platform.h>
31*8644267aSskrll 
32*8644267aSskrll #define	KERNEL_IO_IOREG_VBASE		KERNEL_IO_VBASE
33*8644267aSskrll #define	KERNEL_IO_ARMCORE_VBASE		(KERNEL_IO_IOREG_VBASE + IMX6_IOREG_SIZE)
34*8644267aSskrll 
35*8644267aSskrll #endif /* _ARM_NXP_IMX6_PLATFORM_H */
36