mxs: remove obsolete kernel package depending on linux 3.18
[openwrt/staging/lynxis/omap.git] / target / linux / mxs / modules.mk
1 #
2 # Copyright (C) 2013-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6
7 define KernelPackage/rtc-stmp3xxx
8 SUBMENU:=$(OTHER_MENU)
9 TITLE:=STMP3xxx SoC built-in RTC support
10 DEPENDS:=@TARGET_mxs
11 $(call AddDepends/rtc)
12 KCONFIG:= \
13 CONFIG_RTC_CLASS=y \
14 CONFIG_RTC_DRV_STMP=m
15 FILES:=$(LINUX_DIR)/drivers/rtc/rtc-stmp3xxx.ko
16 AUTOLOAD:=$(call AutoLoad,50,rtc-stmp3xxx)
17 endef
18
19 $(eval $(call KernelPackage,rtc-stmp3xxx))
20
21 define KernelPackage/wdt-stmp3xxx
22 SUBMENU:=$(OTHER_MENU)
23 TITLE:=STMP3xxx Watchdog timer
24 DEPENDS:=kmod-rtc-stmp3xxx
25 KCONFIG:=CONFIG_STMP3XXX_RTC_WATCHDOG
26 FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/stmp3xxx_rtc_wdt.ko
27 AUTOLOAD:=$(call AutoLoad,51,stmp3xxx_rtc_wdt)
28 endef
29
30 define KernelPackage/wdt-stmp3xxx/description
31 Kernel module for STMP3xxx watchdog timer.
32 endef
33
34 $(eval $(call KernelPackage,wdt-stmp3xxx))
35
36 define KernelPackage/iio-mxs-lradc
37 SUBMENU:=$(OTHER_MENU)
38 TITLE:=Freescale i.MX23/28 LRADC driver
39 DEPENDS:=@TARGET_mxs +kmod-iio-core
40 KCONFIG:=CONFIG_MXS_LRADC
41 FILES:=$(LINUX_DIR)/drivers/staging/iio/adc/mxs-lradc.ko
42 AUTOLOAD:=$(call AutoLoad,70,mxs-lradc)
43 endef
44
45 define KernelPackage/iio-mxs-lradc/description
46 Kernel module for Freescale i.MX23/28 LRADC driver
47 endef
48
49 $(eval $(call KernelPackage,iio-mxs-lradc))
50
51 define KernelPackage/crypto-hw-dcp
52 TITLE:=Freescale i.MX23/28 DCP hardware crypto module
53 DEPENDS:=@TARGET_mxs
54 KCONFIG:=CONFIG_CRYPTO_DEV_MXS_DCP
55 FILES:=$(LINUX_DIR)/drivers/crypto/mxs-dcp.ko
56 AUTOLOAD:=$(call AutoLoad,90,mxs-dcp)
57 $(call AddDepends/crypto,+kmod-crypto-authenc +kmod-crypto-des)
58 endef
59
60 define KernelPackage/crypto-hw-dcp/description
61 Kernel support for Freescale i.MX23/28 DCP crypto engine
62 endef
63
64 $(eval $(call KernelPackage,crypto-hw-dcp))
65
66 define KernelPackage/spi-mxs
67 SUBMENU:=$(SPI_MENU)
68 TITLE:=Freescale i.MX23/28 SPI driver
69 DEPENDS:=@TARGET_mxs
70 KCONFIG:=CONFIG_SPI_MXS
71 FILES:=$(LINUX_DIR)/drivers/spi/spi-mxs.ko
72 AUTOLOAD:=$(call AutoProbe,spi-mxs)
73 endef
74
75 define KernelPackage/spi-mxs/description
76 Kernel module for Freescale i.MX23/28 SPI controller
77 endef
78
79 $(eval $(call KernelPackage,spi-mxs))
80
81 I2C_MXS_MODULES:= \
82 CONFIG_I2C_MXS:drivers/i2c/busses/i2c-mxs
83
84 define KernelPackage/i2c-mxs
85 $(call i2c_defaults,$(I2C_MXS_MODULES),55)
86 TITLE:=Freescale i.MX23/28 I2C driver
87 DEPENDS:=@TARGET_mxs +kmod-i2c-core
88 endef
89
90 define KernelPackage/i2c-mxs/description
91 Kernel module for Freescale i.MX23/28 I2C controller
92 endef
93
94 $(eval $(call KernelPackage,i2c-mxs))