diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index 7b64985fd69e7d..80bdfbed17f0eb 100644 --- a/package/kernel/linux/modules/other.mk +++ b/package/kernel/linux/modules/other.mk @@ -1038,6 +1038,28 @@ endef $(eval $(call KernelPackage,keys-trusted)) +define KernelPackage/rp1 + TITLE:=RP1 I/O Controller modules for RPi5 + 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 pwm-pio-rp1 rp1-mailbox) +endef + +define KernelPackage/rp1/description + RP1 I/O modules for RPi5 +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