From 20ea6adbf199097c4f5f591ffee088340630dae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Mon, 16 May 2022 23:40:32 +0200 Subject: bcm27xx: add support for linux v5.15 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Build system: x86_64 Build-tested: bcm2708, bcm2709, bcm2710, bcm2711 Run-tested: bcm2708/RPiB+, bcm2709/RPi3B, bcm2710/RPi3B, bcm2711/RPi4B Signed-off-by: Marty Jones Signed-off-by: Álvaro Fernández Rojas --- target/linux/bcm27xx/modules/hwmon.mk | 2 +- target/linux/bcm27xx/modules/other.mk | 18 ++++++++++++++++++ target/linux/bcm27xx/modules/sound.mk | 1 + 3 files changed, 20 insertions(+), 1 deletion(-) (limited to 'target/linux/bcm27xx/modules') diff --git a/target/linux/bcm27xx/modules/hwmon.mk b/target/linux/bcm27xx/modules/hwmon.mk index 316f0b8419..02ac204e1a 100644 --- a/target/linux/bcm27xx/modules/hwmon.mk +++ b/target/linux/bcm27xx/modules/hwmon.mk @@ -20,7 +20,7 @@ $(eval $(call KernelPackage,hwmon-raspberrypi)) define KernelPackage/hwmon-rpi-poe-fan SUBMENU:=$(HWMON_MENU) TITLE:=Raspberry Pi PoE HAT fan - DEPENDS:=@TARGET_bcm27xx +kmod-hwmon-core + DEPENDS:=@TARGET_bcm27xx @LINUX_5_10 +kmod-hwmon-core KCONFIG:=CONFIG_SENSORS_RPI_POE_FAN FILES:=$(LINUX_DIR)/drivers/hwmon/rpi-poe-fan.ko AUTOLOAD:=$(call AutoProbe,rpi-poe-fan) diff --git a/target/linux/bcm27xx/modules/other.mk b/target/linux/bcm27xx/modules/other.mk index 2d4aa3c079..5f37e498d0 100644 --- a/target/linux/bcm27xx/modules/other.mk +++ b/target/linux/bcm27xx/modules/other.mk @@ -20,6 +20,24 @@ endef $(eval $(call KernelPackage,pwm-bcm2835)) +define KernelPackage/pwm-raspberrypi-poe + SUBMENU:=$(OTHER_MENU) + TITLE:=Raspberry Pi Firwmware PoE Hat PWM support + KCONFIG:= \ + CONFIG_PWM=y \ + CONFIG_PWM_RASPBERRYPI_POE + FILES:=$(LINUX_DIR)/drivers/pwm/pwm-raspberrypi-poe.ko + AUTOLOAD:=$(call AutoLoad,20,pwm-raspberrypi-poe) + DEPENDS:=@TARGET_bcm27xx @LINUX_5_15 +endef + +define KernelPackage/pwm-raspberrypi-poe/description + This package provides Raspberry Pi Firwmware PoE Hat PWM support +endef + +$(eval $(call KernelPackage,pwm-raspberrypi-poe)) + + define KernelPackage/smi-bcm2835 SUBMENU:=$(OTHER_MENU) TITLE:=BCM2835 SMI driver diff --git a/target/linux/bcm27xx/modules/sound.mk b/target/linux/bcm27xx/modules/sound.mk index 0823786d5c..f6372f6870 100644 --- a/target/linux/bcm27xx/modules/sound.mk +++ b/target/linux/bcm27xx/modules/sound.mk @@ -932,6 +932,7 @@ define KernelPackage/sound-soc-rpi-cirrus CONFIG_SND_SOC_WM8804 \ CONFIG_SND_SOC_WM_ADSP FILES:= \ + $(LINUX_DIR)/drivers/mfd/arizona.ko@ge5.15 \ $(LINUX_DIR)/sound/soc/bcm/snd-soc-rpi-cirrus.ko \ $(LINUX_DIR)/sound/soc/codecs/snd-soc-arizona.ko \ $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm-adsp.ko \ -- cgit v1.2.3