12fe4e5f8Sopenharmony_ci/*
22fe4e5f8Sopenharmony_ci * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
32fe4e5f8Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
42fe4e5f8Sopenharmony_ci * you may not use this file except in compliance with the License.
52fe4e5f8Sopenharmony_ci * You may obtain a copy of the License at
62fe4e5f8Sopenharmony_ci *
72fe4e5f8Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
82fe4e5f8Sopenharmony_ci *
92fe4e5f8Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
102fe4e5f8Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
112fe4e5f8Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
122fe4e5f8Sopenharmony_ci * See the License for the specific language governing permissions and
132fe4e5f8Sopenharmony_ci * limitations under the License.
142fe4e5f8Sopenharmony_ci */
152fe4e5f8Sopenharmony_ci
162fe4e5f8Sopenharmony_ci#ifndef __BOARD_CONFIG_H__
172fe4e5f8Sopenharmony_ci#define __BOARD_CONFIG_H__
182fe4e5f8Sopenharmony_ci
192fe4e5f8Sopenharmony_ci
202fe4e5f8Sopenharmony_ci#ifdef __cplusplus
212fe4e5f8Sopenharmony_ci#if __cplusplus
222fe4e5f8Sopenharmony_ciextern "C" {
232fe4e5f8Sopenharmony_ci#endif /* __cplusplus */
242fe4e5f8Sopenharmony_ci#endif /* __cplusplus */
252fe4e5f8Sopenharmony_ci
262fe4e5f8Sopenharmony_ci/* physical memory base and size */
272fe4e5f8Sopenharmony_ci#define DDR_MEM_ADDR            0x40000000
282fe4e5f8Sopenharmony_ci#define DDR_MEM_SIZE            0x04000000
292fe4e5f8Sopenharmony_ci
302fe4e5f8Sopenharmony_ci/* Peripheral register address base and size */
312fe4e5f8Sopenharmony_ci#define PERIPH_PMM_BASE         0x10000000
322fe4e5f8Sopenharmony_ci#define PERIPH_PMM_SIZE         0x10000000
332fe4e5f8Sopenharmony_ci
342fe4e5f8Sopenharmony_ci#define KERNEL_VADDR_BASE       0x40000000
352fe4e5f8Sopenharmony_ci#define KERNEL_VADDR_SIZE       DDR_MEM_SIZE
362fe4e5f8Sopenharmony_ci
372fe4e5f8Sopenharmony_ci#define SYS_MEM_BASE            DDR_MEM_ADDR
382fe4e5f8Sopenharmony_ci#define SYS_MEM_SIZE_DEFAULT    0x2000000
392fe4e5f8Sopenharmony_ci#define SYS_MEM_END             (SYS_MEM_BASE + SYS_MEM_SIZE_DEFAULT)
402fe4e5f8Sopenharmony_ci
412fe4e5f8Sopenharmony_ci#define EXC_INTERACT_MEM_SIZE        0x100000
422fe4e5f8Sopenharmony_ci
432fe4e5f8Sopenharmony_ci#ifdef __cplusplus
442fe4e5f8Sopenharmony_ci#if __cplusplus
452fe4e5f8Sopenharmony_ci}
462fe4e5f8Sopenharmony_ci#endif /* __cplusplus */
472fe4e5f8Sopenharmony_ci#endif /* __cplusplus */
482fe4e5f8Sopenharmony_ci
492fe4e5f8Sopenharmony_ci#endif
50