Skip to content

Commit

Permalink
bcm27xx/bcm2712: add missing RP1 kmods
Browse files Browse the repository at this point in the history
Add a package to supply the following modules needed by the RP1 I/O
controller: rp1, rp1-mailbox, rp1-pio, and pwm-pio-rp1.

Note - rp1-adc is currently a built-in.

Build system: x86/64
Build-tested: bcm2712/RPi5B
Run-tested: bcm2712/RPi5B

Signed-off-by: John Audia <therealgraysky@proton.me>
  • Loading branch information
graysky2 committed Dec 12, 2024
1 parent 1cea889 commit ed2e79d
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions target/linux/bcm27xx/modules/other.mk
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,81 @@ define KernelPackage/smi-bcm2835-dev/description
endef

$(eval $(call KernelPackage,smi-bcm2835-dev))


define KernelPackage/rp1-firmware
TITLE:=RP1 Firmware Driver
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
DEPENDS:=@TARGET_bcm27xx
endef

define KernelPackage/rp1-firmware/description
Firmware driver for RP1 silicon
endef

$(eval $(call KernelPackage,rp1-firmware))


define KernelPackage/rp1-pio
TITLE:=RP1 PIO driver
KCONFIG:= \
CONFIG_FIRMWARE_RP1 \
CONFIG_RP1_PIO \
CONFIG_COMMON_CLK_RP1_SDIO=y \
CONFIG_MBOX_RP1 \
CONFIG_PWM_PIO_RP1
FILES:=$(LINUX_DIR)/drivers/misc/rp1-pio.ko
AUTOLOAD:=$(call AutoLoad,10,rp1-pio)
DEPENDS:=@TARGET_bcm27xx +kmod-rp1-firmware
endef

define KernelPackage/rp1-pio/description
RP1 PIO driver
endef

$(eval $(call KernelPackage,rp1-pio))


define KernelPackage/rp1-mailbox
TITLE:=RP1 mailbox support
KCONFIG:= \
CONFIG_FIRMWARE_RP1 \
CONFIG_RP1_PIO \
CONFIG_COMMON_CLK_RP1_SDIO=y \
CONFIG_MBOX_RP1 \
CONFIG_PWM_PIO_RP1
FILES:=$(LINUX_DIR)/drivers/mailbox/rp1-mailbox.ko
AUTOLOAD:=$(call AutoLoad,10,rp1-mailbox)
DEPENDS:=@TARGET_bcm27xx
endef

define KernelPackage/rp1-mailbox/description
Mailbox hardware support for RP1
endef

$(eval $(call KernelPackage,rp1-mailbox))


define KernelPackage/pwm-pio-rp1
SUBMENU:=$(OTHER_MENU)
TITLE:=RP1 PWM support
KCONFIG:= \
CONFIG_FIRMWARE_RP1 \
CONFIG_RP1_PIO \
CONFIG_COMMON_CLK_RP1_SDIO=y \
CONFIG_MBOX_RP1 \
CONFIG_PWM_PIO_RP1
FILES:=$(LINUX_DIR)/drivers/pwm/pwm-pio-rp1.ko
endef

define KernelPackage/pwm-pio-rp1/description
Pulse-Width Modulation (PWM) Support for RP1 chip
endef

$(eval $(call KernelPackage,pwm-pio-rp1))

0 comments on commit ed2e79d

Please sign in to comment.