@@ -20,4 +20,7 @@ PREFERRED_PROVIDER_optee-os = "rockchip-rkbin"
UBOOT_SUFFIX ?= "itb"
UBOOT_ENTRYPOINT ?= "0x06000000"
+TFA_PLATFORM = "rk3568"
+TFA_BUILD_TARGET = "bl31"
+
ENABLE_STATELESS_VPU_GST ?= "1"
@@ -20,4 +20,7 @@ PREFERRED_PROVIDER_optee-os = "rockchip-rkbin"
UBOOT_SUFFIX ?= "itb"
UBOOT_ENTRYPOINT ?= "0x06000000"
+TFA_PLATFORM = "rk3568"
+TFA_BUILD_TARGET = "bl31"
+
ENABLE_STATELESS_VPU_GST ?= "1"
@@ -5,6 +5,8 @@ DEPENDS:append:rk3399 = " gcc-arm-none-eabi-native"
COMPATIBLE_MACHINE:append:rk3399 = "|rk3399"
COMPATIBLE_MACHINE:append:rk3328 = "|rk3328"
COMPATIBLE_MACHINE:append:px30 = "|px30"
+COMPATIBLE_MACHINE:append:rk3566 = "|rk3566"
+COMPATIBLE_MACHINE:append:rk3568 = "|rk3568"
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI += "\
@@ -31,4 +33,20 @@ fixup_baudrate:px30() {
sed -i "s/#define PX30_BAUDRATE\s\+.*/#define PX30_BAUDRATE ${RK_CONSOLE_BAUD}/" ${S}/plat/rockchip/px30/px30_def.h
}
+# This is not a typo, rk3566 and rk3568 are supported by the same code base.
+fixup_baudrate:rk3566() {
+ sed -i "s/#define FPGA_BAUDRATE\s\+.*/#define FPGA_BAUDRATE ${RK_CONSOLE_BAUD}/" ${S}/plat/rockchip/rk3568/rk3568_def.h
+}
+
+fixup_baudrate:rk3568() {
+ sed -i "s/#define FPGA_BAUDRATE\s\+.*/#define FPGA_BAUDRATE ${RK_CONSOLE_BAUD}/" ${S}/plat/rockchip/rk3568/rk3568_def.h
+}
+
+# Only required for U-Boot configuration for which SPL_ATF_NO_PLATFORM_PARAM
+# symbol is enabled. This symbol is required for TF-A < 2.4-rc0, which is
+# unfortunately what Rockchip is using for their blob.
+# With upstream TF-A and SPL_ATF_NO_PLATFORM_PARAM disabled in U-Boot, TF-A will
+# get which console to use and at which baudrate from U-Boot directly.
+# If you use upstream U-Boot with SPL_ATF_NO_PLATFORM_PARAM disabled, you can
+# simply override this function to do nothing.
do_patch[postfuncs] += "fixup_baudrate"