[omap24xx] move omap specific modules to modules.mk
[openwrt/svn-archive/archive.git] / target / linux / omap24xx / modules.mk
1 #
2 # Copyright (C) 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 define KernelPackage/sound-soc-omap
9 TITLE:=OMAP SoC sound support
10 KCONFIG:= \
11 CONFIG_SND_OMAP_SOC
12 FILES:=$(LINUX_DIR)/sound/soc/omap/snd-soc-omap.ko
13 AUTOLOAD:=$(call AutoLoad,60,snd-soc-omap)
14 DEPENDS:=@TARGET_omap24xx +kmod-sound-soc-core
15 $(call AddDepends/sound)
16 endef
17
18 $(eval $(call KernelPackage,sound-soc-omap))
19
20
21 define KernelPackage/sound-soc-omap-mcbsp
22 TITLE:=OMAP SoC MCBSP support
23 KCONFIG:= \
24 CONFIG_SND_OMAP_SOC_MCBSP
25 FILES:=$(LINUX_DIR)/sound/soc/omap/snd-soc-omap-mcbsp.ko
26 AUTOLOAD:=$(call AutoLoad,61,snd-soc-omap-mcbsp)
27 DEPENDS:=@TARGET_omap24xx +kmod-sound-soc-omap
28 $(call AddDepends/sound)
29 endef
30
31 $(eval $(call KernelPackage,sound-soc-omap-mcbsp))
32
33
34 define KernelPackage/sound-soc-n810
35 TITLE:=Nokia n810 SoC sound support
36 KCONFIG:= \
37 CONFIG_SND_OMAP_SOC_N810
38 FILES:= \
39 $(LINUX_DIR)/sound/soc/codecs/snd-soc-tlv320aic3x.ko \
40 $(LINUX_DIR)/sound/soc/omap/snd-soc-n810.ko
41 AUTOLOAD:=$(call AutoLoad,65,snd-soc-tlv320aic3x snd-soc-n810)
42 DEPENDS:=@TARGET_omap24xx +kmod-sound-soc-omap +kmod-sound-soc-omap-mcbsp
43 $(call AddDepends/sound)
44 endef
45
46 $(eval $(call KernelPackage,sound-soc-n810))
47
48
49 define KernelPackage/n810bm
50 SUBMENU:=$(OTHER_MENU)
51 TITLE:=Nokia N810 battery management driver
52 DEPENDS:=@TARGET_omap24xx
53 KCONFIG:=CONFIG_N810BM
54 FILES:=$(LINUX_DIR)/drivers/cbus/n810bm.ko
55 AUTOLOAD:=$(call AutoLoad,01,n810bm)
56 endef
57
58 define KernelPackage/n810bm/description
59 Nokia N810 battery management driver.
60 Controls battery power management and battery charging.
61 endef
62
63 $(eval $(call KernelPackage,n810bm))
64
65
66 define KernelPackage/musb-hdrc
67 TITLE:=Support for Mentor Graphics silicon dual role USB
68 KCONFIG:= \
69 CONFIG_USB_MUSB_HDRC \
70 CONFIG_MUSB_PIO_ONLY=n \
71 CONFIG_USB_MUSB_OTG=y \
72 CONFIG_USB_MUSB_DEBUG=y
73 DEPENDS:=@TARGET_omap24xx
74 FILES:=$(LINUX_DIR)/drivers/usb/musb/musb_hdrc.ko
75 AUTOLOAD:=$(call AutoLoad,46,musb_hdrc)
76 $(call AddDepends/usb)
77 endef
78
79 define KernelPackage/musb-hdrc/description
80 Kernel support for Mentor Graphics silicon dual role USB device.
81 endef
82
83 $(eval $(call KernelPackage,musb-hdrc))
84
85
86 define KernelPackage/nop-usb-xceiv
87 TITLE:=Support for USB OTG NOP transceiver
88 KCONFIG:= \
89 CONFIG_NOP_USB_XCEIV
90 DEPENDS:=@TARGET_omap24xx
91 FILES:=$(LINUX_DIR)/drivers/usb/otg/nop-usb-xceiv.ko
92 AUTOLOAD:=$(call AutoLoad,45,nop-usb-xceiv)
93 $(call AddDepends/usb)
94 endef
95
96 define KernelPackage/nop-usb-xceiv/description
97 Support for USB OTG NOP transceiver
98 endef
99
100 $(eval $(call KernelPackage,nop-usb-xceiv))
101
102
103 define KernelPackage/tusb6010
104 TITLE:=Support for TUSB 6010
105 KCONFIG:= \
106 CONFIG_USB_MUSB_TUSB6010 \
107 CONFIG_USB_TUSB6010=y
108 DEPENDS:=+kmod-musb-hdrc +kmod-nop-usb-xceiv
109 $(call AddDepends/usb)
110 endef
111
112 define KernelPackage/tusb6010/description
113 TUSB6010 support
114 endef
115
116 $(eval $(call KernelPackage,tusb6010))
117
118
119 define KernelPackage/usb-tahvo
120 TITLE:=Support for Tahvo (Nokia n810) USB
121 KCONFIG:= \
122 CONFIG_CBUS_TAHVO_USB \
123 CONFIG_CBUS_TAHVO_USB_HOST_BY_DEFAULT=n \
124 CONFIG_USB_OHCI_HCD_OMAP1=y \
125 CONFIG_USB_GADGET_DEBUG_FS=n
126 DEPENDS:=@TARGET_omap24xx +kmod-tusb6010 +kmod-usb-gadget
127 FILES:=$(LINUX_DIR)/drivers/cbus/tahvo-usb.ko
128 AUTOLOAD:=$(call AutoLoad,45,tahvo-usb)
129 $(call AddDepends/usb)
130 endef
131
132 define KernelPackage/usb-tahvo/description
133 Kernel support for Nokia n810 USB OHCI controller.
134 endef
135
136 $(eval $(call KernelPackage,usb-tahvo))