From c4c91b604bba29ea859e5cdca5a2d0859b3674a2 Mon Sep 17 00:00:00 2001 From: pbiel Date: Thu, 16 Mar 2023 09:52:18 +0100 Subject: [PATCH] Add support for Orange Pi Zero 2 for Kernel 6.x --- conf/machine/include/sun50i-h616.inc | 8 ++++++++ conf/machine/orange-pi-zero2.conf | 13 +++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 conf/machine/include/sun50i-h616.inc create mode 100644 conf/machine/orange-pi-zero2.conf diff --git a/conf/machine/include/sun50i-h616.inc b/conf/machine/include/sun50i-h616.inc new file mode 100644 index 0000000..14bd277 --- /dev/null +++ b/conf/machine/include/sun50i-h616.inc @@ -0,0 +1,8 @@ +require conf/machine/include/sunxi64.inc + +DEFAULTTUNE ?= "cortexa53-crypto" +require conf/machine/include/arm/armv8a/tune-cortexa53.inc + +MACHINEOVERRIDES =. "sun50i:" + +SOC_FAMILY = "sun50i-h616" diff --git a/conf/machine/orange-pi-zero2.conf b/conf/machine/orange-pi-zero2.conf new file mode 100644 index 0000000..f9a2f8a --- /dev/null +++ b/conf/machine/orange-pi-zero2.conf @@ -0,0 +1,13 @@ +#@TYPE: Machine +#@NAME: orange-pi-zero-2 +#@DESCRIPTION: Machine configuration for the orange-pi-zero-2, based on Allwinner H616 CPU + +require conf/machine/include/sun50i-h616.inc + +KERNEL_DEVICETREE = "allwinner/sun50i-h616-orangepi-zero2.dtb" +UBOOT_MACHINE = "orangepi_zero2_defconfig" + +SPL_BINARY = "u-boot-sunxi-with-spl.bin" + +# as for now neither graphics nor audio is supported +MACHINE_FEATURES:remove = "alsa x11 bluetooth wifi"