rpcd: iwinfo plugin fixes
[openwrt/svn-archive/archive.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/sound-soc-mxs
37 TITLE:=Freescale i.MX23/i.MX28 built-in SoC sound support
38 KCONFIG:= \
39 CONFIG_SND_SOC_MXS_BUILTIN_CODEC \
40 CONFIG_SND_MXS_SOC_BUILTIN
41 FILES:= \
42 $(LINUX_DIR)/sound/soc/mxs/snd-soc-mxs-builtin-audio.ko \
43 $(LINUX_DIR)/sound/soc/mxs/snd-soc-mxs-builtin-dai.ko \
44 $(LINUX_DIR)/sound/soc/mxs/snd-soc-mxs-builtin-pcm.ko \
45 $(LINUX_DIR)/sound/soc/codecs/snd-soc-mxs-builtin-codec.ko
46 AUTOLOAD:=$(call AutoLoad,65,snd-soc-mxs-builtin-pcm snd-soc-mxs-builtin-dai snd-soc-mxs-builtin-codec snd-soc-mxs-builtin-audio)
47 DEPENDS:=@TARGET_mxs +kmod-sound-soc-core @LINUX_3_18
48 $(call AddDepends/sound)
49 endef
50
51 define KernelPackage/sound-soc-mxs/description
52 Kernel support for Freescale i.MX23/i.MX28 built-in SoC audio
53 endef
54
55 $(eval $(call KernelPackage,sound-soc-mxs))
56
57 define KernelPackage/iio-mxs-lradc
58 SUBMENU:=$(OTHER_MENU)
59 TITLE:=Freescale i.MX23/28 LRADC driver
60 DEPENDS:=@TARGET_mxs +kmod-iio-core
61 KCONFIG:=CONFIG_MXS_LRADC
62 FILES:=$(LINUX_DIR)/drivers/staging/iio/adc/mxs-lradc.ko
63 AUTOLOAD:=$(call AutoLoad,70,mxs-lradc)
64 endef
65
66 define KernelPackage/iio-mxs-lradc/description
67 Kernel module for Freescale i.MX23/28 LRADC driver
68 endef
69
70 $(eval $(call KernelPackage,iio-mxs-lradc))
71
72 define KernelPackage/crypto-hw-dcp
73 TITLE:=Freescale i.MX23/28 DCP hardware crypto module
74 DEPENDS:=@TARGET_mxs
75 KCONFIG:=CONFIG_CRYPTO_DEV_MXS_DCP
76 FILES:=$(LINUX_DIR)/drivers/crypto/mxs-dcp.ko
77 AUTOLOAD:=$(call AutoLoad,90,mxs-dcp)
78 $(call AddDepends/crypto,+kmod-crypto-authenc +kmod-crypto-des)
79 endef
80
81 define KernelPackage/crypto-hw-dcp/description
82 Kernel support for Freescale i.MX23/28 DCP crypto engine
83 endef
84
85 $(eval $(call KernelPackage,crypto-hw-dcp))
86
87 define KernelPackage/spi-mxs
88 SUBMENU:=$(SPI_MENU)
89 TITLE:=Freescale i.MX23/28 SPI driver
90 DEPENDS:=@TARGET_mxs
91 KCONFIG:=CONFIG_SPI_MXS
92 FILES:=$(LINUX_DIR)/drivers/spi/spi-mxs.ko
93 AUTOLOAD:=$(call AutoProbe,spi-mxs)
94 endef
95
96 define KernelPackage/spi-mxs/description
97 Kernel module for Freescale i.MX23/28 SPI controller
98 endef
99
100 $(eval $(call KernelPackage,spi-mxs))
101
102 I2C_MXS_MODULES:= \
103 CONFIG_I2C_MXS:drivers/i2c/busses/i2c-mxs
104
105 define KernelPackage/i2c-mxs
106 $(call i2c_defaults,$(I2C_MXS_MODULES),55)
107 TITLE:=Freescale i.MX23/28 I2C driver
108 DEPENDS:=@TARGET_mxs +kmod-i2c-core
109 endef
110
111 define KernelPackage/i2c-mxs/description
112 Kernel module for Freescale i.MX23/28 I2C controller
113 endef
114
115 $(eval $(call KernelPackage,i2c-mxs))