1/*
2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16#ifndef __BOARD_CONFIG_H__
17#define __BOARD_CONFIG_H__
18
19
20#ifdef __cplusplus
21#if __cplusplus
22extern "C" {
23#endif /* __cplusplus */
24#endif /* __cplusplus */
25
26/* physical memory base and size */
27#define DDR_MEM_ADDR            0x40000000
28#define DDR_MEM_SIZE            0x04000000
29
30/* Peripheral register address base and size */
31#define PERIPH_PMM_BASE         0x10000000
32#define PERIPH_PMM_SIZE         0x10000000
33
34#define KERNEL_VADDR_BASE       0x40000000
35#define KERNEL_VADDR_SIZE       DDR_MEM_SIZE
36
37#define SYS_MEM_BASE            DDR_MEM_ADDR
38#define SYS_MEM_SIZE_DEFAULT    0x2000000
39#define SYS_MEM_END             (SYS_MEM_BASE + SYS_MEM_SIZE_DEFAULT)
40
41#define EXC_INTERACT_MEM_SIZE        0x100000
42
43#ifdef __cplusplus
44#if __cplusplus
45}
46#endif /* __cplusplus */
47#endif /* __cplusplus */
48
49#endif
50