[package] Add package for ledtrigger gpio
[openwrt.git] / package / kernel / modules / other.mk
1 #
2 # Copyright (C) 2006-2010 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 \
28         CONFIG_BT_SCO \
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   $(call AddDepends/crc16)
37   $(call AddDepends/hid)
38   $(call AddDepends/rfkill)
39   FILES:= \
40         $(LINUX_DIR)/net/bluetooth/bluetooth.ko \
41         $(LINUX_DIR)/net/bluetooth/l2cap.ko \
42         $(LINUX_DIR)/net/bluetooth/sco.ko \
43         $(LINUX_DIR)/net/bluetooth/rfcomm/rfcomm.ko \
44         $(LINUX_DIR)/net/bluetooth/bnep/bnep.ko \
45         $(LINUX_DIR)/net/bluetooth/hidp/hidp.ko \
46         $(LINUX_DIR)/drivers/bluetooth/hci_uart.ko \
47         $(LINUX_DIR)/drivers/bluetooth/btusb.ko
48   AUTOLOAD:=$(call AutoLoad,90,bluetooth l2cap sco rfcomm bnep hidp hci_uart btusb)
49 endef
50
51 define KernelPackage/bluetooth/description
52  Kernel support for Bluetooth devices
53 endef
54
55 $(eval $(call KernelPackage,bluetooth))
56
57
58 define KernelPackage/cpu-msr
59   SUBMENU:=$(OTHER_MENU)
60   TITLE:=x86 CPU MSR support
61   DEPENDS:=@TARGET_x86
62   KCONFIG:=CONFIG_X86_MSR
63   FILES:=$(LINUX_DIR)/arch/x86/kernel/msr.$(LINUX_KMOD_SUFFIX)
64   AUTOLOAD:=$(call AutoLoad,20,msr)
65 endef
66
67 define KernelPackage/cpu-msr/description
68  Kernel module for Model Specific Registers support in x86 CPUs
69 endef
70
71 $(eval $(call KernelPackage,cpu-msr))
72
73
74 define KernelPackage/crc-ccitt
75   SUBMENU:=$(OTHER_MENU)
76   TITLE:=CRC-CCITT support
77   KCONFIG:=CONFIG_CRC_CCITT
78   FILES:=$(LINUX_DIR)/lib/crc-ccitt.ko
79   AUTOLOAD:=$(call AutoLoad,20,crc-ccitt)
80 endef
81
82 define KernelPackage/crc-ccitt/description
83  Kernel module for CRC-CCITT support
84 endef
85
86 $(eval $(call KernelPackage,crc-ccitt))
87
88
89 define KernelPackage/crc-itu-t
90   SUBMENU:=$(OTHER_MENU)
91   TITLE:=CRC ITU-T V.41 support
92   KCONFIG:=CONFIG_CRC_ITU_T
93   FILES:=$(LINUX_DIR)/lib/crc-itu-t.ko
94   AUTOLOAD:=$(call AutoLoad,20,crc-itu-t)
95 endef
96
97 define KernelPackage/crc-itu-t/description
98  Kernel module for CRC ITU-T V.41 support
99 endef
100
101 $(eval $(call KernelPackage,crc-itu-t))
102
103
104 define KernelPackage/crc7
105   SUBMENU:=$(OTHER_MENU)
106   TITLE:=CRC7 support
107   KCONFIG:=CONFIG_CRC7
108   FILES:=$(LINUX_DIR)/lib/crc7.ko
109   AUTOLOAD:=$(call AutoLoad,20,crc7)
110 endef
111
112 define KernelPackage/crc7/description
113  Kernel module for CRC7 support
114 endef
115
116 $(eval $(call KernelPackage,crc7))
117
118
119 define KernelPackage/crc16
120   SUBMENU:=$(OTHER_MENU)
121   TITLE:=CRC16 support
122   KCONFIG:=CONFIG_CRC16
123   FILES:=$(LINUX_DIR)/lib/crc16.ko
124   AUTOLOAD:=$(call AutoLoad,20,crc16,1)
125   $(call SetDepends/crc16)
126 endef
127
128 define KernelPackage/crc16/description
129  Kernel module for CRC16 support
130 endef
131
132 $(eval $(call KernelPackage,crc16))
133
134
135 define KernelPackage/libcrc32c
136   SUBMENU:=$(OTHER_MENU)
137   TITLE:=CRC32 library support
138   KCONFIG:=CONFIG_LIBCRC32C
139   DEPENDS:=+kmod-crypto-core +kmod-crypto-misc 
140   FILES:=$(LINUX_DIR)/lib/libcrc32c.ko
141   AUTOLOAD:=$(call AutoLoad,20,crc32c libcrc32c,1)
142 endef
143
144 define KernelPackage/libcrc32c/description
145  Kernel module for CRC32 support
146 endef
147
148 $(eval $(call KernelPackage,libcrc32c))
149
150
151 define KernelPackage/eeprom-93cx6
152   SUBMENU:=$(OTHER_MENU)
153   TITLE:=EEPROM 93CX6 support
154   KCONFIG:=CONFIG_EEPROM_93CX6
155   FILES:=$(LINUX_DIR)/drivers/misc/eeprom/eeprom_93cx6.ko
156   AUTOLOAD:=$(call AutoLoad,20,eeprom_93cx6)
157 endef
158
159 define KernelPackage/eeprom-93cx6/description
160  Kernel module for EEPROM 93CX6 support
161 endef
162
163 $(eval $(call KernelPackage,eeprom-93cx6))
164
165
166 define KernelPackage/gpio-cs5535
167   SUBMENU:=$(OTHER_MENU)
168   TITLE:=AMD CS5535/CS5536 GPIO driver
169   DEPENDS:=@TARGET_x86
170   KCONFIG:=CONFIG_CS5535_GPIO \
171            CONFIG_GPIO_CS5535
172 ifeq ($(CONFIG_LINUX_2_6_32),y)
173   FILES:=$(LINUX_DIR)/drivers/char/cs5535_gpio.ko
174   AUTOLOAD:=$(call AutoLoad,50,cs5535_gpio)
175 else
176   FILES:=$(LINUX_DIR)/drivers/gpio/cs5535-gpio.ko
177   AUTOLOAD:=$(call AutoLoad,50,cs5535-gpio)
178 endif
179 endef
180
181 define KernelPackage/gpio-cs5535/description
182  This package contains the AMD CS5535/CS5536 GPIO driver
183 endef
184
185 $(eval $(call KernelPackage,gpio-cs5535))
186
187
188 define KernelPackage/gpio-dev
189   SUBMENU:=$(OTHER_MENU)
190   TITLE:=Generic GPIO char device support
191   DEPENDS:=@GPIO_SUPPORT
192   KCONFIG:=CONFIG_GPIO_DEVICE
193   FILES:=$(LINUX_DIR)/drivers/char/gpio_dev.ko
194   AUTOLOAD:=$(call AutoLoad,40,gpio_dev)
195 endef
196
197 define KernelPackage/gpio-dev/description
198   Kernel module to allows control of GPIO pins using a character device.
199 endef
200
201 $(eval $(call KernelPackage,gpio-dev))
202
203
204 define KernelPackage/gpio-nsc
205   SUBMENU:=$(OTHER_MENU)
206   TITLE:=Natsemi GPIO support
207   DEPENDS:=@TARGET_x86
208   KCONFIG:=CONFIG_NSC_GPIO
209   FILES:=$(LINUX_DIR)/drivers/char/nsc_gpio.ko
210   AUTOLOAD:=$(call AutoLoad,40,nsc_gpio)
211 endef
212
213 define KernelPackage/gpio-nsc/description
214  Kernel module for Natsemi GPIO
215 endef
216
217 $(eval $(call KernelPackage,gpio-nsc))
218
219
220 define KernelPackage/gpio-pc8736x
221   SUBMENU:=$(OTHER_MENU)
222   TITLE:=PC8736x GPIO support
223   DEPENDS:=@TARGET_x86
224   KCONFIG:=CONFIG_PC8736x_GPIO
225   FILES:=$(LINUX_DIR)/drivers/char/pc8736x_gpio.ko
226   AUTOLOAD:=$(call AutoLoad,40,pc8736x_gpio)
227 endef
228
229 define KernelPackage/gpio-pc8736x/description
230  Kernel module for PC8736x GPIO
231 endef
232
233 $(eval $(call KernelPackage,gpio-pc8736x))
234
235
236 define KernelPackage/gpio-scx200
237   SUBMENU:=$(OTHER_MENU)
238   TITLE:=Natsemi SCX200 GPIO support
239   DEPENDS:=@TARGET_x86 +kmod-gpio-nsc
240   KCONFIG:=CONFIG_SCx200_GPIO
241   FILES:=$(LINUX_DIR)/drivers/char/scx200_gpio.ko
242   AUTOLOAD:=$(call AutoLoad,50,scx200_gpio)
243 endef
244
245 define KernelPackage/gpio-scx200/description
246  Kernel module for SCX200 GPIO
247 endef
248
249 $(eval $(call KernelPackage,gpio-scx200))
250
251 define KernelPackage/gpio-nxp-74hc164
252   SUBMENU:=$(OTHER_MENU)
253   TITLE:=NXP 74HC164 GPIO expander support
254   DEPENDS:=@TARGET_brcm63xx
255   KCONFIG:=CONFIG_GPIO_NXP_74HC164
256   FILES:=$(LINUX_DIR)/drivers/gpio/nxp_74hc164.ko
257   AUTOLOAD:=$(call AutoLoad,99,nxp_74hc164)
258 endef
259
260 define KernelPackage/gpio-nxp-74hc164/description
261   Kernel module for NXP 74HC164 GPIO expander
262 endef
263
264 $(eval $(call KernelPackage,gpio-nxp-74hc164))
265
266 define KernelPackage/hid
267   SUBMENU:=$(OTHER_MENU)
268   TITLE:=HID Devices
269   DEPENDS:=+kmod-input-evdev
270   KCONFIG:=CONFIG_HID
271   FILES:=$(LINUX_DIR)/drivers/hid/hid.ko
272   AUTOLOAD:=$(call AutoLoad,61,hid)
273   $(call SetDepends/hid)
274   $(call AddDepends/input)
275 endef
276
277 define KernelPackage/hid/description
278  Kernel modules for HID devices
279 endef
280
281 $(eval $(call KernelPackage,hid))
282
283
284 define KernelPackage/input-core
285   SUBMENU:=$(OTHER_MENU)
286   TITLE:=Input device core
287   KCONFIG:=CONFIG_INPUT
288   $(call SetDepends/input)
289   FILES:=$(LINUX_DIR)/drivers/input/input-core.ko
290   AUTOLOAD:=$(call AutoLoad,19,input-core)
291 endef
292
293 define KernelPackage/input-core/description
294  Kernel modules for support of input device
295 endef
296
297 $(eval $(call KernelPackage,input-core))
298
299
300 define KernelPackage/input-evdev
301   SUBMENU:=$(OTHER_MENU)
302   TITLE:=Input event device
303   KCONFIG:=CONFIG_INPUT_EVDEV
304   FILES:=$(LINUX_DIR)/drivers/input/evdev.ko
305   AUTOLOAD:=$(call AutoLoad,60,evdev)
306   $(call AddDepends/input)
307 endef
308
309 define KernelPackage/input-evdev/description
310  Kernel modules for support of input device events
311 endef
312
313 $(eval $(call KernelPackage,input-evdev))
314
315
316 define KernelPackage/input-gpio-buttons
317   SUBMENU:=$(OTHER_MENU)
318   TITLE:=Polled GPIO buttons input device
319   DEPENDS:=@GPIO_SUPPORT +kmod-input-polldev
320   KCONFIG:= \
321         CONFIG_INPUT_GPIO_BUTTONS \
322         CONFIG_INPUT_MISC=y
323   FILES:=$(LINUX_DIR)/drivers/input/misc/gpio_buttons.ko
324   AUTOLOAD:=$(call AutoLoad,62,gpio_buttons)
325 endef
326
327 define KernelPackage/input-gpio-buttons/description
328  Kernel module for support polled GPIO buttons input device
329 endef
330
331 $(eval $(call KernelPackage,input-gpio-buttons))
332
333
334 define KernelPackage/input-gpio-keys
335   SUBMENU:=$(OTHER_MENU)
336   TITLE:=GPIO key support
337   DEPENDS:= @GPIO_SUPPORT
338   KCONFIG:=CONFIG_KEYBOARD_GPIO
339   FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys.ko
340   AUTOLOAD:=$(call AutoLoad,60,gpio_keys)
341   $(call AddDepends/input)
342 endef
343
344 define KernelPackage/input-gpio-keys/description
345  This driver implements support for buttons connected
346  to GPIO pins of various CPUs (and some other chips).
347 endef
348
349 $(eval $(call KernelPackage,input-gpio-keys))
350
351
352 define KernelPackage/input-gpio-encoder
353   SUBMENU:=$(OTHER_MENU)
354   TITLE:=GPIO rotay encoder
355   KCONFIG:=CONFIG_INPUT_GPIO_ROTARY_ENCODER
356   FILES:=$(LINUX_DIR)/drivers/input/misc/rotary_encoder.ko
357   AUTOLOAD:=$(call AutoLoad,62,rotary_encoder)
358   $(call AddDepends/input,@GPIO_SUPPORT)
359 endef
360
361 define KernelPackage/gpio-encoder/description
362  Kernel module to use rotary encoders connected to GPIO pins
363 endef
364
365 $(eval $(call KernelPackage,input-gpio-encoder))
366
367
368 define KernelPackage/input-joydev
369   SUBMENU:=$(OTHER_MENU)
370   TITLE:=Joystick device support
371   KCONFIG:=CONFIG_INPUT_JOYDEV
372   FILES:=$(LINUX_DIR)/drivers/input/joydev.ko
373   AUTOLOAD:=$(call AutoLoad,62,joydev)
374   $(call AddDepends/input)
375 endef
376
377 define KernelPackage/input-joydev/description
378   Kernel module for joystick support
379 endef
380
381 $(eval $(call KernelPackage,input-joydev))
382
383
384 define KernelPackage/input-polldev
385   SUBMENU:=$(OTHER_MENU)
386   TITLE:=Polled Input device support
387   KCONFIG:=CONFIG_INPUT_POLLDEV
388   FILES:=$(LINUX_DIR)/drivers/input/input-polldev.ko
389   AUTOLOAD:=$(call AutoLoad,20,input-polldev)
390   $(call AddDepends/input)
391 endef
392
393 define KernelPackage/input-polldev/description
394  Kernel module for support of polled input devices
395 endef
396
397 $(eval $(call KernelPackage,input-polldev))
398
399
400 define KernelPackage/leds-alix
401   SUBMENU:=$(OTHER_MENU)
402   TITLE:=PCengines ALIX LED support
403   DEPENDS:=@TARGET_x86
404   KCONFIG:=CONFIG_LEDS_ALIX2
405   FILES:=$(LINUX_DIR)/drivers/leds/leds-alix2.ko
406   AUTOLOAD:=$(call AutoLoad,50,leds-alix2)
407 endef
408
409 define KernelPackage/leds-alix/description
410  Kernel module for PCengines ALIX LEDs
411 endef
412
413 $(eval $(call KernelPackage,leds-alix))
414
415
416 define KernelPackage/leds-gpio
417   SUBMENU:=$(OTHER_MENU)
418   TITLE:=GPIO LED support
419   DEPENDS:= @GPIO_SUPPORT
420   KCONFIG:=CONFIG_LEDS_GPIO
421   FILES:=$(LINUX_DIR)/drivers/leds/leds-gpio.ko
422   AUTOLOAD:=$(call AutoLoad,60,leds-gpio)
423 endef
424
425 define KernelPackage/leds-gpio/description
426  Kernel module for LEDs on GPIO lines
427 endef
428
429 $(eval $(call KernelPackage,leds-gpio))
430
431
432 define KernelPackage/leds-net48xx
433   SUBMENU:=$(OTHER_MENU)
434   TITLE:=Soekris Net48xx LED support
435   DEPENDS:=@TARGET_x86 +kmod-gpio-scx200
436   KCONFIG:=CONFIG_LEDS_NET48XX
437   FILES:=$(LINUX_DIR)/drivers/leds/leds-net48xx.ko
438   AUTOLOAD:=$(call AutoLoad,50,leds-net48xx)
439 endef
440
441 define KernelPackage/leds-net48xx/description
442  Kernel module for Soekris Net48xx LEDs
443 endef
444
445 $(eval $(call KernelPackage,leds-net48xx))
446
447 define KernelPackage/leds-net5501
448   SUBMENU:=$(OTHER_MENU)
449   TITLE:=Soekris Net5501 LED support
450   DEPENDS:=@TARGET_x86 +kmod-gpio-cs5535 +kmod-leds-gpio
451   KCONFIG:=CONFIG_LEDS_NET5501
452   FILES:=$(LINUX_DIR)/drivers/leds/leds-net5501.ko
453   AUTOLOAD:=$(call AutoLoad,50,leds-net5501)
454 endef
455
456 define KernelPackage/leds-net5501/description
457  Kernel module for Soekris Net5501 LEDs
458 endef
459
460 $(eval $(call KernelPackage,leds-net5501))
461
462
463 define KernelPackage/leds-rb750
464   SUBMENU:=$(OTHER_MENU)
465   TITLE:=RouterBOARD 750 LED support
466   DEPENDS:=@TARGET_ar71xx
467   KCONFIG:=CONFIG_LEDS_RB750
468   FILES:=$(LINUX_DIR)/drivers/leds/leds-rb750.ko
469   AUTOLOAD:=$(call AutoLoad,60,leds-rb750)
470 endef
471
472 define KernelPackage/leds-rb750/description
473  Kernel module for the LEDs on the MikroTik RouterBOARD 750.
474 endef
475
476 $(eval $(call KernelPackage,leds-rb750))
477
478
479 define KernelPackage/leds-wndr3700-usb
480   SUBMENU:=$(OTHER_MENU)
481   TITLE:=WNDR3700 USB LED support
482   DEPENDS:=@TARGET_ar71xx
483   KCONFIG:=CONFIG_LEDS_WNDR3700_USB
484   FILES:=$(LINUX_DIR)/drivers/leds/leds-wndr3700-usb.ko
485   AUTOLOAD:=$(call AutoLoad,60,leds-wndr3700-usb)
486 endef
487
488 define KernelPackage/leds-wndr3700-usb/description
489  Kernel module for the USB LED on the NETGWR WNDR3700 board.
490 endef
491
492 $(eval $(call KernelPackage,leds-wndr3700-usb))
493
494
495 define KernelPackage/leds-wrap
496   SUBMENU:=$(OTHER_MENU)
497   TITLE:=PCengines WRAP LED support
498   DEPENDS:=@TARGET_x86 +kmod-gpio-scx200
499   KCONFIG:=CONFIG_LEDS_WRAP
500   FILES:=$(LINUX_DIR)/drivers/leds/leds-wrap.ko
501   AUTOLOAD:=$(call AutoLoad,50,leds-wrap)
502 endef
503
504 define KernelPackage/leds-wrap/description
505  Kernel module for PCengines WRAP LEDs
506 endef
507
508 $(eval $(call KernelPackage,leds-wrap))
509
510
511 define KernelPackage/ledtrig-gpio
512   SUBMENU:=$(OTHER_MENU)
513   TITLE:=LED GPIO Trigger
514   KCONFIG:=CONFIG_LEDS_TRIGGER_GPIO
515   FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-gpio.ko
516   AUTOLOAD:=$(call AutoLoad,50,ledtrig-gpio)
517 endef
518
519 define KernelPackage/ledtrig-gpio/description
520  Kernel module that allows LEDs to be controlled by gpio events.
521 endef
522
523 $(eval $(call KernelPackage,ledtrig-gpio))
524
525
526 define KernelPackage/ledtrig-morse
527   SUBMENU:=$(OTHER_MENU)
528   TITLE:=LED Morse Trigger
529   KCONFIG:=CONFIG_LEDS_TRIGGER_MORSE
530   FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-morse.ko
531   AUTOLOAD:=$(call AutoLoad,50,ledtrig-morse)
532 endef
533
534 define KernelPackage/ledtrig-morse/description
535  Kernel module to show morse coded messages on LEDs.
536 endef
537
538 $(eval $(call KernelPackage,ledtrig-morse))
539
540
541 define KernelPackage/ledtrig-netdev
542   SUBMENU:=$(OTHER_MENU)
543   TITLE:=LED NETDEV Trigger
544   KCONFIG:=CONFIG_LEDS_TRIGGER_NETDEV
545   FILES:=$(LINUX_DIR)/drivers/leds/ledtrig-netdev.ko
546   AUTOLOAD:=$(call AutoLoad,50,ledtrig-netdev)
547 endef
548
549 define KernelPackage/ledtrig-netdev/description
550  Kernel module to drive LEDs based on network activity.
551 endef
552
553 $(eval $(call KernelPackage,ledtrig-netdev))
554
555
556 define KernelPackage/lp
557   SUBMENU:=$(OTHER_MENU)
558   TITLE:=Parallel port and line printer support
559   DEPENDS:=@BROKEN
560   KCONFIG:= \
561         CONFIG_PARPORT \
562         CONFIG_PRINTER \
563         CONFIG_PPDEV
564   FILES:= \
565         $(LINUX_DIR)/drivers/parport/parport.ko \
566         $(LINUX_DIR)/drivers/char/lp.ko \
567         $(LINUX_DIR)/drivers/char/ppdev.ko
568   AUTOLOAD:=$(call AutoLoad,50,parport lp)
569 endef
570
571 $(eval $(call KernelPackage,lp))
572
573
574 define KernelPackage/mmc
575   SUBMENU:=$(OTHER_MENU)
576   TITLE:=MMC/SD Card Support
577   KCONFIG:= \
578         CONFIG_MMC \
579         CONFIG_MMC_BLOCK \
580         CONFIG_MMC_DEBUG=n \
581         CONFIG_MMC_UNSAFE_RESUME=n \
582         CONFIG_MMC_BLOCK_BOUNCE=y \
583         CONFIG_MMC_SDHCI=n \
584         CONFIG_MMC_TIFM_SD=n \
585         CONFIG_MMC_WBSD=n \
586         CONFIG_SDIO_UART=n
587   FILES:= \
588         $(LINUX_DIR)/drivers/mmc/core/mmc_core.ko \
589         $(LINUX_DIR)/drivers/mmc/card/mmc_block.ko
590   AUTOLOAD:=$(call AutoLoad,90,mmc_core mmc_block,1)
591 endef
592
593 define KernelPackage/mmc/description
594  Kernel support for MMC/SD cards
595 endef
596
597 $(eval $(call KernelPackage,mmc))
598
599
600 define KernelPackage/mmc-atmelmci
601   SUBMENU:=$(OTHER_MENU)
602   TITLE:=Amtel MMC Support
603   DEPENDS:=@TARGET_avr32 +kmod-mmc
604   KCONFIG:=CONFIG_MMC_ATMELMCI
605   FILES:=$(LINUX_DIR)/drivers/mmc/host/atmel-mci.ko
606   AUTOLOAD:=$(call AutoLoad,90,atmel-mci)
607 endef
608
609 define KernelPackage/mmc-atmelmci/description
610  Kernel support for  Atmel Multimedia Card Interface.
611 endef
612
613 $(eval $(call KernelPackage,mmc-atmelmci,1))
614
615
616 define KernelPackage/rfkill
617   SUBMENU:=$(OTHER_MENU)
618   TITLE:=RF switch subsystem support
619   KCONFIG:= \
620     CONFIG_RFKILL \
621     CONFIG_RFKILL_INPUT=y \
622     CONFIG_RFKILL_LEDS=y
623 ifeq ($(CONFIG_LINUX_2_6_30),)
624   FILES:= \
625     $(LINUX_DIR)/net/rfkill/rfkill.ko
626   AUTOLOAD:=$(call AutoLoad,20,rfkill)
627 else
628   FILES:= \
629     $(LINUX_DIR)/net/rfkill/rfkill.ko \
630     $(LINUX_DIR)/net/rfkill/rfkill-input.ko
631   AUTOLOAD:=$(call AutoLoad,20,rfkill rfkill-input)
632 endif
633   $(call SetDepends/rfkill)
634 endef
635
636 define KernelPackage/rfkill/description
637   Say Y here if you want to have control over RF switches
638   found on many WiFi and Bluetooth cards.
639 endef
640
641 $(eval $(call KernelPackage,rfkill))
642
643
644 define KernelPackage/softdog
645   SUBMENU:=$(OTHER_MENU)
646   TITLE:=Software watchdog driver
647   KCONFIG:=CONFIG_SOFT_WATCHDOG
648   FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/softdog.ko
649   AUTOLOAD:=$(call AutoLoad,50,softdog)
650 endef
651
652 define KernelPackage/softdog/description
653  Software watchdog driver
654 endef
655
656 $(eval $(call KernelPackage,softdog))
657
658
659 define KernelPackage/ssb
660   SUBMENU:=$(OTHER_MENU)
661   TITLE:=Silicon Sonics Backplane glue code
662   DEPENDS:=@PCI_SUPPORT @!TARGET_brcm47xx @!TARGET_brcm63xx
663   KCONFIG:=\
664         CONFIG_SSB \
665         CONFIG_SSB_B43_PCI_BRIDGE=y \
666         CONFIG_SSB_DRIVER_MIPS=n \
667         CONFIG_SSB_DRIVER_PCICORE=y \
668         CONFIG_SSB_DRIVER_PCICORE_POSSIBLE=y \
669         CONFIG_SSB_PCIHOST=y \
670         CONFIG_SSB_PCIHOST_POSSIBLE=y \
671         CONFIG_SSB_POSSIBLE=y \
672         CONFIG_SSB_SPROM=y \
673         CONFIG_SSB_SILENT=y
674   FILES:=$(LINUX_DIR)/drivers/ssb/ssb.ko
675   AUTOLOAD:=$(call AutoLoad,29,ssb)
676 endef
677
678 define KernelPackage/ssb/description
679   Silicon Sonics Backplane glue code.
680 endef
681
682 $(eval $(call KernelPackage,ssb))
683
684
685 define KernelPackage/textsearch
686 SUBMENU:=$(OTHER_MENU)
687   TITLE:=Textsearch support is selected if needed
688   KCONFIG:= \
689     CONFIG_TEXTSEARCH=y \
690     CONFIG_TEXTSEARCH_KMP \
691     CONFIG_TEXTSEARCH_BM \
692     CONFIG_TEXTSEARCH_FSM
693   FILES:= \
694     $(LINUX_DIR)/lib/ts_kmp.ko \
695     $(LINUX_DIR)/lib/ts_bm.ko \
696     $(LINUX_DIR)/lib/ts_fsm.ko
697   AUTOLOAD:=$(call AutoLoad,20,ts_kmp ts_bm ts_fsm)
698 endef
699
700 $(eval $(call KernelPackage,textsearch))
701
702
703 define KernelPackage/wdt-geode
704   SUBMENU:=$(OTHER_MENU)
705   TITLE:=Geode/LX Watchdog timer
706   DEPENDS:=@TARGET_x86
707   KCONFIG:=CONFIG_GEODE_WDT
708   FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/geodewdt.ko
709   AUTOLOAD:=$(call AutoLoad,50,geodewdt)
710 endef
711
712 define KernelPackage/wdt-geode/description
713   Kernel module for Geode watchdog timer.
714 endef
715
716 $(eval $(call KernelPackage,wdt-geode))
717
718
719 define KernelPackage/wdt-omap
720   SUBMENU:=$(OTHER_MENU)
721   TITLE:=OMAP Watchdog timer
722   DEPENDS:=@(TARGET_omap24xx||TARGET_omap35xx)
723   KCONFIG:=CONFIG_OMAP_WATCHDOG
724   FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/omap_wdt.ko
725   AUTOLOAD:=$(call AutoLoad,50,omap_wdt.ko)
726 endef
727
728 define KernelPackage/wdt-omap/description
729   Kernel module for TI omap watchdog timer.
730 endef
731
732 $(eval $(call KernelPackage,wdt-omap))
733
734
735 define KernelPackage/wdt-sc520
736   SUBMENU:=$(OTHER_MENU)
737   TITLE:=Natsemi SC520 Watchdog support
738   DEPENDS:=@TARGET_x86
739   KCONFIG:=CONFIG_SC520_WDT
740   FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/sc520_wdt.ko
741   AUTOLOAD:=$(call AutoLoad,50,sc520_wdt)
742 endef
743
744 define KernelPackage/wdt-sc520/description
745   Kernel module for SC520 Watchdog
746 endef
747
748 $(eval $(call KernelPackage,wdt-sc520))
749
750
751 define KernelPackage/wdt-scx200
752   SUBMENU:=$(OTHER_MENU)
753   TITLE:=Natsemi SCX200 Watchdog support
754   DEPENDS:=@TARGET_x86
755   KCONFIG:=CONFIG_SCx200_WDT
756   FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/scx200_wdt.ko
757   AUTOLOAD:=$(call AutoLoad,50,scx200_wdt)
758 endef
759
760 define KernelPackage/wdt-scx200/description
761  Kernel module for SCX200 Watchdog
762 endef
763
764 $(eval $(call KernelPackage,wdt-scx200))
765
766
767 define KernelPackage/pwm
768   SUBMENU:=$(OTHER_MENU)
769   TITLE:=PWM generic API
770   KCONFIG:=CONFIG_GENERIC_PWM
771   FILES:=$(LINUX_DIR)/drivers/pwm/pwm.ko
772   AUTOLOAD:=$(call AutoLoad,50,pwm)
773 endef
774
775 define KernelPackage/pwm/description
776  Kernel module that implement a generic PWM API
777 endef
778
779 $(eval $(call KernelPackage,pwm))
780
781
782 define KernelPackage/pwm-gpio
783   SUBMENU:=$(OTHER_MENU)
784   TITLE:=PWM over GPIO
785   DEPENDS:=+kmod-pwm
786   KCONFIG:=CONFIG_GPIO_PWM
787   FILES:=$(LINUX_DIR)/drivers/pwm/gpio-pwm.ko
788   AUTOLOAD:=$(call AutoLoad,51,gpio-pwm)
789 endef
790
791 define KernelPackage/pwm-gpio/description
792  Kernel module to models a single-channel PWM device using a timer and a GPIO pin
793 endef
794
795 $(eval $(call KernelPackage,pwm-gpio))