From f4597391a17cecad893e94871856d30fa8a4770f Mon Sep 17 00:00:00 2001 From: Drew Moseley Date: Fri, 23 Jun 2023 20:37:02 -0400 Subject: [PATCH] Add support for raspberrypi0-2w-64 Signed-off-by: Drew Moseley --- conf/machine/include/raspberrypi0-2w-64.inc | 3 +++ .../linux/files/raspberrypi0-2w-64.cfg | 22 +++++++++++++++++++ scripts/setup-environment-internal | 2 +- 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 conf/machine/include/raspberrypi0-2w-64.inc create mode 100644 recipes-kernel/linux/files/raspberrypi0-2w-64.cfg diff --git a/conf/machine/include/raspberrypi0-2w-64.inc b/conf/machine/include/raspberrypi0-2w-64.inc new file mode 100644 index 00000000..07cd4933 --- /dev/null +++ b/conf/machine/include/raspberrypi0-2w-64.inc @@ -0,0 +1,3 @@ +require raspberrypi3-64.inc + +KERNEL_DEVICETREE:raspberrypi0-2w-64:sota ?= " broadcom/bcm2710-rpi-zero-2.dtb overlays/vc4-fkms-v3d.dtbo overlays/rpi-ft5406.dtbo" diff --git a/recipes-kernel/linux/files/raspberrypi0-2w-64.cfg b/recipes-kernel/linux/files/raspberrypi0-2w-64.cfg new file mode 100644 index 00000000..fada48e3 --- /dev/null +++ b/recipes-kernel/linux/files/raspberrypi0-2w-64.cfg @@ -0,0 +1,22 @@ +CONFIG_I2C_ALGOBIT=y +CONFIG_CEC_CORE=y +CONFIG_DRM=y +# CONFIG_DRM_DEBUG_MM is not set +CONFIG_DRM_KMS_HELPER=y +CONFIG_DRM_SCHED=y +CONFIG_DRM_V3D=y +CONFIG_SND=y +CONFIG_SND_SOC=y +CONFIG_SND_BCM2835=y +CONFIG_DRM_VC4=y +CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y +CONFIG_FB_CFB_FILLRECT=y +CONFIG_FB_CFB_COPYAREA=y +CONFIG_FB_CFB_IMAGEBLIT=y +CONFIG_FB_SYS_FILLRECT=y +CONFIG_FB_SYS_COPYAREA=y +CONFIG_FB_SYS_IMAGEBLIT=y +CONFIG_FB_SYS_FOPS=y +CONFIG_BACKLIGHT_CLASS_DEVICE=y +CONFIG_DRM_PANEL_SIMPLE=y +CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN=y diff --git a/scripts/setup-environment-internal b/scripts/setup-environment-internal index 0b942061..517f554c 100755 --- a/scripts/setup-environment-internal +++ b/scripts/setup-environment-internal @@ -112,7 +112,7 @@ fi # Create a common list of "()", sorted by # Blacklist unsupported machines of TorizonCore MACHLAYERS=$(find layers/ -print | grep "conf/machine/.*\.conf" | - grep -E '(apalis.*\.conf|colibri.*\.conf|verdin.*\.conf|qemuarm64\.conf|genericx86-64\.conf|raspberrypi4-64\.conf|raspberrypi3-64\.conf|intel-corei7-64\.conf|nezha-allwinner-d1\.conf|beaglebone-yocto\.conf|beagleplay\.conf)' | + grep -E '(apalis.*\.conf|colibri.*\.conf|verdin.*\.conf|qemuarm64\.conf|genericx86-64\.conf|raspberrypi4-64\.conf|raspberrypi3-64\.conf|raspberrypi0-2w-64\.conf|intel-corei7-64\.conf|nezha-allwinner-d1\.conf|beaglebone-yocto\.conf|beagleplay\.conf)' | grep -E -v '(imx7-nand|colibri-vf|tk1|colibri-imx7|colibri-imx6ull|verdin-am62-k3r5)\.conf' | sed -e 's/\.conf//g' -e 's/layers\///' | awk -F'/conf/machine/' '{print $NF "(" $1 ")"}' | LC_ALL=C sort)