2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
11 define KernelPackage/i2c-core
14 DESCRIPTION:=Kernel modules for i2c support
20 $(LINUX_DIR)/drivers/i2c/i2c-core.$(LINUX_KMOD_SUFFIX) \
21 $(LINUX_DIR)/drivers/i2c/i2c-dev.$(LINUX_KMOD_SUFFIX)
22 AUTOLOAD:=$(call AutoLoad,50,i2c-core i2c-dev)
25 $(eval $(call KernelPackage,i2c-core))
28 define KernelPackage/i2c-algos
30 TITLE:=I2C algorithms support
31 DESCRIPTION:=Kernel modules for various i2c algorithms
32 DEPENDS:=kmod-i2c-core
38 $(LINUX_DIR)/drivers/i2c/algos/i2c-algo-bit.$(LINUX_KMOD_SUFFIX) \
39 $(LINUX_DIR)/drivers/i2c/algos/i2c-algo-pcf.$(LINUX_KMOD_SUFFIX) \
40 $(LINUX_DIR)/drivers/i2c/algos/i2c-algo-pca.$(LINUX_KMOD_SUFFIX)
41 AUTOLOAD:=$(call AutoLoad,60,i2c-algo-bit i2c-algo-pcf i2c-algo-pca)
44 $(eval $(call KernelPackage,i2c-algos))
47 define KernelPackage/i2c-scx200
49 TITLE:=SCX200 i2c support
50 DESCRIPTION:=Kernel module for SCX200 i2c bus
51 DEFAULT:=y if LINUX_2_6_X86_Soekris
52 DEPENDS:=kmod-i2c-core kmod-i2c-algos @LINUX_2_6_X86_Soekris
57 $(LINUX_DIR)/drivers/i2c/busses/i2c-isa.$(LINUX_KMOD_SUFFIX) \
58 $(LINUX_DIR)/drivers/i2c/busses/scx200_i2c.$(LINUX_KMOD_SUFFIX)
59 AUTOLOAD:=$(call AutoLoad,70,i2c-isa scx200_i2c)
62 $(eval $(call KernelPackage,i2c-scx200))