source: branches/backfire/package/kernel/modules/i2c.mk @ 29300

Last change on this file since 29300 was 29300, checked in by nico, 5 years ago

[backfire] cleanup: remove refs to unsupported "etrax" target

  • Property svn:eol-style set to native
File size: 4.4 KB
Line 
1#
2# Copyright (C) 2006-2009 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8I2C_MENU:=I2C support
9
10ModuleConfVar=$(word 1,$(subst :,$(space),$(1)))
11ModuleFullPath=$(if $(findstring y,$($(call ModuleConfVar,$(1)))),,$(LINUX_DIR)/$(word 2,$(subst :,$(space),$(1))).$(LINUX_KMOD_SUFFIX))
12ModuleKconfig=$(foreach mod,$(1),$(call ModuleConfVar,$(mod)))
13ModuleFiles=$(foreach mod,$(1),$(call ModuleFullPath,$(mod)))
14ModuleAuto=$(call AutoLoad,$(1),$(foreach mod,$(2),$(basename $(notdir $(call ModuleFullPath,$(mod))))),$(3))
15
16define i2c_defaults
17  SUBMENU:=$(I2C_MENU)
18  KCONFIG:=$(call ModuleKconfig,$(1))
19  FILES:=$(call ModuleFiles,$(1))
20  AUTOLOAD:=$(call ModuleAuto,$(2),$(1),$(3))
21endef
22
23I2C_CORE_MODULES:= \
24  CONFIG_I2C:drivers/i2c/i2c-core \
25  CONFIG_I2C_CHARDEV:drivers/i2c/i2c-dev
26
27define KernelPackage/i2c-core
28  $(call i2c_defaults,$(I2C_CORE_MODULES),51)
29  TITLE:=I2C support
30  DEPENDS:=@LINUX_2_6
31endef
32
33define KernelPackage/i2c-core/description
34 Kernel modules for I2C support
35endef
36
37$(eval $(call KernelPackage,i2c-core))
38
39
40I2C_ALGOBIT_MODULES:= \
41  CONFIG_I2C_ALGOBIT:drivers/i2c/algos/i2c-algo-bit
42
43define KernelPackage/i2c-algo-bit
44  $(call i2c_defaults,$(I2C_ALGOBIT_MODULES),55)
45  TITLE:=I2C bit-banging interfaces
46  DEPENDS:=kmod-i2c-core
47endef
48
49define KernelPackage/i2c-algo-bit/description
50 Kernel modules for I2C bit-banging interfaces.
51endef
52
53$(eval $(call KernelPackage,i2c-algo-bit))
54
55
56I2C_ALGOPCA_MODULES:= \
57  CONFIG_I2C_ALGOPCA:drivers/i2c/algos/i2c-algo-pca
58
59define KernelPackage/i2c-algo-pca
60  $(call i2c_defaults,$(I2C_ALGOPCA_MODULES),55)
61  TITLE:=I2C PCA 9564 interfaces
62  DEPENDS:=kmod-i2c-core
63endef
64
65define KernelPackage/i2c-algo-pca/description
66 Kernel modules for I2C PCA 9564 interfaces.
67endef
68
69$(eval $(call KernelPackage,i2c-algo-pca))
70
71
72I2C_ALGOPCF_MODULES:= \
73  CONFIG_I2C_ALGOPCF:drivers/i2c/algos/i2c-algo-pcf
74
75define KernelPackage/i2c-algo-pcf
76  $(call i2c_defaults,$(I2C_ALGOPCF_MODULES),55)
77  TITLE:=I2C PCF 8584 interfaces
78  DEPENDS:=kmod-i2c-core
79endef
80
81define KernelPackage/i2c-algo-pcf/description
82 Kernel modules for I2C PCF 8584 interfaces
83endef
84
85$(eval $(call KernelPackage,i2c-algo-pcf))
86
87
88I2C_GPIO_MODULES:= \
89  CONFIG_I2C_GPIO:drivers/i2c/busses/i2c-gpio
90
91define KernelPackage/i2c-gpio
92  $(call i2c_defaults,$(I2C_GPIO_MODULES),59)
93  TITLE:=GPIO-based bitbanging I2C
94  DEPENDS:=@GPIO_SUPPORT +kmod-i2c-algo-bit
95endef
96
97define KernelPackage/i2c-gpio/description
98 Kernel modules for a very simple bitbanging I2C driver utilizing the
99 arch-neutral GPIO API to control the SCL and SDA lines.
100endef
101
102$(eval $(call KernelPackage,i2c-gpio))
103
104I2C_SCX200_MODULES:=\
105  CONFIG_SCx200_I2C:drivers/i2c/busses/scx200_i2c
106
107define KernelPackage/i2c-scx200
108  $(call i2c_defaults,$(I2C_SCX200_MODULES),59)
109  TITLE:=Geode SCx200 I2C using GPIO pins
110  DEPENDS:=@PCI_SUPPORT @TARGET_x86 +kmod-i2c-algo-bit
111  KCONFIG+= \
112        CONFIG_SCx200_I2C_SCL=12 \
113        CONFIG_SCx200_I2C_SDA=13
114endef
115
116define KernelPackage/i2c-scx200/description
117 Kernel module for I2C using GPIO pins on the Geode SCx200 processors.
118endef
119
120$(eval $(call KernelPackage,i2c-scx200))
121
122
123I2C_SCX200_ACB_MODULES:=\
124  CONFIG_SCx200_ACB:drivers/i2c/busses/scx200_acb
125
126define KernelPackage/i2c-scx200-acb
127  $(call i2c_defaults,$(I2C_SCX200_ACB_MODULES),59)
128  TITLE:=Geode SCx200 ACCESS.bus support
129  DEPENDS:=@PCI_SUPPORT @TARGET_x86 +kmod-i2c-algo-bit
130endef
131
132define KernelPackage/i2c-scx200-acb/description
133 Kernel module for I2C using the ACCESS.bus controllers on the Geode SCx200
134 and SC1100 processors and the CS5535 and CS5536 Geode companion devices.
135endef
136
137$(eval $(call KernelPackage,i2c-scx200-acb))
138
139
140OF_I2C_MODULES:=\
141  CONFIG_OF_I2C:drivers/of/of_i2c
142
143define KernelPackage/of-i2c
144  $(call i2c_defaults,$(OF_I2C_MODULES),58)
145  TITLE:=OpenFirmware I2C accessors
146  DEPENDS:=@TARGET_ppc40x||TARGET_ppc4xx kmod-i2c-core
147endef
148
149define KernelPackage/of-i2c/description
150 Kernel module for OpenFirmware I2C accessors.
151endef
152
153$(eval $(call KernelPackage,of-i2c))
154
155
156I2C_IBM_IIC_MODULES:=\
157  CONFIG_I2C_IBM_IIC:drivers/i2c/busses/i2c-ibm_iic
158
159define KernelPackage/i2c-ibm-iic
160  $(call i2c_defaults,$(OF_I2C_MODULES),59)
161  TITLE:=IBM PPC 4xx on-chip I2C interface support
162  DEPENDS:=@TARGET_ppc40x||TARGET_ppc4xx +kmod-i2c-core +kmod-of-i2c
163endef
164
165define KernelPackage/i2c-ibm-iic/description
166 Kernel module for IIC peripheral found on embedded IBM PPC4xx based systems.
167endef
168
169$(eval $(call KernelPackage,i2c-ibm-iic))
Note: See TracBrowser for help on using the repository browser.