soc: arm64: Add FVP AEMv8R AArch64 soc
Add essential files to create a new soc. Introduce a new type of soc series named fvp_aemv8r. Add a new soc named fvp_aemv8r_aarch64. Signed-off-by: Jaxson Han <jaxson.han@arm.com>
This commit is contained in:
parent
36006ed1ba
commit
ade060ed1f
|
@ -58,6 +58,7 @@
|
|||
/soc/arm64/bcm_vk/ @abhishek-brcm
|
||||
/soc/arm64/nxp_layerscape/ @JiafeiPan
|
||||
/soc/arm64/xenvm/ @lorc
|
||||
/soc/arm64/arm/ @povergoing
|
||||
/arch/x86/ @jhedberg @nashif @jenmwms @aasthagr
|
||||
/arch/nios2/ @nashif
|
||||
/arch/posix/ @aescolar @daor-oti
|
||||
|
|
4
soc/arm64/arm/CMakeLists.txt
Normal file
4
soc/arm64/arm/CMakeLists.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Copyright (c) 2021 Arm Limited (or its affiliates). All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_subdirectory(${SOC_SERIES})
|
16
soc/arm64/arm/Kconfig
Normal file
16
soc/arm64/arm/Kconfig
Normal file
|
@ -0,0 +1,16 @@
|
|||
# ARM LTD SoC configuration options
|
||||
|
||||
# Copyright (c) 2016 Linaro Limited
|
||||
# Copyright (c) 2021 Arm Limited (or its affiliates). All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_FAMILY_ARM64
|
||||
bool
|
||||
|
||||
if SOC_FAMILY_ARM64
|
||||
config SOC_FAMILY
|
||||
string
|
||||
default "arm"
|
||||
|
||||
source "soc/arm64/arm/*/Kconfig.soc"
|
||||
endif # SOC_FAMILY_ARM
|
7
soc/arm64/arm/Kconfig.defconfig
Normal file
7
soc/arm64/arm/Kconfig.defconfig
Normal file
|
@ -0,0 +1,7 @@
|
|||
# ARM LTD SoC configuration options
|
||||
|
||||
# Copyright (c) 2016 Linaro Limited
|
||||
# Copyright (c) 2021 Arm Limited (or its affiliates). All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
source "soc/arm64/arm/*/Kconfig.defconfig.series"
|
7
soc/arm64/arm/Kconfig.soc
Normal file
7
soc/arm64/arm/Kconfig.soc
Normal file
|
@ -0,0 +1,7 @@
|
|||
# ARM LTD SoC configuration options
|
||||
|
||||
# Copyright (c) 2016 Linaro Limited
|
||||
# Copyright (c) 2021 Arm Limited (or its affiliates). All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
source "soc/arm64/arm/*/Kconfig.series"
|
2
soc/arm64/arm/fvp_aemv8r/CMakeLists.txt
Normal file
2
soc/arm64/arm/fvp_aemv8r/CMakeLists.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Copyright (c) 2021 Arm Limited (or its affiliates). All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
31
soc/arm64/arm/fvp_aemv8r/Kconfig.defconfig.series
Normal file
31
soc/arm64/arm/fvp_aemv8r/Kconfig.defconfig.series
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Copyright (c) 2021 Arm Limited (or its affiliates). All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_SERIES_FVP_AEMV8R
|
||||
|
||||
config SOC_SERIES
|
||||
default "fvp_aemv8r"
|
||||
|
||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||
default 100000000
|
||||
|
||||
config NUM_IRQS
|
||||
default 128
|
||||
|
||||
if SOC_FVP_AEMV8R_AARCH64
|
||||
|
||||
config SOC
|
||||
default "fvp_aemv8r_aarch64"
|
||||
|
||||
# Workaround for not being able to have commas in macro arguments
|
||||
DT_CHOSEN_Z_FLASH := zephyr,flash
|
||||
|
||||
config FLASH_SIZE
|
||||
default $(dt_chosen_reg_size_int,$(DT_CHOSEN_Z_FLASH),0,K)
|
||||
|
||||
config FLASH_BASE_ADDRESS
|
||||
default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_FLASH))
|
||||
|
||||
endif # SOC_FVP_AEMV8R_AARCH64
|
||||
|
||||
endif # SOC_SERIES_FVP_AEMV8R
|
9
soc/arm64/arm/fvp_aemv8r/Kconfig.series
Normal file
9
soc/arm64/arm/fvp_aemv8r/Kconfig.series
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Copyright (c) 2021 Arm Limited (or its affiliates). All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_SERIES_FVP_AEMV8R
|
||||
bool "ARM FVP AEMv8R AArch64 Series"
|
||||
select ARM64
|
||||
select SOC_FAMILY_ARM64
|
||||
help
|
||||
Enable support for ARM FVP AEMv8R AArch64 Series
|
14
soc/arm64/arm/fvp_aemv8r/Kconfig.soc
Normal file
14
soc/arm64/arm/fvp_aemv8r/Kconfig.soc
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Copyright (c) 2021 Arm Limited (or its affiliates). All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
choice
|
||||
prompt "ARM FVP AEMv8R AArch64 SoCs"
|
||||
depends on SOC_SERIES_FVP_AEMV8R
|
||||
|
||||
config SOC_FVP_AEMV8R_AARCH64
|
||||
bool "ARM FVP AEMv8R aarch64 simulation"
|
||||
select CPU_CORTEX_R82
|
||||
select GIC_V3
|
||||
select GIC_SINGLE_SECURITY_STATE
|
||||
|
||||
endchoice
|
8
soc/arm64/arm/fvp_aemv8r/linker.ld
Normal file
8
soc/arm64/arm/fvp_aemv8r/linker.ld
Normal file
|
@ -0,0 +1,8 @@
|
|||
/*
|
||||
* linker.ld - Linker command/script file
|
||||
*
|
||||
* Copyright (c) 2021 Arm Limited (or its affiliates). All rights reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <arch/arm64/scripts/linker.ld>
|
11
soc/arm64/arm/fvp_aemv8r/soc.h
Normal file
11
soc/arm64/arm/fvp_aemv8r/soc.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* Copyright (c) 2021 Arm Limited (or its affiliates). All rights reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef _SOC_H_
|
||||
#define _SOC_H_
|
||||
|
||||
#include <devicetree.h>
|
||||
|
||||
#endif /* _SOC_H_ */
|
Loading…
Reference in a new issue