2 # Copyright (C) 2013-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 define KernelPackage/rtc-stmp3xxx
9 TITLE:=STMP3xxx SoC built-in RTC support
11 $(call AddDepends/rtc)
15 FILES:=$(LINUX_DIR)/drivers/rtc/rtc-stmp3xxx.ko
16 AUTOLOAD:=$(call AutoLoad,50,rtc-stmp3xxx)
19 $(eval $(call KernelPackage,rtc-stmp3xxx))
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)
30 define KernelPackage/wdt-stmp3xxx/description
31 Kernel module for STMP3xxx watchdog timer.
34 $(eval $(call KernelPackage,wdt-stmp3xxx))
36 define KernelPackage/sound-soc-mxs
37 TITLE:=Freescale i.MX23/i.MX28 built-in SoC sound support
39 CONFIG_SND_SOC_MXS_BUILTIN_CODEC \
40 CONFIG_SND_MXS_SOC_BUILTIN
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)
51 define KernelPackage/sound-soc-mxs/description
52 Kernel support for Freescale i.MX23/i.MX28 built-in SoC audio
55 $(eval $(call KernelPackage,sound-soc-mxs))
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)
66 define KernelPackage/iio-mxs-lradc/description
67 Kernel module for Freescale i.MX23/28 LRADC driver
70 $(eval $(call KernelPackage,iio-mxs-lradc))
72 define KernelPackage/crypto-hw-dcp
73 TITLE:=Freescale i.MX23/28 DCP hardware crypto module
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)
81 define KernelPackage/crypto-hw-dcp/description
82 Kernel support for Freescale i.MX23/28 DCP crypto engine
85 $(eval $(call KernelPackage,crypto-hw-dcp))
87 define KernelPackage/spi-mxs
89 TITLE:=Freescale i.MX23/28 SPI driver
91 KCONFIG:=CONFIG_SPI_MXS
92 FILES:=$(LINUX_DIR)/drivers/spi/spi-mxs.ko
93 AUTOLOAD:=$(call AutoProbe,spi-mxs)
96 define KernelPackage/spi-mxs/description
97 Kernel module for Freescale i.MX23/28 SPI controller
100 $(eval $(call KernelPackage,spi-mxs))
103 CONFIG_I2C_MXS:drivers/i2c/busses/i2c-mxs
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
111 define KernelPackage/i2c-mxs/description
112 Kernel module for Freescale i.MX23/28 I2C controller
115 $(eval $(call KernelPackage,i2c-mxs))