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