omap24xx: Fix MUSB compile
[openwrt.git] / package / kernel / modules / i2c.mk
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
8 I2C_MENU:=I2C support
9
10 ModuleConfVar=$(word 1,$(subst :,$(space),$(1)))
11 ModuleFullPath=$(if $(findstring y,$($(call ModuleConfVar,$(1)))),,$(LINUX_DIR)/$(word 2,$(subst :,$(space),$(1))).ko)
12 ModuleKconfig=$(foreach mod,$(1),$(call ModuleConfVar,$(mod)))
13 ModuleFiles=$(foreach mod,$(1),$(call ModuleFullPath,$(mod)))
14 ModuleAuto=$(call AutoLoad,$(1),$(foreach mod,$(2),$(basename $(notdir $(call ModuleFullPath,$(mod))))),$(3))
15
16 define i2c_defaults
17 SUBMENU:=$(I2C_MENU)
18 KCONFIG:=$(call ModuleKconfig,$(1))
19 FILES:=$(call ModuleFiles,$(1))
20 AUTOLOAD:=$(call ModuleAuto,$(2),$(1),$(3))
21 endef
22
23 I2C_CORE_MODULES:= \
24 CONFIG_I2C:drivers/i2c/i2c-core \
25 CONFIG_I2C_CHARDEV:drivers/i2c/i2c-dev
26
27 define KernelPackage/i2c-core
28 $(call i2c_defaults,$(I2C_CORE_MODULES),51)
29 TITLE:=I2C support
30 DEPENDS:=@!TARGET_etrax
31 endef
32
33 define KernelPackage/i2c-core/description
34 Kernel modules for I2C support
35 endef
36
37 $(eval $(call KernelPackage,i2c-core))
38
39
40 I2C_ALGOBIT_MODULES:= \
41 CONFIG_I2C_ALGOBIT:drivers/i2c/algos/i2c-algo-bit
42
43 define KernelPackage/i2c-algo-bit
44 $(call i2c_defaults,$(I2C_ALGOBIT_MODULES),55)
45 TITLE:=I2C bit-banging interfaces
46 DEPENDS:=kmod-i2c-core
47 endef
48
49 define KernelPackage/i2c-algo-bit/description
50 Kernel modules for I2C bit-banging interfaces.
51 endef
52
53 $(eval $(call KernelPackage,i2c-algo-bit))
54
55
56 I2C_ALGOPCA_MODULES:= \
57 CONFIG_I2C_ALGOPCA:drivers/i2c/algos/i2c-algo-pca
58
59 define KernelPackage/i2c-algo-pca
60 $(call i2c_defaults,$(I2C_ALGOPCA_MODULES),55)
61 TITLE:=I2C PCA 9564 interfaces
62 DEPENDS:=kmod-i2c-core
63 endef
64
65 define KernelPackage/i2c-algo-pca/description
66 Kernel modules for I2C PCA 9564 interfaces.
67 endef
68
69 $(eval $(call KernelPackage,i2c-algo-pca))
70
71
72 I2C_ALGOPCF_MODULES:= \
73 CONFIG_I2C_ALGOPCF:drivers/i2c/algos/i2c-algo-pcf
74
75 define KernelPackage/i2c-algo-pcf
76 $(call i2c_defaults,$(I2C_ALGOPCF_MODULES),55)
77 TITLE:=I2C PCF 8584 interfaces
78 DEPENDS:=kmod-i2c-core
79 endef
80
81 define KernelPackage/i2c-algo-pcf/description
82 Kernel modules for I2C PCF 8584 interfaces
83 endef
84
85 $(eval $(call KernelPackage,i2c-algo-pcf))
86
87
88 I2C_GPIO_MODULES:= \
89 CONFIG_I2C_GPIO:drivers/i2c/busses/i2c-gpio
90
91 define 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
95 endef
96
97 define 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.
100 endef
101
102 $(eval $(call KernelPackage,i2c-gpio))
103
104 I2C_SCX200_MODULES:=\
105 CONFIG_SCx200_I2C:drivers/i2c/busses/scx200_i2c
106
107 define 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
114 endef
115
116 define KernelPackage/i2c-scx200/description
117 Kernel module for I2C using GPIO pins on the Geode SCx200 processors.
118 endef
119
120 $(eval $(call KernelPackage,i2c-scx200))
121
122
123 I2C_SCX200_ACB_MODULES:=\
124 CONFIG_SCx200_ACB:drivers/i2c/busses/scx200_acb
125
126 define 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
130 endef
131
132 define 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.
135 endef
136
137 $(eval $(call KernelPackage,i2c-scx200-acb))
138
139
140 OF_I2C_MODULES:=\
141 CONFIG_OF_I2C:drivers/of/of_i2c
142
143 define 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
147 endef
148
149 define KernelPackage/of-i2c/description
150 Kernel module for OpenFirmware I2C accessors.
151 endef
152
153 $(eval $(call KernelPackage,of-i2c))
154
155
156 I2C_IBM_IIC_MODULES:=\
157 CONFIG_I2C_IBM_IIC:drivers/i2c/busses/i2c-ibm_iic
158
159 define 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
163 endef
164
165 define KernelPackage/i2c-ibm-iic/description
166 Kernel module for IIC peripheral found on embedded IBM PPC4xx based systems.
167 endef
168
169 $(eval $(call KernelPackage,i2c-ibm-iic))
170
171 I2C_MV64XXX_MODULES:=\
172 CONFIG_I2C_MV64XXX:drivers/i2c/busses/i2c-mv64xxx
173
174 define KernelPackage/i2c-mv64xxx
175 $(call i2c_defaults,$(I2C_MV64XXX_MODULES),59)
176 TITLE:=Orion Platform I2C interface support
177 DEPENDS:=@TARGET_kirkwood||TARGET_orion +kmod-i2c-core
178 endef
179
180 define KernelPackage/i2c-mv64xxx/description
181 Kernel module for I2C interface on the Kirkwood and Orion
182 family processors.
183 endef
184
185 $(eval $(call KernelPackage,i2c-mv64xxx))
186
187
188 I2C_AT91_MODULES:=\
189 CONFIG_I2C_AT91:drivers/i2c/busses/i2c-at91
190
191 define KernelPackage/at91-i2c
192 $(call i2c_defaults,$(I2C_AT91_MODULES),55)
193 TITLE:=I2C (TWI) master driver for Atmel AT91
194 DEPENDS:=@TARGET_at91 +kmod-i2c-core
195 endef
196
197 define KernelPackage/at91-i2c/description
198 Kernel module to use the I2C (TWI) master driver for Atmel AT91
199 endef
200
201 $(eval $(call KernelPackage,at91-i2c))
202
203 I2C_OCTEON_MODULES:=\
204 CONFIG_I2C_OCTEON:drivers/i2c/busses/i2c-octeon
205
206 define KernelPackage/octeon-i2c
207 $(call i2c_defaults,$(I2C_OCTEON_MODULES),59)
208 TITLE:=I2C master driver for Cavium Octeon
209 DEPENDS:=@TARGET_octeon +kmod-i2c-core
210 endef
211
212 define KernelPackage/octeon-i2c/description
213 Kernel module to use the I2C master driver on Cavium Octeon
214 endef
215
216 $(eval $(call KernelPackage,octeon-i2c))
217
218
219 I2C_TINY_USB_MODULES:= \
220 CONFIG_I2C_TINY_USB:drivers/i2c/busses/i2c-tiny-usb
221
222 define KernelPackage/i2c-tiny-usb
223 $(call i2c_defaults,$(I2C_TINY_USB_MODULES),59)
224 TITLE:=I2C Tiny USB adaptor
225 DEPENDS:=@USB_SUPPORT kmod-i2c-core
226 endef
227
228 define KernelPackage/i2c-tiny-usb/description
229 Kernel module for the I2C Tiny USB adaptor developed
230 by Till Harbaum (http://www.harbaum.org/till/i2c_tiny_usb).
231 endef
232
233 $(eval $(call KernelPackage,i2c-tiny-usb))
234
235 I2C_MUX_MODULES:= \
236 CONFIG_I2C_MUX:drivers/i2c/i2c-mux
237
238 define KernelPackage/i2c-mux
239 $(call i2c_defaults,$(I2C_MUX_MODULES),51)
240 TITLE:=I2C bus multiplexing support
241 DEPENDS:=kmod-i2c-core
242 endef
243
244 define KernelPackage/i2c-mux/description
245 Kernel modules for I2C bus multiplexing support.
246 endef
247
248 $(eval $(call KernelPackage,i2c-mux))
249
250 I2C_MUX_GPIO_MODULES:= \
251 CONFIG_I2C_MUX_GPIO:drivers/i2c/muxes/gpio-i2cmux
252
253 define KernelPackage/i2c-mux-gpio
254 $(call i2c_defaults,$(I2C_MUX_GPIO_MODULES),51)
255 TITLE:=GPIO-based I2C mux/switches
256 DEPENDS:=kmod-i2c-mux
257 endef
258
259 define KernelPackage/i2c-mux-gpio/description
260 Kernel modules for GENERIC_GPIO I2C bus mux/switching devices.
261 endef
262
263 $(eval $(call KernelPackage,i2c-mux-gpio))
264
265 I2C_MUX_PCA954x_MODULES:= \
266 CONFIG_I2C_MUX_PCA954x:drivers/i2c/muxes/pca954x
267
268 define KernelPackage/i2c-mux-pca954x
269 $(call i2c_defaults,$(I2C_MUX_PCA954x_MODULES),51)
270 TITLE:=Philips PCA954x I2C mux/switches
271 DEPENDS:=kmod-i2c-mux
272 endef
273
274 define KernelPackage/i2c-mux-pca954x/description
275 Kernel modules for PCA954x I2C bus mux/switching devices.
276 endef
277
278 $(eval $(call KernelPackage,i2c-mux-pca954x))
279 ## Support for pca954x seems to be in kernel since 2.6.36
280
281 I2C_MUX_PCA9541_MODULES:= \
282 CONFIG_I2C_MUX_PCA9541:drivers/i2c/muxes/pca9541
283
284 define KernelPackage/i2c-mux-pca9541
285 $(call i2c_defaults,$(I2C_MUX_PCA9541_MODULES),51)
286 TITLE:=Philips PCA9541 I2C mux/switches
287 DEPENDS:=kmod-i2c-mux
288 endef
289
290 define KernelPackage/i2c-mux-pca9541/description
291 Kernel modules for PCA9541 I2C bus mux/switching devices.
292 endef
293
294 $(eval $(call KernelPackage,i2c-mux-pca9541))
295
296 GPIO_PCA953X_MODULES:= \
297 CONFIG_GPIO_PCA953X:drivers/gpio/pca953x
298
299 define KernelPackage/pca953x
300 $(call i2c_defaults,$(GPIO_PCA953X_MODULES),51)
301 TITLE:=Philips PCA953x I2C GPIO extenders
302 DEPENDS:=kmod-i2c-core
303 endef
304
305 define KernelPackage/pca953x/description
306 Kernel modules for PCA953x I2C GPIO extenders.
307 endef
308
309 $(eval $(call KernelPackage,pca953x))
310
311 GPIO_PCF857X_MODULES:= \
312 CONFIG_GPIO_PCF857X:drivers/gpio/pcf857x
313
314 define KernelPackage/pcf857x
315 $(call i2c_defaults,$(GPIO_PCF857X_MODULES),51)
316 TITLE:=Philips PCF857x I2C GPIO extenders
317 DEPENDS:=kmod-i2c-core
318 endef
319
320 define KernelPackage/pcf857x/description
321 Kernel modules for PCF857x I2C GPIO extenders.
322 endef
323
324 $(eval $(call KernelPackage,pcf857x))
This page took 0.053471 seconds and 5 git commands to generate.