2007-01-05 23:28:16 +08:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id $
|
|
|
|
|
2007-09-17 01:45:15 +08:00
|
|
|
I2C_MENU:=I2C support
|
2007-01-05 23:28:16 +08:00
|
|
|
|
|
|
|
define KernelPackage/i2c-core
|
2007-09-17 01:45:15 +08:00
|
|
|
SUBMENU:=$(I2C_MENU)
|
2007-01-05 23:28:16 +08:00
|
|
|
TITLE:=I2C support
|
2007-07-23 09:22:40 +08:00
|
|
|
DEPENDS:=@LINUX_2_6
|
2007-09-03 16:58:14 +08:00
|
|
|
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)
|
2007-01-05 23:28:16 +08:00
|
|
|
AUTOLOAD:=$(call AutoLoad,50,i2c-core i2c-dev)
|
|
|
|
endef
|
2007-08-28 19:44:15 +08:00
|
|
|
|
2007-09-07 16:34:51 +08:00
|
|
|
define KernelPackage/i2c-core/description
|
|
|
|
Kernel modules for I2C support
|
|
|
|
endef
|
|
|
|
|
2007-01-05 23:28:16 +08:00
|
|
|
$(eval $(call KernelPackage,i2c-core))
|
|
|
|
|
2007-08-28 19:44:15 +08:00
|
|
|
|
2007-01-05 23:28:16 +08:00
|
|
|
define KernelPackage/i2c-algos
|
2007-09-17 01:45:15 +08:00
|
|
|
SUBMENU:=$(I2C_MENU)
|
2007-01-05 23:28:16 +08:00
|
|
|
TITLE:=I2C algorithms support
|
2007-04-01 22:36:24 +08:00
|
|
|
DEPENDS:=kmod-i2c-core
|
2007-09-03 16:58:14 +08:00
|
|
|
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)
|
2007-01-05 23:28:16 +08:00
|
|
|
AUTOLOAD:=$(call AutoLoad,60,i2c-algo-bit i2c-algo-pcf i2c-algo-pca)
|
|
|
|
endef
|
2007-08-28 19:44:15 +08:00
|
|
|
|
2007-09-07 16:34:51 +08:00
|
|
|
define KernelPackage/i2c-algos/description
|
|
|
|
Kernel modules for various I2C algorithms
|
|
|
|
endef
|
|
|
|
|
2007-01-05 23:28:16 +08:00
|
|
|
$(eval $(call KernelPackage,i2c-algos))
|
|
|
|
|
2007-08-28 19:44:15 +08:00
|
|
|
|
2007-04-16 16:03:53 +08:00
|
|
|
define KernelPackage/i2c-scx200
|
2007-09-17 01:45:15 +08:00
|
|
|
SUBMENU:=$(I2C_MENU)
|
2007-04-16 16:03:53 +08:00
|
|
|
TITLE:=SCX200 i2c support
|
2007-09-11 21:49:28 +08:00
|
|
|
DEFAULT:=y if TARGET_x86_Soekris
|
|
|
|
DEPENDS:=@TARGET_x86_Soekris kmod-i2c-core kmod-i2c-algos
|
2007-09-03 16:58:14 +08:00
|
|
|
KCONFIG:= \
|
|
|
|
CONFIG_I2C_ISA \
|
|
|
|
CONFIG_SCx200_I2C
|
2007-08-28 19:44:15 +08:00
|
|
|
FILES:= \
|
2007-09-03 16:58:14 +08:00
|
|
|
$(LINUX_DIR)/drivers/i2c/busses/i2c-isa.$(LINUX_KMOD_SUFFIX) \
|
|
|
|
$(LINUX_DIR)/drivers/i2c/busses/scx200_i2c.$(LINUX_KMOD_SUFFIX)
|
2007-05-28 16:43:04 +08:00
|
|
|
AUTOLOAD:=$(call AutoLoad,70,i2c-isa scx200_i2c)
|
2007-04-16 16:03:53 +08:00
|
|
|
endef
|
2007-08-28 19:44:15 +08:00
|
|
|
|
2007-09-07 16:34:51 +08:00
|
|
|
define KernelPackage/i2c-scx200/description
|
|
|
|
Kernel module for SCX200 I2C bus
|
|
|
|
endef
|
|
|
|
|
2007-04-16 16:03:53 +08:00
|
|
|
$(eval $(call KernelPackage,i2c-scx200))
|