kernel: modules: move gpio modules to gpio menu
[openwrt/staging/dangole.git] / package / kernel / linux / modules / gpio.mk
1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
3 #
4
5 GPIO_MENU:=GPIO support
6
7 define KernelPackage/gpio-amd-fch
8 SUBMENU:=$(GPIO_MENU)
9 DEPENDS:=@GPIO_SUPPORT @TARGET_x86
10 TITLE:=GPIO support for AMD Fusion Controller Hub (G-series SOCs)
11 KCONFIG:=CONFIG_GPIO_AMD_FCH
12 FILES:=$(LINUX_DIR)/drivers/gpio/gpio-amd-fch.ko
13 AUTOLOAD:=$(call AutoLoad,25,gpio-amd-fch,1)
14 endef
15
16 define KernelPackage/gpio-amd-fch/description
17 This option enables driver for GPIO on AMDs Fusion Controller Hub,
18 as found on G-series SOCs (eg. GX-412TC)
19 endef
20
21 $(eval $(call KernelPackage,gpio-amd-fch))
22
23
24 define KernelPackage/gpio-beeper
25 SUBMENU:=$(GPIO_MENU)
26 TITLE:=GPIO beeper support
27 DEPENDS:=+kmod-input-core
28 KCONFIG:= \
29 CONFIG_INPUT_MISC=y \
30 CONFIG_INPUT_GPIO_BEEPER
31 FILES:= \
32 $(LINUX_DIR)/drivers/input/misc/gpio-beeper.ko
33 AUTOLOAD:=$(call AutoLoad,50,gpio-beeper)
34 endef
35
36 define KernelPackage/gpio-beeper/description
37 This enables playing beeps through an GPIO-connected buzzer
38 endef
39
40 $(eval $(call KernelPackage,gpio-beeper))
41
42
43 define KernelPackage/gpio-cascade
44 SUBMENU:=$(GPIO_MENU)
45 TITLE:=Generic GPIO cascade
46 KCONFIG:=CONFIG_GPIO_CASCADE
47 DEPENDS:=@GPIO_SUPPORT +kmod-mux-core
48 FILES:=$(LINUX_DIR)/drivers/gpio/gpio-cascade.ko
49 AUTOLOAD:=$(call AutoLoad,29,gpio-cascade,1)
50 endef
51
52 define KernelPackage/gpio-cascade/description
53 Kernel module for Generic GPIO cascade
54 endef
55
56 $(eval $(call KernelPackage,gpio-cascade))
57
58
59 define KernelPackage/gpio-f7188x
60 SUBMENU:=$(GPIO_MENU)
61 TITLE:=Fintek F718xx/F818xx GPIO Support
62 DEPENDS:=@GPIO_SUPPORT @TARGET_x86
63 KCONFIG:=CONFIG_GPIO_F7188X
64 FILES:=$(LINUX_DIR)/drivers/gpio/gpio-f7188x.ko
65 AUTOLOAD:=$(call AutoProbe,gpio-f7188x)
66 endef
67
68 define KernelPackage/gpio-f7188x/description
69 Kernel module for the GPIOs found on many Fintek Super-IO chips.
70 endef
71
72 $(eval $(call KernelPackage,gpio-f7188x))
73
74
75 define KernelPackage/gpio-it87
76 SUBMENU:=$(GPIO_MENU)
77 DEPENDS:=@GPIO_SUPPORT @TARGET_x86
78 TITLE:=GPIO support for IT87xx Super I/O chips
79 KCONFIG:=CONFIG_GPIO_IT87
80 FILES:=$(LINUX_DIR)/drivers/gpio/gpio-it87.ko
81 AUTOLOAD:=$(call AutoLoad,25,gpio-it87,1)
82 endef
83
84 define KernelPackage/gpio-it87/description
85 This driver is tested with ITE IT8728 and IT8732 Super I/O chips, and
86 supports the IT8761E, IT8613, IT8620E, and IT8628E Super I/O chips as
87 well.
88 endef
89
90 $(eval $(call KernelPackage,gpio-it87))
91
92
93 define KernelPackage/gpio-nxp-74hc164
94 SUBMENU:=$(GPIO_MENU)
95 TITLE:=NXP 74HC164 GPIO expander support
96 KCONFIG:=CONFIG_GPIO_74X164
97 FILES:=$(LINUX_DIR)/drivers/gpio/gpio-74x164.ko
98 AUTOLOAD:=$(call AutoProbe,gpio-74x164)
99 endef
100
101 define KernelPackage/gpio-nxp-74hc164/description
102 Kernel module for NXP 74HC164 GPIO expander
103 endef
104
105 $(eval $(call KernelPackage,gpio-nxp-74hc164))
106
107
108 define KernelPackage/gpio-pca953x
109 SUBMENU:=$(GPIO_MENU)
110 DEPENDS:=@GPIO_SUPPORT +kmod-i2c-core +kmod-regmap-i2c
111 TITLE:=PCA95xx, TCA64xx, and MAX7310 I/O ports
112 KCONFIG:=CONFIG_GPIO_PCA953X
113 FILES:=$(LINUX_DIR)/drivers/gpio/gpio-pca953x.ko
114 AUTOLOAD:=$(call AutoLoad,55,gpio-pca953x)
115 endef
116
117 define KernelPackage/gpio-pca953x/description
118 Kernel module for MAX731{0,2,3,5}, PCA6107, PCA953{4-9}, PCA955{4-7},
119 PCA957{4,5} and TCA64{08,16} I2C GPIO expanders
120 endef
121
122 $(eval $(call KernelPackage,gpio-pca953x))
123
124
125 define KernelPackage/gpio-pcf857x
126 SUBMENU:=$(GPIO_MENU)
127 DEPENDS:=@GPIO_SUPPORT +kmod-i2c-core
128 TITLE:=PCX857x, PCA967x and MAX732X I2C GPIO expanders
129 KCONFIG:=CONFIG_GPIO_PCF857X
130 FILES:=$(LINUX_DIR)/drivers/gpio/gpio-pcf857x.ko
131 AUTOLOAD:=$(call AutoLoad,55,gpio-pcf857x)
132 endef
133
134 define KernelPackage/gpio-pcf857x/description
135 Kernel module for PCF857x, PCA{85,96}7x, and MAX732[89] I2C GPIO expanders
136 endef
137
138 $(eval $(call KernelPackage,gpio-pcf857x))