diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2019-07-09 20:32:28 +0200 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2019-07-14 12:44:14 +0200 |
commit | 42954857190b9df16d9d873ecc7f6cc38e013e44 (patch) | |
tree | 98c588f629ff534d458eb0884782ea99672d7634 /target/linux/brcm2708/modules/other.mk | |
parent | f1875e902d0afb7d9b9e5285b4fd8da7f6c5e30a (diff) | |
download | upstream-42954857190b9df16d9d873ecc7f6cc38e013e44.tar.gz upstream-42954857190b9df16d9d873ecc7f6cc38e013e44.tar.bz2 upstream-42954857190b9df16d9d873ecc7f6cc38e013e44.zip |
brcm2708: add linux 4.19 support
Boot tested on Raspberry Pi B+ (BCM2708) and Raspberry Pi 2 (BCM2709)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/brcm2708/modules/other.mk')
-rw-r--r-- | target/linux/brcm2708/modules/other.mk | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/target/linux/brcm2708/modules/other.mk b/target/linux/brcm2708/modules/other.mk new file mode 100644 index 0000000000..ce3b2b6fb0 --- /dev/null +++ b/target/linux/brcm2708/modules/other.mk @@ -0,0 +1,75 @@ +# +# Copyright (C) 2019 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define KernelPackage/pwm-bcm2835 + SUBMENU:=$(OTHER_MENU) + TITLE:=BCM2835 PWM driver + KCONFIG:= \ + CONFIG_PWM=y \ + CONFIG_PWM_BCM2835 + FILES:=$(LINUX_DIR)/drivers/pwm/pwm-bcm2835.ko + AUTOLOAD:=$(call AutoLoad,60,pwm-bcm2835) + DEPENDS:=@TARGET_brcm2708 +endef + +define KernelPackage/pwm-bcm2835/description + This package contains the PWM framework driver for BCM2835 controller (Raspberry Pi) +endef + +$(eval $(call KernelPackage,pwm-bcm2835)) + + +define KernelPackage/random-bcm2835 + SUBMENU:=$(OTHER_MENU) + TITLE:=BCM2835 HW Random Number Generator + KCONFIG:= \ + CONFIG_HW_RANDOM_BCM2835 + FILES:=$(LINUX_DIR)/drivers/char/hw_random/bcm2835-rng.ko + AUTOLOAD:=$(call AutoLoad,11,bcm2835-rng) + DEPENDS:=@TARGET_brcm2708 +kmod-random-core +endef + +define KernelPackage/random-bcm2835/description + This package contains the Broadcom 2835 HW random number generator driver +endef + +$(eval $(call KernelPackage,random-bcm2835)) + + +define KernelPackage/smi-bcm2835 + SUBMENU:=$(OTHER_MENU) + TITLE:=BCM2835 SMI driver + KCONFIG:=CONFIG_BCM2835_SMI + FILES:=$(LINUX_DIR)/drivers/misc/bcm2835_smi.ko + AUTOLOAD:=$(call AutoLoad,20,bcm2835_smi) + DEPENDS:=@TARGET_brcm2708 +endef + +define KernelPackage/smi-bcm2835/description + This package contains the Character device driver for Broadcom Secondary + Memory Interface +endef + +$(eval $(call KernelPackage,smi-bcm2835)) + + +define KernelPackage/smi-bcm2835-dev + SUBMENU:=$(OTHER_MENU) + TITLE:=BCM2835 SMI device driver + KCONFIG:=CONFIG_BCM2835_SMI_DEV + FILES:=$(LINUX_DIR)/drivers/char/broadcom/bcm2835_smi_dev.ko + AUTOLOAD:=$(call AutoLoad,21,bcm2835_smi_dev) + DEPENDS:=@TARGET_brcm2708 +kmod-smi-bcm2835 +endef + +define KernelPackage/smi-bcm2835-dev/description + This driver provides a character device interface (ioctl + read/write) to + Broadcom's Secondary Memory interface. The low-level functionality is provided + by the SMI driver itself. +endef + +$(eval $(call KernelPackage,smi-bcm2835-dev)) |