1c8137e98b3b10ce828cc7da39cbac39a6ddc81c
[openwrt/openwrt.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/fb-ep93xx
9 SUBMENU:=$(VIDEO_MENU)
10 TITLE:=EP93xx framebuffer support
11 DEPENDS:=@TARGET_ep93xx +kmod-fb +kmod-fb-cfb-fillrect \
12 +kmod-fb-cfb-copyarea +kmod-fb-cfb-imgblt
13 KCONFIG:=CONFIG_FB_EP93XX
14 FILES:=$(LINUX_DIR)/drivers/video/ep93xx-fb.ko
15 AUTOLOAD:=$(call AutoLoad,51,ep93xx-fb)
16 endef
17
18 define KernelPackage/fb-ep93xx/description
19 EP93xx framebuffer support
20 endef
21
22 $(eval $(call KernelPackage,fb-ep93xx))
23
24 define KernelPackage/input-keyboard-ep93xx
25 SUBMENU:=$(OTHER_MENU)
26 TITLE:=EP93xx Matrix Keypad support
27 DEPENDS:=@TARGET_ep93xx +!LINUX_3_3:kmod-input-matrixkmap
28 KCONFIG:= \
29 CONFIG_KEYBOARD_EP93XX \
30 CONFIG_INPUT_KEYBOARD=y
31 FILES:=$(LINUX_DIR)/drivers/input/keyboard/ep93xx_keypad.ko
32 AUTOLOAD:=$(call AutoLoad,62,ep93xx_keypad)
33 $(call AddDepends/input)
34 endef
35
36 define KernelPackage/input-keyboard-ep93xx/description
37 EP93xx Matrix Keypad support
38 endef
39
40 $(eval $(call KernelPackage,input-keyboard-ep93xx))
41
42 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.8.0)),1)
43 SND_EP93XX_SOC_DIR:=cirrus
44 else
45 SND_EP93XX_SOC_DIR:=ep93xx
46 endif
47
48 define KernelPackage/sound-soc-ep93xx
49 SUBMENU:=$(SOUND_MENU)
50 TITLE:=EP93xx SoC sound support
51 DEPENDS:=@TARGET_ep93xx +kmod-sound-core +kmod-sound-soc-core
52 KCONFIG:=CONFIG_SND_EP93XX_SOC
53 FILES:=$(LINUX_DIR)/sound/soc/$(SND_EP93XX_SOC_DIR)/snd-soc-ep93xx.ko
54 AUTOLOAD:=$(call AutoLoad,57,snd-soc-ep93xx)
55 endef
56
57 define KernelPackage/sound-soc-ep93xx/description
58 EP93xx SoC sound support
59 endef
60
61 $(eval $(call KernelPackage,sound-soc-ep93xx))
62
63 # Must be loaded prior to sound-soc-ac97 because it exports
64 # soc_ac97_ops
65 define KernelPackage/sound-soc-ep93xx-ac97
66 SUBMENU:=$(SOUND_MENU)
67 TITLE:=EP93xx SoC AC97 support
68 DEPENDS:=@TARGET_ep93xx +kmod-sound-soc-core
69 KCONFIG:=CONFIG_SND_EP93XX_SOC_AC97
70 FILES:=$(LINUX_DIR)/sound/soc/$(SND_EP93XX_SOC_DIR)/snd-soc-ep93xx-ac97.ko
71 AUTOLOAD:=$(call AutoLoad,56,snd-soc-ep93xx-ac97)
72 endef
73
74 define KernelPackage/sound-soc-ep93xx-ac97/description
75 EP93xx SoC AC97 support
76 endef
77
78 $(eval $(call KernelPackage,sound-soc-ep93xx-ac97))
79
80 define KernelPackage/sound-soc-ep93xx-simone
81 SUBMENU:=$(SOUND_MENU)
82 TITLE:=Sim.One EP93xx Soc sound support
83 DEPENDS:=@TARGET_ep93xx +kmod-sound-soc-core
84 KCONFIG:=CONFIG_SND_EP93XX_SOC_SIMONE
85 FILES:=$(LINUX_DIR)/sound/soc/$(SND_EP93XX_SOC_DIR)/snd-soc-simone.ko
86 AUTOLOAD:=$(call AutoLoad,59,snd-soc-ep93xx)
87 endef
88
89 define KernelPackage/sound-soc-ep93xx-simone/description
90 SimpleMachines Sim.One sound support
91 endef
92
93 $(eval $(call KernelPackage,sound-soc-ep93xx-simone))
94
95 define KernelPackage/touchscreen-ep93xx
96 SUBMENU:=$(OTHER_MENU)
97 TITLE:=EP93xx input touchscreen support
98 DEPENDS:=@TARGET_ep93xx
99 KCONFIG:=CONFIG_TOUCHSCREEN_EP93XX
100 FILES:=$(LINUX_DIR)/drivers/input/touchscreen/ep93xx_ts.ko
101 AUTOLOAD:=$(call AutoLoad,51,ep93xx_ts)
102 endef
103
104 define KernelPackage/touchscreen-ep93xx/description
105 EP93xx SoC input touchscreen support
106 endef
107
108 $(eval $(call KernelPackage,touchscreen-ep93xx))
109