move i2c modules back to target modules.mk
[openwrt/openwrt.git] / target / linux / x86 / modules.mk
1 #
2 # Copyright (C) 2006-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/cs5535
9 SUBMENU:=$(BLOCK_MENU)
10 TITLE:=NSC/AMD CS5535 chipset support
11 DEPENDS:=@TARGET_x86
12 KCONFIG:=CONFIG_BLK_DEV_CS5535
13 FILES=$(LINUX_DIR)/drivers/ide/cs5535.ko
14 AUTOLOAD:=$(call AutoLoad,30,cs5535,1)
15 $(call AddDepends/ide)
16 endef
17
18 define KernelPackage/cs5535/description
19 Kernel module for the NSC/AMD CS5535 companion chip
20 endef
21
22 $(eval $(call KernelPackage,cs5535))
23
24
25 define KernelPackage/cs5536
26 SUBMENU:=$(BLOCK_MENU)
27 TITLE:=AMD CS5536 chipset support
28 DEPENDS:=@TARGET_x86
29 KCONFIG:=CONFIG_BLK_DEV_CS5536
30 FILES=$(LINUX_DIR)/drivers/ide/cs5536.ko
31 AUTOLOAD:=$(call AutoLoad,30,cs5536,1)
32 $(call AddDepends/ide)
33 endef
34
35 define KernelPackage/cs5536/description
36 Kernel module for the AMD CS5536 Geode LX companion chip
37 endef
38
39 $(eval $(call KernelPackage,cs5536))
40
41
42 define KernelPackage/pata-cs5535
43 SUBMENU:=$(BLOCK_MENU)
44 TITLE:=CS5535 PATA support
45 DEPENDS:=@TARGET_x86 @PCI_SUPPORT
46 KCONFIG:=CONFIG_PATA_CS5535
47 FILES=$(LINUX_DIR)/drivers/ata/pata_cs5535.ko
48 AUTOLOAD:=$(call AutoLoad,30,pata_cs5535,1)
49 $(call AddDepends/ata)
50 endef
51
52 define KernelPackage/pata-cs5535/description
53 Kernel module for the NSC/AMD CS5535 companion chip
54 endef
55
56 $(eval $(call KernelPackage,pata-cs5535))
57
58
59 define KernelPackage/pata-cs5536
60 SUBMENU:=$(BLOCK_MENU)
61 TITLE:=CS5536 PATA support
62 DEPENDS:=@TARGET_x86 @PCI_SUPPORT
63 KCONFIG:=CONFIG_PATA_CS5536
64 FILES=$(LINUX_DIR)/drivers/ata/pata_cs5536.ko
65 AUTOLOAD:=$(call AutoLoad,30,pata_cs5536,1)
66 $(call AddDepends/ata)
67 endef
68
69 define KernelPackage/pata-cs5536/description
70 Kernel module for the AMD CS5536 Geode LX companion chip
71 endef
72
73 $(eval $(call KernelPackage,pata-cs5536))
74
75
76 define KernelPackage/cpu-msr
77 SUBMENU:=$(OTHER_MENU)
78 TITLE:=x86 CPU MSR support
79 DEPENDS:=@TARGET_x86
80 KCONFIG:=CONFIG_X86_MSR
81 FILES:=$(LINUX_DIR)/arch/x86/kernel/msr.ko
82 AUTOLOAD:=$(call AutoLoad,20,msr)
83 endef
84
85 define KernelPackage/cpu-msr/description
86 Kernel module for Model Specific Registers support in x86 CPUs
87 endef
88
89 $(eval $(call KernelPackage,cpu-msr))
90
91 define KernelPackage/gpio-cs5535-new
92 SUBMENU:=$(OTHER_MENU)
93 TITLE:=AMD CS5535/CS5536 GPIO driver with improved sysfs support
94 DEPENDS:=@TARGET_x86 +kmod-cs5535-mfd
95 KCONFIG:=CONFIG_GPIO_CS5535
96 FILES:=$(LINUX_DIR)/drivers/gpio/gpio-cs5535.ko
97 AUTOLOAD:=$(call AutoLoad,50,gpio-cs5535)
98 endef
99
100 define KernelPackage/gpio-cs5535-new/description
101 This package contains the new AMD CS5535/CS5536 GPIO driver
102 endef
103
104 $(eval $(call KernelPackage,gpio-cs5535-new))
105
106 define KernelPackage/gpio-nsc
107 SUBMENU:=$(OTHER_MENU)
108 TITLE:=Natsemi GPIO support
109 DEPENDS:=@TARGET_x86
110 KCONFIG:=CONFIG_NSC_GPIO
111 FILES:=$(LINUX_DIR)/drivers/char/nsc_gpio.ko
112 AUTOLOAD:=$(call AutoLoad,40,nsc_gpio)
113 endef
114
115 define KernelPackage/gpio-nsc/description
116 Kernel module for Natsemi GPIO
117 endef
118
119 $(eval $(call KernelPackage,gpio-nsc))
120
121
122 define KernelPackage/gpio-pc8736x
123 SUBMENU:=$(OTHER_MENU)
124 TITLE:=PC8736x GPIO support
125 DEPENDS:=@TARGET_x86
126 KCONFIG:=CONFIG_PC8736x_GPIO
127 FILES:=$(LINUX_DIR)/drivers/char/pc8736x_gpio.ko
128 AUTOLOAD:=$(call AutoLoad,40,pc8736x_gpio)
129 endef
130
131 define KernelPackage/gpio-pc8736x/description
132 Kernel module for PC8736x GPIO
133 endef
134
135 $(eval $(call KernelPackage,gpio-pc8736x))
136
137
138 define KernelPackage/gpio-scx200
139 SUBMENU:=$(OTHER_MENU)
140 TITLE:=Natsemi SCX200 GPIO support
141 DEPENDS:=@TARGET_x86 +kmod-gpio-nsc
142 KCONFIG:=CONFIG_SCx200_GPIO
143 FILES:=$(LINUX_DIR)/drivers/char/scx200_gpio.ko
144 AUTOLOAD:=$(call AutoLoad,50,scx200_gpio)
145 endef
146
147 define KernelPackage/gpio-scx200/description
148 Kernel module for SCX200 GPIO
149 endef
150
151 $(eval $(call KernelPackage,gpio-scx200))
152
153 define KernelPackage/wdt-geode
154 SUBMENU:=$(OTHER_MENU)
155 TITLE:=Geode/LX Watchdog timer
156 DEPENDS:=@TARGET_x86 +kmod-cs5535-mfgpt
157 KCONFIG:=CONFIG_GEODE_WDT
158 FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/geodewdt.ko
159 AUTOLOAD:=$(call AutoLoad,50,geodewdt)
160 endef
161
162 define KernelPackage/wdt-geode/description
163 Kernel module for Geode watchdog timer.
164 endef
165
166 $(eval $(call KernelPackage,wdt-geode))
167
168
169 define KernelPackage/cs5535-clockevt
170 SUBMENU:=$(OTHER_MENU)
171 TITLE:=CS5535/CS5536 high-res timer (MFGPT) events
172 DEPENDS:=@TARGET_x86 +kmod-cs5535-mfgpt
173 KCONFIG:=CONFIG_CS5535_CLOCK_EVENT_SRC
174 FILES:=$(LINUX_DIR)/drivers/clocksource/cs5535-clockevt.ko
175 AUTOLOAD:=$(call AutoLoad,50,cs5535-clockevt)
176 endef
177
178 define KernelPackage/cs5535-clockevt/description
179 Kernel module for CS5535/6 high-res clock event source
180 endef
181
182 $(eval $(call KernelPackage,cs5535-clockevt))
183
184
185 define KernelPackage/cs5535-mfgpt
186 SUBMENU:=$(OTHER_MENU)
187 TITLE:=CS5535/6 Multifunction General Purpose Timer
188 DEPENDS:=@TARGET_x86 +kmod-cs5535-mfd
189 KCONFIG:=CONFIG_CS5535_MFGPT
190 FILES:=$(LINUX_DIR)/drivers/misc/cs5535-mfgpt.ko
191 AUTOLOAD:=$(call AutoLoad,45,cs5535-mfgpt)
192 endef
193
194 define KernelPackage/cs5535-mfgpt/description
195 Kernel module for CS5535/6 multifunction general purpose timer.
196 endef
197
198 $(eval $(call KernelPackage,cs5535-mfgpt))
199
200
201 define KernelPackage/cs5535-mfd
202 SUBMENU:=$(OTHER_MENU)
203 TITLE:=CS5535/6 Multifunction General Purpose Driver
204 DEPENDS:=@TARGET_x86
205 KCONFIG:=CONFIG_MFD_CS5535
206 FILES:= \
207 $(LINUX_DIR)/drivers/mfd/mfd-core.ko \
208 $(LINUX_DIR)/drivers/mfd/cs5535-mfd.ko
209 AUTOLOAD:=$(call AutoLoad,44,mfd-core cs5535-mfd)
210 endef
211
212 define KernelPackage/cs5535-mfd/description
213 Core driver for CS5535/CS5536 MFD functions.
214 endef
215
216 $(eval $(call KernelPackage,cs5535-mfd))
217
218 define KernelPackage/wdt-sc520
219 SUBMENU:=$(OTHER_MENU)
220 TITLE:=Natsemi SC520 Watchdog support
221 DEPENDS:=@TARGET_x86
222 KCONFIG:=CONFIG_SC520_WDT
223 FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/sc520_wdt.ko
224 AUTOLOAD:=$(call AutoLoad,50,sc520_wdt)
225 endef
226
227 define KernelPackage/wdt-sc520/description
228 Kernel module for SC520 Watchdog
229 endef
230
231 $(eval $(call KernelPackage,wdt-sc520))
232
233
234 define KernelPackage/wdt-scx200
235 SUBMENU:=$(OTHER_MENU)
236 TITLE:=Natsemi SCX200 Watchdog support
237 DEPENDS:=@TARGET_x86
238 KCONFIG:=CONFIG_SCx200_WDT
239 FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/scx200_wdt.ko
240 AUTOLOAD:=$(call AutoLoad,50,scx200_wdt)
241 endef
242
243 define KernelPackage/wdt-scx200/description
244 Kernel module for SCX200 Watchdog
245 endef
246
247 $(eval $(call KernelPackage,wdt-scx200))
248
249 I2C_SCX200_MODULES:=\
250 CONFIG_SCx200_I2C:drivers/i2c/busses/scx200_i2c
251
252 define KernelPackage/i2c-scx200
253 $(call i2c_defaults,$(I2C_SCX200_MODULES),59)
254 TITLE:=Geode SCx200 I2C using GPIO pins
255 DEPENDS:=@PCI_SUPPORT @TARGET_x86 +kmod-i2c-algo-bit
256 KCONFIG+= \
257 CONFIG_SCx200_I2C_SCL=12 \
258 CONFIG_SCx200_I2C_SDA=13
259 endef
260
261 define KernelPackage/i2c-scx200/description
262 Kernel module for I2C using GPIO pins on the Geode SCx200 processors.
263 endef
264
265 $(eval $(call KernelPackage,i2c-scx200))
266
267
268 I2C_SCX200_ACB_MODULES:=\
269 CONFIG_SCx200_ACB:drivers/i2c/busses/scx200_acb
270
271 define KernelPackage/i2c-scx200-acb
272 $(call i2c_defaults,$(I2C_SCX200_ACB_MODULES),59)
273 TITLE:=Geode SCx200 ACCESS.bus support
274 DEPENDS:=@PCI_SUPPORT @TARGET_x86 +kmod-i2c-algo-bit
275 endef
276
277 define KernelPackage/i2c-scx200-acb/description
278 Kernel module for I2C using the ACCESS.bus controllers on the Geode SCx200
279 and SC1100 processors and the CS5535 and CS5536 Geode companion devices.
280 endef
281
282 $(eval $(call KernelPackage,i2c-scx200-acb))