brcm2708: add kmod-drm-vc4 package
[openwrt/openwrt.git] / target / linux / brcm2708 / modules.mk
1 #
2 # Copyright (C) 2012-2016 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 define KernelPackage/drm-vc4
9 SUBMENU:=$(VIDEO_MENU)
10 TITLE:=Broadcom VC4 Graphics
11 DEPENDS:=@TARGET_brcm2708 +kmod-drm
12 KCONFIG:=CONFIG_DRM_VC4
13 FILES:= \
14 $(LINUX_DIR)/drivers/gpu/drm/vc4/vc4.ko \
15 $(LINUX_DIR)/drivers/gpu/drm/drm_kms_helper.ko
16 AUTOLOAD:=$(call AutoProbe,vc4)
17 endef
18
19 define KernelPackage/drm-vc4/description
20 Direct Rendering Manager (DRM) support for Broadcom VideoCore IV GPU
21 used in BCM2835, BCM2836 and BCM2837 SoCs (e.g. Raspberry Pi).
22 endef
23
24 $(eval $(call KernelPackage,drm-vc4))
25
26 define KernelPackage/sound-arm-bcm2835
27 TITLE:=BCM2835 ALSA driver
28 KCONFIG:= \
29 CONFIG_SND_ARM=y \
30 CONFIG_SND_BCM2835 \
31 CONFIG_SND_ARMAACI=n
32 FILES:= \
33 $(LINUX_DIR)/sound/arm/snd-bcm2835.ko
34 AUTOLOAD:=$(call AutoLoad,68,snd-bcm2835)
35 DEPENDS:=@TARGET_brcm2708
36 $(call AddDepends/sound)
37 endef
38
39 define KernelPackage/sound-arm-bcm2835/description
40 This package contains the BCM2835 ALSA pcm card driver
41 endef
42
43 $(eval $(call KernelPackage,sound-arm-bcm2835))
44
45
46 define KernelPackage/sound-soc-bcm2835-i2s
47 TITLE:=SoC Audio support for the Broadcom 2835 I2S module
48 KCONFIG:= \
49 CONFIG_SND_BCM2835_SOC_I2S \
50 CONFIG_SND_SOC_DMAENGINE_PCM=y \
51 CONFIG_SND_SOC_GENERIC_DMAENGINE_PCM=y
52 FILES:= \
53 $(LINUX_DIR)/sound/soc/bcm/snd-soc-bcm2835-i2s.ko
54 AUTOLOAD:=$(call AutoLoad,68,snd-soc-bcm2835-i2s)
55 DEPENDS:=@TARGET_brcm2708 +kmod-regmap +kmod-sound-soc-core
56 $(call AddDepends/sound)
57 endef
58
59 define KernelPackage/sound-soc-bcm2835-i2s/description
60 This package contains support for codecs attached to the Broadcom 2835 I2S interface
61 endef
62
63 $(eval $(call KernelPackage,sound-soc-bcm2835-i2s))
64
65 define KernelPackage/sound-soc-adau1977-adc
66 TITLE:=Support for ADAU1977 ADC
67 KCONFIG:= \
68 CONFIG_SND_BCM2708_SOC_ADAU1977_ADC \
69 CONFIG_SND_SOC_ADAU1977 \
70 CONFIG_SND_SOC_ADAU1977_I2C
71 FILES:= \
72 $(LINUX_DIR)/sound/soc/bcm/snd-soc-adau1977-adc.ko \
73 $(LINUX_DIR)/sound/soc/codecs/snd-soc-adau1977.ko \
74 $(LINUX_DIR)/sound/soc/codecs/snd-soc-adau1977-i2c.ko
75 AUTOLOAD:=$(call AutoLoad,68,snd-soc-adau1977 snd-soc-adau1977-i2c \
76 snd-soc-adau1977-adc)
77 DEPENDS:= \
78 kmod-sound-soc-bcm2835-i2s \
79 +kmod-i2c-bcm2708
80 $(call AddDepends/sound)
81 endef
82
83 define KernelPackage/sound-soc-adau1977-adc/description
84 This package contains support for ADAU1977 ADC
85 endef
86
87 $(eval $(call KernelPackage,sound-soc-adau1977-adc))
88
89 define KernelPackage/sound-soc-allo-piano-dac
90 TITLE:=Support for Allo Piano DAC
91 KCONFIG:= \
92 CONFIG_SND_BCM2708_SOC_ALLO_PIANO_DAC \
93 CONFIG_SND_SOC_PCM512x \
94 CONFIG_SND_SOC_PCM512x_I2C
95 FILES:= \
96 $(LINUX_DIR)/sound/soc/bcm/snd-soc-allo-piano-dac.ko \
97 $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm512x.ko \
98 $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm512x-i2c.ko
99 AUTOLOAD:=$(call AutoLoad,68,snd-soc-pcm512x-i2c snd-soc-pcm512x \
100 snd-soc-allo-piano-dac)
101 DEPENDS:= \
102 kmod-sound-soc-bcm2835-i2s \
103 +kmod-i2c-bcm2708
104 $(call AddDepends/sound)
105 endef
106
107 define KernelPackage/sound-soc-allo-piano-dac/description
108 This package contains support for Allo Piano DAC
109 endef
110
111 $(eval $(call KernelPackage,sound-soc-allo-piano-dac))
112
113 define KernelPackage/sound-soc-audioinjector-pi-soundcard
114 TITLE:=Support for AudioInjector Pi soundcard
115 KCONFIG:= \
116 CONFIG_SND_AUDIOINJECTOR_PI_SOUNDCARD \
117 CONFIG_SND_SOC_WM8731
118 FILES:= \
119 $(LINUX_DIR)/sound/soc/bcm/snd-soc-audioinjector-pi-soundcard.ko \
120 $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8731.ko
121 AUTOLOAD:=$(call AutoLoad,68,snd-soc-wm8731 \
122 snd-soc-audioinjector-pi-soundcard)
123 DEPENDS:= \
124 kmod-sound-soc-bcm2835-i2s \
125 +kmod-i2c-bcm2708
126 $(call AddDepends/sound)
127 endef
128
129 define KernelPackage/sound-soc-audioinjector-pi-soundcard/description
130 This package contains support for AudioInjector Pi soundcard
131 endef
132
133 $(eval $(call KernelPackage,sound-soc-audioinjector-pi-soundcard))
134
135 define KernelPackage/sound-soc-digidac1-soundcard
136 TITLE:=Support for RRA DigiDAC1
137 KCONFIG:= \
138 CONFIG_SND_DIGIDAC1_SOUNDCARD \
139 CONFIG_SND_SOC_WM8741 \
140 CONFIG_SND_SOC_WM8804 \
141 CONFIG_SND_SOC_WM8804_I2C
142 FILES:= \
143 $(LINUX_DIR)/sound/soc/bcm/snd-soc-digidac1-soundcard.ko \
144 $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8741.ko \
145 $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8804.ko \
146 $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8804-i2c.ko
147 AUTOLOAD:=$(call AutoLoad,68,snd-soc-wm8741 \
148 snd-soc-wm8804 snd-soc-wm8804-i2c \
149 snd-soc-digidac1-soundcard)
150 DEPENDS:= \
151 kmod-sound-soc-bcm2835-i2s \
152 +kmod-i2c-bcm2708
153 $(call AddDepends/sound)
154 endef
155
156 define KernelPackage/sound-soc-digidac1-soundcard/description
157 This package contains support for RRA DigiDAC1
158 endef
159
160 $(eval $(call KernelPackage,sound-soc-digidac1-soundcard))
161
162 define KernelPackage/sound-soc-dionaudio-loco
163 TITLE:=Support for Dion Audio LOCO DAC-AMP
164 KCONFIG:= \
165 CONFIG_SND_BCM2708_SOC_DIONAUDIO_LOCO \
166 CONFIG_SND_SOC_PCM5102A
167 FILES:= \
168 $(LINUX_DIR)/sound/soc/bcm/snd-soc-dionaudio-loco.ko \
169 $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm5102a.ko
170 AUTOLOAD:=$(call AutoLoad,68,snd-soc-pcm5102a \
171 snd-soc-dionaudio-loco)
172 DEPENDS:= \
173 kmod-sound-soc-bcm2835-i2s
174 $(call AddDepends/sound)
175 endef
176
177 define KernelPackage/sound-soc-dionaudio-loco/description
178 This package contains support for Dion Audio LOCO DAC-AMP
179 endef
180
181 $(eval $(call KernelPackage,sound-soc-dionaudio-loco))
182
183 define KernelPackage/sound-soc-dionaudio-loco-v2
184 TITLE:=Support for Dion Audio LOCO-V2 DAC-AMP
185 KCONFIG:= \
186 CONFIG_SND_BCM2708_SOC_DIONAUDIO_LOCO_V2 \
187 CONFIG_SND_SOC_PCM512x \
188 CONFIG_SND_SOC_PCM512x_I2C
189 FILES:= \
190 $(LINUX_DIR)/sound/soc/bcm/snd-soc-dionaudio-loco.ko \
191 $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm512x.ko \
192 $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm512x-i2c.ko
193 AUTOLOAD:=$(call AutoLoad,68,snd-soc-pcm512x snd-soc-pcm512x-i2c \
194 snd-soc-dionaudio-loco)
195 DEPENDS:= \
196 kmod-sound-soc-bcm2835-i2s
197 $(call AddDepends/sound)
198 endef
199
200 define KernelPackage/sound-soc-dionaudio-loco-v2/description
201 This package contains support for Dion Audio LOCO-V2 DAC-AMP
202 endef
203
204 $(eval $(call KernelPackage,sound-soc-dionaudio-loco-v2))
205
206 define KernelPackage/sound-soc-fe-pi
207 TITLE:=Support for Fe-Pi Audio Sound Card
208 KCONFIG:= \
209 CONFIG_SND_BCM2708_SOC_FE_PI_AUDIO \
210 CONFIG_SND_SOC_SGTL5000
211 FILES:= \
212 $(LINUX_DIR)/sound/soc/bcm/snd-soc-fe-pi-audio.ko \
213 $(LINUX_DIR)/sound/soc/codecs/snd-soc-sgtl5000.ko
214 AUTOLOAD:=$(call AutoLoad,68,snd-soc-sgtl5000 \
215 snd-soc-fe-pi-audio)
216 DEPENDS:= \
217 kmod-sound-soc-bcm2835-i2s
218 $(call AddDepends/sound)
219 endef
220
221 define KernelPackage/sound-soc-fe-pi/description
222 This package contains support for Fe-Pi Audio Sound Card
223 endef
224
225 $(eval $(call KernelPackage,sound-soc-fe-pi))
226
227 define KernelPackage/sound-soc-hifiberry-dac
228 TITLE:=Support for HifiBerry DAC
229 KCONFIG:= \
230 CONFIG_SND_BCM2708_SOC_HIFIBERRY_DAC \
231 CONFIG_SND_SOC_PCM5102A
232 FILES:= \
233 $(LINUX_DIR)/sound/soc/bcm/snd-soc-hifiberry-dac.ko \
234 $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm5102a.ko
235 AUTOLOAD:=$(call AutoLoad,68,snd-soc-pcm5102a snd-soc-hifiberry-dac)
236 DEPENDS:= \
237 kmod-sound-soc-bcm2835-i2s \
238 +kmod-i2c-bcm2708
239 $(call AddDepends/sound)
240 endef
241
242 define KernelPackage/sound-soc-hifiberry-dac/description
243 This package contains support for HifiBerry DAC
244 endef
245
246 $(eval $(call KernelPackage,sound-soc-hifiberry-dac))
247
248 define KernelPackage/sound-soc-hifiberry-dacplus
249 TITLE:=Support for HifiBerry DAC+ / DAC+ Pro
250 KCONFIG:= \
251 CONFIG_SND_BCM2708_SOC_HIFIBERRY_DACPLUS \
252 CONFIG_SND_SOC_PCM512x
253 FILES:= \
254 $(LINUX_DIR)/drivers/clk/clk-hifiberry-dacpro.ko \
255 $(LINUX_DIR)/sound/soc/bcm/snd-soc-hifiberry-dacplus.ko \
256 $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm512x.ko
257 AUTOLOAD:=$(call AutoLoad,68,clk-hifiberry-dacpro snd-soc-pcm512x \
258 snd-soc-hifiberry-dacplus)
259 DEPENDS:= \
260 kmod-sound-soc-bcm2835-i2s \
261 +kmod-i2c-bcm2708
262 $(call AddDepends/sound)
263 endef
264
265 define KernelPackage/sound-soc-hifiberry-dacplus/description
266 This package contains support for HifiBerry DAC+ / DAC+ Pro
267 endef
268
269 $(eval $(call KernelPackage,sound-soc-hifiberry-dacplus))
270
271 define KernelPackage/sound-soc-hifiberry-digi
272 TITLE:=Support for HifiBerry Digi / Digi+ / Digi+ Pro
273 KCONFIG:= \
274 CONFIG_SND_BCM2708_SOC_HIFIBERRY_DIGI \
275 CONFIG_SND_SOC_WM8804
276 FILES:= \
277 $(LINUX_DIR)/sound/soc/bcm/snd-soc-hifiberry-digi.ko \
278 $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8804.ko
279 AUTOLOAD:=$(call AutoLoad,68,snd-soc-wm8804 snd-soc-hifiberry-digi)
280 DEPENDS:= \
281 kmod-sound-soc-bcm2835-i2s \
282 +kmod-i2c-bcm2708
283 $(call AddDepends/sound)
284 endef
285
286 define KernelPackage/sound-soc-hifiberry-digi/description
287 This package contains support for HifiBerry Digi
288 endef
289
290 $(eval $(call KernelPackage,sound-soc-hifiberry-digi))
291
292 define KernelPackage/sound-soc-hifiberry-amp
293 TITLE:=Support for HifiBerry Amp
294 KCONFIG:= \
295 CONFIG_SND_BCM2708_SOC_HIFIBERRY_AMP \
296 CONFIG_SND_SOC_TAS5713
297 FILES:= \
298 $(LINUX_DIR)/sound/soc/bcm/snd-soc-hifiberry-amp.ko \
299 $(LINUX_DIR)/sound/soc/codecs/snd-soc-tas5713.ko
300 AUTOLOAD:=$(call AutoLoad,68,snd-soc-tas5713 snd-soc-hifiberry-amp)
301 DEPENDS:= \
302 kmod-sound-soc-bcm2835-i2s \
303 +kmod-i2c-bcm2708
304 $(call AddDepends/sound)
305 endef
306
307 define KernelPackage/sound-soc-hifiberry-amp/description
308 This package contains support for HifiBerry Amp
309 endef
310
311 $(eval $(call KernelPackage,sound-soc-hifiberry-amp))
312
313 define KernelPackage/sound-soc-iqaudio-dac
314 TITLE:=Support for IQaudIO-DAC
315 KCONFIG:= \
316 CONFIG_SND_BCM2708_SOC_IQAUDIO_DAC \
317 CONFIG_SND_SOC_PCM512x \
318 CONFIG_SND_SOC_PCM512x_I2C
319 FILES:= \
320 $(LINUX_DIR)/sound/soc/bcm/snd-soc-iqaudio-dac.ko \
321 $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm512x.ko \
322 $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm512x-i2c.ko
323 AUTOLOAD:=$(call AutoLoad,68,snd-soc-pcm512x snd-soc-pcm512x-i2c \
324 snd-soc-iqaudio-dac)
325 DEPENDS:= \
326 kmod-sound-soc-bcm2835-i2s \
327 +kmod-i2c-bcm2708
328 $(call AddDepends/sound)
329 endef
330
331 define KernelPackage/sound-soc-iqaudio-dac/description
332 This package contains support for IQaudIO-DAC
333 endef
334
335 $(eval $(call KernelPackage,sound-soc-iqaudio-dac))
336
337 define KernelPackage/sound-soc-iqaudio-digi
338 TITLE:=Support for IQaudIO-DIGI
339 KCONFIG:= \
340 CONFIG_SND_BCM2708_SOC_IQAUDIO_DIGI \
341 CONFIG_SND_SOC_WM8804 \
342 CONFIG_SND_SOC_WM8804_I2C
343 FILES:= \
344 $(LINUX_DIR)/sound/soc/bcm/snd-soc-iqaudio-digi.ko \
345 $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8804.ko \
346 $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8804-i2c.ko
347 AUTOLOAD:=$(call AutoLoad,68,snd-soc-wm8804 snd-soc-wm8804-i2c \
348 snd-soc-iqaudio-digi)
349 DEPENDS:= \
350 kmod-sound-soc-bcm2835-i2s \
351 +kmod-i2c-bcm2708
352 $(call AddDepends/sound)
353 endef
354
355 define KernelPackage/sound-soc-iqaudio-digi/description
356 This package contains support for IQaudIO-DIGI
357 endef
358
359 $(eval $(call KernelPackage,sound-soc-iqaudio-digi))
360
361 define KernelPackage/sound-soc-justboom-dac
362 TITLE:=Support for JustBoom DAC
363 KCONFIG:= \
364 CONFIG_SND_BCM2708_SOC_JUSTBOOM_DAC \
365 CONFIG_SND_SOC_PCM512x
366 FILES:= \
367 $(LINUX_DIR)/sound/soc/bcm/snd-soc-justboom-dac.ko \
368 $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm512x.ko
369 AUTOLOAD:=$(call AutoLoad,68,snd-soc-pcm512x snd-soc-justboom-dac)
370 DEPENDS:= \
371 kmod-sound-soc-bcm2835-i2s \
372 +kmod-i2c-bcm2708
373 $(call AddDepends/sound)
374 endef
375
376 define KernelPackage/sound-soc-justboom-dac/description
377 This package contains support for JustBoom DAC
378 endef
379
380 $(eval $(call KernelPackage,sound-soc-justboom-dac))
381
382 define KernelPackage/sound-soc-justboom-digi
383 TITLE:=Support for JustBoom Digi
384 KCONFIG:= \
385 CONFIG_SND_BCM2708_SOC_JUSTBOOM_DIGI \
386 CONFIG_SND_SOC_WM8804
387 FILES:= \
388 $(LINUX_DIR)/sound/soc/bcm/snd-soc-justboom-digi.ko \
389 $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8804.ko
390 AUTOLOAD:=$(call AutoLoad,68,snd-soc-wm8804 snd-soc-justboom-digi)
391 DEPENDS:= \
392 kmod-sound-soc-bcm2835-i2s \
393 +kmod-i2c-bcm2708
394 $(call AddDepends/sound)
395 endef
396
397 define KernelPackage/sound-soc-justboom-digi/description
398 This package contains support for JustBoom Digi
399 endef
400
401 $(eval $(call KernelPackage,sound-soc-justboom-digi))
402
403 define KernelPackage/sound-soc-pisound
404 TITLE:=Support for Blokas Labs PiSound
405 KCONFIG:= \
406 CONFIG_SND_PISOUND \
407 CONFIG_SND_SOC_PCM5102A
408 FILES:= \
409 $(LINUX_DIR)/sound/soc/bcm/snd-soc-pisound.ko \
410 $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm5102a.ko
411 AUTOLOAD:=$(call AutoLoad,68,snd-soc-pcm5102a snd-soc-pisound)
412 DEPENDS:= \
413 kmod-sound-soc-bcm2835-i2s
414 $(call AddDepends/sound)
415 endef
416
417 define KernelPackage/sound-soc-pisound/description
418 This package contains support for Blokas Labs PiSound
419 endef
420
421 $(eval $(call KernelPackage,sound-soc-pisound))
422
423 define KernelPackage/sound-soc-raspidac3
424 TITLE:=Support for RaspiDAC Rev.3x
425 KCONFIG:= \
426 CONFIG_SND_BCM2708_SOC_RASPIDAC3 \
427 CONFIG_SND_SOC_PCM512x \
428 CONFIG_SND_SOC_PCM512x_I2C \
429 CONFIG_SND_SOC_TPA6130A2
430 FILES:= \
431 $(LINUX_DIR)/sound/soc/bcm/snd-soc-raspidac3.ko \
432 $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm512x.ko \
433 $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm512x-i2c.ko \
434 $(LINUX_DIR)/sound/soc/codecs/snd-soc-tpa6130a2.ko
435 AUTOLOAD:=$(call AutoLoad,68,snd-soc-pcm512x snd-soc-pcm512x-i2c \
436 snd-soc-tpa6130a2 snd-soc-raspidac3)
437 DEPENDS:= \
438 kmod-sound-soc-bcm2835-i2s \
439 +kmod-i2c-bcm2708
440 $(call AddDepends/sound)
441 endef
442
443 define KernelPackage/sound-soc-raspidac3/description
444 This package contains support for RaspiDAC Rev.3x
445 endef
446
447 $(eval $(call KernelPackage,sound-soc-raspidac3))
448
449 define KernelPackage/sound-soc-rpi-dac
450 TITLE:=Support for RPi-DAC
451 KCONFIG:= \
452 CONFIG_SND_BCM2708_SOC_RPI_DAC \
453 CONFIG_SND_SOC_PCM1794A
454 FILES:= \
455 $(LINUX_DIR)/sound/soc/bcm/snd-soc-rpi-dac.ko \
456 $(LINUX_DIR)/sound/soc/codecs/snd-soc-pcm1794a.ko
457 AUTOLOAD:=$(call AutoLoad,68,snd-soc-pcm1794a snd-soc-rpi-dac)
458 DEPENDS:= \
459 kmod-sound-soc-bcm2835-i2s \
460 +kmod-i2c-bcm2708
461 $(call AddDepends/sound)
462 endef
463
464 define KernelPackage/sound-soc-rpi-dac/description
465 This package contains support for RPi-DAC
466 endef
467
468 $(eval $(call KernelPackage,sound-soc-rpi-dac))
469
470 define KernelPackage/sound-soc-rpi-proto
471 TITLE:=Support for RPi-PROTO
472 KCONFIG:= \
473 CONFIG_SND_BCM2708_SOC_RPI_PROTO \
474 CONFIG_SND_SOC_WM8731
475 FILES:= \
476 $(LINUX_DIR)/sound/soc/bcm/snd-soc-rpi-proto.ko \
477 $(LINUX_DIR)/sound/soc/codecs/snd-soc-wm8731.ko
478 AUTOLOAD:=$(call AutoLoad,68,snd-soc-wm8731 snd-soc-rpi-proto)
479 DEPENDS:= \
480 kmod-sound-soc-bcm2835-i2s \
481 +kmod-i2c-bcm2708
482 $(call AddDepends/sound)
483 endef
484
485 define KernelPackage/sound-soc-rpi-proto/description
486 This package contains support for RPi-PROTO
487 endef
488
489 $(eval $(call KernelPackage,sound-soc-rpi-proto))
490
491
492 define KernelPackage/random-bcm2835
493 SUBMENU:=$(OTHER_MENU)
494 TITLE:=BCM2835 HW Random Number Generator
495 KCONFIG:=CONFIG_HW_RANDOM_BCM2835
496 FILES:=$(LINUX_DIR)/drivers/char/hw_random/bcm2835-rng.ko
497 AUTOLOAD:=$(call AutoLoad,11,bcm2835-rng)
498 DEPENDS:=@TARGET_brcm2708 +kmod-random-core
499 endef
500
501 define KernelPackage/random-bcm2835/description
502 This package contains the Broadcom 2835 HW random number generator driver
503 endef
504
505 $(eval $(call KernelPackage,random-bcm2835))
506
507
508 define KernelPackage/smi-bcm2835
509 SUBMENU:=$(OTHER_MENU)
510 TITLE:=BCM2835 SMI driver
511 KCONFIG:=CONFIG_BCM2835_SMI
512 FILES:=$(LINUX_DIR)/drivers/misc/bcm2835_smi.ko
513 AUTOLOAD:=$(call AutoLoad,20,bcm2835_smi)
514 DEPENDS:=@TARGET_brcm2708
515 endef
516
517 define KernelPackage/smi-bcm2835/description
518 This package contains the Character device driver for Broadcom Secondary
519 Memory Interface
520 endef
521
522 $(eval $(call KernelPackage,smi-bcm2835))
523
524 define KernelPackage/smi-bcm2835-dev
525 SUBMENU:=$(OTHER_MENU)
526 TITLE:=BCM2835 SMI device driver
527 KCONFIG:=CONFIG_BCM2835_SMI_DEV
528 FILES:=$(LINUX_DIR)/drivers/char/broadcom/bcm2835_smi_dev.ko
529 AUTOLOAD:=$(call AutoLoad,21,bcm2835_smi_dev)
530 DEPENDS:=@TARGET_brcm2708 +kmod-smi-bcm2835
531 endef
532
533 define KernelPackage/smi-bcm2835-dev/description
534 This driver provides a character device interface (ioctl + read/write) to
535 Broadcom's Secondary Memory interface. The low-level functionality is provided
536 by the SMI driver itself.
537 endef
538
539 $(eval $(call KernelPackage,smi-bcm2835-dev))
540
541
542 define KernelPackage/spi-bcm2835
543 SUBMENU:=$(SPI_MENU)
544 TITLE:=BCM2835 SPI controller driver
545 KCONFIG:=\
546 CONFIG_SPI=y \
547 CONFIG_SPI_BCM2835 \
548 CONFIG_SPI_MASTER=y
549 FILES:=$(LINUX_DIR)/drivers/spi/spi-bcm2835.ko
550 AUTOLOAD:=$(call AutoLoad,89,spi-bcm2835)
551 DEPENDS:=@TARGET_brcm2708
552 endef
553
554 define KernelPackage/spi-bcm2835/description
555 This package contains the Broadcom 2835 SPI master controller driver
556 endef
557
558 $(eval $(call KernelPackage,spi-bcm2835))
559
560 define KernelPackage/spi-bcm2835-aux
561 SUBMENU:=$(SPI_MENU)
562 TITLE:=BCM2835 Aux SPI controller driver
563 KCONFIG:=\
564 CONFIG_SPI=y \
565 CONFIG_SPI_BCM2835AUX \
566 CONFIG_SPI_MASTER=y
567 FILES:=$(LINUX_DIR)/drivers/spi/spi-bcm2835aux.ko
568 AUTOLOAD:=$(call AutoLoad,89,spi-bcm2835aux)
569 DEPENDS:=@TARGET_brcm2708
570 endef
571
572 define KernelPackage/spi-bcm2835-aux/description
573 This package contains the Broadcom 2835 Aux SPI master controller driver
574 endef
575
576 $(eval $(call KernelPackage,spi-bcm2835-aux))
577
578
579 define KernelPackage/hwmon-bcm2835
580 TITLE:=BCM2835 HWMON driver
581 KCONFIG:=CONFIG_SENSORS_BCM2835
582 FILES:=$(LINUX_DIR)/drivers/hwmon/bcm2835-hwmon.ko
583 AUTOLOAD:=$(call AutoLoad,60,bcm2835-hwmon)
584 $(call AddDepends/hwmon,@TARGET_brcm2708)
585 endef
586
587 define KernelPackage/hwmon-bcm2835/description
588 Kernel module for BCM2835 thermal monitor chip
589 endef
590
591 $(eval $(call KernelPackage,hwmon-bcm2835))
592
593
594 I2C_BCM2708_MODULES:=\
595 CONFIG_I2C_BCM2708:drivers/i2c/busses/i2c-bcm2708
596
597 define KernelPackage/i2c-bcm2708
598 $(call i2c_defaults,$(I2C_BCM2708_MODULES),59)
599 TITLE:=Broadcom BCM2708 I2C master controller driver
600 KCONFIG+= \
601 CONFIG_I2C_BCM2708_BAUDRATE=100000
602 DEPENDS:=@TARGET_brcm2708 +kmod-i2c-core
603 endef
604
605 define KernelPackage/i2c-bcm2708/description
606 This package contains the Broadcom 2708 I2C master controller driver
607 endef
608
609 $(eval $(call KernelPackage,i2c-bcm2708))
610
611 I2C_BCM2835_MODULES:=\
612 CONFIG_I2C_BCM2835:drivers/i2c/busses/i2c-bcm2835
613
614 define KernelPackage/i2c-bcm2835
615 $(call i2c_defaults,$(I2C_BCM2835_MODULES),59)
616 TITLE:=Broadcom BCM2835 I2C master controller driver
617 DEPENDS:=@TARGET_brcm2708 +kmod-i2c-core
618 endef
619
620 define KernelPackage/i2c-bcm2835/description
621 This package contains the Broadcom 2835 I2C master controller driver
622 endef
623
624 $(eval $(call KernelPackage,i2c-bcm2835))
625
626
627 define KernelPackage/video-bcm2835
628 TITLE:=Broadcom BCM2835 camera interface driver
629 KCONFIG:= \
630 CONFIG_VIDEO_BCM2835=y \
631 CONFIG_VIDEO_BCM2835_MMAL
632 FILES:= $(LINUX_DIR)/drivers/media/platform/bcm2835/bcm2835-v4l2.ko
633 AUTOLOAD:=$(call AutoLoad,65,bcm2835-v4l2)
634 $(call AddDepends/video,@TARGET_brcm2708 +kmod-video-videobuf2)
635 endef
636
637 define KernelPackage/video-bcm2835/description
638 This is a V4L2 driver for the Broadcom 2835 MMAL camera host interface
639 endef
640
641 $(eval $(call KernelPackage,video-bcm2835))