From c9bd5418db8834b482d224d5e72414113bbfdc48 Mon Sep 17 00:00:00 2001 From: John Audia Date: Wed, 11 Dec 2024 15:06:30 -0500 Subject: [PATCH] bcm27xx/bcm2712: add rp1 kmods Initial draft at adding the following modules supported by the RP1 I/O controller: rp1, rp1-mailbox, rp1-pio, and pwm-pio-rp1. Signed-off-by: John Audia --- package/kernel/linux/modules/other.mk | 23 +++++++++++++++++++++++ target/linux/bcm27xx/image/Makefile | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index 7b64985fd69e7d..e537ec463b44c0 100644 --- a/package/kernel/linux/modules/other.mk +++ b/package/kernel/linux/modules/other.mk @@ -1038,6 +1038,29 @@ endef $(eval $(call KernelPackage,keys-trusted)) +define KernelPackage/rp1 + TITLE:=RP1 title + DEPENDS:=+kmod-hwmon-core + KCONFIG:= \ + CONFIG_FIRMWARE_RP1 \ + CONFIG_RP1_PIO \ + CONFIG_COMMON_CLK_RP1_SDIO=y \ + CONFIG_MBOX_RP1 \ + CONFIG_PWM_PIO_RP1 + FILES:= \ + $(LINUX_DIR)/drivers/firmware/rp1.ko \ + $(LINUX_DIR)/drivers/mailbox/rp1-mailbox.ko \ + $(LINUX_DIR)/drivers/misc/rp1-pio.ko \ + $(LINUX_DIR)/drivers/pwm/pwm-pio-rp1.ko + AUTOLOAD:=$(call AutoLoad,10,rp1) +endef + +define KernelPackage/rp1/description + RP1 modules +endef + +$(eval $(call KernelPackage,rp1)) + define KernelPackage/tpm SUBMENU:=$(OTHER_MENU) TITLE:=TPM Hardware Support diff --git a/target/linux/bcm27xx/image/Makefile b/target/linux/bcm27xx/image/Makefile index 23bc3a35c9edd8..ee6bdf9564c5c8 100644 --- a/target/linux/bcm27xx/image/Makefile +++ b/target/linux/bcm27xx/image/Makefile @@ -201,7 +201,7 @@ define Device/rpi-5 cypress-firmware-43455-sdio \ brcmfmac-nvram-43455-sdio \ kmod-brcmfmac wpad-basic-mbedtls \ - kmod-hwmon-pwmfan kmod-thermal + kmod-hwmon-pwmfan kmod-thermal kmod-rp1 IMAGE/sysupgrade.img.gz := boot-common | sdcard-img | gzip | append-metadata IMAGE/factory.img.gz := boot-common | sdcard-img | gzip endef