soc: rk3568: Port to HWMv2
Ports the rk3568 SoC configuration to hardware model version 2 Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
zephyr_sources_ifdef(CONFIG_ARM_MMU mmu_regions.c)
|
||||
@@ -1,10 +0,0 @@
|
||||
# Copyright 2022 HNU-ESNL
|
||||
# Copyright 2022 openEuler SIG-Zephyrs
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_SERIES_RK3568
|
||||
bool "Rockchip RK3568 Series"
|
||||
select ARM64
|
||||
select SOC_FAMILY_ROCKCHIP
|
||||
help
|
||||
Enable support for RK3568 Series.
|
||||
@@ -1,7 +0,0 @@
|
||||
/*
|
||||
* Copyright 2020 NXP
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/arch/arm64/scripts/linker.ld>
|
||||
7
soc/v2/rockchip/CMakeLists.txt
Normal file
7
soc/v2/rockchip/CMakeLists.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
# Copyright 2021 Huawei France Technologies SASU
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
add_subdirectory(${SOC_SERIES})
|
||||
7
soc/v2/rockchip/Kconfig
Normal file
7
soc/v2/rockchip/Kconfig
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
# Copyright 2021 Huawei France Technologies SASU
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
rsource "*/Kconfig"
|
||||
11
soc/v2/rockchip/Kconfig.defconfig
Normal file
11
soc/v2/rockchip/Kconfig.defconfig
Normal file
@@ -0,0 +1,11 @@
|
||||
#
|
||||
# Copyright 2021 Huawei France Technologies SASU
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
if SOC_FAMILY_ROCKCHIP
|
||||
|
||||
rsource "*/Kconfig.defconfig"
|
||||
|
||||
endif
|
||||
13
soc/v2/rockchip/Kconfig.soc
Normal file
13
soc/v2/rockchip/Kconfig.soc
Normal file
@@ -0,0 +1,13 @@
|
||||
#
|
||||
# Copyright 2021 Huawei France Technologies SASU
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
config SOC_FAMILY_ROCKCHIP
|
||||
bool
|
||||
|
||||
config SOC_FAMILY
|
||||
default "rockchip" if SOC_FAMILY_ROCKCHIP
|
||||
|
||||
rsource "*/Kconfig.soc"
|
||||
5
soc/v2/rockchip/rk3568/CMakeLists.txt
Normal file
5
soc/v2/rockchip/rk3568/CMakeLists.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
zephyr_sources_ifdef(CONFIG_ARM_MMU mmu_regions.c)
|
||||
|
||||
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm64/scripts/linker.ld CACHE INTERNAL "")
|
||||
@@ -2,15 +2,8 @@
|
||||
# Copyright 2022 openEuler SIG-Zephyr
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
choice
|
||||
prompt "Rockchip RK3568 SoC"
|
||||
depends on SOC_SERIES_RK3568
|
||||
|
||||
config SOC_RK3568
|
||||
bool "Rockchip rk3568"
|
||||
config SOC_SERIES_RK3568
|
||||
select ARM64
|
||||
select CPU_CORTEX_A55
|
||||
select ARM_ARCH_TIMER
|
||||
select GIC_V3
|
||||
|
||||
endchoice
|
||||
@@ -4,9 +4,6 @@
|
||||
|
||||
if SOC_SERIES_RK3568
|
||||
|
||||
config SOC_SERIES
|
||||
default "rk3568"
|
||||
|
||||
source "soc/arm64/rockchip/rk3568/Kconfig.defconfig.rk3568"
|
||||
rsource "Kconfig.defconfig.rk3568"
|
||||
|
||||
endif # SOC_SERIES_RK3568
|
||||
@@ -4,9 +4,6 @@
|
||||
|
||||
if SOC_RK3568
|
||||
|
||||
config SOC
|
||||
default "rk3568"
|
||||
|
||||
config FLASH_SIZE
|
||||
default 0
|
||||
|
||||
20
soc/v2/rockchip/rk3568/Kconfig.soc
Normal file
20
soc/v2/rockchip/rk3568/Kconfig.soc
Normal file
@@ -0,0 +1,20 @@
|
||||
# Copyright 2022 HNU-ESNL
|
||||
# Copyright 2022 openEuler SIG-Zephyr
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_SERIES_RK3568
|
||||
bool
|
||||
select SOC_FAMILY_ROCKCHIP
|
||||
|
||||
config SOC_RK3568
|
||||
bool
|
||||
select SOC_SERIES_RK3568
|
||||
|
||||
config SOC
|
||||
default "rk3568" if SOC_RK3568
|
||||
|
||||
config SOC_SERIES
|
||||
default "rk3568" if SOC_RK3568
|
||||
|
||||
config SOC_PART_NUMBER
|
||||
default "RK3568" if SOC_SERIES_RK3568
|
||||
4
soc/v2/rockchip/soc.yml
Normal file
4
soc/v2/rockchip/soc.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
series:
|
||||
- name: rk3568
|
||||
socs:
|
||||
- name: rk3568
|
||||
Reference in New Issue
Block a user