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:
Jaxson Han 2020-11-23 15:57:21 +08:00 committed by Anas Nashif
parent 36006ed1ba
commit ade060ed1f
11 changed files with 110 additions and 0 deletions

View file

@ -58,6 +58,7 @@
/soc/arm64/bcm_vk/ @abhishek-brcm /soc/arm64/bcm_vk/ @abhishek-brcm
/soc/arm64/nxp_layerscape/ @JiafeiPan /soc/arm64/nxp_layerscape/ @JiafeiPan
/soc/arm64/xenvm/ @lorc /soc/arm64/xenvm/ @lorc
/soc/arm64/arm/ @povergoing
/arch/x86/ @jhedberg @nashif @jenmwms @aasthagr /arch/x86/ @jhedberg @nashif @jenmwms @aasthagr
/arch/nios2/ @nashif /arch/nios2/ @nashif
/arch/posix/ @aescolar @daor-oti /arch/posix/ @aescolar @daor-oti

View 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
View 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

View 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"

View 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"

View file

@ -0,0 +1,2 @@
# Copyright (c) 2021 Arm Limited (or its affiliates). All rights reserved.
# SPDX-License-Identifier: Apache-2.0

View 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

View 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

View 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

View 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>

View 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_ */