summaryrefslogtreecommitdiff
path: root/package/kernel/modules/i2c.mk
blob: 4d65b6ea3d52811eb1ac062a4381911b025053ff (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
#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id $

I2CMENU:=I2C Bus

define KernelPackage/i2c-core
  TITLE:=I2C support
  DESCRIPTION:=Kernel modules for i2c support
  SUBMENU:=$(I2CMENU)
  KCONFIG:=$(CONFIG_I2C)
  FILES:=$(MODULES_DIR)/kernel/drivers/i2c/*.$(LINUX_KMOD_SUFFIX)
  AUTOLOAD:=$(call AutoLoad,50,i2c-core i2c-dev)
endef
$(eval $(call KernelPackage,i2c-core))

define KernelPackage/i2c-algos
  TITLE:=I2C algorithms support
  DESCRIPTION:=Kernel modules for various i2c algorithms
  DEPENDS:=kmod-i2c-core
  SUBMENU:=$(I2CMENU)
  KCONFIG:=$(CONFIG_I2C_ALGOBIT)
  FILES:=$(MODULES_DIR)/kernel/drivers/i2c/algos/*.$(LINUX_KMOD_SUFFIX)
  AUTOLOAD:=$(call AutoLoad,60,i2c-algo-bit i2c-algo-pcf i2c-algo-pca)
endef
$(eval $(call KernelPackage,i2c-algos))

define KernelPackage/i2c-au1x00gpio
  TITLE:=I2C GPIO interface for Au1x00 devices
  DESCRIPTION:=I2C GPIO interface for Au1x00 devices
  DEFAULT:=y if LINUX_2_6_AU1000
  DEPENDS:=kmod-i2c-core kmod-i2c-algos @LINUX_2_6_AU1000
  SUBMENU:=$(I2CMENU)
  KCONFIG:=$(CONFIG_I2C_AU1X00GPIO)
  FILES:=$(MODULES_DIR)/kernel/drivers/i2c/busses/i2c-au1x00gpio.$(LINUX_KMOD_SUFFIX)
  AUTOLOAD:=$(call Autoload,70,i2c-au1x00gpio)
endef
$(eval $(call KernelPackage,i2c-au1x00gpio))

define KernelPackage/i2c-scx200
  TITLE:=SCX200 i2c support
  DESCRIPTION:=Kernel module for SCX200 i2c bus
  DEFAULT:=y if LINUX_2_6_X86_Soekris
  DEPENDS:=kmod-i2c-core kmod-i2c-algos @LINUX_2_6_X86_Soekris
  SUBMENU:=$(I2CMENU)
  KCONFIG:=$(CONFIG_I2C_SCX200)
  FILES:=$(MODULES_DIR)/kernel/drivers/i2c/busses/scx200_i2c.$(LINUX_KMOD_SUFFIX) \
	$(MODULES_DIR)/kernel/drivers/i2c/busses/i2c-isa.$(LINUX_KMOD_SUFFIX)
  AUTOLOAD:=$(call AutoLoad,70,scx200_i2c)
endef
$(eval $(call KernelPackage,i2c-scx200))