diff options
author | John Crispin <blogic@openwrt.org> | 2015-03-12 10:06:17 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-03-12 10:06:17 +0000 |
commit | 2d50e3576efb1bf26872ddbd9e529090c9e61715 (patch) | |
tree | 8d31136fd63c6211319c3f77cf7e569b5fa2a22c /target/linux/ramips/modules.mk | |
parent | bbf5bdbca10d99b5da5e552ff6ba86270625c312 (diff) | |
download | upstream-2d50e3576efb1bf26872ddbd9e529090c9e61715.tar.gz upstream-2d50e3576efb1bf26872ddbd9e529090c9e61715.tar.bz2 upstream-2d50e3576efb1bf26872ddbd9e529090c9e61715.zip |
ralink: MT7621 add i2c controller driver
ralink i2c driver is not working on MT7621 platform. Porting a new drivers from MTK's source code.
Signed-off-by: daixj <fl.service@t-firefly.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44690 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/modules.mk')
-rw-r--r-- | target/linux/ramips/modules.mk | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/target/linux/ramips/modules.mk b/target/linux/ramips/modules.mk index 550a8c2930..d72e0aa88b 100644 --- a/target/linux/ramips/modules.mk +++ b/target/linux/ramips/modules.mk @@ -27,7 +27,7 @@ I2C_RALINK_MODULES:= \ define KernelPackage/i2c-ralink $(call i2c_defaults,$(I2C_RALINK_MODULES),59) TITLE:=Ralink I2C Controller - DEPENDS:=@TARGET_ramips kmod-i2c-core + DEPENDS:=@TARGET_ramips @(!TARGET_ramips_mt7621) kmod-i2c-core endef define KernelPackage/i2c-ralink/description @@ -36,6 +36,24 @@ endef $(eval $(call KernelPackage,i2c-ralink)) + +I2C_MT7621_MODULES:= \ + CONFIG_I2C_MT7621:drivers/i2c/busses/i2c-mt7621 + +define KernelPackage/i2c-mt7621 + $(call i2c_defaults,$(I2C_MT7621_MODULES),59) + TITLE:=MT7621 I2C Controller + DEPENDS:=@TARGET_ramips @TARGET_ramips_mt7621 kmod-i2c-core +endef + +define KernelPackage/i2c-mt7621/description + Kernel modules for enable mt7621 i2c controller. +endef + +$(eval $(call KernelPackage,i2c-mt7621)) + + + define KernelPackage/sound-mt7620 TITLE:=MT7620 PCM/I2S Alsa Driver DEPENDS:=@TARGET_ramips_mt7620 +kmod-sound-soc-core +kmod-regmap |