[omap24xx] move omap specific modules to modules.mk
[openwrt.git] / package / kernel / modules / other.mk
1 #
2 # Copyright (C) 2006-2012 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 OTHER_MENU:=Other modules
9
10 WATCHDOG_DIR:=watchdog
11
12
13 define KernelPackage/bluetooth
14   SUBMENU:=$(OTHER_MENU)
15   TITLE:=Bluetooth support
16   DEPENDS:=@USB_SUPPORT +kmod-usb-core
17   KCONFIG:= \
18         CONFIG_BLUEZ \
19         CONFIG_BLUEZ_L2CAP \
20         CONFIG_BLUEZ_SCO \
21         CONFIG_BLUEZ_RFCOMM \
22         CONFIG_BLUEZ_BNEP \
23         CONFIG_BLUEZ_HCIUART \
24         CONFIG_BLUEZ_HCIUSB \
25         CONFIG_BLUEZ_HIDP \
26         CONFIG_BT \
27         CONFIG_BT_L2CAP=y \
28         CONFIG_BT_SCO=y \
29         CONFIG_BT_RFCOMM \
30         CONFIG_BT_BNEP \
31         CONFIG_BT_HCIBTUSB \
32         CONFIG_BT_HCIUSB \
33         CONFIG_BT_HCIUART \
34         CONFIG_BT_HCIUART_H4 \
35         CONFIG_BT_HIDP \
36         CONFIG_HID_SUPPORT=y
37   $(call AddDepends/crc16)
38   $(call AddDepends/hid)
39   $(call AddDepends/rfkill)
40   FILES:= \
41         $(LINUX_DIR)/net/bluetooth/bluetooth.ko \
42         $(LINUX_DIR)/net/bluetooth/rfcomm/rfcomm.ko \
43         $(LINUX_DIR)/net/bluetooth/bnep/bnep.ko \
44         $(LINUX_DIR)/net/bluetooth/hidp/hidp.ko \
45         $(LINUX_DIR)/drivers/bluetooth/hci_uart.ko \
46         $(LINUX_DIR)/drivers/bluetooth/btusb.ko
47   AUTOLOAD:=$(call AutoLoad,90,bluetooth rfcomm bnep hidp hci_uart btusb)
48 endef
49
50 define KernelPackage/bluetooth/description
51  Kernel support for Bluetooth devices
52 endef
53
54 $(eval $(call KernelPackage,bluetooth))
55
56
57 define KernelPackage/bluetooth-hci-h4p
58   SUBMENU:=$(OTHER_MENU)
59   TITLE:=HCI driver with H4 Nokia extensions
60   DEPENDS:=@TARGET_omap24xx +kmod-bluetooth
61   KCONFIG:=CONFIG_BT_HCIH4P
62   FILES:=$(LINUX_DIR)/drivers/bluetooth/hci_h4p/hci_h4p.ko
63   AUTOLOAD:=$(call AutoLoad,91,hci_h4p)
64 endef
65
66 define KernelPackage/bluetooth-hci-h4p/description
67   HCI driver with H4 Nokia extensions
68 endef
69
70 $(eval $(call KernelPackage,bluetooth-hci-h4p))
71
72
73 define KernelPackage/cpu-msr
74   SUBMENU:=$(OTHER_MENU)
75   TITLE:=x86 CPU MSR support
76   DEPENDS:=@TARGET_x86
77   KCONFIG:=CONFIG_X86_MSR
78   FILES:=$(LINUX_DIR)/arch/x86/kernel/msr.ko
79   AUTOLOAD:=$(call AutoLoad,20,msr)
80 endef
81
82 define KernelPackage/cpu-msr/description
83  Kernel module for Model Specific Registers support in x86 CPUs
84 endef
85
86 $(eval $(call KernelPackage,cpu-msr))
87
88
89 define KernelPackage/eeprom-93cx6
90   SUBMENU:=$(OTHER_MENU)
91   TITLE:=EEPROM 93CX6 support
92   KCONFIG:=CONFIG_EEPROM_93CX6
93   FILES:=$(LINUX_DIR)/drivers/misc/eeprom/eeprom_93cx6.ko
94   AUTOLOAD:=$(call AutoLoad,20,eeprom_93cx6)
95 endef
96
97 define KernelPackage/eeprom-93cx6/description
98  Kernel module for EEPROM 93CX6 support
99 endef
100
101 $(eval $(call KernelPackage,eeprom-93cx6))
102
103
104 define KernelPackage/eeprom-at24
105   SUBMENU:=$(OTHER_MENU)
106   TITLE:=EEPROM AT24 support
107   KCONFIG:=CONFIG_EEPROM_AT24
108   DEPENDS:=+kmod-i2c-core
109   FILES:=$(LINUX_DIR)/drivers/misc/eeprom/at24.ko
110   AUTOLOAD:=$(call AutoLoad,60,at24)
111 endef
112
113 define KernelPackage/eeprom-at24/description
114  Kernel module for most I2C EEPROMs
115 endef
116
117 $(eval $(call KernelPackage,eeprom-at24))
118
119
120 define KernelPackage/eeprom-at25
121   SUBMENU:=$(OTHER_MENU)
122   TITLE:=EEPROM AT25 support
123   KCONFIG:=CONFIG_EEPROM_AT25
124   FILES:=$(LINUX_DIR)/drivers/misc/eeprom/at25.ko
125   AUTOLOAD:=$(call AutoLoad,61,at25)
126 endef
127
128 define KernelPackage/eeprom-at25/description
129  Kernel module for most SPI EEPROMs
130 endef
131
132 $(eval $(call KernelPackage,eeprom-at25))
133
134
135 define KernelPackage/gpio-cs5535-new
136   SUBMENU:=$(OTHER_MENU)
137   TITLE:=AMD CS5535/CS5536 GPIO driver with improved sysfs support
138   DEPENDS:=@TARGET_x86 +kmod-cs5535-mfd
139   KCONFIG:=CONFIG_GPIO_CS5535
140   FILES:=$(LINUX_DIR)/drivers/gpio/gpio-cs5535.ko
141   AUTOLOAD:=$(call AutoLoad,50,gpio-cs5535)
142 endef
143
144 define KernelPackage/gpio-cs5535-new/description
145  This package contains the new AMD CS5535/CS5536 GPIO driver
146 endef
147
148 $(eval $(call KernelPackage,gpio-cs5535-new))
149
150
151 define KernelPackage/gpio-dev
152   SUBMENU:=$(OTHER_MENU)
153   TITLE:=Generic GPIO char device support
154   DEPENDS:=@GPIO_SUPPORT
155   KCONFIG:=CONFIG_GPIO_DEVICE
156   FILES:=$(LINUX_DIR)/drivers/char/gpio_dev.ko
157   AUTOLOAD:=$(call AutoLoad,40,gpio_dev)
158 endef
159
160 define KernelPackage/gpio-dev/description
161   Kernel module to allows control of GPIO pins using a character device.
162 endef
163
164 $(eval $(call KernelPackage,gpio-dev))
165
166
167 define KernelPackage/gpio-nsc
168   SUBMENU:=$(OTHER_MENU)
169   TITLE:=Natsemi GPIO support
170   DEPENDS:=@TARGET_x86
171   KCONFIG:=CONFIG_NSC_GPIO
172   FILES:=$(LINUX_DIR)/drivers/char/nsc_gpio.ko
173   AUTOLOAD:=$(call AutoLoad,40,nsc_gpio)
174 endef
175
176 define KernelPackage/gpio-nsc/description
177  Kernel module for Natsemi GPIO
178 endef
179
180 $(eval $(call KernelPackage,gpio-nsc))
181
182
183 define KernelPackage/gpio-pc8736x
184   SUBMENU:=$(OTHER_MENU)
185   TITLE:=PC8736x GPIO support
186   DEPENDS:=@TARGET_x86
187   KCONFIG:=CONFIG_PC8736x_GPIO
188   FILES:=$(LINUX_DIR)/drivers/char/pc8736x_gpio.ko
189   AUTOLOAD:=$(call AutoLoad,40,pc8736x_gpio)
190 endef
191
192 define KernelPackage/gpio-pc8736x/description
193  Kernel module for PC8736x GPIO
194 endef
195
196 $(eval $(call KernelPackage,gpio-pc8736x))
197
198
199 define KernelPackage/gpio-scx200
200   SUBMENU:=$(OTHER_MENU)
201   TITLE:=Natsemi SCX200 GPIO support
202   DEPENDS:=@TARGET_x86 +kmod-gpio-nsc
203   KCONFIG:=CONFIG_SCx200_GPIO
204   FILES:=$(LINUX_DIR)/drivers/char/scx200_gpio.ko
205   AUTOLOAD:=$(call AutoLoad,50,scx200_gpio)
206 endef
207
208 define KernelPackage/gpio-scx200/description
209  Kernel module for SCX200 GPIO
210 endef
211
212 $(eval $(call KernelPackage,gpio-scx200))
213
214 define KernelPackage/gpio-nxp-74hc164
215   SUBMENU:=$(OTHER_MENU)
216   TITLE:=NXP 74HC164 GPIO expander support
217   DEPENDS:=@TARGET_brcm63xx
218   KCONFIG:=CONFIG_GPIO_NXP_74HC164
219   FILES:=$(LINUX_DIR)/drivers/gpio/nxp_74hc164.ko
220   AUTOLOAD:=$(call AutoLoad,99,nxp_74hc164)
221 endef
222
223 define KernelPackage/gpio-nxp-74hc164/description
224   Kernel module for NXP 74HC164 GPIO expander
225 endef
226
227 $(eval $(call KernelPackage,gpio-nxp-74hc164))
228
229 define KernelPackage/hid
230   SUBMENU:=$(OTHER_MENU)
231   TITLE:=HID Devices
232   KCONFIG:=CONFIG_HID
233   FILES:=$(LINUX_DIR)/drivers/hid/hid.ko
234   AUTOLOAD:=$(call AutoLoad,61,hid)
235   $(call AddDepends/input,+kmod-input-evdev)
236 endef
237
238 define KernelPackage/hid/description
239  Kernel modules for HID devices
240 endef
241
242 $(eval $(call KernelPackage,hid))
243
244
245 define KernelPackage/input-core
246   SUBMENU:=$(OTHER_MENU)
247   TITLE:=Input device core
248   KCONFIG:=CONFIG_INPUT
249   FILES:=$(LINUX_DIR)/drivers/input/input-core.ko
250   AUTOLOAD:=$(call AutoLoad,19,input-core)
251 endef
252
253 define KernelPackage/input-core/description
254  Kernel modules for support of input device
255 endef
256
257 $(eval $(call KernelPackage,input-core))
258
259
260 define KernelPackage/input-evdev
261   SUBMENU:=$(OTHER_MENU)
262   TITLE:=Input event device
263   KCONFIG:=CONFIG_INPUT_EVDEV
264   FILES:=$(LINUX_DIR)/drivers/input/evdev.ko
265   AUTOLOAD:=$(call AutoLoad,60,evdev)
266   $(call AddDepends/input)
267 endef
268
269 define KernelPackage/input-evdev/description
270  Kernel modules for support of input device events
271 endef
272
273 $(eval $(call KernelPackage,input-evdev))
274
275
276 define KernelPackage/input-gpio-buttons
277   SUBMENU:=$(OTHER_MENU)
278   TITLE:=Polled GPIO buttons input device
279   DEPENDS:=@GPIO_SUPPORT +kmod-input-polldev
280   KCONFIG:= \
281         CONFIG_INPUT_GPIO_BUTTONS \
282         CONFIG_INPUT_MISC=y
283   FILES:=$(LINUX_DIR)/drivers/input/misc/gpio_buttons.ko
284   AUTOLOAD:=$(call AutoLoad,62,gpio_buttons)
285 endef
286
287 define KernelPackage/input-gpio-buttons/description
288  Kernel module for support polled GPIO buttons input device
289 endef
290
291 $(eval $(call KernelPackage,input-gpio-buttons))
292
293
294 define KernelPackage/input-gpio-keys
295   SUBMENU:=$(OTHER_MENU)
296   TITLE:=GPIO key support
297   DEPENDS:= @GPIO_SUPPORT
298   KCONFIG:= \
299         CONFIG_KEYBOARD_GPIO \
300         CONFIG_INPUT_KEYBOARD=y
301   FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys.ko
302   AUTOLOAD:=$(call AutoLoad,60,gpio_keys)
303   $(call AddDepends/input)
304 endef
305
306 define KernelPackage/input-gpio-keys/description
307  This driver implements support for buttons connected
308  to GPIO pins of various CPUs (and some other chips).
309 endef
310
311 $(eval $(call KernelPackage,input-gpio-keys))
312
313
314 define KernelPackage/input-gpio-keys-polled
315   SUBMENU:=$(OTHER_MENU)
316   TITLE:=Polled GPIO key support
317   DEPENDS:=@GPIO_SUPPORT +kmod-input-polldev
318   KCONFIG:= \
319         CONFIG_KEYBOARD_GPIO_POLLED \
320         CONFIG_INPUT_KEYBOARD=y
321   FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys_polled.ko
322   AUTOLOAD:=$(call AutoLoad,62,gpio_keys_polled)
323   $(call AddDepends/input)
324 endef
325
326 define KernelPackage/input-gpio-keys-polled/description
327  Kernel module for support polled GPIO keys input device
328 endef
329
330 $(eval $(call KernelPackage,input-gpio-keys-polled))
331
332
333 define KernelPackage/input-gpio-encoder
334   SUBMENU:=$(OTHER_MENU)
335   TITLE:=GPIO rotay encoder
336   KCONFIG:=CONFIG_INPUT_GPIO_ROTARY_ENCODER
337   FILES:=$(LINUX_DIR)/drivers/input/misc/rotary_encoder.ko
338   AUTOLOAD:=$(call AutoLoad,62,rotary_encoder)
339   $(call AddDepends/input,@GPIO_SUPPORT)
340 endef
341
342 define KernelPackage/gpio-encoder/description
343  Kernel module to use rotary encoders connected to GPIO pins
344 endef
345
346 $(eval $(call KernelPackage,input-gpio-encoder))
347
348
349 define KernelPackage/input-joydev
350   SUBMENU:=$(OTHER_MENU)
351   TITLE:=Joystick device support
352   KCONFIG:=CONFIG_INPUT_JOYDEV
353   FILES:=$(LINUX_DIR)/drivers/input/joydev.ko
354   AUTOLOAD:=$(call AutoLoad,62,joydev)
355   $(call AddDepends/input)
356 endef
357
358 define KernelPackage/input-joydev/description
359   Kernel module for joystick support
360 endef
361
362 $(eval $(call KernelPackage,input-joydev))
363
364
365 define KernelPackage/input-polldev
366   SUBMENU:=$(OTHER_MENU)
367   TITLE:=Polled Input device support
368   KCONFIG:=CONFIG_INPUT_POLLDEV
369   FILES:=$(LINUX_DIR)/drivers/input/input-polldev.ko
370   AUTOLOAD:=$(call AutoLoad,20,input-polldev)
371   $(call AddDepends/input)
372 endef
373
374 define KernelPackage/input-polldev/description
375  Kernel module for support of polled input devices
376 endef
377
378 $(eval $(call KernelPackage,input-polldev))
379
380
381 define KernelPackage/lp
382   SUBMENU:=$(OTHER_MENU)
383   TITLE:=Parallel port and line printer support
384   DEPENDS:=@BROKEN
385   KCONFIG:= \
386         CONFIG_PARPORT \
387         CONFIG_PRINTER \
388         CONFIG_PPDEV
389   FILES:= \
390         $(LINUX_DIR)/drivers/parport/parport.ko \
391         $(LINUX_DIR)/drivers/char/lp.ko \
392         $(LINUX_DIR)/drivers/char/ppdev.ko
393   AUTOLOAD:=$(call AutoLoad,50,parport lp)
394 endef
395
396 $(eval $(call KernelPackage,lp))
397
398
399 define KernelPackage/mmc
400   SUBMENU:=$(OTHER_MENU)
401   TITLE:=MMC/SD Card Support
402   KCONFIG:= \
403         CONFIG_MMC \
404         CONFIG_MMC_BLOCK \
405         CONFIG_MMC_DEBUG=n \
406         CONFIG_MMC_UNSAFE_RESUME=n \
407         CONFIG_MMC_BLOCK_BOUNCE=y \
408         CONFIG_MMC_SDHCI=n \
409         CONFIG_MMC_TIFM_SD=n \
410         CONFIG_MMC_WBSD=n \
411         CONFIG_SDIO_UART=n
412   FILES:= \
413         $(LINUX_DIR)/drivers/mmc/core/mmc_core.ko \
414         $(LINUX_DIR)/drivers/mmc/card/mmc_block.ko
415   AUTOLOAD:=$(call AutoLoad,90,mmc_core mmc_block,1)
416 endef
417
418 define KernelPackage/mmc/description
419  Kernel support for MMC/SD cards
420 endef
421
422 $(eval $(call KernelPackage,mmc))
423
424
425 define KernelPackage/mmc-atmelmci
426   SUBMENU:=$(OTHER_MENU)
427   TITLE:=Amtel MMC Support
428   DEPENDS:=@TARGET_avr32 +kmod-mmc
429   KCONFIG:=CONFIG_MMC_ATMELMCI
430   FILES:=$(LINUX_DIR)/drivers/mmc/host/atmel-mci.ko
431   AUTOLOAD:=$(call AutoLoad,90,atmel-mci)
432 endef
433
434 define KernelPackage/mmc-atmelmci/description
435  Kernel support for  Atmel Multimedia Card Interface.
436 endef
437
438 $(eval $(call KernelPackage,mmc-atmelmci,1))
439
440
441 define KernelPackage/oprofile
442   SUBMENU:=$(OTHER_MENU)
443   TITLE:=OProfile profiling support
444   KCONFIG:=CONFIG_OPROFILE
445   FILES:=$(LINUX_DIR)/arch/$(LINUX_KARCH)/oprofile/oprofile.ko
446   DEPENDS:=@KERNEL_PROFILING
447 endef
448
449 define KernelPackage/oprofile/description
450   Kernel module for support for oprofile system profiling.
451 endef
452
453 $(eval $(call KernelPackage,oprofile))
454
455
456 define KernelPackage/rfkill
457   SUBMENU:=$(OTHER_MENU)
458   TITLE:=RF switch subsystem support
459   KCONFIG:= \
460     CONFIG_RFKILL \
461     CONFIG_RFKILL_INPUT=y \
462     CONFIG_RFKILL_LEDS=y
463   FILES:= \
464     $(LINUX_DIR)/net/rfkill/rfkill.ko
465   AUTOLOAD:=$(call AutoLoad,20,rfkill)
466   $(call SetDepends/rfkill)
467 endef
468
469 define KernelPackage/rfkill/description
470   Say Y here if you want to have control over RF switches
471   found on many WiFi and Bluetooth cards.
472 endef
473
474 $(eval $(call KernelPackage,rfkill))
475
476
477 define KernelPackage/softdog
478   SUBMENU:=$(OTHER_MENU)
479   TITLE:=Software watchdog driver
480   KCONFIG:=CONFIG_SOFT_WATCHDOG
481   FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/softdog.ko
482   AUTOLOAD:=$(call AutoLoad,50,softdog)
483 endef
484
485 define KernelPackage/softdog/description
486  Software watchdog driver
487 endef
488
489 $(eval $(call KernelPackage,softdog))
490
491
492 define KernelPackage/ssb
493   SUBMENU:=$(OTHER_MENU)
494   TITLE:=Silicon Sonics Backplane glue code
495   DEPENDS:=@PCI_SUPPORT @!TARGET_brcm47xx @!TARGET_brcm63xx
496   KCONFIG:=\
497         CONFIG_SSB \
498         CONFIG_SSB_B43_PCI_BRIDGE=y \
499         CONFIG_SSB_DRIVER_MIPS=n \
500         CONFIG_SSB_DRIVER_PCICORE=y \
501         CONFIG_SSB_DRIVER_PCICORE_POSSIBLE=y \
502         CONFIG_SSB_PCIHOST=y \
503         CONFIG_SSB_PCIHOST_POSSIBLE=y \
504         CONFIG_SSB_POSSIBLE=y \
505         CONFIG_SSB_SPROM=y \
506         CONFIG_SSB_SILENT=y
507   FILES:=$(LINUX_DIR)/drivers/ssb/ssb.ko
508   AUTOLOAD:=$(call AutoLoad,29,ssb)
509 endef
510
511 define KernelPackage/ssb/description
512   Silicon Sonics Backplane glue code.
513 endef
514
515 $(eval $(call KernelPackage,ssb))
516
517
518 define KernelPackage/bcma
519   SUBMENU:=$(OTHER_MENU)
520   TITLE:=BCMA support
521   DEPENDS:=@PCI_SUPPORT @!TARGET_brcm47xx
522   KCONFIG:=\
523         CONFIG_BCMA \
524         CONFIG_BCMA_POSSIBLE=y \
525         CONFIG_BCMA_BLOCKIO=y \
526         CONFIG_BCMA_HOST_PCI_POSSIBLE=y \
527         CONFIG_BCMA_HOST_PCI=y \
528         CONFIG_BCMA_DRIVER_MIPS=n \
529         CONFIG_BCMA_DRIVER_PCI_HOSTMODE=n \
530         CONFIG_BCMA_DEBUG=n
531   FILES:=$(LINUX_DIR)/drivers/bcma/bcma.ko
532   AUTOLOAD:=$(call AutoLoad,29,bcma)
533 endef
534
535 define KernelPackage/bcma/description
536    Bus driver for Broadcom specific Advanced Microcontroller Bus Architecture.
537 endef
538
539 $(eval $(call KernelPackage,bcma))
540
541
542 define KernelPackage/wdt-geode
543   SUBMENU:=$(OTHER_MENU)
544   TITLE:=Geode/LX Watchdog timer
545   DEPENDS:=@TARGET_x86 +kmod-cs5535-mfgpt
546   KCONFIG:=CONFIG_GEODE_WDT
547   FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/geodewdt.ko
548   AUTOLOAD:=$(call AutoLoad,50,geodewdt)
549 endef
550
551 define KernelPackage/wdt-geode/description
552   Kernel module for Geode watchdog timer.
553 endef
554
555 $(eval $(call KernelPackage,wdt-geode))
556
557
558 define KernelPackage/cs5535-clockevt
559   SUBMENU:=$(OTHER_MENU)
560   TITLE:=CS5535/CS5536 high-res timer (MFGPT) events
561   DEPENDS:=@TARGET_x86 +kmod-cs5535-mfgpt
562   KCONFIG:=CONFIG_CS5535_CLOCK_EVENT_SRC
563   FILES:=$(LINUX_DIR)/drivers/clocksource/cs5535-clockevt.ko
564   AUTOLOAD:=$(call AutoLoad,50,cs5535-clockevt)
565 endef
566
567 define KernelPackage/cs5535-clockevt/description
568   Kernel module for CS5535/6 high-res clock event source
569 endef
570
571 $(eval $(call KernelPackage,cs5535-clockevt))
572
573
574 define KernelPackage/cs5535-mfgpt
575   SUBMENU:=$(OTHER_MENU)
576   TITLE:=CS5535/6 Multifunction General Purpose Timer
577   DEPENDS:=@TARGET_x86 +kmod-cs5535-mfd
578   KCONFIG:=CONFIG_CS5535_MFGPT
579   FILES:=$(LINUX_DIR)/drivers/misc/cs5535-mfgpt.ko
580   AUTOLOAD:=$(call AutoLoad,45,cs5535-mfgpt)
581 endef
582
583 define KernelPackage/cs5535-mfgpt/description
584   Kernel module for CS5535/6 multifunction general purpose timer.
585 endef
586
587 $(eval $(call KernelPackage,cs5535-mfgpt))
588
589
590 define KernelPackage/cs5535-mfd
591   SUBMENU:=$(OTHER_MENU)
592   TITLE:=CS5535/6 Multifunction General Purpose Driver
593   DEPENDS:=@TARGET_x86
594   KCONFIG:=CONFIG_MFD_CS5535
595   FILES:= \
596         $(LINUX_DIR)/drivers/mfd/mfd-core.ko \
597         $(LINUX_DIR)/drivers/mfd/cs5535-mfd.ko
598   AUTOLOAD:=$(call AutoLoad,44,mfd-core cs5535-mfd)
599 endef
600
601 define KernelPackage/cs5535-mfd/description
602   Core driver for CS5535/CS5536 MFD functions.
603 endef
604
605 $(eval $(call KernelPackage,cs5535-mfd))
606
607
608 define KernelPackage/wdt-omap
609   SUBMENU:=$(OTHER_MENU)
610   TITLE:=OMAP Watchdog timer
611   DEPENDS:=@(TARGET_omap24xx||TARGET_omap35xx)
612   KCONFIG:=CONFIG_OMAP_WATCHDOG
613   FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/omap_wdt.ko
614   AUTOLOAD:=$(call AutoLoad,50,omap_wdt.ko)
615 endef
616
617 define KernelPackage/wdt-omap/description
618   Kernel module for TI omap watchdog timer.
619 endef
620
621 $(eval $(call KernelPackage,wdt-omap))
622
623
624 define KernelPackage/wdt-orion
625   SUBMENU:=$(OTHER_MENU)
626   TITLE:=Marvell Orion Watchdog timer
627   DEPENDS:=@TARGET_orion
628   KCONFIG:=CONFIG_ORION_WATCHDOG
629   FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/orion_wdt.ko
630   AUTOLOAD:=$(call AutoLoad,50,orion_wdt)
631 endef
632
633 define KernelPackage/wdt-orion/description
634   Kernel module for Marvell orion watchdog timer.
635 endef
636
637 $(eval $(call KernelPackage,wdt-orion))
638
639
640 define KernelPackage/wdt-sc520
641   SUBMENU:=$(OTHER_MENU)
642   TITLE:=Natsemi SC520 Watchdog support
643   DEPENDS:=@TARGET_x86
644   KCONFIG:=CONFIG_SC520_WDT
645   FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/sc520_wdt.ko
646   AUTOLOAD:=$(call AutoLoad,50,sc520_wdt)
647 endef
648
649 define KernelPackage/wdt-sc520/description
650   Kernel module for SC520 Watchdog
651 endef
652
653 $(eval $(call KernelPackage,wdt-sc520))
654
655
656 define KernelPackage/wdt-scx200
657   SUBMENU:=$(OTHER_MENU)
658   TITLE:=Natsemi SCX200 Watchdog support
659   DEPENDS:=@TARGET_x86
660   KCONFIG:=CONFIG_SCx200_WDT
661   FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/scx200_wdt.ko
662   AUTOLOAD:=$(call AutoLoad,50,scx200_wdt)
663 endef
664
665 define KernelPackage/wdt-scx200/description
666  Kernel module for SCX200 Watchdog
667 endef
668
669 $(eval $(call KernelPackage,wdt-scx200))
670
671
672 define KernelPackage/wdt-ath79
673   SUBMENU:=$(OTHER_MENU)
674   TITLE:=Atheros AR7XXX/AR9XXX watchdog timer
675   DEPENDS:=@TARGET_ar71xx
676   KCONFIG:=CONFIG_ATH79_WDT
677   FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/ath79_wdt.ko
678   AUTOLOAD:=$(call AutoLoad,50,ath79_wdt)
679 endef
680
681 define KernelPackage/wdt-ath79/description
682   Kernel module for AR7XXX/AR9XXX watchdog timer.
683 endef
684
685 $(eval $(call KernelPackage,wdt-ath79))
686
687
688 define KernelPackage/booke-wdt
689   SUBMENU:=$(OTHER_MENU)
690   TITLE:=PowerPC Book-E Watchdog Timer
691   DEPENDS:=@(TARGET_mpc85xx||TARGET_ppc40x||TARGET_ppc44x)
692   KCONFIG:=CONFIG_BOOKE_WDT
693   FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/booke_wdt.ko
694   AUTOLOAD:=$(call AutoLoad,50,booke_wdt)
695 endef
696
697 define KernelPackage/booke-wdt/description
698   Kernel module for PowerPC Book-E Watchdog Timer.
699 endef
700
701 $(eval $(call KernelPackage,booke-wdt))
702
703
704 define KernelPackage/pwm
705   SUBMENU:=$(OTHER_MENU)
706   TITLE:=PWM generic API
707   KCONFIG:=CONFIG_GENERIC_PWM
708   FILES:=$(LINUX_DIR)/drivers/pwm/pwm.ko
709   AUTOLOAD:=$(call AutoLoad,50,pwm)
710 endef
711
712 define KernelPackage/pwm/description
713  Kernel module that implement a generic PWM API
714 endef
715
716 $(eval $(call KernelPackage,pwm))
717
718
719 define KernelPackage/pwm-gpio
720   SUBMENU:=$(OTHER_MENU)
721   TITLE:=PWM over GPIO
722   DEPENDS:=+kmod-pwm
723   KCONFIG:=CONFIG_GPIO_PWM
724   FILES:=$(LINUX_DIR)/drivers/pwm/gpio-pwm.ko
725   AUTOLOAD:=$(call AutoLoad,51,gpio-pwm)
726 endef
727
728 define KernelPackage/pwm-gpio/description
729  Kernel module to models a single-channel PWM device using a timer and a GPIO pin
730 endef
731
732 $(eval $(call KernelPackage,pwm-gpio))
733
734
735 define KernelPackage/rtc-marvell
736   SUBMENU:=$(OTHER_MENU)
737   TITLE:=Marvell SoC built-in RTC support
738   $(call AddDepends/rtc)
739   DEPENDS+=@TARGET_kirkwood||TARGET_orion
740   KCONFIG:=CONFIG_RTC_DRV_MV
741   FILES:=$(LINUX_DIR)/drivers/rtc/rtc-mv.ko
742   AUTOLOAD:=$(call AutoLoad,60,rtc-mv)
743 endef
744
745 define KernelPackage/rtc-marvell/description
746  Kernel module for Marvell SoC built-in RTC.
747 endef
748
749 $(eval $(call KernelPackage,rtc-marvell))
750
751 define KernelPackage/rtc-pcf8563
752   SUBMENU:=$(OTHER_MENU)
753   TITLE:=Philips PCF8563/Epson RTC8564 RTC support
754   $(call AddDepends/rtc)
755   KCONFIG:=CONFIG_RTC_DRV_PCF8563
756   FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pcf8563.ko
757   AUTOLOAD:=$(call AutoLoad,60,rtc-pcf8563)
758 endef
759
760 define KernelPackage/rtc-pcf8563/description
761  Kernel module for Philips PCF8563 RTC chip.
762  The Epson RTC8564 should work as well.
763 endef
764
765 $(eval $(call KernelPackage,rtc-pcf8563))
766
767
768 define KernelPackage/rtc-pcf2123
769   SUBMENU:=$(OTHER_MENU)
770   TITLE:=Philips PCF2123 RTC support
771   $(call AddDepends/rtc)
772   KCONFIG:=CONFIG_RTC_DRV_PCF2123
773   FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pcf2123.ko
774   AUTOLOAD:=$(call AutoLoad,60,rtc-pcf2123)
775 endef
776
777 define KernelPackage/rtc-pcf2123/description
778  Kernel module for Philips PCF2123 RTC chip.
779 endef
780
781 $(eval $(call KernelPackage,rtc-pcf2123))
782
783 define KernelPackage/rtc-pt7c4338
784   SUBMENU:=$(OTHER_MENU)
785   TITLE:=Pericom PT7C4338 RTC support
786   $(call AddDepends/rtc,+kmod-i2c-core)
787   KCONFIG:=CONFIG_RTC_DRV_PT7C4338
788   FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pt7c4338.ko
789   AUTOLOAD:=$(call AutoLoad,60,rtc-pt7c4338)
790 endef
791
792 define KernelPackage/rtc-pt7c4338/description
793  Kernel module for Pericom PT7C4338 i2c RTC chip.
794 endef
795
796 $(eval $(call KernelPackage,rtc-pt7c4338))
797
798
799 define KernelPackage/mtdtests
800   SUBMENU:=$(OTHER_MENU)
801   TITLE:=MTD subsystem tests
802   KCONFIG:=CONFIG_MTD_TESTS
803   FILES:=\
804         $(LINUX_DIR)/drivers/mtd/tests/mtd_nandecctest.ko \
805         $(LINUX_DIR)/drivers/mtd/tests/mtd_oobtest.ko \
806         $(LINUX_DIR)/drivers/mtd/tests/mtd_pagetest.ko \
807         $(LINUX_DIR)/drivers/mtd/tests/mtd_readtest.ko \
808         $(LINUX_DIR)/drivers/mtd/tests/mtd_speedtest.ko \
809         $(LINUX_DIR)/drivers/mtd/tests/mtd_stresstest.ko \
810         $(LINUX_DIR)/drivers/mtd/tests/mtd_subpagetest.ko \
811         $(LINUX_DIR)/drivers/mtd/tests/mtd_torturetest.ko
812 endef
813
814 define KernelPackage/mtdtests/description
815  Kernel modules for MTD subsystem/driver testing.
816 endef
817
818 $(eval $(call KernelPackage,mtdtests))
819
820
821 define KernelPackage/nand
822   SUBMENU:=$(OTHER_MENU)
823   TITLE:=NAND flash support
824   DEPENDS:=@!LINUX_2_6_39
825   KCONFIG:=CONFIG_MTD_NAND \
826         CONFIG_MTD_NAND_IDS \
827         CONFIG_MTD_NAND_ECC
828   FILES:= \
829         $(LINUX_DIR)/drivers/mtd/nand/nand_ids.ko \
830         $(LINUX_DIR)/drivers/mtd/nand/nand_ecc.ko \
831         $(LINUX_DIR)/drivers/mtd/nand/nand.ko
832   AUTOLOAD:=$(call AutoLoad,20,nand_ids nand_ecc nand)
833 endef
834
835 define KernelPackage/nand/description
836  Kernel module for NAND support.
837 endef
838
839 $(eval $(call KernelPackage,nand))
840
841
842 define KernelPackage/nandsim
843   SUBMENU:=$(OTHER_MENU)
844   TITLE:=NAND simulator
845   DEPENDS:=+kmod-nand
846   KCONFIG:=CONFIG_MTD_NAND_NANDSIM
847   FILES:=$(LINUX_DIR)/drivers/mtd/nand/nandsim.ko
848 endef
849
850 define KernelPackage/nandsim/description
851  Kernel module for NAND flash simulation.
852 endef
853
854 $(eval $(call KernelPackage,nandsim))
855
856 define KernelPackage/serial-8250
857   SUBMENU:=$(OTHER_MENU)
858   TITLE:=8250 UARTs
859   KCONFIG:= CONFIG_SERIAL_8250 \
860         CONFIG_SERIAL_8250_NR_UARTS=16 \
861         CONFIG_SERIAL_8250_RUNTIME_UARTS=16 \
862         CONFIG_SERIAL_8250_EXTENDED=y \
863         CONFIG_SERIAL_8250_MANY_PORTS=y \
864         CONFIG_SERIAL_8250_SHARE_IRQ=y \
865         CONFIG_SERIAL_8250_DETECT_IRQ=n \
866         CONFIG_SERIAL_8250_RSA=n
867   FILES:=$(LINUX_DIR)/drivers/tty/serial/8250/8250.ko
868 endef
869
870 define KernelPackage/serial-8250/description
871  Kernel module for 8250 UART based serial ports.
872 endef
873
874 $(eval $(call KernelPackage,serial-8250))
875
876
877 define KernelPackage/acpi-button
878   SUBMENU:=$(OTHER_MENU)
879   TITLE:=ACPI Button Support
880   DEPENDS:=@(TARGET_x86_generic||TARGET_x86_kvm_guest||TARGET_x86_xen_domu) +kmod-input-evdev
881   KCONFIG:=CONFIG_ACPI_BUTTON
882   FILES:=$(LINUX_DIR)/drivers/acpi/button.ko
883   AUTOLOAD:=$(call AutoLoad,06,button)
884 endef
885
886 define KernelPackage/acpi-button/description
887  Kernel module for ACPI Button support
888 endef
889
890 $(eval $(call KernelPackage,acpi-button))
891
892 define KernelPackage/regmap
893   SUBMENU:=$(OTHER_MENU)
894   TITLE:=Generic register map support
895   KCONFIG:=CONFIG_REGMAP=y \
896            CONFIG_REGMAP_SPI \
897            CONFIG_REGMAP_I2C
898   FILES:=$(LINUX_DIR)/drivers/base/regmap/regmap-i2c.ko \
899          $(LINUX_DIR)/drivers/base/regmap/regmap-spi.ko
900   AUTOLOAD:=$(call AutoLoad,10,regmap-i2c regmap-spi)
901 endef
902
903 define KernelPackage/regmap/description
904   Generic register map support
905 endef
906
907 $(eval $(call KernelPackage,regmap))