summaryrefslogtreecommitdiffstats
path: root/package/kernel/modules/i2c.mk
blob: c36d6a48d78222e9345f55cd324b17f11819d6f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id $

I2C_MENU:=I2C support

define KernelPackage/i2c-core
  SUBMENU:=$(I2C_MENU)
  TITLE:=I2C support
  DEPENDS:=@LINUX_2_6
  KCONFIG:= \
	CONFIG_I2C \
	CONFIG_I2C_CHARDEV
  FILES:= \
	$(LINUX_DIR)/drivers/i2c/i2c-core.$(LINUX_KMOD_SUFFIX) \
	$(LINUX_DIR)/drivers/i2c/i2c-dev.$(LINUX_KMOD_SUFFIX)
  AUTOLOAD:=$(call AutoLoad,50,i2c-core i2c-dev)
endef

define KernelPackage/i2c-core/description
 Kernel modules for I2C support
endef

$(eval $(call KernelPackage,i2c-core))


define KernelPackage/i2c-algos
  SUBMENU:=$(I2C_MENU)
  TITLE:=I2C algorithms support
  DEPENDS:=kmod-i2c-core
  KCONFIG:= \
	CONFIG_I2C_ALGOBIT \
	CONFIG_I2C_ALGOPCF \
	CONFIG_I2C_ALGOPCA
  FILES:= \
	$(LINUX_DIR)/drivers/i2c/algos/i2c-algo-bit.$(LINUX_KMOD_SUFFIX) \
	$(LINUX_DIR)/drivers/i2c/algos/i2c-algo-pcf.$(LINUX_KMOD_SUFFIX) \
	$(LINUX_DIR)/drivers/i2c/algos/i2c-algo-pca.$(LINUX_KMOD_SUFFIX)
  AUTOLOAD:=$(call AutoLoad,60,i2c-algo-bit i2c-algo-pcf i2c-algo-pca)
endef

define KernelPackage/i2c-algos/description
 Kernel modules for various I2C algorithms
endef

$(eval $(call KernelPackage,i2c-algos))


define KernelPackage/i2c-scx200
  SUBMENU:=$(I2C_MENU)
  TITLE:=SCX200 i2c support
  DEFAULT:=y if TARGET_x86_Soekris
  DEPENDS:=@TARGET_x86_Soekris kmod-i2c-core kmod-i2c-algos
  KCONFIG:= \
	CONFIG_I2C_ISA \
	CONFIG_SCx200_I2C
  FILES:= \
	$(LINUX_DIR)/drivers/i2c/busses/i2c-isa.$(LINUX_KMOD_SUFFIX) \
	$(LINUX_DIR)/drivers/i2c/busses/scx200_i2c.$(LINUX_KMOD_SUFFIX)
  AUTOLOAD:=$(call AutoLoad,70,i2c-isa scx200_i2c)
endef

define KernelPackage/i2c-scx200/description
 Kernel module for SCX200 I2C bus
endef

$(eval $(call KernelPackage,i2c-scx200))