xref: /netbsd-src/sys/arch/arm/rockchip/rk3288_platform.h (revision 0147092315289aff59a21718467bc2cb642218fe)
1*01470923Sjmcneill /* $NetBSD: rk3288_platform.h,v 1.1 2021/11/12 22:02:08 jmcneill Exp $ */
2*01470923Sjmcneill 
3*01470923Sjmcneill /*-
4*01470923Sjmcneill  * Copyright (c) 2021 Jared McNeill <jmcneill@invisible.ca>
5*01470923Sjmcneill  * All rights reserved.
6*01470923Sjmcneill  *
7*01470923Sjmcneill  * Redistribution and use in source and binary forms, with or without
8*01470923Sjmcneill  * modification, are permitted provided that the following conditions
9*01470923Sjmcneill  * are met:
10*01470923Sjmcneill  * 1. Redistributions of source code must retain the above copyright
11*01470923Sjmcneill  *    notice, this list of conditions and the following disclaimer.
12*01470923Sjmcneill  * 2. Redistributions in binary form must reproduce the above copyright
13*01470923Sjmcneill  *    notice, this list of conditions and the following disclaimer in the
14*01470923Sjmcneill  *    documentation and/or other materials provided with the distribution.
15*01470923Sjmcneill  *
16*01470923Sjmcneill  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17*01470923Sjmcneill  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18*01470923Sjmcneill  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19*01470923Sjmcneill  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20*01470923Sjmcneill  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21*01470923Sjmcneill  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22*01470923Sjmcneill  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
23*01470923Sjmcneill  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24*01470923Sjmcneill  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25*01470923Sjmcneill  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26*01470923Sjmcneill  * SUCH DAMAGE.
27*01470923Sjmcneill  */
28*01470923Sjmcneill 
29*01470923Sjmcneill #ifndef _ARM_RK3288_PLATFORM_H
30*01470923Sjmcneill #define _ARM_RK3288_PLATFORM_H
31*01470923Sjmcneill 
32*01470923Sjmcneill #include <arch/evbarm/fdt/platform.h>
33*01470923Sjmcneill 
34*01470923Sjmcneill #define	RK3288_CORE_VBASE	KERNEL_IO_VBASE
35*01470923Sjmcneill #define	RK3288_CORE_PBASE	0xff000000
36*01470923Sjmcneill #define	RK3288_CORE_SIZE	0x01000000
37*01470923Sjmcneill 
38*01470923Sjmcneill #define	RK3288_UART_FREQ	24000000
39*01470923Sjmcneill 
40*01470923Sjmcneill #endif /* _ARM_RK3288_PLATFORM_H */
41