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