2007-01-05 15:28:16 +00:00
|
|
|
#
|
2009-08-15 09:12:37 +00:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2007-01-05 15:28:16 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
2007-09-16 17:45:15 +00:00
|
|
|
I2C_MENU:=I2C support
|
2007-01-05 15:28:16 +00:00
|
|
|
|
2009-08-15 09:12:37 +00:00
|
|
|
ModuleConfVar=$(word 1,$(subst :,$(space),$(1)))
|
|
|
|
ModuleFullPath=$(if $(findstring y,$($(call ModuleConfVar,$(1)))),,$(LINUX_DIR)/$(word 2,$(subst :,$(space),$(1))).$(LINUX_KMOD_SUFFIX))
|
|
|
|
ModuleKconfig=$(foreach mod,$(1),$(call ModuleConfVar,$(mod)))
|
|
|
|
ModuleFiles=$(foreach mod,$(1),$(call ModuleFullPath,$(mod)))
|
2009-08-16 12:39:47 +00:00
|
|
|
ModuleAuto=$(call AutoLoad,$(1),$(foreach mod,$(2),$(basename $(notdir $(call ModuleFullPath,$(mod))))),$(3))
|
2009-08-15 09:12:37 +00:00
|
|
|
|
|
|
|
define i2c_defaults
|
2007-09-16 17:45:15 +00:00
|
|
|
SUBMENU:=$(I2C_MENU)
|
2009-08-15 09:12:37 +00:00
|
|
|
KCONFIG:=$(call ModuleKconfig,$(1))
|
|
|
|
FILES:=$(call ModuleFiles,$(1))
|
|
|
|
AUTOLOAD:=$(call ModuleAuto,$(2),$(1),$(3))
|
|
|
|
endef
|
|
|
|
|
|
|
|
I2C_CORE_MODULES:= \
|
|
|
|
CONFIG_I2C:drivers/i2c/i2c-core \
|
|
|
|
CONFIG_I2C_CHARDEV:drivers/i2c/i2c-dev
|
|
|
|
|
|
|
|
define KernelPackage/i2c-core
|
|
|
|
$(call i2c_defaults,$(I2C_CORE_MODULES),51)
|
2007-01-05 15:28:16 +00:00
|
|
|
TITLE:=I2C support
|
2010-06-26 20:44:28 +00:00
|
|
|
DEPENDS:=@!TARGET_etrax
|
2007-01-05 15:28:16 +00:00
|
|
|
endef
|
2007-08-28 11:44:15 +00:00
|
|
|
|
2007-09-07 08:34:51 +00:00
|
|
|
define KernelPackage/i2c-core/description
|
|
|
|
Kernel modules for I2C support
|
|
|
|
endef
|
|
|
|
|
2007-01-05 15:28:16 +00:00
|
|
|
$(eval $(call KernelPackage,i2c-core))
|
|
|
|
|
2007-08-28 11:44:15 +00:00
|
|
|
|
2009-08-15 09:12:37 +00:00
|
|
|
I2C_ALGOBIT_MODULES:= \
|
|
|
|
CONFIG_I2C_ALGOBIT:drivers/i2c/algos/i2c-algo-bit
|
|
|
|
|
2007-09-17 14:48:01 +00:00
|
|
|
define KernelPackage/i2c-algo-bit
|
2009-08-15 09:12:37 +00:00
|
|
|
$(call i2c_defaults,$(I2C_ALGOBIT_MODULES),55)
|
2007-09-17 14:48:01 +00:00
|
|
|
TITLE:=I2C bit-banging interfaces
|
2007-04-01 14:36:24 +00:00
|
|
|
DEPENDS:=kmod-i2c-core
|
2007-09-17 14:48:01 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/i2c-algo-bit/description
|
|
|
|
Kernel modules for I2C bit-banging interfaces.
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,i2c-algo-bit))
|
|
|
|
|
|
|
|
|
2009-08-15 09:12:37 +00:00
|
|
|
I2C_ALGOPCA_MODULES:= \
|
|
|
|
CONFIG_I2C_ALGOPCA:drivers/i2c/algos/i2c-algo-pca
|
|
|
|
|
2007-09-17 14:48:01 +00:00
|
|
|
define KernelPackage/i2c-algo-pca
|
2009-08-15 09:12:37 +00:00
|
|
|
$(call i2c_defaults,$(I2C_ALGOPCA_MODULES),55)
|
2007-09-17 14:48:01 +00:00
|
|
|
TITLE:=I2C PCA 9564 interfaces
|
|
|
|
DEPENDS:=kmod-i2c-core
|
2007-01-05 15:28:16 +00:00
|
|
|
endef
|
2007-08-28 11:44:15 +00:00
|
|
|
|
2007-09-17 14:48:01 +00:00
|
|
|
define KernelPackage/i2c-algo-pca/description
|
|
|
|
Kernel modules for I2C PCA 9564 interfaces.
|
2007-09-07 08:34:51 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-17 14:48:01 +00:00
|
|
|
$(eval $(call KernelPackage,i2c-algo-pca))
|
|
|
|
|
|
|
|
|
2009-08-15 09:12:37 +00:00
|
|
|
I2C_ALGOPCF_MODULES:= \
|
|
|
|
CONFIG_I2C_ALGOPCF:drivers/i2c/algos/i2c-algo-pcf
|
|
|
|
|
2007-09-17 14:48:01 +00:00
|
|
|
define KernelPackage/i2c-algo-pcf
|
2009-08-15 09:12:37 +00:00
|
|
|
$(call i2c_defaults,$(I2C_ALGOPCF_MODULES),55)
|
2007-09-17 14:48:01 +00:00
|
|
|
TITLE:=I2C PCF 8584 interfaces
|
|
|
|
DEPENDS:=kmod-i2c-core
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/i2c-algo-pcf/description
|
|
|
|
Kernel modules for I2C PCF 8584 interfaces
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,i2c-algo-pcf))
|
|
|
|
|
|
|
|
|
2009-08-15 09:12:37 +00:00
|
|
|
I2C_GPIO_MODULES:= \
|
|
|
|
CONFIG_I2C_GPIO:drivers/i2c/busses/i2c-gpio
|
|
|
|
|
2007-09-17 14:48:01 +00:00
|
|
|
define KernelPackage/i2c-gpio
|
2009-08-15 09:12:37 +00:00
|
|
|
$(call i2c_defaults,$(I2C_GPIO_MODULES),59)
|
2007-09-17 14:48:01 +00:00
|
|
|
TITLE:=GPIO-based bitbanging I2C
|
2009-02-04 02:00:41 +00:00
|
|
|
DEPENDS:=@GPIO_SUPPORT +kmod-i2c-algo-bit
|
2007-09-17 14:48:01 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/i2c-gpio/description
|
|
|
|
Kernel modules for a very simple bitbanging I2C driver utilizing the
|
|
|
|
arch-neutral GPIO API to control the SCL and SDA lines.
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,i2c-gpio))
|
2007-01-05 15:28:16 +00:00
|
|
|
|
2009-08-15 09:12:37 +00:00
|
|
|
I2C_SCX200_MODULES:=\
|
|
|
|
CONFIG_SCx200_I2C:drivers/i2c/busses/scx200_i2c
|
2007-08-28 11:44:15 +00:00
|
|
|
|
2007-04-16 08:03:53 +00:00
|
|
|
define KernelPackage/i2c-scx200
|
2009-08-15 09:12:37 +00:00
|
|
|
$(call i2c_defaults,$(I2C_SCX200_MODULES),59)
|
2007-09-22 04:27:35 +00:00
|
|
|
TITLE:=Geode SCx200 I2C using GPIO pins
|
2009-02-04 02:00:41 +00:00
|
|
|
DEPENDS:=@PCI_SUPPORT @TARGET_x86 +kmod-i2c-algo-bit
|
2009-08-15 09:12:37 +00:00
|
|
|
KCONFIG+= \
|
2009-03-05 21:45:59 +00:00
|
|
|
CONFIG_SCx200_I2C_SCL=12 \
|
|
|
|
CONFIG_SCx200_I2C_SDA=13
|
2007-09-22 04:27:35 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/i2c-scx200/description
|
|
|
|
Kernel module for I2C using GPIO pins on the Geode SCx200 processors.
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,i2c-scx200))
|
|
|
|
|
|
|
|
|
2009-08-15 09:12:37 +00:00
|
|
|
I2C_SCX200_ACB_MODULES:=\
|
2009-08-16 12:39:47 +00:00
|
|
|
CONFIG_SCx200_ACB:drivers/i2c/busses/scx200_acb
|
2009-08-15 09:12:37 +00:00
|
|
|
|
2007-09-22 04:27:35 +00:00
|
|
|
define KernelPackage/i2c-scx200-acb
|
2009-08-15 09:12:37 +00:00
|
|
|
$(call i2c_defaults,$(I2C_SCX200_ACB_MODULES),59)
|
2007-09-22 04:27:35 +00:00
|
|
|
TITLE:=Geode SCx200 ACCESS.bus support
|
2009-02-04 02:00:41 +00:00
|
|
|
DEPENDS:=@PCI_SUPPORT @TARGET_x86 +kmod-i2c-algo-bit
|
2007-04-16 08:03:53 +00:00
|
|
|
endef
|
2007-08-28 11:44:15 +00:00
|
|
|
|
2007-09-22 04:27:35 +00:00
|
|
|
define KernelPackage/i2c-scx200-acb/description
|
2008-04-29 17:18:21 +00:00
|
|
|
Kernel module for I2C using the ACCESS.bus controllers on the Geode SCx200
|
2007-09-17 14:48:01 +00:00
|
|
|
and SC1100 processors and the CS5535 and CS5536 Geode companion devices.
|
2007-09-07 08:34:51 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-22 04:27:35 +00:00
|
|
|
$(eval $(call KernelPackage,i2c-scx200-acb))
|
|
|
|
|
2009-08-15 09:12:37 +00:00
|
|
|
|
|
|
|
OF_I2C_MODULES:=\
|
|
|
|
CONFIG_OF_I2C:drivers/of/of_i2c
|
|
|
|
|
2009-07-19 15:52:10 +00:00
|
|
|
define KernelPackage/of-i2c
|
2009-08-15 09:12:37 +00:00
|
|
|
$(call i2c_defaults,$(OF_I2C_MODULES),58)
|
2009-07-19 15:52:10 +00:00
|
|
|
TITLE:=OpenFirmware I2C accessors
|
|
|
|
DEPENDS:=@TARGET_ppc40x||TARGET_ppc4xx kmod-i2c-core
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/of-i2c/description
|
|
|
|
Kernel module for OpenFirmware I2C accessors.
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,of-i2c))
|
|
|
|
|
|
|
|
|
2009-08-15 09:12:37 +00:00
|
|
|
I2C_IBM_IIC_MODULES:=\
|
|
|
|
CONFIG_I2C_IBM_IIC:drivers/i2c/busses/i2c-ibm_iic
|
|
|
|
|
2009-07-19 12:22:26 +00:00
|
|
|
define KernelPackage/i2c-ibm-iic
|
2009-08-15 09:12:37 +00:00
|
|
|
$(call i2c_defaults,$(OF_I2C_MODULES),59)
|
2009-07-19 12:22:26 +00:00
|
|
|
TITLE:=IBM PPC 4xx on-chip I2C interface support
|
2009-07-19 15:52:10 +00:00
|
|
|
DEPENDS:=@TARGET_ppc40x||TARGET_ppc4xx +kmod-i2c-core +kmod-of-i2c
|
2009-07-19 12:22:26 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/i2c-ibm-iic/description
|
|
|
|
Kernel module for IIC peripheral found on embedded IBM PPC4xx based systems.
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,i2c-ibm-iic))
|