[ep93xx] fix sound modules loading order and dependencies
[openwrt/svn-archive/archive.git] / target / linux / ep93xx / modules.mk
1 #
2 # Copyright (C) 2011 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/input-keyboard-ep93xx
9 SUBMENU:=$(OTHER_MENU)
10 TITLE:=EP93xx Matrix Keypad support
11 DEPENDS:=@TARGET_ep93xx
12 KCONFIG:= \
13 CONFIG_KEYBOARD_EP93XX \
14 CONFIG_INPUT_KEYBOARD=y
15 FILES:=$(LINUX_DIR)/drivers/input/keyboard/ep93xx_keypad.ko
16 AUTOLOAD:=$(call AutoLoad,62,ep93xx_keypad)
17 $(call AddDepends/input)
18 endef
19
20 define KernelPackage/input-keyboard-ep93xx/description
21 EP93xx Matrix Keypad support
22 endef
23
24 $(eval $(call KernelPackage,input-keyboard-ep93xx))
25
26
27 define KernelPackage/sound-soc-ep93xx
28 SUBMENU:=$(SOUND_MENU)
29 TITLE:=EP93xx SoC sound support
30 DEPENDS:=@TARGET_ep93xx +kmod-sound-soc-ac97
31 KCONFIG:=CONFIG_SND_EP93XX_SOC
32 FILES:=$(LINUX_DIR)/sound/soc/ep93xx/snd-soc-ep93xx.ko
33 AUTOLOAD:=$(call AutoLoad,57,snd-soc-ep93xx)
34 endef
35
36 define KernelPackage/sound-soc-ep93xx/description
37 EP93xx SoC sound support
38 endef
39
40 $(eval $(call KernelPackage,sound-soc-ep93xx))
41
42 # Must be loaded prior to sound-soc-ac97 because it exports
43 # soc_ac97_ops
44 define KernelPackage/sound-soc-ep93xx-ac97
45 SUBMENU:=$(SOUND_MENU)
46 TITLE:=EP93xx SoC AC97 support
47 DEPENDS:=+kmod-sound-soc-ep93xx
48 KCONFIG:=CONFIG_SND_EP93XX_SOC_AC97
49 FILES:=$(LINUX_DIR)/sound/soc/ep93xx/snd-soc-ep93xx-ac97.ko
50 AUTOLOAD:=$(call AutoLoad,56,snd-soc-ep93xx-ac97)
51 endef
52
53 define KernelPackage/sound-soc-ep93xx-ac97/description
54 EP93xx SoC AC97 support
55 endef
56
57 $(eval $(call KernelPackage,sound-soc-ep93xx-ac97))
58
59 define KernelPackage/sound-soc-ep93xx-simone
60 SUBMENU:=$(SOUND_MENU)
61 TITLE:=Sim.One EP93xx Soc sound support
62 DEPENDS:=+kmod-sound-soc-ep93xx +kmod-sound-soc-ep93xx-ac97
63 KCONFIG:=CONFIG_SND_EP93XX_SOC_SIMONE
64 FILES:=$(LINUX_DIR)/sound/soc/ep93xx/snd-soc-simone.ko
65 AUTOLOAD:=$(call AutoLoad,59,snd-soc-ep93xx)
66 endef
67
68 define KernelPackage/sound-soc-ep93xx-simone/description
69 SimpleMachines Sim.One sound support
70 endef
71
72 $(eval $(call KernelPackage,sound-soc-ep93xx-simone))
73
74 define KernelPackage/touchscreen-ep93xx
75 SUBMENU:=$(OTHER_MENU)
76 TITLE:=EP93xx input touchscreen support
77 KCONFIG:=CONFIG_TOUCHSCREEN_EP93XX
78 FILES:=$(LINUX_DIR)/drivers/input/touchscreen/ep93xx_ts.ko
79 AUTOLOAD:=$(call AutoLoad,51,ep93xx_ts)
80 endef
81
82 define KernelPackage/touchscreen-ep93xx/description
83 EP93xx SoC input touchscreen support
84 endef
85
86 $(eval $(call KernelPackage,touchscreen-ep93xx))
87