2007-01-05 17:28:16 +02:00
|
|
|
#
|
|
|
|
# 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
|
2007-07-23 04:22:40 +03:00
|
|
|
DEPENDS:=@LINUX_2_6
|
2007-01-05 17:28:16 +02:00
|
|
|
SUBMENU:=$(I2CMENU)
|
2007-07-18 14:31:01 +03:00
|
|
|
KCONFIG:=CONFIG_I2C
|
2007-04-18 15:28:38 +03:00
|
|
|
FILES:=$(LINUX_DIR)/drivers/i2c/*.$(LINUX_KMOD_SUFFIX)
|
2007-01-05 17:28:16 +02:00
|
|
|
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
|
2007-04-01 17:36:24 +03:00
|
|
|
DEPENDS:=kmod-i2c-core
|
2007-01-05 17:28:16 +02:00
|
|
|
SUBMENU:=$(I2CMENU)
|
2007-07-18 14:31:01 +03:00
|
|
|
KCONFIG:=CONFIG_I2C_ALGOBIT
|
2007-04-18 15:28:38 +03:00
|
|
|
FILES:=$(LINUX_DIR)/drivers/i2c/algos/*.$(LINUX_KMOD_SUFFIX)
|
2007-01-05 17:28:16 +02:00
|
|
|
AUTOLOAD:=$(call AutoLoad,60,i2c-algo-bit i2c-algo-pcf i2c-algo-pca)
|
|
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,i2c-algos))
|
|
|
|
|
2007-04-16 11:03:53 +03:00
|
|
|
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)
|
2007-07-18 14:31:01 +03:00
|
|
|
KCONFIG:=CONFIG_SCx200_I2C
|
2007-04-18 15:28:38 +03:00
|
|
|
FILES:=$(LINUX_DIR)/drivers/i2c/busses/scx200_i2c.$(LINUX_KMOD_SUFFIX) \
|
|
|
|
$(LINUX_DIR)/drivers/i2c/busses/i2c-isa.$(LINUX_KMOD_SUFFIX)
|
2007-05-28 11:43:04 +03:00
|
|
|
AUTOLOAD:=$(call AutoLoad,70,i2c-isa scx200_i2c)
|
2007-04-16 11:03:53 +03:00
|
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,i2c-scx200))
|