11d42e7bcc329727133840f0f5321873b3ce5259
[openwrt.git] / package / kernel / modules / i2c.mk
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id $
8
9 I2CMENU:=I2C Bus
10
11 define KernelPackage/i2c-core
12 SUBMENU:=$(I2CMENU)
13 TITLE:=I2C support
14 DEPENDS:=@LINUX_2_6
15 KCONFIG:= \
16 CONFIG_I2C \
17 CONFIG_I2C_CHARDEV
18 FILES:= \
19 $(LINUX_DIR)/drivers/i2c/i2c-core.$(LINUX_KMOD_SUFFIX) \
20 $(LINUX_DIR)/drivers/i2c/i2c-dev.$(LINUX_KMOD_SUFFIX)
21 AUTOLOAD:=$(call AutoLoad,50,i2c-core i2c-dev)
22 endef
23
24 define KernelPackage/i2c-core/description
25 Kernel modules for I2C support
26 endef
27
28 $(eval $(call KernelPackage,i2c-core))
29
30
31 define KernelPackage/i2c-algos
32 SUBMENU:=$(I2CMENU)
33 TITLE:=I2C algorithms support
34 DEPENDS:=kmod-i2c-core
35 KCONFIG:= \
36 CONFIG_I2C_ALGOBIT \
37 CONFIG_I2C_ALGOPCF \
38 CONFIG_I2C_ALGOPCA
39 FILES:= \
40 $(LINUX_DIR)/drivers/i2c/algos/i2c-algo-bit.$(LINUX_KMOD_SUFFIX) \
41 $(LINUX_DIR)/drivers/i2c/algos/i2c-algo-pcf.$(LINUX_KMOD_SUFFIX) \
42 $(LINUX_DIR)/drivers/i2c/algos/i2c-algo-pca.$(LINUX_KMOD_SUFFIX)
43 AUTOLOAD:=$(call AutoLoad,60,i2c-algo-bit i2c-algo-pcf i2c-algo-pca)
44 endef
45
46 define KernelPackage/i2c-algos/description
47 Kernel modules for various I2C algorithms
48 endef
49
50 $(eval $(call KernelPackage,i2c-algos))
51
52
53 define KernelPackage/i2c-scx200
54 SUBMENU:=$(I2CMENU)
55 TITLE:=SCX200 i2c support
56 DEFAULT:=y if LINUX_2_6_X86_Soekris
57 DEPENDS:=kmod-i2c-core kmod-i2c-algos @LINUX_2_6_X86_Soekris
58 KCONFIG:= \
59 CONFIG_I2C_ISA \
60 CONFIG_SCx200_I2C
61 FILES:= \
62 $(LINUX_DIR)/drivers/i2c/busses/i2c-isa.$(LINUX_KMOD_SUFFIX) \
63 $(LINUX_DIR)/drivers/i2c/busses/scx200_i2c.$(LINUX_KMOD_SUFFIX)
64 AUTOLOAD:=$(call AutoLoad,70,i2c-isa scx200_i2c)
65 endef
66
67 define KernelPackage/i2c-scx200/description
68 Kernel module for SCX200 I2C bus
69 endef
70
71 $(eval $(call KernelPackage,i2c-scx200))
This page took 0.037035 seconds and 3 git commands to generate.