Skip to content

Commit

Permalink
bcm27xx/bcm2712: add rp1 kmods
Browse files Browse the repository at this point in the history
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 <therealgraysky@proton.me>
  • Loading branch information
graysky2 committed Dec 11, 2024
1 parent 8108967 commit 018d74f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions package/kernel/linux/modules/other.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1038,6 +1038,28 @@ endef
$(eval $(call KernelPackage,keys-trusted))


define KernelPackage/rp1
TITLE:=RP1 title
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
Expand Down
2 changes: 1 addition & 1 deletion target/linux/bcm27xx/image/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 018d74f

Please sign in to comment.