package/kernel: move I2C-GPIO drivers from i2c.mk to other.mk
[openwrt/svn-archive/archive.git] / package / kernel / linux / 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 +kmod-crypto-hash
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 AutoProbe,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 AutoProbe,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/eeprom-93cx6
74 SUBMENU:=$(OTHER_MENU)
75 TITLE:=EEPROM 93CX6 support
76 KCONFIG:=CONFIG_EEPROM_93CX6
77 FILES:=$(LINUX_DIR)/drivers/misc/eeprom/eeprom_93cx6.ko
78 AUTOLOAD:=$(call AutoLoad,20,eeprom_93cx6)
79 endef
80
81 define KernelPackage/eeprom-93cx6/description
82 Kernel module for EEPROM 93CX6 support
83 endef
84
85 $(eval $(call KernelPackage,eeprom-93cx6))
86
87
88 define KernelPackage/eeprom-at24
89 SUBMENU:=$(OTHER_MENU)
90 TITLE:=EEPROM AT24 support
91 KCONFIG:=CONFIG_EEPROM_AT24
92 DEPENDS:=+kmod-i2c-core
93 FILES:=$(LINUX_DIR)/drivers/misc/eeprom/at24.ko
94 AUTOLOAD:=$(call AutoProbe,at24)
95 endef
96
97 define KernelPackage/eeprom-at24/description
98 Kernel module for most I2C EEPROMs
99 endef
100
101 $(eval $(call KernelPackage,eeprom-at24))
102
103
104 define KernelPackage/eeprom-at25
105 SUBMENU:=$(OTHER_MENU)
106 TITLE:=EEPROM AT25 support
107 KCONFIG:=CONFIG_EEPROM_AT25
108 FILES:=$(LINUX_DIR)/drivers/misc/eeprom/at25.ko
109 AUTOLOAD:=$(call AutoProbe,at25)
110 endef
111
112 define KernelPackage/eeprom-at25/description
113 Kernel module for most SPI EEPROMs
114 endef
115
116 $(eval $(call KernelPackage,eeprom-at25))
117
118
119 define KernelPackage/gpio-dev
120 SUBMENU:=$(OTHER_MENU)
121 TITLE:=Generic GPIO char device support
122 DEPENDS:=@GPIO_SUPPORT
123 KCONFIG:=CONFIG_GPIO_DEVICE
124 FILES:=$(LINUX_DIR)/drivers/char/gpio_dev.ko
125 AUTOLOAD:=$(call AutoLoad,40,gpio_dev)
126 endef
127
128 define KernelPackage/gpio-dev/description
129 Kernel module to allows control of GPIO pins using a character device.
130 endef
131
132 $(eval $(call KernelPackage,gpio-dev))
133
134
135 define KernelPackage/gpio-mcp23s08
136 SUBMENU:=$(OTHER_MENU)
137 TITLE:=Microchip MCP23xxx I/O expander
138 DEPENDS:=@GPIO_SUPPORT +PACKAGE_kmod-i2c-core:kmod-i2c-core
139 KCONFIG:=CONFIG_GPIO_MCP23S08
140 FILES:=$(LINUX_DIR)/drivers/gpio/gpio-mcp23s08.ko
141 AUTOLOAD:=$(call AutoLoad,40,gpio-mcp23s08)
142 endef
143
144 define KernelPackage/gpio-mcp23s08/description
145 Kernel module for Microchip MCP23xxx SPI/I2C I/O expander
146 endef
147
148 $(eval $(call KernelPackage,gpio-mcp23s08))
149
150
151 define KernelPackage/gpio-nxp-74hc164
152 SUBMENU:=$(OTHER_MENU)
153 TITLE:=NXP 74HC164 GPIO expander support
154 KCONFIG:=CONFIG_GPIO_NXP_74HC164
155 FILES:=$(LINUX_DIR)/drivers/gpio/nxp_74hc164.ko
156 AUTOLOAD:=$(call AutoProbe,nxp_74hc164)
157 endef
158
159 define KernelPackage/gpio-nxp-74hc164/description
160 Kernel module for NXP 74HC164 GPIO expander
161 endef
162
163 $(eval $(call KernelPackage,gpio-nxp-74hc164))
164
165 define KernelPackage/gpio-pca953x
166 SUBMENU:=$(OTHER_MENU)
167 DEPENDS:=@GPIO_SUPPORT +kmod-i2c-core
168 TITLE:=PCA95xx, TCA64xx, and MAX7310 I/O ports
169 KCONFIG:=CONFIG_GPIO_PCA953X
170 FILES:=$(LINUX_DIR)/drivers/gpio/gpio-pca953x.ko
171 AUTOLOAD:=$(call AutoLoad,55,gpio-pca953x)
172 endef
173
174 define KernelPackage/gpio-pca953x/description
175 Kernel module for MAX731{0,2,3,5}, PCA6107, PCA953{4-9}, PCA955{4-7},
176 PCA957{4,5} and TCA64{08,16} I2C GPIO expanders
177 endef
178
179 $(eval $(call KernelPackage,gpio-pca953x))
180
181 define KernelPackage/gpio-pcf857x
182 SUBMENU:=$(OTHER_MENU)
183 DEPENDS:=@GPIO_SUPPORT +kmod-i2c-core
184 TITLE:=PCX857x, PCA967x and MAX732X I2C GPIO expanders
185 KCONFIG:=CONFIG_GPIO_PCF857X
186 FILES:=$(LINUX_DIR)/drivers/gpio/gpio-pcf857x.ko
187 AUTOLOAD:=$(call AutoLoad,55,gpio-pcf857x)
188 endef
189
190 define KernelPackage/gpio-pcf857x/description
191 Kernel module for PCF857x, PCA{85,96}7x, and MAX732[89] I2C GPIO expanders
192 endef
193
194 $(eval $(call KernelPackage,gpio-pcf857x))
195
196 define KernelPackage/lp
197 SUBMENU:=$(OTHER_MENU)
198 TITLE:=Parallel port and line printer support
199 DEPENDS:=@BROKEN
200 KCONFIG:= \
201 CONFIG_PARPORT \
202 CONFIG_PRINTER \
203 CONFIG_PPDEV
204 FILES:= \
205 $(LINUX_DIR)/drivers/parport/parport.ko \
206 $(LINUX_DIR)/drivers/char/lp.ko \
207 $(LINUX_DIR)/drivers/char/ppdev.ko
208 AUTOLOAD:=$(call AutoLoad,50,parport lp)
209 endef
210
211 $(eval $(call KernelPackage,lp))
212
213
214 define KernelPackage/mmc
215 SUBMENU:=$(OTHER_MENU)
216 TITLE:=MMC/SD Card Support
217 KCONFIG:= \
218 CONFIG_MMC \
219 CONFIG_MMC_BLOCK \
220 CONFIG_MMC_DEBUG=n \
221 CONFIG_MMC_UNSAFE_RESUME=n \
222 CONFIG_MMC_BLOCK_BOUNCE=y \
223 CONFIG_MMC_SDHCI=n \
224 CONFIG_MMC_TIFM_SD=n \
225 CONFIG_MMC_WBSD=n \
226 CONFIG_SDIO_UART=n
227 FILES:= \
228 $(LINUX_DIR)/drivers/mmc/core/mmc_core.ko \
229 $(LINUX_DIR)/drivers/mmc/card/mmc_block.ko
230 AUTOLOAD:=$(call AutoProbe,mmc_core mmc_block,1)
231 endef
232
233 define KernelPackage/mmc/description
234 Kernel support for MMC/SD cards
235 endef
236
237 $(eval $(call KernelPackage,mmc))
238
239
240 define KernelPackage/oprofile
241 SUBMENU:=$(OTHER_MENU)
242 TITLE:=OProfile profiling support
243 KCONFIG:=CONFIG_OPROFILE
244 FILES:=$(LINUX_DIR)/arch/$(LINUX_KARCH)/oprofile/oprofile.ko
245 DEPENDS:=@KERNEL_PROFILING
246 endef
247
248 define KernelPackage/oprofile/description
249 Kernel module for support for oprofile system profiling
250 endef
251
252 $(eval $(call KernelPackage,oprofile))
253
254
255 define KernelPackage/rfkill
256 SUBMENU:=$(OTHER_MENU)
257 TITLE:=RF switch subsystem support
258 DEPENDS:=@USE_RFKILL +kmod-input-core
259 KCONFIG:= \
260 CONFIG_RFKILL \
261 CONFIG_RFKILL_INPUT=y \
262 CONFIG_RFKILL_LEDS=y \
263 CONFIG_RFKILL_GPIO=y
264 FILES:= \
265 $(LINUX_DIR)/net/rfkill/rfkill.ko
266 AUTOLOAD:=$(call AutoLoad,20,rfkill)
267 endef
268
269 define KernelPackage/rfkill/description
270 Say Y here if you want to have control over RF switches
271 found on many WiFi and Bluetooth cards
272 endef
273
274 $(eval $(call KernelPackage,rfkill))
275
276
277 define KernelPackage/softdog
278 SUBMENU:=$(OTHER_MENU)
279 TITLE:=Software watchdog driver
280 KCONFIG:=CONFIG_SOFT_WATCHDOG
281 FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/softdog.ko
282 AUTOLOAD:=$(call AutoLoad,50,softdog)
283 endef
284
285 define KernelPackage/softdog/description
286 Software watchdog driver
287 endef
288
289 $(eval $(call KernelPackage,softdog))
290
291
292 define KernelPackage/ssb
293 SUBMENU:=$(OTHER_MENU)
294 TITLE:=Silicon Sonics Backplane glue code
295 DEPENDS:=@PCI_SUPPORT @!TARGET_brcm47xx @!TARGET_brcm63xx
296 KCONFIG:=\
297 CONFIG_SSB \
298 CONFIG_SSB_B43_PCI_BRIDGE=y \
299 CONFIG_SSB_DRIVER_MIPS=n \
300 CONFIG_SSB_DRIVER_PCICORE=y \
301 CONFIG_SSB_DRIVER_PCICORE_POSSIBLE=y \
302 CONFIG_SSB_PCIHOST=y \
303 CONFIG_SSB_PCIHOST_POSSIBLE=y \
304 CONFIG_SSB_POSSIBLE=y \
305 CONFIG_SSB_SPROM=y \
306 CONFIG_SSB_SILENT=y
307 FILES:=$(LINUX_DIR)/drivers/ssb/ssb.ko
308 AUTOLOAD:=$(call AutoLoad,18,ssb,1)
309 endef
310
311 define KernelPackage/ssb/description
312 Silicon Sonics Backplane glue code.
313 endef
314
315 $(eval $(call KernelPackage,ssb))
316
317
318 define KernelPackage/bcma
319 SUBMENU:=$(OTHER_MENU)
320 TITLE:=BCMA support
321 DEPENDS:=@PCI_SUPPORT @!TARGET_brcm47xx
322 KCONFIG:=\
323 CONFIG_BCMA \
324 CONFIG_BCMA_POSSIBLE=y \
325 CONFIG_BCMA_BLOCKIO=y \
326 CONFIG_BCMA_HOST_PCI_POSSIBLE=y \
327 CONFIG_BCMA_HOST_PCI=y \
328 CONFIG_BCMA_HOST_SOC=n \
329 CONFIG_BCMA_DRIVER_MIPS=n \
330 CONFIG_BCMA_DRIVER_PCI_HOSTMODE=n \
331 CONFIG_BCMA_DRIVER_GMAC_CMN=n \
332 CONFIG_BCMA_DEBUG=n
333 FILES:=$(LINUX_DIR)/drivers/bcma/bcma.ko
334 AUTOLOAD:=$(call AutoLoad,29,bcma)
335 endef
336
337 define KernelPackage/bcma/description
338 Bus driver for Broadcom specific Advanced Microcontroller Bus Architecture
339 endef
340
341 $(eval $(call KernelPackage,bcma))
342
343
344 define KernelPackage/wdt-omap
345 SUBMENU:=$(OTHER_MENU)
346 TITLE:=OMAP Watchdog timer
347 DEPENDS:=@(TARGET_omap24xx||TARGET_omap35xx)
348 KCONFIG:=CONFIG_OMAP_WATCHDOG
349 FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/omap_wdt.ko
350 AUTOLOAD:=$(call AutoLoad,50,omap_wdt.ko)
351 endef
352
353 define KernelPackage/wdt-omap/description
354 Kernel module for TI omap watchdog timer
355 endef
356
357 $(eval $(call KernelPackage,wdt-omap))
358
359
360 define KernelPackage/wdt-orion
361 SUBMENU:=$(OTHER_MENU)
362 TITLE:=Marvell Orion Watchdog timer
363 DEPENDS:=@TARGET_orion||TARGET_kirkwood||TARGET_mvebu
364 KCONFIG:=CONFIG_ORION_WATCHDOG
365 FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/orion_wdt.ko
366 AUTOLOAD:=$(call AutoLoad,50,orion_wdt)
367 endef
368
369 define KernelPackage/wdt-orion/description
370 Kernel module for Marvell Orion, Kirkwood and Armada XP/370 watchdog timer
371 endef
372
373 $(eval $(call KernelPackage,wdt-orion))
374
375
376 define KernelPackage/booke-wdt
377 SUBMENU:=$(OTHER_MENU)
378 TITLE:=PowerPC Book-E Watchdog Timer
379 DEPENDS:=@(TARGET_mpc85xx||TARGET_ppc40x||TARGET_ppc44x)
380 KCONFIG:=CONFIG_BOOKE_WDT
381 FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/booke_wdt.ko
382 AUTOLOAD:=$(call AutoLoad,50,booke_wdt)
383 endef
384
385 define KernelPackage/booke-wdt/description
386 Kernel module for PowerPC Book-E Watchdog Timer
387 endef
388
389 $(eval $(call KernelPackage,booke-wdt))
390
391
392 define KernelPackage/pwm
393 SUBMENU:=$(OTHER_MENU)
394 TITLE:=PWM generic API
395 KCONFIG:=CONFIG_GENERIC_PWM
396 FILES:=$(LINUX_DIR)/drivers/pwm/pwm.ko
397 endef
398
399 define KernelPackage/pwm/description
400 Kernel module that implement a generic PWM API
401 endef
402
403 $(eval $(call KernelPackage,pwm))
404
405
406 define KernelPackage/pwm-gpio
407 SUBMENU:=$(OTHER_MENU)
408 TITLE:=PWM over GPIO
409 DEPENDS:=+kmod-pwm
410 KCONFIG:=CONFIG_GPIO_PWM
411 FILES:=$(LINUX_DIR)/drivers/pwm/gpio-pwm.ko
412 AUTOLOAD:=$(call AutoProbe,gpio-pwm)
413 endef
414
415 define KernelPackage/pwm-gpio/description
416 Kernel module to models a single-channel PWM device using a timer and a GPIO pin
417 endef
418
419 $(eval $(call KernelPackage,pwm-gpio))
420
421
422 define KernelPackage/rtc-isl1208
423 SUBMENU:=$(OTHER_MENU)
424 TITLE:=Intersil ISL1208 RTC support
425 $(call AddDepends/rtc)
426 DEPENDS+=+kmod-i2c-core
427 KCONFIG:=CONFIG_RTC_DRV_ISL1208
428 FILES:=$(LINUX_DIR)/drivers/rtc/rtc-isl1208.ko
429 AUTOLOAD:=$(call AutoProbe,rtc-isl1208)
430 endef
431
432 define KernelPackage/rtc-isl1208/description
433 Kernel module for Intersil ISL1208 RTC.
434 endef
435
436 $(eval $(call KernelPackage,rtc-isl1208))
437
438
439 define KernelPackage/rtc-marvell
440 SUBMENU:=$(OTHER_MENU)
441 TITLE:=Marvell SoC built-in RTC support
442 $(call AddDepends/rtc)
443 DEPENDS+=@TARGET_kirkwood||TARGET_orion||TARGET_mvebu
444 KCONFIG:=CONFIG_RTC_DRV_MV
445 FILES:=$(LINUX_DIR)/drivers/rtc/rtc-mv.ko
446 AUTOLOAD:=$(call AutoProbe,rtc-mv)
447 endef
448
449 define KernelPackage/rtc-marvell/description
450 Kernel module for Marvell SoC built-in RTC.
451 endef
452
453 $(eval $(call KernelPackage,rtc-marvell))
454
455 define KernelPackage/rtc-pcf8563
456 SUBMENU:=$(OTHER_MENU)
457 TITLE:=Philips PCF8563/Epson RTC8564 RTC support
458 $(call AddDepends/rtc,+kmod-i2c-core)
459 KCONFIG:=CONFIG_RTC_DRV_PCF8563
460 FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pcf8563.ko
461 AUTOLOAD:=$(call AutoProbe,rtc-pcf8563)
462 endef
463
464 define KernelPackage/rtc-pcf8563/description
465 Kernel module for Philips PCF8563 RTC chip.
466 The Epson RTC8564 should work as well.
467 endef
468
469 $(eval $(call KernelPackage,rtc-pcf8563))
470
471
472 define KernelPackage/rtc-pcf2123
473 SUBMENU:=$(OTHER_MENU)
474 TITLE:=Philips PCF2123 RTC support
475 $(call AddDepends/rtc)
476 KCONFIG:=CONFIG_RTC_DRV_PCF2123
477 FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pcf2123.ko
478 AUTOLOAD:=$(call AutoProbe,rtc-pcf2123)
479 endef
480
481 define KernelPackage/rtc-pcf2123/description
482 Kernel module for Philips PCF2123 RTC chip
483 endef
484
485 $(eval $(call KernelPackage,rtc-pcf2123))
486
487 define KernelPackage/rtc-pt7c4338
488 SUBMENU:=$(OTHER_MENU)
489 TITLE:=Pericom PT7C4338 RTC support
490 $(call AddDepends/rtc,+kmod-i2c-core)
491 KCONFIG:=CONFIG_RTC_DRV_PT7C4338
492 FILES:=$(LINUX_DIR)/drivers/rtc/rtc-pt7c4338.ko
493 AUTOLOAD:=$(call AutoProbe,rtc-pt7c4338)
494 endef
495
496 define KernelPackage/rtc-pt7c4338/description
497 Kernel module for Pericom PT7C4338 i2c RTC chip
498 endef
499
500 $(eval $(call KernelPackage,rtc-pt7c4338))
501
502
503 define KernelPackage/mtdtests
504 SUBMENU:=$(OTHER_MENU)
505 TITLE:=MTD subsystem tests
506 KCONFIG:=CONFIG_MTD_TESTS
507 DEPENDS:=+kmod-nand
508 FILES:=\
509 $(LINUX_DIR)/drivers/mtd/tests/mtd_nandecctest.ko \
510 $(LINUX_DIR)/drivers/mtd/tests/mtd_oobtest.ko \
511 $(LINUX_DIR)/drivers/mtd/tests/mtd_pagetest.ko \
512 $(LINUX_DIR)/drivers/mtd/tests/mtd_readtest.ko \
513 $(LINUX_DIR)/drivers/mtd/tests/mtd_speedtest.ko \
514 $(LINUX_DIR)/drivers/mtd/tests/mtd_stresstest.ko \
515 $(LINUX_DIR)/drivers/mtd/tests/mtd_subpagetest.ko \
516 $(LINUX_DIR)/drivers/mtd/tests/mtd_torturetest.ko
517 endef
518
519 define KernelPackage/mtdtests/description
520 Kernel modules for MTD subsystem/driver testing
521 endef
522
523 $(eval $(call KernelPackage,mtdtests))
524
525
526 define KernelPackage/nand
527 SUBMENU:=$(OTHER_MENU)
528 TITLE:=NAND flash support
529 KCONFIG:=CONFIG_MTD_NAND \
530 CONFIG_MTD_NAND_IDS \
531 CONFIG_MTD_NAND_ECC
532 FILES:= \
533 $(LINUX_DIR)/drivers/mtd/nand/nand_ids.ko \
534 $(LINUX_DIR)/drivers/mtd/nand/nand_ecc.ko \
535 $(LINUX_DIR)/drivers/mtd/nand/nand.ko
536 AUTOLOAD:=$(call AutoLoad,20,nand_ids nand_ecc nand)
537 endef
538
539 define KernelPackage/nand/description
540 Kernel module for NAND support
541 endef
542
543 $(eval $(call KernelPackage,nand))
544
545
546 define KernelPackage/nandsim
547 SUBMENU:=$(OTHER_MENU)
548 TITLE:=NAND simulator
549 DEPENDS:=+kmod-nand
550 KCONFIG:=CONFIG_MTD_NAND_NANDSIM
551 FILES:=$(LINUX_DIR)/drivers/mtd/nand/nandsim.ko
552 endef
553
554 define KernelPackage/nandsim/description
555 Kernel module for NAND flash simulation.
556 endef
557
558 $(eval $(call KernelPackage,nandsim))
559
560 define KernelPackage/serial-8250
561 SUBMENU:=$(OTHER_MENU)
562 TITLE:=8250 UARTs
563 KCONFIG:= CONFIG_SERIAL_8250 \
564 CONFIG_SERIAL_8250_NR_UARTS=16 \
565 CONFIG_SERIAL_8250_RUNTIME_UARTS=16 \
566 CONFIG_SERIAL_8250_EXTENDED=y \
567 CONFIG_SERIAL_8250_MANY_PORTS=y \
568 CONFIG_SERIAL_8250_SHARE_IRQ=y \
569 CONFIG_SERIAL_8250_DETECT_IRQ=n \
570 CONFIG_SERIAL_8250_RSA=n
571 FILES:=$(LINUX_DIR)/drivers/tty/serial/8250/8250$(if $(call kernel_patchver_ge,3.7),$(if $(call kernel_patchver_le,3.8),_core)).ko
572 endef
573
574 define KernelPackage/serial-8250/description
575 Kernel module for 8250 UART based serial ports
576 endef
577
578 $(eval $(call KernelPackage,serial-8250))
579
580
581 define KernelPackage/regmap
582 SUBMENU:=$(OTHER_MENU)
583 TITLE:=Generic register map support
584 DEPENDS:=+kmod-lib-lzo +kmod-i2c-core
585 KCONFIG:=CONFIG_REGMAP \
586 CONFIG_REGMAP_SPI \
587 CONFIG_REGMAP_I2C \
588 CONFIG_SPI=y
589 FILES:= \
590 $(LINUX_DIR)/drivers/base/regmap/regmap-core.ko \
591 $(LINUX_DIR)/drivers/base/regmap/regmap-i2c.ko \
592 $(LINUX_DIR)/drivers/base/regmap/regmap-spi.ko
593 AUTOLOAD:=$(call AutoLoad,21,regmap-core regmap-i2c regmap-spi)
594 endef
595
596 define KernelPackage/regmap/description
597 Generic register map support
598 endef
599
600 $(eval $(call KernelPackage,regmap))
601
602 define KernelPackage/ikconfig
603 SUBMENU:=$(OTHER_MENU)
604 TITLE:=Kernel configuration via /proc/config.gz
605 KCONFIG:=CONFIG_IKCONFIG \
606 CONFIG_IKCONFIG_PROC=y
607 FILES:=$(LINUX_DIR)/kernel/configs.ko
608 AUTOLOAD:=$(call AutoLoad,70,configs)
609 endef
610
611 define KernelPackage/ikconfig/description
612 Kernel configuration via /proc/config.gz
613 endef
614
615 $(eval $(call KernelPackage,ikconfig))
616
617
618 define KernelPackage/zram
619 SUBMENU:=$(OTHER_MENU)
620 TITLE:=ZRAM
621 DEPENDS:=@!LINUX_3_3 +kmod-lib-lzo
622 KCONFIG:= \
623 CONFIG_ZSMALLOC \
624 CONFIG_ZRAM \
625 CONFIG_ZRAM_DEBUG=n
626 FILES:= \
627 $(LINUX_DIR)/drivers/staging/zsmalloc/zsmalloc.ko \
628 $(LINUX_DIR)/drivers/staging/zram/zram.ko
629 AUTOLOAD:=$(call AutoLoad,20,zsmalloc zram)
630 endef
631
632 define KernelPackage/zram/description
633 Compressed RAM block device support
634 endef
635
636 $(eval $(call KernelPackage,zram))
637
638
639 define KernelPackage/mvsdio
640 SUBMENU:=$(OTHER_MENU)
641 TITLE:=Marvell SDIO support
642 DEPENDS:=@TARGET_orion||TARGET_kirkwood||TARGET_mvebu +kmod-mmc
643 KCONFIG:=CONFIG_MMC_MVSDIO
644 FILES:=$(LINUX_DIR)/drivers/mmc/host/mvsdio.ko
645 AUTOLOAD:=$(call AutoProbe,mvsdio)
646 endef
647
648 define KernelPacakge/mvsdio/description
649 Kernel support for the Marvell SDIO controller
650 endef
651
652 $(eval $(call KernelPackage,mvsdio))
653
654
655 define KernelPackage/pps
656 SUBMENU:=$(OTHER_MENU)
657 TITLE:=PPS support
658 KCONFIG:=CONFIG_PPS
659 FILES:=$(LINUX_DIR)/drivers/pps/pps_core.ko
660 AUTOLOAD:=$(call AutoLoad,17,pps_core,1)
661 endef
662
663 define KernelPacakge/pps/description
664 PPS (Pulse Per Second) is a special pulse provided by some GPS
665 antennae. Userland can use it to get a high-precision time
666 reference.
667 endef
668
669 $(eval $(call KernelPackage,pps))
670
671
672 define KernelPackage/ptp
673 SUBMENU:=$(OTHER_MENU)
674 TITLE:=PTP clock support
675 DEPENDS:=+kmod-pps
676 KCONFIG:=CONFIG_PTP_1588_CLOCK
677 FILES:=$(LINUX_DIR)/drivers/ptp/ptp.ko
678 AUTOLOAD:=$(call AutoLoad,18,ptp,1)
679 endef
680
681 define KernelPacakge/ptp/description
682 The IEEE 1588 standard defines a method to precisely
683 synchronize distributed clocks over Ethernet networks.
684 endef
685
686 $(eval $(call KernelPackage,ptp))
687
688
689 define KernelPackage/ptp-gianfar
690 SUBMENU:=$(OTHER_MENU)
691 TITLE:=Freescale Gianfar PTP support
692 DEPENDS:=@TARGET_mpc85xx +kmod-gianfar +kmod-ptp
693 KCONFIG:=CONFIG_PTP_1588_CLOCK_GIANFAR
694 FILES:=$(LINUX_DIR)/drivers/net/ethernet/freescale/gianfar_ptp.ko
695 AUTOLOAD:=$(call AutoProbe,gianfar_ptp)
696 endef
697
698 define KernelPacakge/ptp-gianfar/description
699 Kernel module for IEEE 1588 support for Freescale
700 Gianfar Ethernet drivers
701 endef
702
703 $(eval $(call KernelPackage,ptp-gianfar))
704
705
706 define KernelPackage/random-core
707 SUBMENU:=$(OTHER_MENU)
708 TITLE:=Hardware Random Number Generator Core support
709 KCONFIG:=CONFIG_HW_RANDOM
710 FILES:=$(LINUX_DIR)/drivers/char/hw_random/rng-core.ko
711 endef
712
713 define KernelPackage/random-core/description
714 Kernel module for the HW random number generator core infrastructure
715 endef
716
717 $(eval $(call KernelPackage,random-core))