aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/imx23/modules.mk
blob: 119ddd7bd74d3b136e8f68fb7934ff9518c44885 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#
# Copyright (C) 2013 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.

define KernelPackage/rtc-stmp3xxx
    SUBMENU:=$(OTHER_MENU)
    TITLE:=STMP3xxx SoC built-in RTC support
    DEPENDS:=@TARGET_imx23
    $(call AddDepends/rtc)
    KCONFIG:=\
	CONFIG_RTC_CLASS=y \
	CONFIG_RTC_DRV_STMP=m
    FILES:=$(LINUX_DIR)/drivers/rtc/rtc-stmp3xxx.ko
    AUTOLOAD:=$(call AutoLoad,50,rtc-stmp3xxx)
endef

$(eval $(call KernelPackage,rtc-stmp3xxx))

define KernelPackage/wdt-stmp3xxx
    SUBMENU:=$(OTHER_MENU)
    TITLE:=STMP3xxx Watchdog timer
    DEPENDS:=kmod-rtc-stmp3xxx
    KCONFIG:=CONFIG_STMP3XXX_RTC_WATCHDOG
    FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/stmp3xxx_rtc_wdt.ko
    AUTOLOAD:=$(call AutoLoad,51,stmp3xxx_rtc_wdt)
endef

define KernelPackage/wdt-stmp3xxx/description
    Kernel module for STMP3xxx watchdog timer.
endef

$(eval $(call KernelPackage,wdt-stmp3xxx))

define KernelPackage/usb-chipidea-imx
    TITLE:=Support for ChipIdea controllers on i.MX
    DEPENDS:=+kmod-usb-chipidea @TARGET_imx23
    FILES:=\
	$(LINUX_DIR)/drivers/usb/chipidea/ci13xxx_imx.ko
    AUTOLOAD:=$(call AutoLoad,52,ci13xxx_imx,1)
    $(call AddDepends/usb)
endef

define KernelPackage/usb-chipidea-imx/description
    Kernel support for USB ChipIdea controllers on i.MX
endef

$(eval $(call KernelPackage,usb-chipidea-imx,1))

define KernelPackage/usb-mxs-phy
    TITLE:=Support for Freescale MXS USB PHY controllers
    DEPENDS:=+kmod-usb-chipidea-imx
    KCONFIG:= \
	CONFIG_USB_MXS_PHY
    FILES:=$(LINUX_DIR)/drivers/usb/phy/phy-mxs-usb.ko
    AUTOLOAD:=$(call AutoLoad,50,phy-mxs-usb,1)
    $(call AddDepends/usb)
endef

define KernelPackage/usb-mxs-phy/description
    Kernel support for Freescale MXS USB PHY controllers
endef

$(eval $(call KernelPackage,usb-mxs-phy,1))

define KernelPackage/usb-net-smsc95xx
    TITLE:=SMSC95xx USB/2.0 Ethernet driver
    DEPENDS:=@TARGET_imx23
    KCONFIG:=CONFIG_USB_NET_SMSC95XX
    FILES:=$(LINUX_DIR)/drivers/net/usb/smsc95xx.ko
    AUTOLOAD:=$(call AutoLoad,64,smsc95xx)
    $(call AddDepends/usb-net)
endef

define KernelPackage/usb-net-smsc95xx/description
    Kernel support for SMSC95xx USB/2.0 Ethernet driver
endef

$(eval $(call KernelPackage,usb-net-smsc95xx))

define KernelPackage/sound-soc-imx23
    TITLE:=Freescale i.MX233 built-in SoC sound support
    KCONFIG:= \
	CONFIG_SND_SOC_MXS_BUILTIN_CODEC \
	CONFIG_SND_MXS_SOC_BUILTIN
    FILES:= \
	$(LINUX_DIR)/sound/soc/mxs/snd-soc-mxs-builtin-audio.ko \
	$(LINUX_DIR)/sound/soc/mxs/snd-soc-mxs-builtin-dai.ko \
	$(LINUX_DIR)/sound/soc/mxs/snd-soc-mxs-builtin-pcm.ko \
	$(LINUX_DIR)/sound/soc/codecs/snd-soc-mxs-builtin-codec.ko
    AUTOLOAD:=$(call AutoLoad,65,snd-soc-mxs-builtin-pcm snd-soc-mxs-builtin-dai snd-soc-mxs-builtin-codec snd-soc-mxs-builtin-audio)
    DEPENDS:=@TARGET_imx23 +kmod-sound-soc-core
    $(call AddDepends/sound)
endef
  
define KernelPackage/sound-soc-imx23/description
    Kernel support for i.MX233 built-in SoC audio
endef

$(eval $(call KernelPackage,sound-soc-imx23))

define KernelPackage/iio-mxs-lradc
    SUBMENU:=$(OTHER_MENU)
    TITLE:=LRADC driver for i.MX23/28
    DEPENDS:=@TARGET_imx23
    KCONFIG:=CONFIG_MXS_LRADC
    FILES:=$(LINUX_DIR)/drivers/staging/iio/adc/mxs-lradc.ko \
	$(LINUX_DIR)/drivers/iio/industrialio-triggered-buffer.ko
    AUTOLOAD:=$(call AutoLoad,70,industrialio-triggered-buffer mxs-lradc)
endef

define KernelPackage/iio-mxs-lradc/description
    Kernel module for i.MX23/28 LRADC driver
endef

$(eval $(call KernelPackage,iio-mxs-lradc))