mirror of
git://git.yoctoproject.org/meta-rockchip.git
synced 2025-07-05 05:04:47 +02:00
add support for PX30 SoC
Rockchip PX30 SoC is a quad-core ARM Cortex-A35 CPU fully implementing the ARMv8-A instruction set with ARM Neon Advanced SIMD and Cryptography Extensions. This adds a base configuration file which can be included by PX30-based boards and the required changes in U-Boot and TF-A for proper support. Cc: Quentin Schulz <foss+yocto@0leil.net> Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
This commit is contained in:
parent
e8e4b39b8b
commit
f2b4e6efde
21
conf/machine/include/px30.inc
Normal file
21
conf/machine/include/px30.inc
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Copyright (C) 2022 Theobroma Systems Design und Consulting
|
||||
# Released under the MIT license (see COPYING.MIT for the terms)
|
||||
|
||||
SOC_FAMILY = "px30"
|
||||
|
||||
DEFAULTTUNE ?= "cortexa35-crypto"
|
||||
|
||||
require conf/machine/include/soc-family.inc
|
||||
require conf/machine/include/arm/armv8a/tune-cortexa35.inc
|
||||
require conf/machine/include/rockchip-defaults.inc
|
||||
require conf/machine/include/rockchip-wic.inc
|
||||
|
||||
KBUILD_DEFCONFIG ?= "defconfig"
|
||||
KERNEL_CLASSES = "kernel-fitimage"
|
||||
KERNEL_IMAGETYPE = "fitImage"
|
||||
|
||||
TFA_PLATFORM = "px30"
|
||||
TFA_BUILD_TARGET = "bl31"
|
||||
|
||||
UBOOT_SUFFIX ?= "itb"
|
||||
UBOOT_ENTRYPOINT ?= "0x06000000"
|
|
@ -4,6 +4,7 @@ DEPENDS:append:rk3399 = " virtual/arm-none-eabi-gcc-native"
|
|||
|
||||
COMPATIBLE_MACHINE:append:rk3399 = "|rk3399"
|
||||
COMPATIBLE_MACHINE:append:rk3328 = "|rk3328"
|
||||
COMPATIBLE_MACHINE:append:px30 = "|px30"
|
||||
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
|
||||
SRC_URI += "\
|
||||
|
@ -26,4 +27,8 @@ fixup_baudrate:rk3399() {
|
|||
sed -i "s/#define RK3399_BAUDRATE\s\+.*/#define RK3399_BAUDRATE ${RK_CONSOLE_BAUD}/" ${S}/plat/rockchip/rk3399/rk3399_def.h
|
||||
}
|
||||
|
||||
fixup_baudrate:px30() {
|
||||
sed -i "s/#define PX30_BAUDRATE\s\+.*/#define PX30_BAUDRATE ${RK_CONSOLE_BAUD}/" ${S}/plat/rockchip/px30/px30_def.h
|
||||
}
|
||||
|
||||
do_patch[postfuncs] += "fixup_baudrate"
|
||||
|
|
|
@ -11,6 +11,8 @@ EXTRA_OEMAKE:append:rk3399 = " BL31=${DEPLOY_DIR_IMAGE}/bl31-rk3399.elf"
|
|||
ATF_DEPENDS:rk3399 = " trusted-firmware-a:do_deploy"
|
||||
EXTRA_OEMAKE:append:rk3328 = " BL31=${DEPLOY_DIR_IMAGE}/bl31-rk3328.elf"
|
||||
ATF_DEPENDS:rk3328 = " trusted-firmware-a:do_deploy"
|
||||
EXTRA_OEMAKE:append:px30 = " BL31=${DEPLOY_DIR_IMAGE}/bl31-px30.elf"
|
||||
ATF_DEPENDS:px30 = " trusted-firmware-a:do_deploy"
|
||||
|
||||
do_compile[depends] .= "${ATF_DEPENDS}"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user