aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/modules/i2c.mk
diff options
context:
space:
mode:
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
commit42954857190b9df16d9d873ecc7f6cc38e013e44 (patch)
tree98c588f629ff534d458eb0884782ea99672d7634 /target/linux/brcm2708/modules/i2c.mk
parentf1875e902d0afb7d9b9e5285b4fd8da7f6c5e30a (diff)
downloadupstream-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/i2c.mk')
-rw-r--r--target/linux/brcm2708/modules/i2c.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/brcm2708/modules/i2c.mk b/target/linux/brcm2708/modules/i2c.mk
new file mode 100644
index 0000000000..ebba032f94
--- /dev/null
+++ b/target/linux/brcm2708/modules/i2c.mk
@@ -0,0 +1,21 @@
+#
+# Copyright (C) 2019 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+I2C_BCM2835_MODULES:=\
+ CONFIG_I2C_BCM2835:drivers/i2c/busses/i2c-bcm2835
+
+define KernelPackage/i2c-bcm2835
+ $(call i2c_defaults,$(I2C_BCM2835_MODULES),59)
+ TITLE:=Broadcom BCM2835 I2C master controller driver
+ DEPENDS:=@TARGET_brcm2708 +kmod-i2c-core
+endef
+
+define KernelPackage/i2c-bcm2835/description
+ This package contains the Broadcom 2835 I2C master controller driver
+endef
+
+$(eval $(call KernelPackage,i2c-bcm2835))