CONFIG_FB_IOMEM_FOPS=y
CONFIG_FB_IOMEM_HELPERS=y
CONFIG_FB_SIMPLE=y
-CONFIG_FIRMWARE_RP1=y
+# CONFIG_FIRMWARE_RP1 is not set
CONFIG_FIXED_PHY=y
CONFIG_FIX_EARLYCON_MEM=y
CONFIG_FONT_8x16=y
CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x1f6
CONFIG_MAILBOX=y
# CONFIG_MAILBOX_TEST is not set
-CONFIG_MBOX_RP1=y
+# CONFIG_MBOX_RP1 is not set
CONFIG_MDIO_BCM_UNIMAC=y
CONFIG_MDIO_BUS=y
CONFIG_MDIO_DEVICE=y
CONFIG_RESET_SIMPLE=y
CONFIG_RFS_ACCEL=y
CONFIG_RODATA_FULL_DEFAULT_ENABLED=y
-CONFIG_RP1_PIO=y
+# CONFIG_RP1_PIO is not set
# CONFIG_RPI_POE_POWER is not set
CONFIG_RPS=y
CONFIG_RTC_CLASS=y
# CONFIG_SCSI_LOWLEVEL is not set
# CONFIG_SCSI_PROC_FS is not set
CONFIG_SENSORS_RASPBERRYPI_HWMON=y
-CONFIG_SENSORS_RP1_ADC=y
+# CONFIG_SENSORS_RP1_ADC is not set
CONFIG_SERIAL_8250_BCM2835AUX=y
CONFIG_SERIAL_8250_BCM7271=y
# CONFIG_SERIAL_8250_DMA is not set
#
# Copyright (C) 2019 OpenWrt.org
+define KernelPackage/rp1-adc
+ SUBMENU:=$(OTHER_MENU)
+ TITLE:=RP1 ADC and temperature sensor driver
+ KCONFIG:=CONFIG_SENSORS_RP1_ADC
+ FILES:=$(LINUX_DIR)/drivers/hwmon/rp1-adc.ko
+ AUTOLOAD:=$(call AutoLoad,21,rp1-adc)
+ DEPENDS:=@TARGET_bcm27xx_bcm2712
+endef
+
+define KernelPackage/rp1-adc/description
+ Kernel module for RP1 silicon providing ADC and
+ temperature monitoring.
+endef
+
+$(eval $(call KernelPackage,rp1-adc))
+
+
define KernelPackage/hwmon-raspberrypi
TITLE:=Raspberry Pi voltage monitor
KCONFIG:=CONFIG_SENSORS_RASPBERRYPI_HWMON
endef
$(eval $(call KernelPackage,hwmon-raspberrypi))
+
+
$(eval $(call KernelPackage,smi-bcm2835-dev))
+define KernelPackage/rp1
+ SUBMENU:=$(OTHER_MENU)
+ TITLE:=RP1 firmware
+ KCONFIG:=CONFIG_FIRMWARE_RP1
+ FILES:=$(LINUX_DIR)/drivers/firmware/rp1.ko
+ AUTOLOAD:=$(call AutoLoad,21,rp1)
+ DEPENDS:=@TARGET_bcm27xx_bcm2712
+endef
+
+define KernelPackage/rp1/description
+ This driver provides a firmware interface to the RP1 processor using shared
+ memory and a mailbox.
+endef
+
+$(eval $(call KernelPackage,rp1))
+
+
+define KernelPackage/rp1-pio
+ SUBMENU:=$(OTHER_MENU)
+ TITLE:=RP1 PIO block support
+ KCONFIG:=CONFIG_RP1_PIO
+ FILES:=$(LINUX_DIR)/drivers/misc/rp1-pio.ko
+ AUTOLOAD:=$(call AutoLoad,21,rp1-pio)
+ DEPENDS:=@TARGET_bcm27xx_bcm2712 +kmod-rp1
+endef
+
+define KernelPackage/rp1-pio/description
+ Driver providing control of the Raspberry Pi PIO block, as found in RP1
+endef
+
+$(eval $(call KernelPackage,rp1-pio))
+
+
define KernelPackage/pwm-pio-rp1
SUBMENU:=$(OTHER_MENU)
TITLE:=RP1 PWM support
KCONFIG:=CONFIG_PWM_PIO_RP1
FILES:=$(LINUX_DIR)/drivers/pwm/pwm-pio-rp1.ko
AUTOLOAD:=$(call AutoLoad,21,pwm-pio-rp1)
- DEPENDS:=@TARGET_bcm27xx_bcm2712
+ DEPENDS:=@TARGET_bcm27xx_bcm2712 +kmod-rp1-pio
endef
define KernelPackage/pwm-pio-rp1/description
KCONFIG:=CONFIG_WS2812_PIO_RP1
FILES:=$(LINUX_DIR)/drivers/misc/ws2812-pio-rp1.ko
AUTOLOAD:=$(call AutoLoad,21,ws2812-pio-rp1)
- DEPENDS:=@TARGET_bcm27xx_bcm2712
+ DEPENDS:=@TARGET_bcm27xx_bcm2712 +kmod-rp1-pio
endef
define KernelPackage/ws2812-pio-rp1/description
endef
$(eval $(call KernelPackage,ws2812-pio-rp1))
+
+
+define KernelPackage/rp1-mailbox
+ SUBMENU:=$(OTHER_MENU)
+ TITLE:=RP1 mailbox IPC driver
+ KCONFIG:=CONFIG_MBOX_RP1
+ FILES:=$(LINUX_DIR)/drivers/mailbox/rp1-mailbox.ko
+ AUTOLOAD:=$(call AutoLoad,21,rp1-mailbox)
+ DEPENDS:=@TARGET_bcm27xx_bcm2712
+endef
+
+define KernelPackage/rp1-mailbox/description
+ This is a RP1 mailbox IPC driver.
+endef
+
+$(eval $(call KernelPackage,rp1-mailbox))
+
+
+define KernelPackage/rp1-pio
+ SUBMENU:=$(OTHER_MENU)
+ TITLE:=RP1 PIO driver
+ KCONFIG:=CONFIG_RP1_PIO
+ FILES:=$(LINUX_DIR)/drivers/misc/rp1-pio.ko
+ AUTOLOAD:=$(call AutoLoad,21,rp1-pio)
+ DEPENDS:=@TARGET_bcm27xx_bcm2712 +kmod-rp1
+endef
+
+define KernelPackage/rp1-pio/description
+ Driver for the RP1 PIO.
+endef
+
+$(eval $(call KernelPackage,rp1-pio))
+