diff options
133 files changed, 9897 insertions, 3423 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index e6c06fa3290e..3d72cbbc579d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
@@ -475,11 +475,28 @@ M: kernel@wantstofly.org | |||
475 | L: linux-arm-kernel@lists.arm.linux.org.uk (subscribers-only) | 475 | L: linux-arm-kernel@lists.arm.linux.org.uk (subscribers-only) |
476 | S: Maintained | 476 | S: Maintained |
477 | 477 | ||
478 | ARM/COMPULAB CM-X270/EM-X270 MACHINE SUPPORT | ||
479 | P: Mike Rapoport | ||
480 | M: mike@compulab.co.il | ||
481 | L: linux-arm-kernel@lists.arm.linux.org.uk (subscribers-only) | ||
482 | S: Maintained | ||
483 | |||
478 | ARM/CORGI MACHINE SUPPORT | 484 | ARM/CORGI MACHINE SUPPORT |
479 | P: Richard Purdie | 485 | P: Richard Purdie |
480 | M: rpurdie@rpsys.net | 486 | M: rpurdie@rpsys.net |
481 | S: Maintained | 487 | S: Maintained |
482 | 488 | ||
489 | ARM/EZX SMARTPHONES (A780, A910, A1200, E680, ROKR E2 and ROKR E6) | ||
490 | P: Daniel Ribeiro | ||
491 | M: drwyrm@gmail.com | ||
492 | P: Stefan Schmidt | ||
493 | M: stefan@openezx.org | ||
494 | P: Harald Welte | ||
495 | M: laforge@openezx.org | ||
496 | L: openezx-devel@lists.openezx.org (subscribers-only) | ||
497 | W: http://www.openezx.org/ | ||
498 | S: Maintained | ||
499 | |||
483 | ARM/GLOMATION GESBC9312SX MACHINE SUPPORT | 500 | ARM/GLOMATION GESBC9312SX MACHINE SUPPORT |
484 | P: Lennert Buytenhek | 501 | P: Lennert Buytenhek |
485 | M: kernel@wantstofly.org | 502 | M: kernel@wantstofly.org |
@@ -567,10 +584,18 @@ L: linux-arm-kernel@lists.arm.linux.org.uk (subscribers-only) | |||
567 | S: Maintained | 584 | S: Maintained |
568 | 585 | ||
569 | ARM/TOSA MACHINE SUPPORT | 586 | ARM/TOSA MACHINE SUPPORT |
587 | P: Dmitry Baryshkov | ||
588 | M: dbaryshkov@gmail.com | ||
570 | P: Dirk Opfer | 589 | P: Dirk Opfer |
571 | M: dirk@opfer-online.de | 590 | M: dirk@opfer-online.de |
572 | S: Maintained | 591 | S: Maintained |
573 | 592 | ||
593 | ARM/PALMTX SUPPORT | ||
594 | P: Marek Vasut | ||
595 | M: marek.vasut@gmail.com | ||
596 | W: http://hackndev.com | ||
597 | S: Maintained | ||
598 | |||
574 | ARM/PLEB SUPPORT | 599 | ARM/PLEB SUPPORT |
575 | P: Peter Chubb | 600 | P: Peter Chubb |
576 | M: pleb@gelato.unsw.edu.au | 601 | M: pleb@gelato.unsw.edu.au |
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 3d9397ec746d..e57226e3afeb 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -22,6 +22,9 @@ config ARM | |||
22 | Europe. There is an ARM Linux project with a web page at | 22 | Europe. There is an ARM Linux project with a web page at |
23 | <http://www.arm.linux.org.uk/>. | 23 | <http://www.arm.linux.org.uk/>. |
24 | 24 | ||
25 | config HAVE_PWM | ||
26 | bool | ||
27 | |||
25 | config SYS_SUPPORTS_APM_EMULATION | 28 | config SYS_SUPPORTS_APM_EMULATION |
26 | bool | 29 | bool |
27 | 30 | ||
diff --git a/arch/arm/common/sa1111.c b/arch/arm/common/sa1111.c index eb06d0b2cb74..79fa71d990b5 100644 --- a/arch/arm/common/sa1111.c +++ b/arch/arm/common/sa1111.c | |||
@@ -627,7 +627,7 @@ __sa1111_probe(struct device *me, struct resource *mem, int irq) | |||
627 | if (!sachip) | 627 | if (!sachip) |
628 | return -ENOMEM; | 628 | return -ENOMEM; |
629 | 629 | ||
630 | sachip->clk = clk_get(me, "GPIO27_CLK"); | 630 | sachip->clk = clk_get(me, "SA1111_CLK"); |
631 | if (!sachip->clk) { | 631 | if (!sachip->clk) { |
632 | ret = PTR_ERR(sachip->clk); | 632 | ret = PTR_ERR(sachip->clk); |
633 | goto err_free; | 633 | goto err_free; |
diff --git a/arch/arm/common/sharpsl_pm.c b/arch/arm/common/sharpsl_pm.c index 5bba5255b119..8822b684d474 100644 --- a/arch/arm/common/sharpsl_pm.c +++ b/arch/arm/common/sharpsl_pm.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <asm/irq.h> | 31 | #include <asm/irq.h> |
32 | #include <asm/arch/pm.h> | 32 | #include <asm/arch/pm.h> |
33 | #include <asm/arch/pxa-regs.h> | 33 | #include <asm/arch/pxa-regs.h> |
34 | #include <asm/arch/pxa2xx-regs.h> | ||
34 | #include <asm/arch/sharpsl.h> | 35 | #include <asm/arch/sharpsl.h> |
35 | #include <asm/hardware/sharpsl_pm.h> | 36 | #include <asm/hardware/sharpsl_pm.h> |
36 | 37 | ||
@@ -157,6 +158,7 @@ static void sharpsl_battery_thread(struct work_struct *private_) | |||
157 | dev_dbg(sharpsl_pm.dev, "Battery: voltage: %d, status: %d, percentage: %d, time: %ld\n", voltage, | 158 | dev_dbg(sharpsl_pm.dev, "Battery: voltage: %d, status: %d, percentage: %d, time: %ld\n", voltage, |
158 | sharpsl_pm.battstat.mainbat_status, sharpsl_pm.battstat.mainbat_percent, jiffies); | 159 | sharpsl_pm.battstat.mainbat_status, sharpsl_pm.battstat.mainbat_percent, jiffies); |
159 | 160 | ||
161 | #ifdef CONFIG_BACKLIGHT_CORGI | ||
160 | /* If battery is low. limit backlight intensity to save power. */ | 162 | /* If battery is low. limit backlight intensity to save power. */ |
161 | if ((sharpsl_pm.battstat.ac_status != APM_AC_ONLINE) | 163 | if ((sharpsl_pm.battstat.ac_status != APM_AC_ONLINE) |
162 | && ((sharpsl_pm.battstat.mainbat_status == APM_BATTERY_STATUS_LOW) || | 164 | && ((sharpsl_pm.battstat.mainbat_status == APM_BATTERY_STATUS_LOW) || |
@@ -169,6 +171,7 @@ static void sharpsl_battery_thread(struct work_struct *private_) | |||
169 | sharpsl_pm.machinfo->backlight_limit(0); | 171 | sharpsl_pm.machinfo->backlight_limit(0); |
170 | sharpsl_pm.flags &= ~SHARPSL_BL_LIMIT; | 172 | sharpsl_pm.flags &= ~SHARPSL_BL_LIMIT; |
171 | } | 173 | } |
174 | #endif | ||
172 | 175 | ||
173 | /* Suspend if critical battery level */ | 176 | /* Suspend if critical battery level */ |
174 | if ((sharpsl_pm.battstat.ac_status != APM_AC_ONLINE) | 177 | if ((sharpsl_pm.battstat.ac_status != APM_AC_ONLINE) |
diff --git a/arch/arm/configs/em_x270_defconfig b/arch/arm/configs/em_x270_defconfig deleted file mode 100644 index d3114c23603b..000000000000 --- a/arch/arm/configs/em_x270_defconfig +++ /dev/null | |||
@@ -1,1264 +0,0 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.22 | ||
4 | # Mon Jul 9 15:18:20 2007 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | ||
8 | CONFIG_GENERIC_GPIO=y | ||
9 | CONFIG_GENERIC_TIME=y | ||
10 | # CONFIG_GENERIC_CLOCKEVENTS is not set | ||
11 | CONFIG_MMU=y | ||
12 | # CONFIG_NO_IOPORT is not set | ||
13 | CONFIG_GENERIC_HARDIRQS=y | ||
14 | CONFIG_STACKTRACE_SUPPORT=y | ||
15 | CONFIG_LOCKDEP_SUPPORT=y | ||
16 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
17 | CONFIG_HARDIRQS_SW_RESEND=y | ||
18 | CONFIG_GENERIC_IRQ_PROBE=y | ||
19 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
20 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
21 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
22 | CONFIG_GENERIC_HWEIGHT=y | ||
23 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
24 | CONFIG_ZONE_DMA=y | ||
25 | CONFIG_ARCH_MTD_XIP=y | ||
26 | CONFIG_VECTORS_BASE=0xffff0000 | ||
27 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
28 | |||
29 | # | ||
30 | # Code maturity level options | ||
31 | # | ||
32 | CONFIG_EXPERIMENTAL=y | ||
33 | CONFIG_BROKEN_ON_SMP=y | ||
34 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
35 | |||
36 | # | ||
37 | # General setup | ||
38 | # | ||
39 | CONFIG_LOCALVERSION="-em-x270" | ||
40 | # CONFIG_LOCALVERSION_AUTO is not set | ||
41 | CONFIG_SWAP=y | ||
42 | CONFIG_SYSVIPC=y | ||
43 | # CONFIG_IPC_NS is not set | ||
44 | CONFIG_SYSVIPC_SYSCTL=y | ||
45 | # CONFIG_POSIX_MQUEUE is not set | ||
46 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
47 | # CONFIG_TASKSTATS is not set | ||
48 | # CONFIG_UTS_NS is not set | ||
49 | # CONFIG_AUDIT is not set | ||
50 | CONFIG_IKCONFIG=y | ||
51 | CONFIG_IKCONFIG_PROC=y | ||
52 | CONFIG_LOG_BUF_SHIFT=17 | ||
53 | CONFIG_SYSFS_DEPRECATED=y | ||
54 | # CONFIG_RELAY is not set | ||
55 | CONFIG_BLK_DEV_INITRD=y | ||
56 | CONFIG_INITRAMFS_SOURCE="" | ||
57 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
58 | CONFIG_SYSCTL=y | ||
59 | CONFIG_EMBEDDED=y | ||
60 | CONFIG_UID16=y | ||
61 | CONFIG_SYSCTL_SYSCALL=y | ||
62 | CONFIG_KALLSYMS=y | ||
63 | # CONFIG_KALLSYMS_ALL is not set | ||
64 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
65 | CONFIG_HOTPLUG=y | ||
66 | CONFIG_PRINTK=y | ||
67 | CONFIG_BUG=y | ||
68 | CONFIG_ELF_CORE=y | ||
69 | CONFIG_BASE_FULL=y | ||
70 | CONFIG_FUTEX=y | ||
71 | CONFIG_ANON_INODES=y | ||
72 | CONFIG_EPOLL=y | ||
73 | CONFIG_SIGNALFD=y | ||
74 | CONFIG_TIMERFD=y | ||
75 | CONFIG_EVENTFD=y | ||
76 | CONFIG_SHMEM=y | ||
77 | CONFIG_VM_EVENT_COUNTERS=y | ||
78 | CONFIG_SLAB=y | ||
79 | # CONFIG_SLUB is not set | ||
80 | # CONFIG_SLOB is not set | ||
81 | CONFIG_RT_MUTEXES=y | ||
82 | # CONFIG_TINY_SHMEM is not set | ||
83 | CONFIG_BASE_SMALL=0 | ||
84 | |||
85 | # | ||
86 | # Loadable module support | ||
87 | # | ||
88 | CONFIG_MODULES=y | ||
89 | CONFIG_MODULE_UNLOAD=y | ||
90 | CONFIG_MODULE_FORCE_UNLOAD=y | ||
91 | # CONFIG_MODVERSIONS is not set | ||
92 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
93 | CONFIG_KMOD=y | ||
94 | |||
95 | # | ||
96 | # Block layer | ||
97 | # | ||
98 | CONFIG_BLOCK=y | ||
99 | # CONFIG_LBD is not set | ||
100 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
101 | # CONFIG_LSF is not set | ||
102 | |||
103 | # | ||
104 | # IO Schedulers | ||
105 | # | ||
106 | CONFIG_IOSCHED_NOOP=y | ||
107 | CONFIG_IOSCHED_AS=y | ||
108 | CONFIG_IOSCHED_DEADLINE=y | ||
109 | CONFIG_IOSCHED_CFQ=y | ||
110 | CONFIG_DEFAULT_AS=y | ||
111 | # CONFIG_DEFAULT_DEADLINE is not set | ||
112 | # CONFIG_DEFAULT_CFQ is not set | ||
113 | # CONFIG_DEFAULT_NOOP is not set | ||
114 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
115 | |||
116 | # | ||
117 | # System Type | ||
118 | # | ||
119 | # CONFIG_ARCH_AAEC2000 is not set | ||
120 | # CONFIG_ARCH_INTEGRATOR is not set | ||
121 | # CONFIG_ARCH_REALVIEW is not set | ||
122 | # CONFIG_ARCH_VERSATILE is not set | ||
123 | # CONFIG_ARCH_AT91 is not set | ||
124 | # CONFIG_ARCH_CLPS7500 is not set | ||
125 | # CONFIG_ARCH_CLPS711X is not set | ||
126 | # CONFIG_ARCH_CO285 is not set | ||
127 | # CONFIG_ARCH_EBSA110 is not set | ||
128 | # CONFIG_ARCH_EP93XX is not set | ||
129 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
130 | # CONFIG_ARCH_NETX is not set | ||
131 | # CONFIG_ARCH_H720X is not set | ||
132 | # CONFIG_ARCH_IMX is not set | ||
133 | # CONFIG_ARCH_IOP13XX is not set | ||
134 | # CONFIG_ARCH_IOP32X is not set | ||
135 | # CONFIG_ARCH_IOP33X is not set | ||
136 | # CONFIG_ARCH_IXP23XX is not set | ||
137 | # CONFIG_ARCH_IXP2000 is not set | ||
138 | # CONFIG_ARCH_IXP4XX is not set | ||
139 | # CONFIG_ARCH_L7200 is not set | ||
140 | # CONFIG_ARCH_KS8695 is not set | ||
141 | # CONFIG_ARCH_NS9XXX is not set | ||
142 | # CONFIG_ARCH_PNX4008 is not set | ||
143 | CONFIG_ARCH_PXA=y | ||
144 | # CONFIG_ARCH_RPC is not set | ||
145 | # CONFIG_ARCH_SA1100 is not set | ||
146 | # CONFIG_ARCH_S3C2410 is not set | ||
147 | # CONFIG_ARCH_SHARK is not set | ||
148 | # CONFIG_ARCH_LH7A40X is not set | ||
149 | # CONFIG_ARCH_DAVINCI is not set | ||
150 | # CONFIG_ARCH_OMAP is not set | ||
151 | |||
152 | # | ||
153 | # Intel PXA2xx Implementations | ||
154 | # | ||
155 | # CONFIG_ARCH_LUBBOCK is not set | ||
156 | # CONFIG_MACH_LOGICPD_PXA270 is not set | ||
157 | # CONFIG_MACH_MAINSTONE is not set | ||
158 | # CONFIG_ARCH_PXA_IDP is not set | ||
159 | # CONFIG_PXA_SHARPSL is not set | ||
160 | # CONFIG_MACH_TRIZEPS4 is not set | ||
161 | CONFIG_MACH_EM_X270=y | ||
162 | CONFIG_PXA27x=y | ||
163 | |||
164 | # | ||
165 | # Processor Type | ||
166 | # | ||
167 | CONFIG_CPU_32=y | ||
168 | CONFIG_CPU_XSCALE=y | ||
169 | CONFIG_CPU_32v5=y | ||
170 | CONFIG_CPU_ABRT_EV5T=y | ||
171 | CONFIG_CPU_CACHE_VIVT=y | ||
172 | CONFIG_CPU_TLB_V4WBI=y | ||
173 | CONFIG_CPU_CP15=y | ||
174 | CONFIG_CPU_CP15_MMU=y | ||
175 | |||
176 | # | ||
177 | # Processor Features | ||
178 | # | ||
179 | CONFIG_ARM_THUMB=y | ||
180 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
181 | # CONFIG_OUTER_CACHE is not set | ||
182 | CONFIG_IWMMXT=y | ||
183 | CONFIG_XSCALE_PMU=y | ||
184 | |||
185 | # | ||
186 | # Bus support | ||
187 | # | ||
188 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
189 | |||
190 | # | ||
191 | # PCCARD (PCMCIA/CardBus) support | ||
192 | # | ||
193 | # CONFIG_PCCARD is not set | ||
194 | |||
195 | # | ||
196 | # Kernel Features | ||
197 | # | ||
198 | # CONFIG_TICK_ONESHOT is not set | ||
199 | # CONFIG_PREEMPT is not set | ||
200 | CONFIG_HZ=100 | ||
201 | CONFIG_AEABI=y | ||
202 | CONFIG_OABI_COMPAT=y | ||
203 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
204 | CONFIG_SELECT_MEMORY_MODEL=y | ||
205 | CONFIG_FLATMEM_MANUAL=y | ||
206 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
207 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
208 | CONFIG_FLATMEM=y | ||
209 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
210 | # CONFIG_SPARSEMEM_STATIC is not set | ||
211 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
212 | # CONFIG_RESOURCES_64BIT is not set | ||
213 | CONFIG_ZONE_DMA_FLAG=1 | ||
214 | CONFIG_ALIGNMENT_TRAP=y | ||
215 | |||
216 | # | ||
217 | # Boot options | ||
218 | # | ||
219 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
220 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
221 | CONFIG_CMDLINE="" | ||
222 | # CONFIG_XIP_KERNEL is not set | ||
223 | # CONFIG_KEXEC is not set | ||
224 | |||
225 | # | ||
226 | # Floating point emulation | ||
227 | # | ||
228 | |||
229 | # | ||
230 | # At least one emulation must be selected | ||
231 | # | ||
232 | CONFIG_FPE_NWFPE=y | ||
233 | # CONFIG_FPE_NWFPE_XP is not set | ||
234 | # CONFIG_FPE_FASTFPE is not set | ||
235 | |||
236 | # | ||
237 | # Userspace binary formats | ||
238 | # | ||
239 | CONFIG_BINFMT_ELF=y | ||
240 | # CONFIG_BINFMT_AOUT is not set | ||
241 | # CONFIG_BINFMT_MISC is not set | ||
242 | |||
243 | # | ||
244 | # Power management options | ||
245 | # | ||
246 | CONFIG_PM=y | ||
247 | CONFIG_PM_LEGACY=y | ||
248 | # CONFIG_PM_DEBUG is not set | ||
249 | # CONFIG_PM_SYSFS_DEPRECATED is not set | ||
250 | CONFIG_APM_EMULATION=m | ||
251 | |||
252 | # | ||
253 | # Networking | ||
254 | # | ||
255 | CONFIG_NET=y | ||
256 | |||
257 | # | ||
258 | # Networking options | ||
259 | # | ||
260 | CONFIG_PACKET=y | ||
261 | # CONFIG_PACKET_MMAP is not set | ||
262 | CONFIG_UNIX=y | ||
263 | CONFIG_XFRM=y | ||
264 | # CONFIG_XFRM_USER is not set | ||
265 | # CONFIG_XFRM_SUB_POLICY is not set | ||
266 | # CONFIG_XFRM_MIGRATE is not set | ||
267 | # CONFIG_NET_KEY is not set | ||
268 | CONFIG_INET=y | ||
269 | # CONFIG_IP_MULTICAST is not set | ||
270 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
271 | CONFIG_IP_FIB_HASH=y | ||
272 | CONFIG_IP_PNP=y | ||
273 | CONFIG_IP_PNP_DHCP=y | ||
274 | CONFIG_IP_PNP_BOOTP=y | ||
275 | # CONFIG_IP_PNP_RARP is not set | ||
276 | # CONFIG_NET_IPIP is not set | ||
277 | # CONFIG_NET_IPGRE is not set | ||
278 | # CONFIG_ARPD is not set | ||
279 | # CONFIG_SYN_COOKIES is not set | ||
280 | # CONFIG_INET_AH is not set | ||
281 | # CONFIG_INET_ESP is not set | ||
282 | # CONFIG_INET_IPCOMP is not set | ||
283 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
284 | # CONFIG_INET_TUNNEL is not set | ||
285 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | ||
286 | CONFIG_INET_XFRM_MODE_TUNNEL=y | ||
287 | CONFIG_INET_XFRM_MODE_BEET=y | ||
288 | CONFIG_INET_DIAG=y | ||
289 | CONFIG_INET_TCP_DIAG=y | ||
290 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
291 | CONFIG_TCP_CONG_CUBIC=y | ||
292 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
293 | # CONFIG_TCP_MD5SIG is not set | ||
294 | # CONFIG_IPV6 is not set | ||
295 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
296 | # CONFIG_INET6_TUNNEL is not set | ||
297 | # CONFIG_NETWORK_SECMARK is not set | ||
298 | # CONFIG_NETFILTER is not set | ||
299 | # CONFIG_IP_DCCP is not set | ||
300 | # CONFIG_IP_SCTP is not set | ||
301 | # CONFIG_TIPC is not set | ||
302 | # CONFIG_ATM is not set | ||
303 | # CONFIG_BRIDGE is not set | ||
304 | # CONFIG_VLAN_8021Q is not set | ||
305 | # CONFIG_DECNET is not set | ||
306 | # CONFIG_LLC2 is not set | ||
307 | # CONFIG_IPX is not set | ||
308 | # CONFIG_ATALK is not set | ||
309 | # CONFIG_X25 is not set | ||
310 | # CONFIG_LAPB is not set | ||
311 | # CONFIG_ECONET is not set | ||
312 | # CONFIG_WAN_ROUTER is not set | ||
313 | |||
314 | # | ||
315 | # QoS and/or fair queueing | ||
316 | # | ||
317 | # CONFIG_NET_SCHED is not set | ||
318 | |||
319 | # | ||
320 | # Network testing | ||
321 | # | ||
322 | # CONFIG_NET_PKTGEN is not set | ||
323 | # CONFIG_HAMRADIO is not set | ||
324 | # CONFIG_IRDA is not set | ||
325 | CONFIG_BT=m | ||
326 | CONFIG_BT_L2CAP=m | ||
327 | CONFIG_BT_SCO=m | ||
328 | CONFIG_BT_RFCOMM=m | ||
329 | # CONFIG_BT_RFCOMM_TTY is not set | ||
330 | CONFIG_BT_BNEP=m | ||
331 | # CONFIG_BT_BNEP_MC_FILTER is not set | ||
332 | # CONFIG_BT_BNEP_PROTO_FILTER is not set | ||
333 | CONFIG_BT_HIDP=m | ||
334 | |||
335 | # | ||
336 | # Bluetooth device drivers | ||
337 | # | ||
338 | CONFIG_BT_HCIUSB=m | ||
339 | # CONFIG_BT_HCIUSB_SCO is not set | ||
340 | CONFIG_BT_HCIUART=m | ||
341 | # CONFIG_BT_HCIUART_H4 is not set | ||
342 | # CONFIG_BT_HCIUART_BCSP is not set | ||
343 | CONFIG_BT_HCIBCM203X=m | ||
344 | CONFIG_BT_HCIBPA10X=m | ||
345 | CONFIG_BT_HCIBFUSB=m | ||
346 | # CONFIG_BT_HCIVHCI is not set | ||
347 | # CONFIG_AF_RXRPC is not set | ||
348 | |||
349 | # | ||
350 | # Wireless | ||
351 | # | ||
352 | # CONFIG_CFG80211 is not set | ||
353 | # CONFIG_WIRELESS_EXT is not set | ||
354 | # CONFIG_MAC80211 is not set | ||
355 | CONFIG_IEEE80211=m | ||
356 | # CONFIG_IEEE80211_DEBUG is not set | ||
357 | CONFIG_IEEE80211_CRYPT_WEP=m | ||
358 | CONFIG_IEEE80211_CRYPT_CCMP=m | ||
359 | # CONFIG_IEEE80211_CRYPT_TKIP is not set | ||
360 | # CONFIG_IEEE80211_SOFTMAC is not set | ||
361 | # CONFIG_RFKILL is not set | ||
362 | |||
363 | # | ||
364 | # Device Drivers | ||
365 | # | ||
366 | |||
367 | # | ||
368 | # Generic Driver Options | ||
369 | # | ||
370 | CONFIG_STANDALONE=y | ||
371 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
372 | CONFIG_FW_LOADER=y | ||
373 | # CONFIG_DEBUG_DRIVER is not set | ||
374 | # CONFIG_DEBUG_DEVRES is not set | ||
375 | # CONFIG_SYS_HYPERVISOR is not set | ||
376 | |||
377 | # | ||
378 | # Connector - unified userspace <-> kernelspace linker | ||
379 | # | ||
380 | # CONFIG_CONNECTOR is not set | ||
381 | CONFIG_MTD=y | ||
382 | # CONFIG_MTD_DEBUG is not set | ||
383 | CONFIG_MTD_CONCAT=y | ||
384 | CONFIG_MTD_PARTITIONS=y | ||
385 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
386 | # CONFIG_MTD_CMDLINE_PARTS is not set | ||
387 | # CONFIG_MTD_AFS_PARTS is not set | ||
388 | |||
389 | # | ||
390 | # User Modules And Translation Layers | ||
391 | # | ||
392 | CONFIG_MTD_CHAR=y | ||
393 | CONFIG_MTD_BLKDEVS=y | ||
394 | CONFIG_MTD_BLOCK=y | ||
395 | # CONFIG_FTL is not set | ||
396 | # CONFIG_NFTL is not set | ||
397 | # CONFIG_INFTL is not set | ||
398 | # CONFIG_RFD_FTL is not set | ||
399 | # CONFIG_SSFDC is not set | ||
400 | |||
401 | # | ||
402 | # RAM/ROM/Flash chip drivers | ||
403 | # | ||
404 | # CONFIG_MTD_CFI is not set | ||
405 | # CONFIG_MTD_JEDECPROBE is not set | ||
406 | # CONFIG_MTD_CFI_NOSWAP is not set | ||
407 | # CONFIG_MTD_CFI_BE_BYTE_SWAP is not set | ||
408 | # CONFIG_MTD_CFI_LE_BYTE_SWAP is not set | ||
409 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
410 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
411 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
412 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
413 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
414 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
415 | CONFIG_MTD_CFI_I1=y | ||
416 | CONFIG_MTD_CFI_I2=y | ||
417 | # CONFIG_MTD_CFI_I4 is not set | ||
418 | # CONFIG_MTD_CFI_I8 is not set | ||
419 | # CONFIG_MTD_RAM is not set | ||
420 | # CONFIG_MTD_ROM is not set | ||
421 | # CONFIG_MTD_ABSENT is not set | ||
422 | |||
423 | # | ||
424 | # Mapping drivers for chip access | ||
425 | # | ||
426 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
427 | # CONFIG_MTD_SHARP_SL is not set | ||
428 | # CONFIG_MTD_PLATRAM is not set | ||
429 | |||
430 | # | ||
431 | # Self-contained MTD device drivers | ||
432 | # | ||
433 | # CONFIG_MTD_SLRAM is not set | ||
434 | # CONFIG_MTD_PHRAM is not set | ||
435 | # CONFIG_MTD_MTDRAM is not set | ||
436 | # CONFIG_MTD_BLOCK2MTD is not set | ||
437 | |||
438 | # | ||
439 | # Disk-On-Chip Device Drivers | ||
440 | # | ||
441 | # CONFIG_MTD_DOC2000 is not set | ||
442 | # CONFIG_MTD_DOC2001 is not set | ||
443 | # CONFIG_MTD_DOC2001PLUS is not set | ||
444 | CONFIG_MTD_NAND=y | ||
445 | # CONFIG_MTD_NAND_VERIFY_WRITE is not set | ||
446 | # CONFIG_MTD_NAND_ECC_SMC is not set | ||
447 | # CONFIG_MTD_NAND_MUSEUM_IDS is not set | ||
448 | # CONFIG_MTD_NAND_H1900 is not set | ||
449 | CONFIG_MTD_NAND_IDS=y | ||
450 | # CONFIG_MTD_NAND_DISKONCHIP is not set | ||
451 | # CONFIG_MTD_NAND_SHARPSL is not set | ||
452 | # CONFIG_MTD_NAND_NANDSIM is not set | ||
453 | CONFIG_MTD_NAND_PLATFORM=y | ||
454 | # CONFIG_MTD_ONENAND is not set | ||
455 | |||
456 | # | ||
457 | # UBI - Unsorted block images | ||
458 | # | ||
459 | # CONFIG_MTD_UBI is not set | ||
460 | |||
461 | # | ||
462 | # Parallel port support | ||
463 | # | ||
464 | # CONFIG_PARPORT is not set | ||
465 | |||
466 | # | ||
467 | # Plug and Play support | ||
468 | # | ||
469 | # CONFIG_PNPACPI is not set | ||
470 | |||
471 | # | ||
472 | # Block devices | ||
473 | # | ||
474 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
475 | CONFIG_BLK_DEV_LOOP=y | ||
476 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | ||
477 | # CONFIG_BLK_DEV_NBD is not set | ||
478 | # CONFIG_BLK_DEV_UB is not set | ||
479 | CONFIG_BLK_DEV_RAM=y | ||
480 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
481 | CONFIG_BLK_DEV_RAM_SIZE=12000 | ||
482 | CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 | ||
483 | # CONFIG_CDROM_PKTCDVD is not set | ||
484 | # CONFIG_ATA_OVER_ETH is not set | ||
485 | # CONFIG_IDE is not set | ||
486 | |||
487 | # | ||
488 | # SCSI device support | ||
489 | # | ||
490 | # CONFIG_RAID_ATTRS is not set | ||
491 | CONFIG_SCSI=y | ||
492 | # CONFIG_SCSI_TGT is not set | ||
493 | # CONFIG_SCSI_NETLINK is not set | ||
494 | # CONFIG_SCSI_PROC_FS is not set | ||
495 | |||
496 | # | ||
497 | # SCSI support type (disk, tape, CD-ROM) | ||
498 | # | ||
499 | CONFIG_BLK_DEV_SD=y | ||
500 | # CONFIG_CHR_DEV_ST is not set | ||
501 | # CONFIG_CHR_DEV_OSST is not set | ||
502 | # CONFIG_BLK_DEV_SR is not set | ||
503 | # CONFIG_CHR_DEV_SG is not set | ||
504 | # CONFIG_CHR_DEV_SCH is not set | ||
505 | |||
506 | # | ||
507 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
508 | # | ||
509 | # CONFIG_SCSI_MULTI_LUN is not set | ||
510 | # CONFIG_SCSI_CONSTANTS is not set | ||
511 | # CONFIG_SCSI_LOGGING is not set | ||
512 | # CONFIG_SCSI_SCAN_ASYNC is not set | ||
513 | CONFIG_SCSI_WAIT_SCAN=m | ||
514 | |||
515 | # | ||
516 | # SCSI Transports | ||
517 | # | ||
518 | # CONFIG_SCSI_SPI_ATTRS is not set | ||
519 | # CONFIG_SCSI_FC_ATTRS is not set | ||
520 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
521 | # CONFIG_SCSI_SAS_ATTRS is not set | ||
522 | # CONFIG_SCSI_SAS_LIBSAS is not set | ||
523 | |||
524 | # | ||
525 | # SCSI low-level drivers | ||
526 | # | ||
527 | # CONFIG_ISCSI_TCP is not set | ||
528 | # CONFIG_SCSI_DEBUG is not set | ||
529 | # CONFIG_ATA is not set | ||
530 | |||
531 | # | ||
532 | # Multi-device support (RAID and LVM) | ||
533 | # | ||
534 | # CONFIG_MD is not set | ||
535 | |||
536 | # | ||
537 | # Network device support | ||
538 | # | ||
539 | CONFIG_NETDEVICES=y | ||
540 | # CONFIG_DUMMY is not set | ||
541 | # CONFIG_BONDING is not set | ||
542 | # CONFIG_EQUALIZER is not set | ||
543 | # CONFIG_TUN is not set | ||
544 | # CONFIG_PHYLIB is not set | ||
545 | |||
546 | # | ||
547 | # Ethernet (10 or 100Mbit) | ||
548 | # | ||
549 | CONFIG_NET_ETHERNET=y | ||
550 | CONFIG_MII=y | ||
551 | # CONFIG_SMC91X is not set | ||
552 | CONFIG_DM9000=y | ||
553 | # CONFIG_SMC911X is not set | ||
554 | # CONFIG_NETDEV_1000 is not set | ||
555 | # CONFIG_NETDEV_10000 is not set | ||
556 | |||
557 | # | ||
558 | # Wireless LAN | ||
559 | # | ||
560 | # CONFIG_WLAN_PRE80211 is not set | ||
561 | # CONFIG_WLAN_80211 is not set | ||
562 | |||
563 | # | ||
564 | # USB Network Adapters | ||
565 | # | ||
566 | # CONFIG_USB_CATC is not set | ||
567 | # CONFIG_USB_KAWETH is not set | ||
568 | # CONFIG_USB_PEGASUS is not set | ||
569 | # CONFIG_USB_RTL8150 is not set | ||
570 | # CONFIG_USB_USBNET_MII is not set | ||
571 | # CONFIG_USB_USBNET is not set | ||
572 | # CONFIG_WAN is not set | ||
573 | # CONFIG_PPP is not set | ||
574 | # CONFIG_SLIP is not set | ||
575 | # CONFIG_SHAPER is not set | ||
576 | # CONFIG_NETCONSOLE is not set | ||
577 | # CONFIG_NETPOLL is not set | ||
578 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
579 | |||
580 | # | ||
581 | # ISDN subsystem | ||
582 | # | ||
583 | # CONFIG_ISDN is not set | ||
584 | |||
585 | # | ||
586 | # Input device support | ||
587 | # | ||
588 | CONFIG_INPUT=y | ||
589 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
590 | # CONFIG_INPUT_POLLDEV is not set | ||
591 | |||
592 | # | ||
593 | # Userland interfaces | ||
594 | # | ||
595 | CONFIG_INPUT_MOUSEDEV=y | ||
596 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
597 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
598 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
599 | # CONFIG_INPUT_JOYDEV is not set | ||
600 | # CONFIG_INPUT_TSDEV is not set | ||
601 | CONFIG_INPUT_EVDEV=y | ||
602 | # CONFIG_INPUT_EVBUG is not set | ||
603 | |||
604 | # | ||
605 | # Input Device Drivers | ||
606 | # | ||
607 | CONFIG_INPUT_KEYBOARD=y | ||
608 | # CONFIG_KEYBOARD_ATKBD is not set | ||
609 | # CONFIG_KEYBOARD_SUNKBD is not set | ||
610 | # CONFIG_KEYBOARD_LKKBD is not set | ||
611 | # CONFIG_KEYBOARD_XTKBD is not set | ||
612 | # CONFIG_KEYBOARD_NEWTON is not set | ||
613 | # CONFIG_KEYBOARD_STOWAWAY is not set | ||
614 | CONFIG_KEYBOARD_PXA27x=m | ||
615 | # CONFIG_KEYBOARD_GPIO is not set | ||
616 | # CONFIG_INPUT_MOUSE is not set | ||
617 | # CONFIG_INPUT_JOYSTICK is not set | ||
618 | # CONFIG_INPUT_TABLET is not set | ||
619 | CONFIG_INPUT_TOUCHSCREEN=y | ||
620 | # CONFIG_TOUCHSCREEN_GUNZE is not set | ||
621 | # CONFIG_TOUCHSCREEN_ELO is not set | ||
622 | # CONFIG_TOUCHSCREEN_MTOUCH is not set | ||
623 | # CONFIG_TOUCHSCREEN_MK712 is not set | ||
624 | # CONFIG_TOUCHSCREEN_PENMOUNT is not set | ||
625 | # CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set | ||
626 | # CONFIG_TOUCHSCREEN_TOUCHWIN is not set | ||
627 | # CONFIG_TOUCHSCREEN_UCB1400 is not set | ||
628 | # CONFIG_TOUCHSCREEN_USB_COMPOSITE is not set | ||
629 | # CONFIG_INPUT_MISC is not set | ||
630 | |||
631 | # | ||
632 | # Hardware I/O ports | ||
633 | # | ||
634 | CONFIG_SERIO=y | ||
635 | # CONFIG_SERIO_SERPORT is not set | ||
636 | CONFIG_SERIO_LIBPS2=y | ||
637 | # CONFIG_SERIO_RAW is not set | ||
638 | # CONFIG_GAMEPORT is not set | ||
639 | |||
640 | # | ||
641 | # Character devices | ||
642 | # | ||
643 | CONFIG_VT=y | ||
644 | CONFIG_VT_CONSOLE=y | ||
645 | CONFIG_HW_CONSOLE=y | ||
646 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | ||
647 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
648 | |||
649 | # | ||
650 | # Serial drivers | ||
651 | # | ||
652 | # CONFIG_SERIAL_8250 is not set | ||
653 | |||
654 | # | ||
655 | # Non-8250 serial port support | ||
656 | # | ||
657 | CONFIG_SERIAL_PXA=y | ||
658 | CONFIG_SERIAL_PXA_CONSOLE=y | ||
659 | CONFIG_SERIAL_CORE=y | ||
660 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
661 | CONFIG_UNIX98_PTYS=y | ||
662 | CONFIG_LEGACY_PTYS=y | ||
663 | CONFIG_LEGACY_PTY_COUNT=256 | ||
664 | |||
665 | # | ||
666 | # IPMI | ||
667 | # | ||
668 | # CONFIG_IPMI_HANDLER is not set | ||
669 | # CONFIG_WATCHDOG is not set | ||
670 | CONFIG_HW_RANDOM=m | ||
671 | # CONFIG_NVRAM is not set | ||
672 | # CONFIG_R3964 is not set | ||
673 | # CONFIG_RAW_DRIVER is not set | ||
674 | |||
675 | # | ||
676 | # TPM devices | ||
677 | # | ||
678 | # CONFIG_TCG_TPM is not set | ||
679 | # CONFIG_I2C is not set | ||
680 | |||
681 | # | ||
682 | # SPI support | ||
683 | # | ||
684 | # CONFIG_SPI is not set | ||
685 | # CONFIG_SPI_MASTER is not set | ||
686 | |||
687 | # | ||
688 | # Dallas's 1-wire bus | ||
689 | # | ||
690 | # CONFIG_W1 is not set | ||
691 | # CONFIG_HWMON is not set | ||
692 | |||
693 | # | ||
694 | # Misc devices | ||
695 | # | ||
696 | |||
697 | # | ||
698 | # Multifunction device drivers | ||
699 | # | ||
700 | # CONFIG_MFD_SM501 is not set | ||
701 | |||
702 | # | ||
703 | # LED devices | ||
704 | # | ||
705 | # CONFIG_NEW_LEDS is not set | ||
706 | |||
707 | # | ||
708 | # LED drivers | ||
709 | # | ||
710 | |||
711 | # | ||
712 | # LED Triggers | ||
713 | # | ||
714 | |||
715 | # | ||
716 | # Multimedia devices | ||
717 | # | ||
718 | # CONFIG_VIDEO_DEV is not set | ||
719 | # CONFIG_DVB_CORE is not set | ||
720 | # CONFIG_DAB is not set | ||
721 | |||
722 | # | ||
723 | # Graphics support | ||
724 | # | ||
725 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
726 | |||
727 | # | ||
728 | # Display device support | ||
729 | # | ||
730 | # CONFIG_DISPLAY_SUPPORT is not set | ||
731 | # CONFIG_VGASTATE is not set | ||
732 | CONFIG_FB=y | ||
733 | # CONFIG_FIRMWARE_EDID is not set | ||
734 | # CONFIG_FB_DDC is not set | ||
735 | CONFIG_FB_CFB_FILLRECT=y | ||
736 | CONFIG_FB_CFB_COPYAREA=y | ||
737 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
738 | # CONFIG_FB_SYS_FILLRECT is not set | ||
739 | # CONFIG_FB_SYS_COPYAREA is not set | ||
740 | # CONFIG_FB_SYS_IMAGEBLIT is not set | ||
741 | # CONFIG_FB_SYS_FOPS is not set | ||
742 | CONFIG_FB_DEFERRED_IO=y | ||
743 | # CONFIG_FB_SVGALIB is not set | ||
744 | # CONFIG_FB_MACMODES is not set | ||
745 | # CONFIG_FB_BACKLIGHT is not set | ||
746 | # CONFIG_FB_MODE_HELPERS is not set | ||
747 | # CONFIG_FB_TILEBLITTING is not set | ||
748 | |||
749 | # | ||
750 | # Frame buffer hardware drivers | ||
751 | # | ||
752 | # CONFIG_FB_S1D13XXX is not set | ||
753 | CONFIG_FB_PXA=y | ||
754 | # CONFIG_FB_PXA_PARAMETERS is not set | ||
755 | # CONFIG_FB_MBX is not set | ||
756 | # CONFIG_FB_VIRTUAL is not set | ||
757 | |||
758 | # | ||
759 | # Console display driver support | ||
760 | # | ||
761 | # CONFIG_VGA_CONSOLE is not set | ||
762 | CONFIG_DUMMY_CONSOLE=y | ||
763 | CONFIG_FRAMEBUFFER_CONSOLE=y | ||
764 | # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set | ||
765 | # CONFIG_FONTS is not set | ||
766 | CONFIG_FONT_8x8=y | ||
767 | CONFIG_FONT_8x16=y | ||
768 | CONFIG_LOGO=y | ||
769 | CONFIG_LOGO_LINUX_MONO=y | ||
770 | CONFIG_LOGO_LINUX_VGA16=y | ||
771 | CONFIG_LOGO_LINUX_CLUT224=y | ||
772 | |||
773 | # | ||
774 | # Sound | ||
775 | # | ||
776 | CONFIG_SOUND=m | ||
777 | |||
778 | # | ||
779 | # Advanced Linux Sound Architecture | ||
780 | # | ||
781 | CONFIG_SND=m | ||
782 | CONFIG_SND_TIMER=m | ||
783 | CONFIG_SND_PCM=m | ||
784 | # CONFIG_SND_SEQUENCER is not set | ||
785 | CONFIG_SND_OSSEMUL=y | ||
786 | CONFIG_SND_MIXER_OSS=m | ||
787 | CONFIG_SND_PCM_OSS=m | ||
788 | CONFIG_SND_PCM_OSS_PLUGINS=y | ||
789 | # CONFIG_SND_DYNAMIC_MINORS is not set | ||
790 | CONFIG_SND_SUPPORT_OLD_API=y | ||
791 | CONFIG_SND_VERBOSE_PROCFS=y | ||
792 | # CONFIG_SND_VERBOSE_PRINTK is not set | ||
793 | # CONFIG_SND_DEBUG is not set | ||
794 | |||
795 | # | ||
796 | # Generic devices | ||
797 | # | ||
798 | CONFIG_SND_AC97_CODEC=m | ||
799 | # CONFIG_SND_DUMMY is not set | ||
800 | # CONFIG_SND_MTPAV is not set | ||
801 | # CONFIG_SND_SERIAL_U16550 is not set | ||
802 | # CONFIG_SND_MPU401 is not set | ||
803 | |||
804 | # | ||
805 | # ALSA ARM devices | ||
806 | # | ||
807 | CONFIG_SND_PXA2XX_PCM=m | ||
808 | CONFIG_SND_PXA2XX_AC97=m | ||
809 | |||
810 | # | ||
811 | # USB devices | ||
812 | # | ||
813 | # CONFIG_SND_USB_AUDIO is not set | ||
814 | # CONFIG_SND_USB_CAIAQ is not set | ||
815 | |||
816 | # | ||
817 | # System on Chip audio support | ||
818 | # | ||
819 | # CONFIG_SND_SOC is not set | ||
820 | |||
821 | # | ||
822 | # Open Sound System | ||
823 | # | ||
824 | # CONFIG_SOUND_PRIME is not set | ||
825 | CONFIG_AC97_BUS=m | ||
826 | |||
827 | # | ||
828 | # HID Devices | ||
829 | # | ||
830 | CONFIG_HID=y | ||
831 | # CONFIG_HID_DEBUG is not set | ||
832 | |||
833 | # | ||
834 | # USB Input Devices | ||
835 | # | ||
836 | CONFIG_USB_HID=y | ||
837 | # CONFIG_USB_HIDINPUT_POWERBOOK is not set | ||
838 | # CONFIG_HID_FF is not set | ||
839 | # CONFIG_USB_HIDDEV is not set | ||
840 | |||
841 | # | ||
842 | # USB support | ||
843 | # | ||
844 | CONFIG_USB_ARCH_HAS_HCD=y | ||
845 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
846 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
847 | CONFIG_USB=y | ||
848 | # CONFIG_USB_DEBUG is not set | ||
849 | |||
850 | # | ||
851 | # Miscellaneous USB options | ||
852 | # | ||
853 | CONFIG_USB_DEVICEFS=y | ||
854 | # CONFIG_USB_DEVICE_CLASS is not set | ||
855 | # CONFIG_USB_DYNAMIC_MINORS is not set | ||
856 | # CONFIG_USB_SUSPEND is not set | ||
857 | # CONFIG_USB_OTG is not set | ||
858 | |||
859 | # | ||
860 | # USB Host Controller Drivers | ||
861 | # | ||
862 | # CONFIG_USB_ISP116X_HCD is not set | ||
863 | CONFIG_USB_OHCI_HCD=y | ||
864 | # CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set | ||
865 | # CONFIG_USB_OHCI_BIG_ENDIAN_MMIO is not set | ||
866 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y | ||
867 | # CONFIG_USB_SL811_HCD is not set | ||
868 | |||
869 | # | ||
870 | # USB Device Class drivers | ||
871 | # | ||
872 | # CONFIG_USB_ACM is not set | ||
873 | # CONFIG_USB_PRINTER is not set | ||
874 | |||
875 | # | ||
876 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
877 | # | ||
878 | |||
879 | # | ||
880 | # may also be needed; see USB_STORAGE Help for more information | ||
881 | # | ||
882 | CONFIG_USB_STORAGE=y | ||
883 | # CONFIG_USB_STORAGE_DEBUG is not set | ||
884 | # CONFIG_USB_STORAGE_DATAFAB is not set | ||
885 | # CONFIG_USB_STORAGE_FREECOM is not set | ||
886 | # CONFIG_USB_STORAGE_DPCM is not set | ||
887 | # CONFIG_USB_STORAGE_USBAT is not set | ||
888 | # CONFIG_USB_STORAGE_SDDR09 is not set | ||
889 | # CONFIG_USB_STORAGE_SDDR55 is not set | ||
890 | # CONFIG_USB_STORAGE_JUMPSHOT is not set | ||
891 | # CONFIG_USB_STORAGE_ALAUDA is not set | ||
892 | # CONFIG_USB_STORAGE_KARMA is not set | ||
893 | # CONFIG_USB_LIBUSUAL is not set | ||
894 | |||
895 | # | ||
896 | # USB Imaging devices | ||
897 | # | ||
898 | # CONFIG_USB_MDC800 is not set | ||
899 | # CONFIG_USB_MICROTEK is not set | ||
900 | # CONFIG_USB_MON is not set | ||
901 | |||
902 | # | ||
903 | # USB port drivers | ||
904 | # | ||
905 | |||
906 | # | ||
907 | # USB Serial Converter support | ||
908 | # | ||
909 | # CONFIG_USB_SERIAL is not set | ||
910 | |||
911 | # | ||
912 | # USB Miscellaneous drivers | ||
913 | # | ||
914 | # CONFIG_USB_EMI62 is not set | ||
915 | # CONFIG_USB_EMI26 is not set | ||
916 | # CONFIG_USB_ADUTUX is not set | ||
917 | # CONFIG_USB_AUERSWALD is not set | ||
918 | # CONFIG_USB_RIO500 is not set | ||
919 | # CONFIG_USB_LEGOTOWER is not set | ||
920 | # CONFIG_USB_LCD is not set | ||
921 | # CONFIG_USB_BERRY_CHARGE is not set | ||
922 | # CONFIG_USB_LED is not set | ||
923 | # CONFIG_USB_CYPRESS_CY7C63 is not set | ||
924 | # CONFIG_USB_CYTHERM is not set | ||
925 | # CONFIG_USB_PHIDGET is not set | ||
926 | # CONFIG_USB_IDMOUSE is not set | ||
927 | # CONFIG_USB_FTDI_ELAN is not set | ||
928 | # CONFIG_USB_APPLEDISPLAY is not set | ||
929 | # CONFIG_USB_LD is not set | ||
930 | # CONFIG_USB_TRANCEVIBRATOR is not set | ||
931 | # CONFIG_USB_IOWARRIOR is not set | ||
932 | # CONFIG_USB_TEST is not set | ||
933 | |||
934 | # | ||
935 | # USB DSL modem support | ||
936 | # | ||
937 | |||
938 | # | ||
939 | # USB Gadget Support | ||
940 | # | ||
941 | # CONFIG_USB_GADGET is not set | ||
942 | CONFIG_MMC=m | ||
943 | # CONFIG_MMC_DEBUG is not set | ||
944 | # CONFIG_MMC_UNSAFE_RESUME is not set | ||
945 | |||
946 | # | ||
947 | # MMC/SD Card Drivers | ||
948 | # | ||
949 | CONFIG_MMC_BLOCK=m | ||
950 | |||
951 | # | ||
952 | # MMC/SD Host Controller Drivers | ||
953 | # | ||
954 | CONFIG_MMC_PXA=m | ||
955 | |||
956 | # | ||
957 | # Real Time Clock | ||
958 | # | ||
959 | CONFIG_RTC_LIB=y | ||
960 | CONFIG_RTC_CLASS=m | ||
961 | |||
962 | # | ||
963 | # RTC interfaces | ||
964 | # | ||
965 | CONFIG_RTC_INTF_SYSFS=y | ||
966 | CONFIG_RTC_INTF_PROC=y | ||
967 | CONFIG_RTC_INTF_DEV=y | ||
968 | # CONFIG_RTC_INTF_DEV_UIE_EMUL is not set | ||
969 | # CONFIG_RTC_DRV_TEST is not set | ||
970 | |||
971 | # | ||
972 | # I2C RTC drivers | ||
973 | # | ||
974 | |||
975 | # | ||
976 | # SPI RTC drivers | ||
977 | # | ||
978 | |||
979 | # | ||
980 | # Platform RTC drivers | ||
981 | # | ||
982 | # CONFIG_RTC_DRV_CMOS is not set | ||
983 | # CONFIG_RTC_DRV_DS1553 is not set | ||
984 | # CONFIG_RTC_DRV_DS1742 is not set | ||
985 | # CONFIG_RTC_DRV_M48T86 is not set | ||
986 | CONFIG_RTC_DRV_V3020=m | ||
987 | |||
988 | # | ||
989 | # on-CPU RTC drivers | ||
990 | # | ||
991 | CONFIG_RTC_DRV_SA1100=m | ||
992 | |||
993 | # | ||
994 | # File systems | ||
995 | # | ||
996 | CONFIG_EXT2_FS=y | ||
997 | # CONFIG_EXT2_FS_XATTR is not set | ||
998 | # CONFIG_EXT2_FS_XIP is not set | ||
999 | CONFIG_EXT3_FS=y | ||
1000 | CONFIG_EXT3_FS_XATTR=y | ||
1001 | # CONFIG_EXT3_FS_POSIX_ACL is not set | ||
1002 | # CONFIG_EXT3_FS_SECURITY is not set | ||
1003 | # CONFIG_EXT4DEV_FS is not set | ||
1004 | CONFIG_JBD=y | ||
1005 | # CONFIG_JBD_DEBUG is not set | ||
1006 | CONFIG_FS_MBCACHE=y | ||
1007 | # CONFIG_REISERFS_FS is not set | ||
1008 | # CONFIG_JFS_FS is not set | ||
1009 | # CONFIG_FS_POSIX_ACL is not set | ||
1010 | # CONFIG_XFS_FS is not set | ||
1011 | # CONFIG_GFS2_FS is not set | ||
1012 | # CONFIG_OCFS2_FS is not set | ||
1013 | # CONFIG_MINIX_FS is not set | ||
1014 | # CONFIG_ROMFS_FS is not set | ||
1015 | CONFIG_INOTIFY=y | ||
1016 | CONFIG_INOTIFY_USER=y | ||
1017 | # CONFIG_QUOTA is not set | ||
1018 | CONFIG_DNOTIFY=y | ||
1019 | # CONFIG_AUTOFS_FS is not set | ||
1020 | # CONFIG_AUTOFS4_FS is not set | ||
1021 | # CONFIG_FUSE_FS is not set | ||
1022 | |||
1023 | # | ||
1024 | # CD-ROM/DVD Filesystems | ||
1025 | # | ||
1026 | # CONFIG_ISO9660_FS is not set | ||
1027 | # CONFIG_UDF_FS is not set | ||
1028 | |||
1029 | # | ||
1030 | # DOS/FAT/NT Filesystems | ||
1031 | # | ||
1032 | CONFIG_FAT_FS=y | ||
1033 | CONFIG_MSDOS_FS=y | ||
1034 | CONFIG_VFAT_FS=y | ||
1035 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
1036 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
1037 | # CONFIG_NTFS_FS is not set | ||
1038 | |||
1039 | # | ||
1040 | # Pseudo filesystems | ||
1041 | # | ||
1042 | CONFIG_PROC_FS=y | ||
1043 | CONFIG_PROC_SYSCTL=y | ||
1044 | CONFIG_SYSFS=y | ||
1045 | CONFIG_TMPFS=y | ||
1046 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
1047 | # CONFIG_HUGETLB_PAGE is not set | ||
1048 | CONFIG_RAMFS=y | ||
1049 | # CONFIG_CONFIGFS_FS is not set | ||
1050 | |||
1051 | # | ||
1052 | # Miscellaneous filesystems | ||
1053 | # | ||
1054 | # CONFIG_ADFS_FS is not set | ||
1055 | # CONFIG_AFFS_FS is not set | ||
1056 | # CONFIG_HFS_FS is not set | ||
1057 | # CONFIG_HFSPLUS_FS is not set | ||
1058 | # CONFIG_BEFS_FS is not set | ||
1059 | # CONFIG_BFS_FS is not set | ||
1060 | # CONFIG_EFS_FS is not set | ||
1061 | CONFIG_JFFS2_FS=y | ||
1062 | CONFIG_JFFS2_FS_DEBUG=0 | ||
1063 | CONFIG_JFFS2_FS_WRITEBUFFER=y | ||
1064 | CONFIG_JFFS2_SUMMARY=y | ||
1065 | # CONFIG_JFFS2_FS_XATTR is not set | ||
1066 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | ||
1067 | CONFIG_JFFS2_ZLIB=y | ||
1068 | CONFIG_JFFS2_RTIME=y | ||
1069 | # CONFIG_JFFS2_RUBIN is not set | ||
1070 | # CONFIG_CRAMFS is not set | ||
1071 | # CONFIG_VXFS_FS is not set | ||
1072 | # CONFIG_HPFS_FS is not set | ||
1073 | # CONFIG_QNX4FS_FS is not set | ||
1074 | # CONFIG_SYSV_FS is not set | ||
1075 | # CONFIG_UFS_FS is not set | ||
1076 | |||
1077 | # | ||
1078 | # Network File Systems | ||
1079 | # | ||
1080 | CONFIG_NFS_FS=y | ||
1081 | CONFIG_NFS_V3=y | ||
1082 | # CONFIG_NFS_V3_ACL is not set | ||
1083 | # CONFIG_NFS_V4 is not set | ||
1084 | # CONFIG_NFS_DIRECTIO is not set | ||
1085 | # CONFIG_NFSD is not set | ||
1086 | CONFIG_ROOT_NFS=y | ||
1087 | CONFIG_LOCKD=y | ||
1088 | CONFIG_LOCKD_V4=y | ||
1089 | CONFIG_NFS_COMMON=y | ||
1090 | CONFIG_SUNRPC=y | ||
1091 | # CONFIG_SUNRPC_BIND34 is not set | ||
1092 | # CONFIG_RPCSEC_GSS_KRB5 is not set | ||
1093 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
1094 | CONFIG_SMB_FS=y | ||
1095 | # CONFIG_SMB_NLS_DEFAULT is not set | ||
1096 | # CONFIG_CIFS is not set | ||
1097 | # CONFIG_NCP_FS is not set | ||
1098 | # CONFIG_CODA_FS is not set | ||
1099 | # CONFIG_AFS_FS is not set | ||
1100 | # CONFIG_9P_FS is not set | ||
1101 | |||
1102 | # | ||
1103 | # Partition Types | ||
1104 | # | ||
1105 | # CONFIG_PARTITION_ADVANCED is not set | ||
1106 | CONFIG_MSDOS_PARTITION=y | ||
1107 | |||
1108 | # | ||
1109 | # Native Language Support | ||
1110 | # | ||
1111 | CONFIG_NLS=y | ||
1112 | CONFIG_NLS_DEFAULT="iso8859-1" | ||
1113 | CONFIG_NLS_CODEPAGE_437=y | ||
1114 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
1115 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
1116 | # CONFIG_NLS_CODEPAGE_850 is not set | ||
1117 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
1118 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
1119 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
1120 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
1121 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
1122 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
1123 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
1124 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
1125 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
1126 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
1127 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
1128 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
1129 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
1130 | # CONFIG_NLS_CODEPAGE_932 is not set | ||
1131 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
1132 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
1133 | # CONFIG_NLS_ISO8859_8 is not set | ||
1134 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
1135 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
1136 | # CONFIG_NLS_ASCII is not set | ||
1137 | CONFIG_NLS_ISO8859_1=y | ||
1138 | # CONFIG_NLS_ISO8859_2 is not set | ||
1139 | # CONFIG_NLS_ISO8859_3 is not set | ||
1140 | # CONFIG_NLS_ISO8859_4 is not set | ||
1141 | # CONFIG_NLS_ISO8859_5 is not set | ||
1142 | # CONFIG_NLS_ISO8859_6 is not set | ||
1143 | # CONFIG_NLS_ISO8859_7 is not set | ||
1144 | # CONFIG_NLS_ISO8859_9 is not set | ||
1145 | # CONFIG_NLS_ISO8859_13 is not set | ||
1146 | # CONFIG_NLS_ISO8859_14 is not set | ||
1147 | # CONFIG_NLS_ISO8859_15 is not set | ||
1148 | # CONFIG_NLS_KOI8_R is not set | ||
1149 | # CONFIG_NLS_KOI8_U is not set | ||
1150 | CONFIG_NLS_UTF8=y | ||
1151 | |||
1152 | # | ||
1153 | # Distributed Lock Manager | ||
1154 | # | ||
1155 | # CONFIG_DLM is not set | ||
1156 | |||
1157 | # | ||
1158 | # Profiling support | ||
1159 | # | ||
1160 | # CONFIG_PROFILING is not set | ||
1161 | |||
1162 | # | ||
1163 | # Kernel hacking | ||
1164 | # | ||
1165 | # CONFIG_PRINTK_TIME is not set | ||
1166 | CONFIG_ENABLE_MUST_CHECK=y | ||
1167 | CONFIG_MAGIC_SYSRQ=y | ||
1168 | # CONFIG_UNUSED_SYMBOLS is not set | ||
1169 | # CONFIG_DEBUG_FS is not set | ||
1170 | # CONFIG_HEADERS_CHECK is not set | ||
1171 | CONFIG_DEBUG_KERNEL=y | ||
1172 | # CONFIG_DEBUG_SHIRQ is not set | ||
1173 | # CONFIG_DETECT_SOFTLOCKUP is not set | ||
1174 | # CONFIG_SCHEDSTATS is not set | ||
1175 | # CONFIG_TIMER_STATS is not set | ||
1176 | # CONFIG_DEBUG_SLAB is not set | ||
1177 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
1178 | # CONFIG_RT_MUTEX_TESTER is not set | ||
1179 | # CONFIG_DEBUG_SPINLOCK is not set | ||
1180 | # CONFIG_DEBUG_MUTEXES is not set | ||
1181 | # CONFIG_DEBUG_LOCK_ALLOC is not set | ||
1182 | # CONFIG_PROVE_LOCKING is not set | ||
1183 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
1184 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
1185 | # CONFIG_DEBUG_KOBJECT is not set | ||
1186 | # CONFIG_DEBUG_BUGVERBOSE is not set | ||
1187 | CONFIG_DEBUG_INFO=y | ||
1188 | # CONFIG_DEBUG_VM is not set | ||
1189 | # CONFIG_DEBUG_LIST is not set | ||
1190 | CONFIG_FRAME_POINTER=y | ||
1191 | CONFIG_FORCED_INLINING=y | ||
1192 | # CONFIG_RCU_TORTURE_TEST is not set | ||
1193 | # CONFIG_FAULT_INJECTION is not set | ||
1194 | CONFIG_DEBUG_USER=y | ||
1195 | CONFIG_DEBUG_ERRORS=y | ||
1196 | CONFIG_DEBUG_LL=y | ||
1197 | # CONFIG_DEBUG_ICEDCC is not set | ||
1198 | |||
1199 | # | ||
1200 | # Security options | ||
1201 | # | ||
1202 | # CONFIG_KEYS is not set | ||
1203 | # CONFIG_SECURITY is not set | ||
1204 | |||
1205 | # | ||
1206 | # Cryptographic options | ||
1207 | # | ||
1208 | CONFIG_CRYPTO=y | ||
1209 | CONFIG_CRYPTO_ALGAPI=m | ||
1210 | CONFIG_CRYPTO_BLKCIPHER=m | ||
1211 | CONFIG_CRYPTO_MANAGER=m | ||
1212 | # CONFIG_CRYPTO_HMAC is not set | ||
1213 | # CONFIG_CRYPTO_XCBC is not set | ||
1214 | # CONFIG_CRYPTO_NULL is not set | ||
1215 | # CONFIG_CRYPTO_MD4 is not set | ||
1216 | # CONFIG_CRYPTO_MD5 is not set | ||
1217 | # CONFIG_CRYPTO_SHA1 is not set | ||
1218 | # CONFIG_CRYPTO_SHA256 is not set | ||
1219 | # CONFIG_CRYPTO_SHA512 is not set | ||
1220 | # CONFIG_CRYPTO_WP512 is not set | ||
1221 | # CONFIG_CRYPTO_TGR192 is not set | ||
1222 | # CONFIG_CRYPTO_GF128MUL is not set | ||
1223 | CONFIG_CRYPTO_ECB=m | ||
1224 | CONFIG_CRYPTO_CBC=m | ||
1225 | CONFIG_CRYPTO_PCBC=m | ||
1226 | # CONFIG_CRYPTO_LRW is not set | ||
1227 | # CONFIG_CRYPTO_CRYPTD is not set | ||
1228 | # CONFIG_CRYPTO_DES is not set | ||
1229 | # CONFIG_CRYPTO_FCRYPT is not set | ||
1230 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
1231 | # CONFIG_CRYPTO_TWOFISH is not set | ||
1232 | # CONFIG_CRYPTO_SERPENT is not set | ||
1233 | CONFIG_CRYPTO_AES=m | ||
1234 | # CONFIG_CRYPTO_CAST5 is not set | ||
1235 | # CONFIG_CRYPTO_CAST6 is not set | ||
1236 | # CONFIG_CRYPTO_TEA is not set | ||
1237 | CONFIG_CRYPTO_ARC4=m | ||
1238 | # CONFIG_CRYPTO_KHAZAD is not set | ||
1239 | # CONFIG_CRYPTO_ANUBIS is not set | ||
1240 | # CONFIG_CRYPTO_DEFLATE is not set | ||
1241 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
1242 | # CONFIG_CRYPTO_CRC32C is not set | ||
1243 | # CONFIG_CRYPTO_CAMELLIA is not set | ||
1244 | # CONFIG_CRYPTO_TEST is not set | ||
1245 | |||
1246 | # | ||
1247 | # Hardware crypto devices | ||
1248 | # | ||
1249 | |||
1250 | # | ||
1251 | # Library routines | ||
1252 | # | ||
1253 | CONFIG_BITREVERSE=y | ||
1254 | # CONFIG_CRC_CCITT is not set | ||
1255 | # CONFIG_CRC16 is not set | ||
1256 | # CONFIG_CRC_ITU_T is not set | ||
1257 | CONFIG_CRC32=y | ||
1258 | # CONFIG_LIBCRC32C is not set | ||
1259 | CONFIG_ZLIB_INFLATE=y | ||
1260 | CONFIG_ZLIB_DEFLATE=y | ||
1261 | CONFIG_PLIST=y | ||
1262 | CONFIG_HAS_IOMEM=y | ||
1263 | CONFIG_HAS_IOPORT=y | ||
1264 | CONFIG_HAS_DMA=y | ||
diff --git a/arch/arm/configs/ezx_defconfig b/arch/arm/configs/ezx_defconfig new file mode 100644 index 000000000000..2a84d557adc2 --- /dev/null +++ b/arch/arm/configs/ezx_defconfig | |||
@@ -0,0 +1,1614 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.26-rc3 | ||
4 | # Mon Jul 7 17:52:21 2008 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_HAVE_PWM=y | ||
8 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | ||
9 | CONFIG_GENERIC_GPIO=y | ||
10 | CONFIG_GENERIC_TIME=y | ||
11 | CONFIG_GENERIC_CLOCKEVENTS=y | ||
12 | CONFIG_MMU=y | ||
13 | # CONFIG_NO_IOPORT is not set | ||
14 | CONFIG_GENERIC_HARDIRQS=y | ||
15 | CONFIG_STACKTRACE_SUPPORT=y | ||
16 | CONFIG_LOCKDEP_SUPPORT=y | ||
17 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
18 | CONFIG_HARDIRQS_SW_RESEND=y | ||
19 | CONFIG_GENERIC_IRQ_PROBE=y | ||
20 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
21 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
22 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
23 | CONFIG_GENERIC_HWEIGHT=y | ||
24 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
25 | CONFIG_ARCH_SUPPORTS_AOUT=y | ||
26 | CONFIG_ZONE_DMA=y | ||
27 | CONFIG_ARCH_MTD_XIP=y | ||
28 | CONFIG_VECTORS_BASE=0xffff0000 | ||
29 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
30 | |||
31 | # | ||
32 | # General setup | ||
33 | # | ||
34 | CONFIG_EXPERIMENTAL=y | ||
35 | CONFIG_BROKEN_ON_SMP=y | ||
36 | CONFIG_LOCK_KERNEL=y | ||
37 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
38 | CONFIG_LOCALVERSION="-ezxdev" | ||
39 | # CONFIG_LOCALVERSION_AUTO is not set | ||
40 | CONFIG_SWAP=y | ||
41 | CONFIG_SYSVIPC=y | ||
42 | CONFIG_SYSVIPC_SYSCTL=y | ||
43 | # CONFIG_POSIX_MQUEUE is not set | ||
44 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
45 | # CONFIG_TASKSTATS is not set | ||
46 | # CONFIG_AUDIT is not set | ||
47 | CONFIG_IKCONFIG=y | ||
48 | CONFIG_IKCONFIG_PROC=y | ||
49 | CONFIG_LOG_BUF_SHIFT=14 | ||
50 | # CONFIG_CGROUPS is not set | ||
51 | CONFIG_GROUP_SCHED=y | ||
52 | CONFIG_FAIR_GROUP_SCHED=y | ||
53 | # CONFIG_RT_GROUP_SCHED is not set | ||
54 | CONFIG_USER_SCHED=y | ||
55 | # CONFIG_CGROUP_SCHED is not set | ||
56 | CONFIG_SYSFS_DEPRECATED=y | ||
57 | CONFIG_SYSFS_DEPRECATED_V2=y | ||
58 | # CONFIG_RELAY is not set | ||
59 | # CONFIG_NAMESPACES is not set | ||
60 | # CONFIG_BLK_DEV_INITRD is not set | ||
61 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
62 | CONFIG_SYSCTL=y | ||
63 | CONFIG_EMBEDDED=y | ||
64 | CONFIG_UID16=y | ||
65 | CONFIG_SYSCTL_SYSCALL=y | ||
66 | CONFIG_SYSCTL_SYSCALL_CHECK=y | ||
67 | CONFIG_KALLSYMS=y | ||
68 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
69 | CONFIG_HOTPLUG=y | ||
70 | CONFIG_PRINTK=y | ||
71 | CONFIG_BUG=y | ||
72 | CONFIG_ELF_CORE=y | ||
73 | # CONFIG_COMPAT_BRK is not set | ||
74 | CONFIG_BASE_FULL=y | ||
75 | CONFIG_FUTEX=y | ||
76 | CONFIG_ANON_INODES=y | ||
77 | CONFIG_EPOLL=y | ||
78 | CONFIG_SIGNALFD=y | ||
79 | CONFIG_TIMERFD=y | ||
80 | CONFIG_EVENTFD=y | ||
81 | CONFIG_SHMEM=y | ||
82 | CONFIG_VM_EVENT_COUNTERS=y | ||
83 | CONFIG_SLAB=y | ||
84 | # CONFIG_SLUB is not set | ||
85 | # CONFIG_SLOB is not set | ||
86 | # CONFIG_PROFILING is not set | ||
87 | # CONFIG_MARKERS is not set | ||
88 | CONFIG_HAVE_OPROFILE=y | ||
89 | # CONFIG_KPROBES is not set | ||
90 | CONFIG_HAVE_KPROBES=y | ||
91 | CONFIG_HAVE_KRETPROBES=y | ||
92 | # CONFIG_HAVE_DMA_ATTRS is not set | ||
93 | CONFIG_PROC_PAGE_MONITOR=y | ||
94 | CONFIG_SLABINFO=y | ||
95 | CONFIG_RT_MUTEXES=y | ||
96 | # CONFIG_TINY_SHMEM is not set | ||
97 | CONFIG_BASE_SMALL=0 | ||
98 | CONFIG_MODULES=y | ||
99 | # CONFIG_MODULE_FORCE_LOAD is not set | ||
100 | CONFIG_MODULE_UNLOAD=y | ||
101 | CONFIG_MODULE_FORCE_UNLOAD=y | ||
102 | CONFIG_MODVERSIONS=y | ||
103 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
104 | CONFIG_KMOD=y | ||
105 | CONFIG_BLOCK=y | ||
106 | # CONFIG_LBD is not set | ||
107 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
108 | # CONFIG_LSF is not set | ||
109 | # CONFIG_BLK_DEV_BSG is not set | ||
110 | |||
111 | # | ||
112 | # IO Schedulers | ||
113 | # | ||
114 | CONFIG_IOSCHED_NOOP=y | ||
115 | # CONFIG_IOSCHED_AS is not set | ||
116 | CONFIG_IOSCHED_DEADLINE=y | ||
117 | # CONFIG_IOSCHED_CFQ is not set | ||
118 | # CONFIG_DEFAULT_AS is not set | ||
119 | CONFIG_DEFAULT_DEADLINE=y | ||
120 | # CONFIG_DEFAULT_CFQ is not set | ||
121 | # CONFIG_DEFAULT_NOOP is not set | ||
122 | CONFIG_DEFAULT_IOSCHED="deadline" | ||
123 | CONFIG_CLASSIC_RCU=y | ||
124 | |||
125 | # | ||
126 | # System Type | ||
127 | # | ||
128 | # CONFIG_ARCH_AAEC2000 is not set | ||
129 | # CONFIG_ARCH_INTEGRATOR is not set | ||
130 | # CONFIG_ARCH_REALVIEW is not set | ||
131 | # CONFIG_ARCH_VERSATILE is not set | ||
132 | # CONFIG_ARCH_AT91 is not set | ||
133 | # CONFIG_ARCH_CLPS7500 is not set | ||
134 | # CONFIG_ARCH_CLPS711X is not set | ||
135 | # CONFIG_ARCH_CO285 is not set | ||
136 | # CONFIG_ARCH_EBSA110 is not set | ||
137 | # CONFIG_ARCH_EP93XX is not set | ||
138 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
139 | # CONFIG_ARCH_NETX is not set | ||
140 | # CONFIG_ARCH_H720X is not set | ||
141 | # CONFIG_ARCH_IMX is not set | ||
142 | # CONFIG_ARCH_IOP13XX is not set | ||
143 | # CONFIG_ARCH_IOP32X is not set | ||
144 | # CONFIG_ARCH_IOP33X is not set | ||
145 | # CONFIG_ARCH_IXP23XX is not set | ||
146 | # CONFIG_ARCH_IXP2000 is not set | ||
147 | # CONFIG_ARCH_IXP4XX is not set | ||
148 | # CONFIG_ARCH_L7200 is not set | ||
149 | # CONFIG_ARCH_KS8695 is not set | ||
150 | # CONFIG_ARCH_NS9XXX is not set | ||
151 | # CONFIG_ARCH_MXC is not set | ||
152 | # CONFIG_ARCH_ORION5X is not set | ||
153 | # CONFIG_ARCH_PNX4008 is not set | ||
154 | CONFIG_ARCH_PXA=y | ||
155 | # CONFIG_ARCH_RPC is not set | ||
156 | # CONFIG_ARCH_SA1100 is not set | ||
157 | # CONFIG_ARCH_S3C2410 is not set | ||
158 | # CONFIG_ARCH_SHARK is not set | ||
159 | # CONFIG_ARCH_LH7A40X is not set | ||
160 | # CONFIG_ARCH_DAVINCI is not set | ||
161 | # CONFIG_ARCH_OMAP is not set | ||
162 | # CONFIG_ARCH_MSM7X00A is not set | ||
163 | |||
164 | # | ||
165 | # Intel PXA2xx/PXA3xx Implementations | ||
166 | # | ||
167 | # CONFIG_ARCH_GUMSTIX is not set | ||
168 | # CONFIG_ARCH_LUBBOCK is not set | ||
169 | # CONFIG_MACH_LOGICPD_PXA270 is not set | ||
170 | # CONFIG_MACH_MAINSTONE is not set | ||
171 | # CONFIG_ARCH_PXA_IDP is not set | ||
172 | # CONFIG_PXA_SHARPSL is not set | ||
173 | # CONFIG_ARCH_PXA_ESERIES is not set | ||
174 | # CONFIG_MACH_TRIZEPS4 is not set | ||
175 | # CONFIG_MACH_EM_X270 is not set | ||
176 | # CONFIG_MACH_COLIBRI is not set | ||
177 | # CONFIG_MACH_ZYLONITE is not set | ||
178 | # CONFIG_MACH_LITTLETON is not set | ||
179 | # CONFIG_MACH_ARMCORE is not set | ||
180 | # CONFIG_MACH_MAGICIAN is not set | ||
181 | # CONFIG_MACH_PCM027 is not set | ||
182 | CONFIG_PXA_EZX=y | ||
183 | CONFIG_MACH_EZX_A780=y | ||
184 | CONFIG_MACH_EZX_E680=y | ||
185 | CONFIG_MACH_EZX_A1200=y | ||
186 | CONFIG_MACH_EZX_A910=y | ||
187 | CONFIG_MACH_EZX_E6=y | ||
188 | CONFIG_MACH_EZX_E2=y | ||
189 | CONFIG_PXA27x=y | ||
190 | CONFIG_PXA_SSP=y | ||
191 | CONFIG_PXA_PWM=y | ||
192 | |||
193 | # | ||
194 | # Boot options | ||
195 | # | ||
196 | |||
197 | # | ||
198 | # Power management | ||
199 | # | ||
200 | |||
201 | # | ||
202 | # Processor Type | ||
203 | # | ||
204 | CONFIG_CPU_32=y | ||
205 | CONFIG_CPU_XSCALE=y | ||
206 | CONFIG_CPU_32v5=y | ||
207 | CONFIG_CPU_ABRT_EV5T=y | ||
208 | CONFIG_CPU_PABRT_NOIFAR=y | ||
209 | CONFIG_CPU_CACHE_VIVT=y | ||
210 | CONFIG_CPU_TLB_V4WBI=y | ||
211 | CONFIG_CPU_CP15=y | ||
212 | CONFIG_CPU_CP15_MMU=y | ||
213 | |||
214 | # | ||
215 | # Processor Features | ||
216 | # | ||
217 | CONFIG_ARM_THUMB=y | ||
218 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
219 | # CONFIG_OUTER_CACHE is not set | ||
220 | CONFIG_IWMMXT=y | ||
221 | CONFIG_XSCALE_PMU=y | ||
222 | |||
223 | # | ||
224 | # Bus support | ||
225 | # | ||
226 | # CONFIG_PCI_SYSCALL is not set | ||
227 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
228 | # CONFIG_PCCARD is not set | ||
229 | |||
230 | # | ||
231 | # Kernel Features | ||
232 | # | ||
233 | CONFIG_TICK_ONESHOT=y | ||
234 | # CONFIG_NO_HZ is not set | ||
235 | CONFIG_HIGH_RES_TIMERS=y | ||
236 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
237 | CONFIG_PREEMPT=y | ||
238 | CONFIG_HZ=100 | ||
239 | CONFIG_AEABI=y | ||
240 | CONFIG_OABI_COMPAT=y | ||
241 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
242 | CONFIG_SELECT_MEMORY_MODEL=y | ||
243 | CONFIG_FLATMEM_MANUAL=y | ||
244 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
245 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
246 | CONFIG_FLATMEM=y | ||
247 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
248 | # CONFIG_SPARSEMEM_STATIC is not set | ||
249 | # CONFIG_SPARSEMEM_VMEMMAP_ENABLE is not set | ||
250 | CONFIG_PAGEFLAGS_EXTENDED=y | ||
251 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
252 | # CONFIG_RESOURCES_64BIT is not set | ||
253 | CONFIG_ZONE_DMA_FLAG=1 | ||
254 | CONFIG_BOUNCE=y | ||
255 | CONFIG_VIRT_TO_BUS=y | ||
256 | CONFIG_ALIGNMENT_TRAP=y | ||
257 | |||
258 | # | ||
259 | # Boot options | ||
260 | # | ||
261 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
262 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
263 | CONFIG_CMDLINE="console=tty1 root=/dev/mmcblk0p2 rootfstype=ext2 rootdelay=1 ip=192.168.0.202:192.168.0.200:192.168.0.200:255.255.255.0 debug" | ||
264 | # CONFIG_XIP_KERNEL is not set | ||
265 | CONFIG_KEXEC=y | ||
266 | CONFIG_ATAGS_PROC=y | ||
267 | |||
268 | # | ||
269 | # CPU Frequency scaling | ||
270 | # | ||
271 | # CONFIG_CPU_FREQ is not set | ||
272 | |||
273 | # | ||
274 | # Floating point emulation | ||
275 | # | ||
276 | |||
277 | # | ||
278 | # At least one emulation must be selected | ||
279 | # | ||
280 | CONFIG_FPE_NWFPE=y | ||
281 | # CONFIG_FPE_NWFPE_XP is not set | ||
282 | # CONFIG_FPE_FASTFPE is not set | ||
283 | |||
284 | # | ||
285 | # Userspace binary formats | ||
286 | # | ||
287 | CONFIG_BINFMT_ELF=y | ||
288 | CONFIG_BINFMT_AOUT=m | ||
289 | CONFIG_BINFMT_MISC=m | ||
290 | |||
291 | # | ||
292 | # Power management options | ||
293 | # | ||
294 | CONFIG_PM=y | ||
295 | # CONFIG_PM_DEBUG is not set | ||
296 | CONFIG_PM_SLEEP=y | ||
297 | CONFIG_SUSPEND=y | ||
298 | CONFIG_SUSPEND_FREEZER=y | ||
299 | CONFIG_APM_EMULATION=y | ||
300 | CONFIG_ARCH_SUSPEND_POSSIBLE=y | ||
301 | |||
302 | # | ||
303 | # Networking | ||
304 | # | ||
305 | CONFIG_NET=y | ||
306 | |||
307 | # | ||
308 | # Networking options | ||
309 | # | ||
310 | CONFIG_PACKET=y | ||
311 | CONFIG_PACKET_MMAP=y | ||
312 | CONFIG_UNIX=y | ||
313 | CONFIG_XFRM=y | ||
314 | # CONFIG_XFRM_USER is not set | ||
315 | # CONFIG_XFRM_SUB_POLICY is not set | ||
316 | # CONFIG_XFRM_MIGRATE is not set | ||
317 | # CONFIG_XFRM_STATISTICS is not set | ||
318 | # CONFIG_NET_KEY is not set | ||
319 | CONFIG_INET=y | ||
320 | # CONFIG_IP_MULTICAST is not set | ||
321 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
322 | CONFIG_IP_FIB_HASH=y | ||
323 | CONFIG_IP_PNP=y | ||
324 | CONFIG_IP_PNP_DHCP=y | ||
325 | CONFIG_IP_PNP_BOOTP=y | ||
326 | CONFIG_IP_PNP_RARP=y | ||
327 | # CONFIG_NET_IPIP is not set | ||
328 | # CONFIG_NET_IPGRE is not set | ||
329 | # CONFIG_ARPD is not set | ||
330 | CONFIG_SYN_COOKIES=y | ||
331 | # CONFIG_INET_AH is not set | ||
332 | # CONFIG_INET_ESP is not set | ||
333 | # CONFIG_INET_IPCOMP is not set | ||
334 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
335 | CONFIG_INET_TUNNEL=m | ||
336 | # CONFIG_INET_XFRM_MODE_TRANSPORT is not set | ||
337 | # CONFIG_INET_XFRM_MODE_TUNNEL is not set | ||
338 | # CONFIG_INET_XFRM_MODE_BEET is not set | ||
339 | # CONFIG_INET_LRO is not set | ||
340 | # CONFIG_INET_DIAG is not set | ||
341 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
342 | CONFIG_TCP_CONG_CUBIC=y | ||
343 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
344 | # CONFIG_TCP_MD5SIG is not set | ||
345 | # CONFIG_IP_VS is not set | ||
346 | CONFIG_IPV6=m | ||
347 | # CONFIG_IPV6_PRIVACY is not set | ||
348 | # CONFIG_IPV6_ROUTER_PREF is not set | ||
349 | # CONFIG_IPV6_OPTIMISTIC_DAD is not set | ||
350 | CONFIG_INET6_AH=m | ||
351 | CONFIG_INET6_ESP=m | ||
352 | CONFIG_INET6_IPCOMP=m | ||
353 | CONFIG_IPV6_MIP6=m | ||
354 | CONFIG_INET6_XFRM_TUNNEL=m | ||
355 | CONFIG_INET6_TUNNEL=m | ||
356 | CONFIG_INET6_XFRM_MODE_TRANSPORT=m | ||
357 | CONFIG_INET6_XFRM_MODE_TUNNEL=m | ||
358 | CONFIG_INET6_XFRM_MODE_BEET=m | ||
359 | # CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION is not set | ||
360 | CONFIG_IPV6_SIT=m | ||
361 | CONFIG_IPV6_NDISC_NODETYPE=y | ||
362 | CONFIG_IPV6_TUNNEL=m | ||
363 | CONFIG_IPV6_MULTIPLE_TABLES=y | ||
364 | CONFIG_IPV6_SUBTREES=y | ||
365 | # CONFIG_IPV6_MROUTE is not set | ||
366 | # CONFIG_NETWORK_SECMARK is not set | ||
367 | CONFIG_NETFILTER=y | ||
368 | # CONFIG_NETFILTER_DEBUG is not set | ||
369 | CONFIG_NETFILTER_ADVANCED=y | ||
370 | CONFIG_BRIDGE_NETFILTER=y | ||
371 | |||
372 | # | ||
373 | # Core Netfilter Configuration | ||
374 | # | ||
375 | CONFIG_NETFILTER_NETLINK=m | ||
376 | CONFIG_NETFILTER_NETLINK_QUEUE=m | ||
377 | CONFIG_NETFILTER_NETLINK_LOG=m | ||
378 | CONFIG_NF_CONNTRACK=m | ||
379 | CONFIG_NF_CT_ACCT=y | ||
380 | CONFIG_NF_CONNTRACK_MARK=y | ||
381 | CONFIG_NF_CONNTRACK_EVENTS=y | ||
382 | # CONFIG_NF_CT_PROTO_DCCP is not set | ||
383 | CONFIG_NF_CT_PROTO_GRE=m | ||
384 | CONFIG_NF_CT_PROTO_SCTP=m | ||
385 | CONFIG_NF_CT_PROTO_UDPLITE=m | ||
386 | CONFIG_NF_CONNTRACK_AMANDA=m | ||
387 | CONFIG_NF_CONNTRACK_FTP=m | ||
388 | CONFIG_NF_CONNTRACK_H323=m | ||
389 | CONFIG_NF_CONNTRACK_IRC=m | ||
390 | CONFIG_NF_CONNTRACK_NETBIOS_NS=m | ||
391 | CONFIG_NF_CONNTRACK_PPTP=m | ||
392 | CONFIG_NF_CONNTRACK_SANE=m | ||
393 | CONFIG_NF_CONNTRACK_SIP=m | ||
394 | CONFIG_NF_CONNTRACK_TFTP=m | ||
395 | CONFIG_NF_CT_NETLINK=m | ||
396 | CONFIG_NETFILTER_XTABLES=m | ||
397 | CONFIG_NETFILTER_XT_TARGET_CLASSIFY=m | ||
398 | # CONFIG_NETFILTER_XT_TARGET_CONNMARK is not set | ||
399 | # CONFIG_NETFILTER_XT_TARGET_DSCP is not set | ||
400 | CONFIG_NETFILTER_XT_TARGET_MARK=m | ||
401 | CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m | ||
402 | CONFIG_NETFILTER_XT_TARGET_NFLOG=m | ||
403 | # CONFIG_NETFILTER_XT_TARGET_NOTRACK is not set | ||
404 | # CONFIG_NETFILTER_XT_TARGET_RATEEST is not set | ||
405 | # CONFIG_NETFILTER_XT_TARGET_TRACE is not set | ||
406 | CONFIG_NETFILTER_XT_TARGET_TCPMSS=m | ||
407 | # CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP is not set | ||
408 | CONFIG_NETFILTER_XT_MATCH_COMMENT=m | ||
409 | CONFIG_NETFILTER_XT_MATCH_CONNBYTES=m | ||
410 | CONFIG_NETFILTER_XT_MATCH_CONNLIMIT=m | ||
411 | CONFIG_NETFILTER_XT_MATCH_CONNMARK=m | ||
412 | CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m | ||
413 | CONFIG_NETFILTER_XT_MATCH_DCCP=m | ||
414 | CONFIG_NETFILTER_XT_MATCH_DSCP=m | ||
415 | CONFIG_NETFILTER_XT_MATCH_ESP=m | ||
416 | CONFIG_NETFILTER_XT_MATCH_HELPER=m | ||
417 | # CONFIG_NETFILTER_XT_MATCH_IPRANGE is not set | ||
418 | CONFIG_NETFILTER_XT_MATCH_LENGTH=m | ||
419 | CONFIG_NETFILTER_XT_MATCH_LIMIT=m | ||
420 | CONFIG_NETFILTER_XT_MATCH_MAC=m | ||
421 | CONFIG_NETFILTER_XT_MATCH_MARK=m | ||
422 | # CONFIG_NETFILTER_XT_MATCH_OWNER is not set | ||
423 | CONFIG_NETFILTER_XT_MATCH_POLICY=m | ||
424 | CONFIG_NETFILTER_XT_MATCH_MULTIPORT=m | ||
425 | # CONFIG_NETFILTER_XT_MATCH_PHYSDEV is not set | ||
426 | CONFIG_NETFILTER_XT_MATCH_PKTTYPE=m | ||
427 | CONFIG_NETFILTER_XT_MATCH_QUOTA=m | ||
428 | # CONFIG_NETFILTER_XT_MATCH_RATEEST is not set | ||
429 | CONFIG_NETFILTER_XT_MATCH_REALM=m | ||
430 | CONFIG_NETFILTER_XT_MATCH_SCTP=m | ||
431 | CONFIG_NETFILTER_XT_MATCH_STATE=m | ||
432 | CONFIG_NETFILTER_XT_MATCH_STATISTIC=m | ||
433 | CONFIG_NETFILTER_XT_MATCH_STRING=m | ||
434 | CONFIG_NETFILTER_XT_MATCH_TCPMSS=m | ||
435 | CONFIG_NETFILTER_XT_MATCH_TIME=m | ||
436 | CONFIG_NETFILTER_XT_MATCH_U32=m | ||
437 | CONFIG_NETFILTER_XT_MATCH_HASHLIMIT=m | ||
438 | |||
439 | # | ||
440 | # IP: Netfilter Configuration | ||
441 | # | ||
442 | CONFIG_NF_CONNTRACK_IPV4=m | ||
443 | CONFIG_NF_CONNTRACK_PROC_COMPAT=y | ||
444 | CONFIG_IP_NF_QUEUE=m | ||
445 | CONFIG_IP_NF_IPTABLES=m | ||
446 | CONFIG_IP_NF_MATCH_RECENT=m | ||
447 | CONFIG_IP_NF_MATCH_ECN=m | ||
448 | CONFIG_IP_NF_MATCH_AH=m | ||
449 | CONFIG_IP_NF_MATCH_TTL=m | ||
450 | CONFIG_IP_NF_MATCH_ADDRTYPE=m | ||
451 | CONFIG_IP_NF_FILTER=m | ||
452 | CONFIG_IP_NF_TARGET_REJECT=m | ||
453 | CONFIG_IP_NF_TARGET_LOG=m | ||
454 | CONFIG_IP_NF_TARGET_ULOG=m | ||
455 | CONFIG_NF_NAT=m | ||
456 | CONFIG_NF_NAT_NEEDED=y | ||
457 | CONFIG_IP_NF_TARGET_MASQUERADE=m | ||
458 | CONFIG_IP_NF_TARGET_REDIRECT=m | ||
459 | CONFIG_IP_NF_TARGET_NETMAP=m | ||
460 | CONFIG_NF_NAT_SNMP_BASIC=m | ||
461 | CONFIG_NF_NAT_PROTO_GRE=m | ||
462 | CONFIG_NF_NAT_PROTO_UDPLITE=m | ||
463 | CONFIG_NF_NAT_PROTO_SCTP=m | ||
464 | CONFIG_NF_NAT_FTP=m | ||
465 | CONFIG_NF_NAT_IRC=m | ||
466 | CONFIG_NF_NAT_TFTP=m | ||
467 | CONFIG_NF_NAT_AMANDA=m | ||
468 | CONFIG_NF_NAT_PPTP=m | ||
469 | CONFIG_NF_NAT_H323=m | ||
470 | CONFIG_NF_NAT_SIP=m | ||
471 | CONFIG_IP_NF_MANGLE=m | ||
472 | CONFIG_IP_NF_TARGET_ECN=m | ||
473 | CONFIG_IP_NF_TARGET_TTL=m | ||
474 | CONFIG_IP_NF_TARGET_CLUSTERIP=m | ||
475 | CONFIG_IP_NF_RAW=m | ||
476 | CONFIG_IP_NF_ARPTABLES=m | ||
477 | CONFIG_IP_NF_ARPFILTER=m | ||
478 | CONFIG_IP_NF_ARP_MANGLE=m | ||
479 | |||
480 | # | ||
481 | # IPv6: Netfilter Configuration | ||
482 | # | ||
483 | CONFIG_NF_CONNTRACK_IPV6=m | ||
484 | CONFIG_IP6_NF_QUEUE=m | ||
485 | CONFIG_IP6_NF_IPTABLES=m | ||
486 | CONFIG_IP6_NF_MATCH_RT=m | ||
487 | CONFIG_IP6_NF_MATCH_OPTS=m | ||
488 | CONFIG_IP6_NF_MATCH_FRAG=m | ||
489 | CONFIG_IP6_NF_MATCH_HL=m | ||
490 | CONFIG_IP6_NF_MATCH_IPV6HEADER=m | ||
491 | CONFIG_IP6_NF_MATCH_AH=m | ||
492 | CONFIG_IP6_NF_MATCH_MH=m | ||
493 | CONFIG_IP6_NF_MATCH_EUI64=m | ||
494 | CONFIG_IP6_NF_FILTER=m | ||
495 | CONFIG_IP6_NF_TARGET_LOG=m | ||
496 | CONFIG_IP6_NF_TARGET_REJECT=m | ||
497 | CONFIG_IP6_NF_MANGLE=m | ||
498 | CONFIG_IP6_NF_TARGET_HL=m | ||
499 | CONFIG_IP6_NF_RAW=m | ||
500 | |||
501 | # | ||
502 | # Bridge: Netfilter Configuration | ||
503 | # | ||
504 | # CONFIG_BRIDGE_NF_EBTABLES is not set | ||
505 | # CONFIG_IP_DCCP is not set | ||
506 | # CONFIG_IP_SCTP is not set | ||
507 | # CONFIG_TIPC is not set | ||
508 | # CONFIG_ATM is not set | ||
509 | CONFIG_BRIDGE=m | ||
510 | # CONFIG_VLAN_8021Q is not set | ||
511 | # CONFIG_DECNET is not set | ||
512 | CONFIG_LLC=m | ||
513 | # CONFIG_LLC2 is not set | ||
514 | # CONFIG_IPX is not set | ||
515 | # CONFIG_ATALK is not set | ||
516 | # CONFIG_X25 is not set | ||
517 | # CONFIG_LAPB is not set | ||
518 | # CONFIG_ECONET is not set | ||
519 | # CONFIG_WAN_ROUTER is not set | ||
520 | # CONFIG_NET_SCHED is not set | ||
521 | CONFIG_NET_CLS_ROUTE=y | ||
522 | CONFIG_NET_SCH_FIFO=y | ||
523 | |||
524 | # | ||
525 | # Network testing | ||
526 | # | ||
527 | # CONFIG_NET_PKTGEN is not set | ||
528 | # CONFIG_HAMRADIO is not set | ||
529 | # CONFIG_CAN is not set | ||
530 | # CONFIG_IRDA is not set | ||
531 | CONFIG_BT=y | ||
532 | CONFIG_BT_L2CAP=m | ||
533 | CONFIG_BT_SCO=y | ||
534 | CONFIG_BT_RFCOMM=m | ||
535 | CONFIG_BT_RFCOMM_TTY=y | ||
536 | CONFIG_BT_BNEP=m | ||
537 | CONFIG_BT_BNEP_MC_FILTER=y | ||
538 | CONFIG_BT_BNEP_PROTO_FILTER=y | ||
539 | CONFIG_BT_HIDP=m | ||
540 | |||
541 | # | ||
542 | # Bluetooth device drivers | ||
543 | # | ||
544 | # CONFIG_BT_HCIUSB is not set | ||
545 | # CONFIG_BT_HCIBTUSB is not set | ||
546 | # CONFIG_BT_HCIBTSDIO is not set | ||
547 | CONFIG_BT_HCIUART=y | ||
548 | CONFIG_BT_HCIUART_H4=y | ||
549 | # CONFIG_BT_HCIUART_BCSP is not set | ||
550 | # CONFIG_BT_HCIUART_LL is not set | ||
551 | # CONFIG_BT_HCIBCM203X is not set | ||
552 | # CONFIG_BT_HCIBPA10X is not set | ||
553 | # CONFIG_BT_HCIBFUSB is not set | ||
554 | # CONFIG_BT_HCIVHCI is not set | ||
555 | # CONFIG_AF_RXRPC is not set | ||
556 | CONFIG_FIB_RULES=y | ||
557 | |||
558 | # | ||
559 | # Wireless | ||
560 | # | ||
561 | CONFIG_CFG80211=m | ||
562 | CONFIG_NL80211=y | ||
563 | CONFIG_WIRELESS_EXT=y | ||
564 | CONFIG_MAC80211=m | ||
565 | |||
566 | # | ||
567 | # Rate control algorithm selection | ||
568 | # | ||
569 | CONFIG_MAC80211_RC_DEFAULT_PID=y | ||
570 | # CONFIG_MAC80211_RC_DEFAULT_NONE is not set | ||
571 | |||
572 | # | ||
573 | # Selecting 'y' for an algorithm will | ||
574 | # | ||
575 | |||
576 | # | ||
577 | # build the algorithm into mac80211. | ||
578 | # | ||
579 | CONFIG_MAC80211_RC_DEFAULT="pid" | ||
580 | CONFIG_MAC80211_RC_PID=y | ||
581 | # CONFIG_MAC80211_MESH is not set | ||
582 | CONFIG_MAC80211_LEDS=y | ||
583 | # CONFIG_MAC80211_DEBUG_PACKET_ALIGNMENT is not set | ||
584 | # CONFIG_MAC80211_DEBUG is not set | ||
585 | CONFIG_IEEE80211=m | ||
586 | # CONFIG_IEEE80211_DEBUG is not set | ||
587 | CONFIG_IEEE80211_CRYPT_WEP=m | ||
588 | CONFIG_IEEE80211_CRYPT_CCMP=m | ||
589 | CONFIG_IEEE80211_CRYPT_TKIP=m | ||
590 | # CONFIG_RFKILL is not set | ||
591 | # CONFIG_NET_9P is not set | ||
592 | |||
593 | # | ||
594 | # Device Drivers | ||
595 | # | ||
596 | |||
597 | # | ||
598 | # Generic Driver Options | ||
599 | # | ||
600 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
601 | CONFIG_STANDALONE=y | ||
602 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
603 | CONFIG_FW_LOADER=m | ||
604 | # CONFIG_SYS_HYPERVISOR is not set | ||
605 | CONFIG_CONNECTOR=m | ||
606 | CONFIG_MTD=y | ||
607 | # CONFIG_MTD_DEBUG is not set | ||
608 | # CONFIG_MTD_CONCAT is not set | ||
609 | CONFIG_MTD_PARTITIONS=y | ||
610 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
611 | # CONFIG_MTD_CMDLINE_PARTS is not set | ||
612 | # CONFIG_MTD_AFS_PARTS is not set | ||
613 | # CONFIG_MTD_AR7_PARTS is not set | ||
614 | |||
615 | # | ||
616 | # User Modules And Translation Layers | ||
617 | # | ||
618 | CONFIG_MTD_CHAR=y | ||
619 | # CONFIG_MTD_BLKDEVS is not set | ||
620 | # CONFIG_MTD_BLOCK is not set | ||
621 | # CONFIG_MTD_BLOCK_RO is not set | ||
622 | # CONFIG_FTL is not set | ||
623 | # CONFIG_NFTL is not set | ||
624 | # CONFIG_INFTL is not set | ||
625 | # CONFIG_RFD_FTL is not set | ||
626 | # CONFIG_SSFDC is not set | ||
627 | # CONFIG_MTD_OOPS is not set | ||
628 | |||
629 | # | ||
630 | # RAM/ROM/Flash chip drivers | ||
631 | # | ||
632 | CONFIG_MTD_CFI=y | ||
633 | # CONFIG_MTD_JEDECPROBE is not set | ||
634 | CONFIG_MTD_GEN_PROBE=y | ||
635 | CONFIG_MTD_CFI_ADV_OPTIONS=y | ||
636 | CONFIG_MTD_CFI_NOSWAP=y | ||
637 | # CONFIG_MTD_CFI_BE_BYTE_SWAP is not set | ||
638 | # CONFIG_MTD_CFI_LE_BYTE_SWAP is not set | ||
639 | CONFIG_MTD_CFI_GEOMETRY=y | ||
640 | # CONFIG_MTD_MAP_BANK_WIDTH_1 is not set | ||
641 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
642 | # CONFIG_MTD_MAP_BANK_WIDTH_4 is not set | ||
643 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
644 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
645 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
646 | CONFIG_MTD_CFI_I1=y | ||
647 | # CONFIG_MTD_CFI_I2 is not set | ||
648 | # CONFIG_MTD_CFI_I4 is not set | ||
649 | # CONFIG_MTD_CFI_I8 is not set | ||
650 | # CONFIG_MTD_OTP is not set | ||
651 | CONFIG_MTD_CFI_INTELEXT=y | ||
652 | # CONFIG_MTD_CFI_AMDSTD is not set | ||
653 | # CONFIG_MTD_CFI_STAA is not set | ||
654 | CONFIG_MTD_CFI_UTIL=y | ||
655 | # CONFIG_MTD_RAM is not set | ||
656 | # CONFIG_MTD_ROM is not set | ||
657 | # CONFIG_MTD_ABSENT is not set | ||
658 | CONFIG_MTD_XIP=y | ||
659 | |||
660 | # | ||
661 | # Mapping drivers for chip access | ||
662 | # | ||
663 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
664 | CONFIG_MTD_PHYSMAP=y | ||
665 | CONFIG_MTD_PHYSMAP_START=0x0 | ||
666 | CONFIG_MTD_PHYSMAP_LEN=0x0 | ||
667 | CONFIG_MTD_PHYSMAP_BANKWIDTH=2 | ||
668 | # CONFIG_MTD_PXA2XX is not set | ||
669 | # CONFIG_MTD_ARM_INTEGRATOR is not set | ||
670 | # CONFIG_MTD_SHARP_SL is not set | ||
671 | # CONFIG_MTD_PLATRAM is not set | ||
672 | |||
673 | # | ||
674 | # Self-contained MTD device drivers | ||
675 | # | ||
676 | # CONFIG_MTD_DATAFLASH is not set | ||
677 | # CONFIG_MTD_M25P80 is not set | ||
678 | # CONFIG_MTD_SLRAM is not set | ||
679 | # CONFIG_MTD_PHRAM is not set | ||
680 | # CONFIG_MTD_MTDRAM is not set | ||
681 | # CONFIG_MTD_BLOCK2MTD is not set | ||
682 | |||
683 | # | ||
684 | # Disk-On-Chip Device Drivers | ||
685 | # | ||
686 | # CONFIG_MTD_DOC2000 is not set | ||
687 | # CONFIG_MTD_DOC2001 is not set | ||
688 | # CONFIG_MTD_DOC2001PLUS is not set | ||
689 | # CONFIG_MTD_NAND is not set | ||
690 | # CONFIG_MTD_ONENAND is not set | ||
691 | |||
692 | # | ||
693 | # UBI - Unsorted block images | ||
694 | # | ||
695 | # CONFIG_MTD_UBI is not set | ||
696 | # CONFIG_PARPORT is not set | ||
697 | CONFIG_BLK_DEV=y | ||
698 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
699 | CONFIG_BLK_DEV_LOOP=m | ||
700 | CONFIG_BLK_DEV_CRYPTOLOOP=m | ||
701 | CONFIG_BLK_DEV_NBD=m | ||
702 | # CONFIG_BLK_DEV_UB is not set | ||
703 | CONFIG_BLK_DEV_RAM=m | ||
704 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
705 | CONFIG_BLK_DEV_RAM_SIZE=4096 | ||
706 | # CONFIG_BLK_DEV_XIP is not set | ||
707 | # CONFIG_CDROM_PKTCDVD is not set | ||
708 | # CONFIG_ATA_OVER_ETH is not set | ||
709 | CONFIG_MISC_DEVICES=y | ||
710 | # CONFIG_EEPROM_93CX6 is not set | ||
711 | # CONFIG_ENCLOSURE_SERVICES is not set | ||
712 | CONFIG_HAVE_IDE=y | ||
713 | # CONFIG_IDE is not set | ||
714 | |||
715 | # | ||
716 | # SCSI device support | ||
717 | # | ||
718 | # CONFIG_RAID_ATTRS is not set | ||
719 | # CONFIG_SCSI is not set | ||
720 | # CONFIG_SCSI_DMA is not set | ||
721 | # CONFIG_SCSI_NETLINK is not set | ||
722 | # CONFIG_ATA is not set | ||
723 | # CONFIG_MD is not set | ||
724 | CONFIG_NETDEVICES=y | ||
725 | # CONFIG_NETDEVICES_MULTIQUEUE is not set | ||
726 | CONFIG_DUMMY=y | ||
727 | # CONFIG_BONDING is not set | ||
728 | # CONFIG_MACVLAN is not set | ||
729 | # CONFIG_EQUALIZER is not set | ||
730 | # CONFIG_TUN is not set | ||
731 | # CONFIG_VETH is not set | ||
732 | # CONFIG_NET_ETHERNET is not set | ||
733 | # CONFIG_NETDEV_1000 is not set | ||
734 | # CONFIG_NETDEV_10000 is not set | ||
735 | |||
736 | # | ||
737 | # Wireless LAN | ||
738 | # | ||
739 | # CONFIG_WLAN_PRE80211 is not set | ||
740 | # CONFIG_WLAN_80211 is not set | ||
741 | # CONFIG_IWLWIFI_LEDS is not set | ||
742 | |||
743 | # | ||
744 | # USB Network Adapters | ||
745 | # | ||
746 | # CONFIG_USB_CATC is not set | ||
747 | # CONFIG_USB_KAWETH is not set | ||
748 | # CONFIG_USB_PEGASUS is not set | ||
749 | # CONFIG_USB_RTL8150 is not set | ||
750 | # CONFIG_USB_USBNET is not set | ||
751 | # CONFIG_WAN is not set | ||
752 | CONFIG_PPP=m | ||
753 | CONFIG_PPP_MULTILINK=y | ||
754 | CONFIG_PPP_FILTER=y | ||
755 | CONFIG_PPP_ASYNC=m | ||
756 | CONFIG_PPP_SYNC_TTY=m | ||
757 | CONFIG_PPP_DEFLATE=m | ||
758 | CONFIG_PPP_BSDCOMP=m | ||
759 | # CONFIG_PPP_MPPE is not set | ||
760 | # CONFIG_PPPOE is not set | ||
761 | # CONFIG_PPPOL2TP is not set | ||
762 | # CONFIG_SLIP is not set | ||
763 | CONFIG_SLHC=m | ||
764 | # CONFIG_NETCONSOLE is not set | ||
765 | # CONFIG_NETPOLL is not set | ||
766 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
767 | # CONFIG_ISDN is not set | ||
768 | |||
769 | # | ||
770 | # Input device support | ||
771 | # | ||
772 | CONFIG_INPUT=y | ||
773 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
774 | # CONFIG_INPUT_POLLDEV is not set | ||
775 | |||
776 | # | ||
777 | # Userland interfaces | ||
778 | # | ||
779 | # CONFIG_INPUT_MOUSEDEV is not set | ||
780 | # CONFIG_INPUT_JOYDEV is not set | ||
781 | CONFIG_INPUT_EVDEV=y | ||
782 | # CONFIG_INPUT_EVBUG is not set | ||
783 | # CONFIG_INPUT_APMPOWER is not set | ||
784 | |||
785 | # | ||
786 | # Input Device Drivers | ||
787 | # | ||
788 | CONFIG_INPUT_KEYBOARD=y | ||
789 | # CONFIG_KEYBOARD_ATKBD is not set | ||
790 | # CONFIG_KEYBOARD_SUNKBD is not set | ||
791 | # CONFIG_KEYBOARD_LKKBD is not set | ||
792 | # CONFIG_KEYBOARD_XTKBD is not set | ||
793 | # CONFIG_KEYBOARD_NEWTON is not set | ||
794 | # CONFIG_KEYBOARD_STOWAWAY is not set | ||
795 | CONFIG_KEYBOARD_PXA27x=y | ||
796 | CONFIG_KEYBOARD_GPIO=y | ||
797 | # CONFIG_INPUT_MOUSE is not set | ||
798 | # CONFIG_INPUT_JOYSTICK is not set | ||
799 | # CONFIG_INPUT_TABLET is not set | ||
800 | CONFIG_INPUT_TOUCHSCREEN=y | ||
801 | # CONFIG_TOUCHSCREEN_ADS7846 is not set | ||
802 | # CONFIG_TOUCHSCREEN_FUJITSU is not set | ||
803 | # CONFIG_TOUCHSCREEN_GUNZE is not set | ||
804 | # CONFIG_TOUCHSCREEN_ELO is not set | ||
805 | # CONFIG_TOUCHSCREEN_MTOUCH is not set | ||
806 | # CONFIG_TOUCHSCREEN_MK712 is not set | ||
807 | # CONFIG_TOUCHSCREEN_PENMOUNT is not set | ||
808 | # CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set | ||
809 | # CONFIG_TOUCHSCREEN_TOUCHWIN is not set | ||
810 | # CONFIG_TOUCHSCREEN_UCB1400 is not set | ||
811 | # CONFIG_TOUCHSCREEN_USB_COMPOSITE is not set | ||
812 | CONFIG_TOUCHSCREEN_PCAP=y | ||
813 | CONFIG_INPUT_MISC=y | ||
814 | # CONFIG_INPUT_ATI_REMOTE is not set | ||
815 | # CONFIG_INPUT_ATI_REMOTE2 is not set | ||
816 | # CONFIG_INPUT_KEYSPAN_REMOTE is not set | ||
817 | # CONFIG_INPUT_POWERMATE is not set | ||
818 | # CONFIG_INPUT_YEALINK is not set | ||
819 | CONFIG_INPUT_UINPUT=y | ||
820 | |||
821 | # | ||
822 | # Hardware I/O ports | ||
823 | # | ||
824 | # CONFIG_SERIO is not set | ||
825 | # CONFIG_GAMEPORT is not set | ||
826 | |||
827 | # | ||
828 | # Character devices | ||
829 | # | ||
830 | CONFIG_VT=y | ||
831 | CONFIG_VT_CONSOLE=y | ||
832 | CONFIG_HW_CONSOLE=y | ||
833 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | ||
834 | CONFIG_DEVKMEM=y | ||
835 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
836 | |||
837 | # | ||
838 | # Serial drivers | ||
839 | # | ||
840 | # CONFIG_SERIAL_8250 is not set | ||
841 | |||
842 | # | ||
843 | # Non-8250 serial port support | ||
844 | # | ||
845 | CONFIG_SERIAL_PXA=y | ||
846 | CONFIG_SERIAL_PXA_CONSOLE=y | ||
847 | CONFIG_SERIAL_CORE=y | ||
848 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
849 | CONFIG_UNIX98_PTYS=y | ||
850 | CONFIG_LEGACY_PTYS=y | ||
851 | CONFIG_LEGACY_PTY_COUNT=8 | ||
852 | # CONFIG_IPMI_HANDLER is not set | ||
853 | CONFIG_HW_RANDOM=y | ||
854 | # CONFIG_NVRAM is not set | ||
855 | # CONFIG_R3964 is not set | ||
856 | # CONFIG_RAW_DRIVER is not set | ||
857 | # CONFIG_TCG_TPM is not set | ||
858 | CONFIG_I2C=y | ||
859 | CONFIG_I2C_BOARDINFO=y | ||
860 | CONFIG_I2C_CHARDEV=y | ||
861 | |||
862 | # | ||
863 | # I2C Hardware Bus support | ||
864 | # | ||
865 | # CONFIG_I2C_GPIO is not set | ||
866 | CONFIG_I2C_PXA=y | ||
867 | # CONFIG_I2C_PXA_SLAVE is not set | ||
868 | # CONFIG_I2C_OCORES is not set | ||
869 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
870 | # CONFIG_I2C_SIMTEC is not set | ||
871 | # CONFIG_I2C_TAOS_EVM is not set | ||
872 | # CONFIG_I2C_STUB is not set | ||
873 | # CONFIG_I2C_TINY_USB is not set | ||
874 | # CONFIG_I2C_PCA_PLATFORM is not set | ||
875 | |||
876 | # | ||
877 | # Miscellaneous I2C Chip support | ||
878 | # | ||
879 | # CONFIG_DS1682 is not set | ||
880 | # CONFIG_SENSORS_EEPROM is not set | ||
881 | # CONFIG_SENSORS_PCF8574 is not set | ||
882 | # CONFIG_PCF8575 is not set | ||
883 | # CONFIG_SENSORS_PCF8591 is not set | ||
884 | # CONFIG_TPS65010 is not set | ||
885 | # CONFIG_SENSORS_MAX6875 is not set | ||
886 | # CONFIG_SENSORS_TSL2550 is not set | ||
887 | # CONFIG_I2C_DEBUG_CORE is not set | ||
888 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
889 | # CONFIG_I2C_DEBUG_BUS is not set | ||
890 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
891 | CONFIG_SPI=y | ||
892 | CONFIG_SPI_MASTER=y | ||
893 | |||
894 | # | ||
895 | # SPI Master Controller Drivers | ||
896 | # | ||
897 | # CONFIG_SPI_BITBANG is not set | ||
898 | CONFIG_SPI_PXA2XX=m | ||
899 | |||
900 | # | ||
901 | # SPI Protocol Masters | ||
902 | # | ||
903 | # CONFIG_SPI_AT25 is not set | ||
904 | # CONFIG_SPI_SPIDEV is not set | ||
905 | # CONFIG_SPI_TLE62X0 is not set | ||
906 | CONFIG_HAVE_GPIO_LIB=y | ||
907 | |||
908 | # | ||
909 | # GPIO Support | ||
910 | # | ||
911 | |||
912 | # | ||
913 | # I2C GPIO expanders: | ||
914 | # | ||
915 | # CONFIG_GPIO_PCA953X is not set | ||
916 | # CONFIG_GPIO_PCF857X is not set | ||
917 | |||
918 | # | ||
919 | # SPI GPIO expanders: | ||
920 | # | ||
921 | # CONFIG_GPIO_MCP23S08 is not set | ||
922 | # CONFIG_W1 is not set | ||
923 | # CONFIG_POWER_SUPPLY is not set | ||
924 | # CONFIG_HWMON is not set | ||
925 | # CONFIG_WATCHDOG is not set | ||
926 | |||
927 | # | ||
928 | # Sonics Silicon Backplane | ||
929 | # | ||
930 | CONFIG_SSB_POSSIBLE=y | ||
931 | # CONFIG_SSB is not set | ||
932 | |||
933 | # | ||
934 | # Multifunction device drivers | ||
935 | # | ||
936 | # CONFIG_MFD_CORE is not set | ||
937 | # CONFIG_MFD_SM501 is not set | ||
938 | # CONFIG_MFD_ASIC3 is not set | ||
939 | # CONFIG_HTC_EGPIO is not set | ||
940 | # CONFIG_HTC_PASIC3 is not set | ||
941 | # CONFIG_MFD_TC6393XB is not set | ||
942 | CONFIG_EZX_PCAP=y | ||
943 | |||
944 | # | ||
945 | # Multimedia devices | ||
946 | # | ||
947 | |||
948 | # | ||
949 | # Multimedia core support | ||
950 | # | ||
951 | CONFIG_VIDEO_DEV=m | ||
952 | CONFIG_VIDEO_V4L2_COMMON=m | ||
953 | CONFIG_VIDEO_ALLOW_V4L1=y | ||
954 | CONFIG_VIDEO_V4L1_COMPAT=y | ||
955 | # CONFIG_DVB_CORE is not set | ||
956 | CONFIG_VIDEO_MEDIA=m | ||
957 | |||
958 | # | ||
959 | # Multimedia drivers | ||
960 | # | ||
961 | # CONFIG_MEDIA_ATTACH is not set | ||
962 | CONFIG_MEDIA_TUNER=m | ||
963 | # CONFIG_MEDIA_TUNER_CUSTOMIZE is not set | ||
964 | CONFIG_MEDIA_TUNER_SIMPLE=m | ||
965 | CONFIG_MEDIA_TUNER_TDA8290=m | ||
966 | CONFIG_MEDIA_TUNER_TDA9887=m | ||
967 | CONFIG_MEDIA_TUNER_TEA5761=m | ||
968 | CONFIG_MEDIA_TUNER_TEA5767=m | ||
969 | CONFIG_MEDIA_TUNER_MT20XX=m | ||
970 | CONFIG_MEDIA_TUNER_XC2028=m | ||
971 | CONFIG_MEDIA_TUNER_XC5000=m | ||
972 | CONFIG_VIDEO_V4L2=m | ||
973 | CONFIG_VIDEO_V4L1=m | ||
974 | CONFIG_VIDEO_CAPTURE_DRIVERS=y | ||
975 | # CONFIG_VIDEO_ADV_DEBUG is not set | ||
976 | CONFIG_VIDEO_HELPER_CHIPS_AUTO=y | ||
977 | # CONFIG_VIDEO_VIVI is not set | ||
978 | # CONFIG_VIDEO_CPIA is not set | ||
979 | # CONFIG_VIDEO_CPIA2 is not set | ||
980 | # CONFIG_VIDEO_SAA5246A is not set | ||
981 | # CONFIG_VIDEO_SAA5249 is not set | ||
982 | # CONFIG_TUNER_3036 is not set | ||
983 | # CONFIG_V4L_USB_DRIVERS is not set | ||
984 | # CONFIG_SOC_CAMERA is not set | ||
985 | # CONFIG_VIDEO_PXA27x is not set | ||
986 | CONFIG_RADIO_ADAPTERS=y | ||
987 | # CONFIG_USB_DSBR is not set | ||
988 | # CONFIG_USB_SI470X is not set | ||
989 | # CONFIG_DAB is not set | ||
990 | |||
991 | # | ||
992 | # Graphics support | ||
993 | # | ||
994 | # CONFIG_VGASTATE is not set | ||
995 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
996 | CONFIG_FB=y | ||
997 | # CONFIG_FIRMWARE_EDID is not set | ||
998 | # CONFIG_FB_DDC is not set | ||
999 | CONFIG_FB_CFB_FILLRECT=y | ||
1000 | CONFIG_FB_CFB_COPYAREA=y | ||
1001 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
1002 | # CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set | ||
1003 | # CONFIG_FB_SYS_FILLRECT is not set | ||
1004 | # CONFIG_FB_SYS_COPYAREA is not set | ||
1005 | # CONFIG_FB_SYS_IMAGEBLIT is not set | ||
1006 | # CONFIG_FB_FOREIGN_ENDIAN is not set | ||
1007 | # CONFIG_FB_SYS_FOPS is not set | ||
1008 | # CONFIG_FB_SVGALIB is not set | ||
1009 | # CONFIG_FB_MACMODES is not set | ||
1010 | # CONFIG_FB_BACKLIGHT is not set | ||
1011 | # CONFIG_FB_MODE_HELPERS is not set | ||
1012 | # CONFIG_FB_TILEBLITTING is not set | ||
1013 | |||
1014 | # | ||
1015 | # Frame buffer hardware drivers | ||
1016 | # | ||
1017 | # CONFIG_FB_UVESA is not set | ||
1018 | # CONFIG_FB_S1D13XXX is not set | ||
1019 | CONFIG_FB_PXA=y | ||
1020 | # CONFIG_FB_PXA_SMARTPANEL is not set | ||
1021 | CONFIG_FB_PXA_PARAMETERS=y | ||
1022 | # CONFIG_FB_MBX is not set | ||
1023 | # CONFIG_FB_AM200EPD is not set | ||
1024 | # CONFIG_FB_VIRTUAL is not set | ||
1025 | CONFIG_BACKLIGHT_LCD_SUPPORT=y | ||
1026 | # CONFIG_LCD_CLASS_DEVICE is not set | ||
1027 | CONFIG_BACKLIGHT_CLASS_DEVICE=y | ||
1028 | # CONFIG_BACKLIGHT_CORGI is not set | ||
1029 | CONFIG_BACKLIGHT_PWM=y | ||
1030 | |||
1031 | # | ||
1032 | # Display device support | ||
1033 | # | ||
1034 | # CONFIG_DISPLAY_SUPPORT is not set | ||
1035 | |||
1036 | # | ||
1037 | # Console display driver support | ||
1038 | # | ||
1039 | # CONFIG_VGA_CONSOLE is not set | ||
1040 | CONFIG_DUMMY_CONSOLE=y | ||
1041 | CONFIG_FRAMEBUFFER_CONSOLE=y | ||
1042 | # CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set | ||
1043 | # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set | ||
1044 | CONFIG_FONTS=y | ||
1045 | # CONFIG_FONT_8x8 is not set | ||
1046 | # CONFIG_FONT_8x16 is not set | ||
1047 | # CONFIG_FONT_6x11 is not set | ||
1048 | # CONFIG_FONT_7x14 is not set | ||
1049 | # CONFIG_FONT_PEARL_8x8 is not set | ||
1050 | # CONFIG_FONT_ACORN_8x8 is not set | ||
1051 | CONFIG_FONT_MINI_4x6=y | ||
1052 | # CONFIG_FONT_SUN8x16 is not set | ||
1053 | # CONFIG_FONT_SUN12x22 is not set | ||
1054 | # CONFIG_FONT_10x18 is not set | ||
1055 | # CONFIG_LOGO is not set | ||
1056 | |||
1057 | # | ||
1058 | # Sound | ||
1059 | # | ||
1060 | CONFIG_SOUND=y | ||
1061 | |||
1062 | # | ||
1063 | # Advanced Linux Sound Architecture | ||
1064 | # | ||
1065 | CONFIG_SND=y | ||
1066 | CONFIG_SND_TIMER=y | ||
1067 | CONFIG_SND_PCM=y | ||
1068 | # CONFIG_SND_SEQUENCER is not set | ||
1069 | CONFIG_SND_OSSEMUL=y | ||
1070 | CONFIG_SND_MIXER_OSS=y | ||
1071 | CONFIG_SND_PCM_OSS=y | ||
1072 | CONFIG_SND_PCM_OSS_PLUGINS=y | ||
1073 | # CONFIG_SND_DYNAMIC_MINORS is not set | ||
1074 | CONFIG_SND_SUPPORT_OLD_API=y | ||
1075 | CONFIG_SND_VERBOSE_PROCFS=y | ||
1076 | # CONFIG_SND_VERBOSE_PRINTK is not set | ||
1077 | # CONFIG_SND_DEBUG is not set | ||
1078 | |||
1079 | # | ||
1080 | # Generic devices | ||
1081 | # | ||
1082 | # CONFIG_SND_DUMMY is not set | ||
1083 | # CONFIG_SND_MTPAV is not set | ||
1084 | # CONFIG_SND_SERIAL_U16550 is not set | ||
1085 | # CONFIG_SND_MPU401 is not set | ||
1086 | |||
1087 | # | ||
1088 | # ALSA ARM devices | ||
1089 | # | ||
1090 | # CONFIG_SND_PXA2XX_AC97 is not set | ||
1091 | |||
1092 | # | ||
1093 | # SPI devices | ||
1094 | # | ||
1095 | |||
1096 | # | ||
1097 | # USB devices | ||
1098 | # | ||
1099 | # CONFIG_SND_USB_AUDIO is not set | ||
1100 | # CONFIG_SND_USB_CAIAQ is not set | ||
1101 | |||
1102 | # | ||
1103 | # System on Chip audio support | ||
1104 | # | ||
1105 | CONFIG_SND_SOC=y | ||
1106 | CONFIG_SND_PXA2XX_SOC=y | ||
1107 | |||
1108 | # | ||
1109 | # ALSA SoC audio for Freescale SOCs | ||
1110 | # | ||
1111 | |||
1112 | # | ||
1113 | # SoC Audio for the Texas Instruments OMAP | ||
1114 | # | ||
1115 | |||
1116 | # | ||
1117 | # Open Sound System | ||
1118 | # | ||
1119 | # CONFIG_SOUND_PRIME is not set | ||
1120 | CONFIG_HID_SUPPORT=y | ||
1121 | CONFIG_HID=y | ||
1122 | # CONFIG_HID_DEBUG is not set | ||
1123 | # CONFIG_HIDRAW is not set | ||
1124 | |||
1125 | # | ||
1126 | # USB Input Devices | ||
1127 | # | ||
1128 | # CONFIG_USB_HID is not set | ||
1129 | |||
1130 | # | ||
1131 | # USB HID Boot Protocol drivers | ||
1132 | # | ||
1133 | # CONFIG_USB_KBD is not set | ||
1134 | # CONFIG_USB_MOUSE is not set | ||
1135 | CONFIG_USB_SUPPORT=y | ||
1136 | CONFIG_USB_ARCH_HAS_HCD=y | ||
1137 | CONFIG_USB_ARCH_HAS_OHCI=y | ||
1138 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
1139 | CONFIG_USB=y | ||
1140 | # CONFIG_USB_DEBUG is not set | ||
1141 | # CONFIG_USB_ANNOUNCE_NEW_DEVICES is not set | ||
1142 | |||
1143 | # | ||
1144 | # Miscellaneous USB options | ||
1145 | # | ||
1146 | # CONFIG_USB_DEVICEFS is not set | ||
1147 | # CONFIG_USB_DEVICE_CLASS is not set | ||
1148 | # CONFIG_USB_DYNAMIC_MINORS is not set | ||
1149 | # CONFIG_USB_SUSPEND is not set | ||
1150 | # CONFIG_USB_OTG is not set | ||
1151 | # CONFIG_USB_OTG_WHITELIST is not set | ||
1152 | # CONFIG_USB_OTG_BLACKLIST_HUB is not set | ||
1153 | |||
1154 | # | ||
1155 | # USB Host Controller Drivers | ||
1156 | # | ||
1157 | # CONFIG_USB_C67X00_HCD is not set | ||
1158 | # CONFIG_USB_ISP116X_HCD is not set | ||
1159 | # CONFIG_USB_ISP1760_HCD is not set | ||
1160 | CONFIG_USB_OHCI_HCD=y | ||
1161 | # CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set | ||
1162 | # CONFIG_USB_OHCI_BIG_ENDIAN_MMIO is not set | ||
1163 | CONFIG_USB_OHCI_LITTLE_ENDIAN=y | ||
1164 | # CONFIG_USB_SL811_HCD is not set | ||
1165 | # CONFIG_USB_R8A66597_HCD is not set | ||
1166 | |||
1167 | # | ||
1168 | # USB Device Class drivers | ||
1169 | # | ||
1170 | # CONFIG_USB_ACM is not set | ||
1171 | # CONFIG_USB_PRINTER is not set | ||
1172 | |||
1173 | # | ||
1174 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
1175 | # | ||
1176 | |||
1177 | # | ||
1178 | # may also be needed; see USB_STORAGE Help for more information | ||
1179 | # | ||
1180 | # CONFIG_USB_LIBUSUAL is not set | ||
1181 | |||
1182 | # | ||
1183 | # USB Imaging devices | ||
1184 | # | ||
1185 | # CONFIG_USB_MDC800 is not set | ||
1186 | # CONFIG_USB_MON is not set | ||
1187 | |||
1188 | # | ||
1189 | # USB port drivers | ||
1190 | # | ||
1191 | # CONFIG_USB_SERIAL is not set | ||
1192 | |||
1193 | # | ||
1194 | # USB Miscellaneous drivers | ||
1195 | # | ||
1196 | # CONFIG_USB_EMI62 is not set | ||
1197 | # CONFIG_USB_EMI26 is not set | ||
1198 | # CONFIG_USB_ADUTUX is not set | ||
1199 | # CONFIG_USB_AUERSWALD is not set | ||
1200 | # CONFIG_USB_RIO500 is not set | ||
1201 | # CONFIG_USB_LEGOTOWER is not set | ||
1202 | # CONFIG_USB_LCD is not set | ||
1203 | # CONFIG_USB_BERRY_CHARGE is not set | ||
1204 | # CONFIG_USB_LED is not set | ||
1205 | # CONFIG_USB_CYPRESS_CY7C63 is not set | ||
1206 | # CONFIG_USB_CYTHERM is not set | ||
1207 | # CONFIG_USB_PHIDGET is not set | ||
1208 | # CONFIG_USB_IDMOUSE is not set | ||
1209 | # CONFIG_USB_FTDI_ELAN is not set | ||
1210 | # CONFIG_USB_APPLEDISPLAY is not set | ||
1211 | # CONFIG_USB_LD is not set | ||
1212 | # CONFIG_USB_TRANCEVIBRATOR is not set | ||
1213 | # CONFIG_USB_IOWARRIOR is not set | ||
1214 | CONFIG_USB_GADGET=y | ||
1215 | # CONFIG_USB_GADGET_DEBUG_FILES is not set | ||
1216 | CONFIG_USB_GADGET_SELECTED=y | ||
1217 | # CONFIG_USB_GADGET_AMD5536UDC is not set | ||
1218 | # CONFIG_USB_GADGET_ATMEL_USBA is not set | ||
1219 | # CONFIG_USB_GADGET_FSL_USB2 is not set | ||
1220 | # CONFIG_USB_GADGET_NET2280 is not set | ||
1221 | # CONFIG_USB_GADGET_PXA25X is not set | ||
1222 | # CONFIG_USB_GADGET_M66592 is not set | ||
1223 | CONFIG_USB_GADGET_PXA27X=y | ||
1224 | CONFIG_USB_PXA27X=y | ||
1225 | # CONFIG_USB_GADGET_GOKU is not set | ||
1226 | # CONFIG_USB_GADGET_LH7A40X is not set | ||
1227 | # CONFIG_USB_GADGET_OMAP is not set | ||
1228 | # CONFIG_USB_GADGET_S3C2410 is not set | ||
1229 | # CONFIG_USB_GADGET_AT91 is not set | ||
1230 | # CONFIG_USB_GADGET_DUMMY_HCD is not set | ||
1231 | # CONFIG_USB_GADGET_DUALSPEED is not set | ||
1232 | # CONFIG_USB_ZERO is not set | ||
1233 | CONFIG_USB_ETH=y | ||
1234 | # CONFIG_USB_ETH_RNDIS is not set | ||
1235 | # CONFIG_USB_GADGETFS is not set | ||
1236 | # CONFIG_USB_FILE_STORAGE is not set | ||
1237 | # CONFIG_USB_G_SERIAL is not set | ||
1238 | # CONFIG_USB_MIDI_GADGET is not set | ||
1239 | # CONFIG_USB_G_PRINTER is not set | ||
1240 | CONFIG_MMC=y | ||
1241 | # CONFIG_MMC_DEBUG is not set | ||
1242 | CONFIG_MMC_UNSAFE_RESUME=y | ||
1243 | |||
1244 | # | ||
1245 | # MMC/SD Card Drivers | ||
1246 | # | ||
1247 | CONFIG_MMC_BLOCK=y | ||
1248 | CONFIG_MMC_BLOCK_BOUNCE=y | ||
1249 | CONFIG_SDIO_UART=y | ||
1250 | |||
1251 | # | ||
1252 | # MMC/SD Host Controller Drivers | ||
1253 | # | ||
1254 | CONFIG_MMC_PXA=y | ||
1255 | # CONFIG_MMC_SPI is not set | ||
1256 | CONFIG_NEW_LEDS=y | ||
1257 | CONFIG_LEDS_CLASS=y | ||
1258 | |||
1259 | # | ||
1260 | # LED drivers | ||
1261 | # | ||
1262 | # CONFIG_LEDS_GPIO is not set | ||
1263 | |||
1264 | # | ||
1265 | # LED Triggers | ||
1266 | # | ||
1267 | CONFIG_LEDS_TRIGGERS=y | ||
1268 | CONFIG_LEDS_TRIGGER_TIMER=y | ||
1269 | CONFIG_LEDS_TRIGGER_HEARTBEAT=y | ||
1270 | # CONFIG_LEDS_TRIGGER_DEFAULT_ON is not set | ||
1271 | CONFIG_RTC_LIB=y | ||
1272 | CONFIG_RTC_CLASS=y | ||
1273 | CONFIG_RTC_HCTOSYS=y | ||
1274 | CONFIG_RTC_HCTOSYS_DEVICE="rtc0" | ||
1275 | # CONFIG_RTC_DEBUG is not set | ||
1276 | |||
1277 | # | ||
1278 | # RTC interfaces | ||
1279 | # | ||
1280 | CONFIG_RTC_INTF_SYSFS=y | ||
1281 | CONFIG_RTC_INTF_PROC=y | ||
1282 | CONFIG_RTC_INTF_DEV=y | ||
1283 | # CONFIG_RTC_INTF_DEV_UIE_EMUL is not set | ||
1284 | # CONFIG_RTC_DRV_TEST is not set | ||
1285 | |||
1286 | # | ||
1287 | # I2C RTC drivers | ||
1288 | # | ||
1289 | # CONFIG_RTC_DRV_DS1307 is not set | ||
1290 | # CONFIG_RTC_DRV_DS1374 is not set | ||
1291 | # CONFIG_RTC_DRV_DS1672 is not set | ||
1292 | # CONFIG_RTC_DRV_MAX6900 is not set | ||
1293 | # CONFIG_RTC_DRV_RS5C372 is not set | ||
1294 | # CONFIG_RTC_DRV_ISL1208 is not set | ||
1295 | # CONFIG_RTC_DRV_X1205 is not set | ||
1296 | # CONFIG_RTC_DRV_PCF8563 is not set | ||
1297 | # CONFIG_RTC_DRV_PCF8583 is not set | ||
1298 | # CONFIG_RTC_DRV_M41T80 is not set | ||
1299 | # CONFIG_RTC_DRV_S35390A is not set | ||
1300 | |||
1301 | # | ||
1302 | # SPI RTC drivers | ||
1303 | # | ||
1304 | # CONFIG_RTC_DRV_MAX6902 is not set | ||
1305 | # CONFIG_RTC_DRV_R9701 is not set | ||
1306 | # CONFIG_RTC_DRV_RS5C348 is not set | ||
1307 | |||
1308 | # | ||
1309 | # Platform RTC drivers | ||
1310 | # | ||
1311 | # CONFIG_RTC_DRV_CMOS is not set | ||
1312 | # CONFIG_RTC_DRV_DS1511 is not set | ||
1313 | # CONFIG_RTC_DRV_DS1553 is not set | ||
1314 | # CONFIG_RTC_DRV_DS1742 is not set | ||
1315 | # CONFIG_RTC_DRV_STK17TA8 is not set | ||
1316 | # CONFIG_RTC_DRV_M48T86 is not set | ||
1317 | # CONFIG_RTC_DRV_M48T59 is not set | ||
1318 | # CONFIG_RTC_DRV_V3020 is not set | ||
1319 | |||
1320 | # | ||
1321 | # on-CPU RTC drivers | ||
1322 | # | ||
1323 | CONFIG_RTC_DRV_SA1100=m | ||
1324 | # CONFIG_UIO is not set | ||
1325 | |||
1326 | # | ||
1327 | # File systems | ||
1328 | # | ||
1329 | CONFIG_EXT2_FS=y | ||
1330 | # CONFIG_EXT2_FS_XATTR is not set | ||
1331 | # CONFIG_EXT2_FS_XIP is not set | ||
1332 | CONFIG_EXT3_FS=m | ||
1333 | CONFIG_EXT3_FS_XATTR=y | ||
1334 | # CONFIG_EXT3_FS_POSIX_ACL is not set | ||
1335 | # CONFIG_EXT3_FS_SECURITY is not set | ||
1336 | # CONFIG_EXT4DEV_FS is not set | ||
1337 | CONFIG_JBD=m | ||
1338 | CONFIG_FS_MBCACHE=y | ||
1339 | CONFIG_REISERFS_FS=m | ||
1340 | # CONFIG_REISERFS_CHECK is not set | ||
1341 | # CONFIG_REISERFS_PROC_INFO is not set | ||
1342 | CONFIG_REISERFS_FS_XATTR=y | ||
1343 | CONFIG_REISERFS_FS_POSIX_ACL=y | ||
1344 | CONFIG_REISERFS_FS_SECURITY=y | ||
1345 | # CONFIG_JFS_FS is not set | ||
1346 | CONFIG_FS_POSIX_ACL=y | ||
1347 | CONFIG_XFS_FS=m | ||
1348 | # CONFIG_XFS_QUOTA is not set | ||
1349 | # CONFIG_XFS_POSIX_ACL is not set | ||
1350 | # CONFIG_XFS_RT is not set | ||
1351 | # CONFIG_XFS_DEBUG is not set | ||
1352 | # CONFIG_OCFS2_FS is not set | ||
1353 | CONFIG_DNOTIFY=y | ||
1354 | CONFIG_INOTIFY=y | ||
1355 | CONFIG_INOTIFY_USER=y | ||
1356 | # CONFIG_QUOTA is not set | ||
1357 | CONFIG_AUTOFS_FS=y | ||
1358 | CONFIG_AUTOFS4_FS=y | ||
1359 | CONFIG_FUSE_FS=m | ||
1360 | |||
1361 | # | ||
1362 | # CD-ROM/DVD Filesystems | ||
1363 | # | ||
1364 | CONFIG_ISO9660_FS=m | ||
1365 | CONFIG_JOLIET=y | ||
1366 | CONFIG_ZISOFS=y | ||
1367 | # CONFIG_UDF_FS is not set | ||
1368 | |||
1369 | # | ||
1370 | # DOS/FAT/NT Filesystems | ||
1371 | # | ||
1372 | CONFIG_FAT_FS=m | ||
1373 | CONFIG_MSDOS_FS=m | ||
1374 | CONFIG_VFAT_FS=m | ||
1375 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
1376 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
1377 | # CONFIG_NTFS_FS is not set | ||
1378 | |||
1379 | # | ||
1380 | # Pseudo filesystems | ||
1381 | # | ||
1382 | CONFIG_PROC_FS=y | ||
1383 | CONFIG_PROC_SYSCTL=y | ||
1384 | CONFIG_SYSFS=y | ||
1385 | CONFIG_TMPFS=y | ||
1386 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
1387 | # CONFIG_HUGETLB_PAGE is not set | ||
1388 | # CONFIG_CONFIGFS_FS is not set | ||
1389 | |||
1390 | # | ||
1391 | # Miscellaneous filesystems | ||
1392 | # | ||
1393 | # CONFIG_ADFS_FS is not set | ||
1394 | # CONFIG_AFFS_FS is not set | ||
1395 | # CONFIG_HFS_FS is not set | ||
1396 | # CONFIG_HFSPLUS_FS is not set | ||
1397 | # CONFIG_BEFS_FS is not set | ||
1398 | # CONFIG_BFS_FS is not set | ||
1399 | # CONFIG_EFS_FS is not set | ||
1400 | # CONFIG_JFFS2_FS is not set | ||
1401 | CONFIG_CRAMFS=m | ||
1402 | # CONFIG_VXFS_FS is not set | ||
1403 | # CONFIG_MINIX_FS is not set | ||
1404 | # CONFIG_HPFS_FS is not set | ||
1405 | # CONFIG_QNX4FS_FS is not set | ||
1406 | # CONFIG_ROMFS_FS is not set | ||
1407 | # CONFIG_SYSV_FS is not set | ||
1408 | # CONFIG_UFS_FS is not set | ||
1409 | CONFIG_NETWORK_FILESYSTEMS=y | ||
1410 | CONFIG_NFS_FS=y | ||
1411 | CONFIG_NFS_V3=y | ||
1412 | CONFIG_NFS_V3_ACL=y | ||
1413 | # CONFIG_NFS_V4 is not set | ||
1414 | CONFIG_NFSD=m | ||
1415 | CONFIG_NFSD_V2_ACL=y | ||
1416 | CONFIG_NFSD_V3=y | ||
1417 | CONFIG_NFSD_V3_ACL=y | ||
1418 | # CONFIG_NFSD_V4 is not set | ||
1419 | # CONFIG_ROOT_NFS is not set | ||
1420 | CONFIG_LOCKD=y | ||
1421 | CONFIG_LOCKD_V4=y | ||
1422 | CONFIG_EXPORTFS=m | ||
1423 | CONFIG_NFS_ACL_SUPPORT=y | ||
1424 | CONFIG_NFS_COMMON=y | ||
1425 | CONFIG_SUNRPC=y | ||
1426 | # CONFIG_SUNRPC_BIND34 is not set | ||
1427 | # CONFIG_RPCSEC_GSS_KRB5 is not set | ||
1428 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
1429 | CONFIG_SMB_FS=m | ||
1430 | # CONFIG_SMB_NLS_DEFAULT is not set | ||
1431 | CONFIG_CIFS=m | ||
1432 | CONFIG_CIFS_STATS=y | ||
1433 | # CONFIG_CIFS_STATS2 is not set | ||
1434 | CONFIG_CIFS_WEAK_PW_HASH=y | ||
1435 | CONFIG_CIFS_XATTR=y | ||
1436 | CONFIG_CIFS_POSIX=y | ||
1437 | # CONFIG_CIFS_DEBUG2 is not set | ||
1438 | # CONFIG_CIFS_EXPERIMENTAL is not set | ||
1439 | # CONFIG_NCP_FS is not set | ||
1440 | # CONFIG_CODA_FS is not set | ||
1441 | # CONFIG_AFS_FS is not set | ||
1442 | |||
1443 | # | ||
1444 | # Partition Types | ||
1445 | # | ||
1446 | # CONFIG_PARTITION_ADVANCED is not set | ||
1447 | CONFIG_MSDOS_PARTITION=y | ||
1448 | CONFIG_NLS=y | ||
1449 | CONFIG_NLS_DEFAULT="iso8859-1" | ||
1450 | CONFIG_NLS_CODEPAGE_437=m | ||
1451 | CONFIG_NLS_CODEPAGE_737=m | ||
1452 | CONFIG_NLS_CODEPAGE_775=m | ||
1453 | CONFIG_NLS_CODEPAGE_850=m | ||
1454 | CONFIG_NLS_CODEPAGE_852=m | ||
1455 | CONFIG_NLS_CODEPAGE_855=m | ||
1456 | CONFIG_NLS_CODEPAGE_857=m | ||
1457 | CONFIG_NLS_CODEPAGE_860=m | ||
1458 | CONFIG_NLS_CODEPAGE_861=m | ||
1459 | CONFIG_NLS_CODEPAGE_862=m | ||
1460 | CONFIG_NLS_CODEPAGE_863=m | ||
1461 | CONFIG_NLS_CODEPAGE_864=m | ||
1462 | CONFIG_NLS_CODEPAGE_865=m | ||
1463 | CONFIG_NLS_CODEPAGE_866=m | ||
1464 | CONFIG_NLS_CODEPAGE_869=m | ||
1465 | CONFIG_NLS_CODEPAGE_936=m | ||
1466 | CONFIG_NLS_CODEPAGE_950=m | ||
1467 | CONFIG_NLS_CODEPAGE_932=m | ||
1468 | CONFIG_NLS_CODEPAGE_949=m | ||
1469 | CONFIG_NLS_CODEPAGE_874=m | ||
1470 | CONFIG_NLS_ISO8859_8=m | ||
1471 | CONFIG_NLS_CODEPAGE_1250=m | ||
1472 | CONFIG_NLS_CODEPAGE_1251=m | ||
1473 | CONFIG_NLS_ASCII=m | ||
1474 | CONFIG_NLS_ISO8859_1=m | ||
1475 | CONFIG_NLS_ISO8859_2=m | ||
1476 | CONFIG_NLS_ISO8859_3=m | ||
1477 | CONFIG_NLS_ISO8859_4=m | ||
1478 | CONFIG_NLS_ISO8859_5=m | ||
1479 | CONFIG_NLS_ISO8859_6=m | ||
1480 | CONFIG_NLS_ISO8859_7=m | ||
1481 | CONFIG_NLS_ISO8859_9=m | ||
1482 | CONFIG_NLS_ISO8859_13=m | ||
1483 | CONFIG_NLS_ISO8859_14=m | ||
1484 | CONFIG_NLS_ISO8859_15=m | ||
1485 | CONFIG_NLS_KOI8_R=m | ||
1486 | CONFIG_NLS_KOI8_U=m | ||
1487 | CONFIG_NLS_UTF8=m | ||
1488 | # CONFIG_DLM is not set | ||
1489 | |||
1490 | # | ||
1491 | # Kernel hacking | ||
1492 | # | ||
1493 | # CONFIG_PRINTK_TIME is not set | ||
1494 | CONFIG_ENABLE_WARN_DEPRECATED=y | ||
1495 | # CONFIG_ENABLE_MUST_CHECK is not set | ||
1496 | CONFIG_FRAME_WARN=1024 | ||
1497 | # CONFIG_MAGIC_SYSRQ is not set | ||
1498 | # CONFIG_UNUSED_SYMBOLS is not set | ||
1499 | # CONFIG_DEBUG_FS is not set | ||
1500 | # CONFIG_HEADERS_CHECK is not set | ||
1501 | # CONFIG_DEBUG_KERNEL is not set | ||
1502 | # CONFIG_DEBUG_BUGVERBOSE is not set | ||
1503 | CONFIG_FRAME_POINTER=y | ||
1504 | # CONFIG_SAMPLES is not set | ||
1505 | # CONFIG_DEBUG_USER is not set | ||
1506 | |||
1507 | # | ||
1508 | # Security options | ||
1509 | # | ||
1510 | # CONFIG_KEYS is not set | ||
1511 | # CONFIG_SECURITY is not set | ||
1512 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | ||
1513 | CONFIG_CRYPTO=y | ||
1514 | |||
1515 | # | ||
1516 | # Crypto core or helper | ||
1517 | # | ||
1518 | CONFIG_CRYPTO_ALGAPI=m | ||
1519 | CONFIG_CRYPTO_AEAD=m | ||
1520 | CONFIG_CRYPTO_BLKCIPHER=m | ||
1521 | CONFIG_CRYPTO_HASH=m | ||
1522 | CONFIG_CRYPTO_MANAGER=m | ||
1523 | CONFIG_CRYPTO_GF128MUL=m | ||
1524 | CONFIG_CRYPTO_NULL=m | ||
1525 | CONFIG_CRYPTO_CRYPTD=m | ||
1526 | CONFIG_CRYPTO_AUTHENC=m | ||
1527 | CONFIG_CRYPTO_TEST=m | ||
1528 | |||
1529 | # | ||
1530 | # Authenticated Encryption with Associated Data | ||
1531 | # | ||
1532 | # CONFIG_CRYPTO_CCM is not set | ||
1533 | # CONFIG_CRYPTO_GCM is not set | ||
1534 | # CONFIG_CRYPTO_SEQIV is not set | ||
1535 | |||
1536 | # | ||
1537 | # Block modes | ||
1538 | # | ||
1539 | CONFIG_CRYPTO_CBC=m | ||
1540 | # CONFIG_CRYPTO_CTR is not set | ||
1541 | # CONFIG_CRYPTO_CTS is not set | ||
1542 | CONFIG_CRYPTO_ECB=m | ||
1543 | CONFIG_CRYPTO_LRW=m | ||
1544 | CONFIG_CRYPTO_PCBC=m | ||
1545 | CONFIG_CRYPTO_XTS=m | ||
1546 | |||
1547 | # | ||
1548 | # Hash modes | ||
1549 | # | ||
1550 | CONFIG_CRYPTO_HMAC=m | ||
1551 | CONFIG_CRYPTO_XCBC=m | ||
1552 | |||
1553 | # | ||
1554 | # Digest | ||
1555 | # | ||
1556 | CONFIG_CRYPTO_CRC32C=m | ||
1557 | CONFIG_CRYPTO_MD4=m | ||
1558 | CONFIG_CRYPTO_MD5=m | ||
1559 | CONFIG_CRYPTO_MICHAEL_MIC=m | ||
1560 | CONFIG_CRYPTO_SHA1=m | ||
1561 | CONFIG_CRYPTO_SHA256=m | ||
1562 | CONFIG_CRYPTO_SHA512=m | ||
1563 | CONFIG_CRYPTO_TGR192=m | ||
1564 | # CONFIG_CRYPTO_WP512 is not set | ||
1565 | |||
1566 | # | ||
1567 | # Ciphers | ||
1568 | # | ||
1569 | CONFIG_CRYPTO_AES=m | ||
1570 | # CONFIG_CRYPTO_ANUBIS is not set | ||
1571 | CONFIG_CRYPTO_ARC4=m | ||
1572 | CONFIG_CRYPTO_BLOWFISH=m | ||
1573 | # CONFIG_CRYPTO_CAMELLIA is not set | ||
1574 | CONFIG_CRYPTO_CAST5=m | ||
1575 | CONFIG_CRYPTO_CAST6=m | ||
1576 | CONFIG_CRYPTO_DES=m | ||
1577 | CONFIG_CRYPTO_FCRYPT=m | ||
1578 | CONFIG_CRYPTO_KHAZAD=m | ||
1579 | # CONFIG_CRYPTO_SALSA20 is not set | ||
1580 | CONFIG_CRYPTO_SEED=m | ||
1581 | CONFIG_CRYPTO_SERPENT=m | ||
1582 | CONFIG_CRYPTO_TEA=m | ||
1583 | CONFIG_CRYPTO_TWOFISH=m | ||
1584 | CONFIG_CRYPTO_TWOFISH_COMMON=m | ||
1585 | |||
1586 | # | ||
1587 | # Compression | ||
1588 | # | ||
1589 | CONFIG_CRYPTO_DEFLATE=m | ||
1590 | # CONFIG_CRYPTO_LZO is not set | ||
1591 | CONFIG_CRYPTO_HW=y | ||
1592 | |||
1593 | # | ||
1594 | # Library routines | ||
1595 | # | ||
1596 | CONFIG_BITREVERSE=y | ||
1597 | # CONFIG_GENERIC_FIND_FIRST_BIT is not set | ||
1598 | # CONFIG_GENERIC_FIND_NEXT_BIT is not set | ||
1599 | CONFIG_CRC_CCITT=m | ||
1600 | CONFIG_CRC16=m | ||
1601 | # CONFIG_CRC_ITU_T is not set | ||
1602 | CONFIG_CRC32=y | ||
1603 | # CONFIG_CRC7 is not set | ||
1604 | CONFIG_LIBCRC32C=m | ||
1605 | CONFIG_ZLIB_INFLATE=m | ||
1606 | CONFIG_ZLIB_DEFLATE=m | ||
1607 | CONFIG_TEXTSEARCH=y | ||
1608 | CONFIG_TEXTSEARCH_KMP=m | ||
1609 | CONFIG_TEXTSEARCH_BM=m | ||
1610 | CONFIG_TEXTSEARCH_FSM=m | ||
1611 | CONFIG_PLIST=y | ||
1612 | CONFIG_HAS_IOMEM=y | ||
1613 | CONFIG_HAS_IOPORT=y | ||
1614 | CONFIG_HAS_DMA=y | ||
diff --git a/arch/arm/configs/cm_x270_defconfig b/arch/arm/configs/xm_x270_defconfig index 33b201c3b309..aa40d91ce599 100644 --- a/arch/arm/configs/cm_x270_defconfig +++ b/arch/arm/configs/xm_x270_defconfig | |||
@@ -1,13 +1,13 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Linux kernel version: 2.6.22 | 3 | # Linux kernel version: 2.6.25 |
4 | # Wed Jul 18 14:11:48 2007 | 4 | # Sun May 11 15:12:52 2008 |
5 | # | 5 | # |
6 | CONFIG_ARM=y | 6 | CONFIG_ARM=y |
7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | 7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y |
8 | CONFIG_GENERIC_GPIO=y | 8 | CONFIG_GENERIC_GPIO=y |
9 | CONFIG_GENERIC_TIME=y | 9 | CONFIG_GENERIC_TIME=y |
10 | # CONFIG_GENERIC_CLOCKEVENTS is not set | 10 | CONFIG_GENERIC_CLOCKEVENTS=y |
11 | CONFIG_MMU=y | 11 | CONFIG_MMU=y |
12 | # CONFIG_NO_IOPORT is not set | 12 | # CONFIG_NO_IOPORT is not set |
13 | CONFIG_GENERIC_HARDIRQS=y | 13 | CONFIG_GENERIC_HARDIRQS=y |
@@ -21,21 +21,18 @@ CONFIG_RWSEM_GENERIC_SPINLOCK=y | |||
21 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | 21 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set |
22 | CONFIG_GENERIC_HWEIGHT=y | 22 | CONFIG_GENERIC_HWEIGHT=y |
23 | CONFIG_GENERIC_CALIBRATE_DELAY=y | 23 | CONFIG_GENERIC_CALIBRATE_DELAY=y |
24 | CONFIG_ARCH_SUPPORTS_AOUT=y | ||
24 | CONFIG_ZONE_DMA=y | 25 | CONFIG_ZONE_DMA=y |
25 | CONFIG_ARCH_MTD_XIP=y | 26 | CONFIG_ARCH_MTD_XIP=y |
26 | CONFIG_VECTORS_BASE=0xffff0000 | 27 | CONFIG_VECTORS_BASE=0xffff0000 |
27 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | 28 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" |
28 | 29 | ||
29 | # | 30 | # |
30 | # Code maturity level options | 31 | # General setup |
31 | # | 32 | # |
32 | CONFIG_EXPERIMENTAL=y | 33 | CONFIG_EXPERIMENTAL=y |
33 | CONFIG_BROKEN_ON_SMP=y | 34 | CONFIG_BROKEN_ON_SMP=y |
34 | CONFIG_INIT_ENV_ARG_LIMIT=32 | 35 | CONFIG_INIT_ENV_ARG_LIMIT=32 |
35 | |||
36 | # | ||
37 | # General setup | ||
38 | # | ||
39 | CONFIG_LOCALVERSION="" | 36 | CONFIG_LOCALVERSION="" |
40 | # CONFIG_LOCALVERSION_AUTO is not set | 37 | # CONFIG_LOCALVERSION_AUTO is not set |
41 | CONFIG_SWAP=y | 38 | CONFIG_SWAP=y |
@@ -44,13 +41,20 @@ CONFIG_SYSVIPC_SYSCTL=y | |||
44 | # CONFIG_POSIX_MQUEUE is not set | 41 | # CONFIG_POSIX_MQUEUE is not set |
45 | # CONFIG_BSD_PROCESS_ACCT is not set | 42 | # CONFIG_BSD_PROCESS_ACCT is not set |
46 | # CONFIG_TASKSTATS is not set | 43 | # CONFIG_TASKSTATS is not set |
47 | # CONFIG_USER_NS is not set | ||
48 | # CONFIG_AUDIT is not set | 44 | # CONFIG_AUDIT is not set |
49 | CONFIG_IKCONFIG=y | 45 | CONFIG_IKCONFIG=y |
50 | CONFIG_IKCONFIG_PROC=y | 46 | CONFIG_IKCONFIG_PROC=y |
51 | CONFIG_LOG_BUF_SHIFT=17 | 47 | CONFIG_LOG_BUF_SHIFT=14 |
48 | # CONFIG_CGROUPS is not set | ||
49 | CONFIG_GROUP_SCHED=y | ||
50 | CONFIG_FAIR_GROUP_SCHED=y | ||
51 | # CONFIG_RT_GROUP_SCHED is not set | ||
52 | CONFIG_USER_SCHED=y | ||
53 | # CONFIG_CGROUP_SCHED is not set | ||
52 | CONFIG_SYSFS_DEPRECATED=y | 54 | CONFIG_SYSFS_DEPRECATED=y |
55 | CONFIG_SYSFS_DEPRECATED_V2=y | ||
53 | # CONFIG_RELAY is not set | 56 | # CONFIG_RELAY is not set |
57 | # CONFIG_NAMESPACES is not set | ||
54 | CONFIG_BLK_DEV_INITRD=y | 58 | CONFIG_BLK_DEV_INITRD=y |
55 | CONFIG_INITRAMFS_SOURCE="" | 59 | CONFIG_INITRAMFS_SOURCE="" |
56 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | 60 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y |
@@ -58,6 +62,7 @@ CONFIG_SYSCTL=y | |||
58 | CONFIG_EMBEDDED=y | 62 | CONFIG_EMBEDDED=y |
59 | CONFIG_UID16=y | 63 | CONFIG_UID16=y |
60 | CONFIG_SYSCTL_SYSCALL=y | 64 | CONFIG_SYSCTL_SYSCALL=y |
65 | CONFIG_SYSCTL_SYSCALL_CHECK=y | ||
61 | CONFIG_KALLSYMS=y | 66 | CONFIG_KALLSYMS=y |
62 | # CONFIG_KALLSYMS_ALL is not set | 67 | # CONFIG_KALLSYMS_ALL is not set |
63 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | 68 | # CONFIG_KALLSYMS_EXTRA_PASS is not set |
@@ -65,24 +70,34 @@ CONFIG_HOTPLUG=y | |||
65 | CONFIG_PRINTK=y | 70 | CONFIG_PRINTK=y |
66 | CONFIG_BUG=y | 71 | CONFIG_BUG=y |
67 | CONFIG_ELF_CORE=y | 72 | CONFIG_ELF_CORE=y |
73 | # CONFIG_COMPAT_BRK is not set | ||
68 | CONFIG_BASE_FULL=y | 74 | CONFIG_BASE_FULL=y |
69 | CONFIG_FUTEX=y | 75 | CONFIG_FUTEX=y |
70 | CONFIG_ANON_INODES=y | 76 | CONFIG_ANON_INODES=y |
71 | # CONFIG_EPOLL is not set | 77 | CONFIG_EPOLL=y |
72 | # CONFIG_SIGNALFD is not set | 78 | CONFIG_SIGNALFD=y |
73 | # CONFIG_TIMERFD is not set | 79 | CONFIG_TIMERFD=y |
74 | # CONFIG_EVENTFD is not set | 80 | CONFIG_EVENTFD=y |
75 | CONFIG_SHMEM=y | 81 | CONFIG_SHMEM=y |
76 | CONFIG_VM_EVENT_COUNTERS=y | 82 | # CONFIG_VM_EVENT_COUNTERS is not set |
77 | CONFIG_SLAB=y | 83 | # CONFIG_SLUB_DEBUG is not set |
78 | # CONFIG_SLUB is not set | 84 | # CONFIG_SLAB is not set |
85 | CONFIG_SLUB=y | ||
79 | # CONFIG_SLOB is not set | 86 | # CONFIG_SLOB is not set |
87 | # CONFIG_PROFILING is not set | ||
88 | # CONFIG_MARKERS is not set | ||
89 | CONFIG_HAVE_OPROFILE=y | ||
90 | # CONFIG_KPROBES is not set | ||
91 | CONFIG_HAVE_KPROBES=y | ||
92 | CONFIG_HAVE_KRETPROBES=y | ||
93 | # CONFIG_HAVE_DMA_ATTRS is not set | ||
94 | # CONFIG_PROC_PAGE_MONITOR is not set | ||
80 | CONFIG_RT_MUTEXES=y | 95 | CONFIG_RT_MUTEXES=y |
81 | # CONFIG_TINY_SHMEM is not set | 96 | # CONFIG_TINY_SHMEM is not set |
82 | CONFIG_BASE_SMALL=0 | 97 | CONFIG_BASE_SMALL=0 |
83 | CONFIG_MODULES=y | 98 | CONFIG_MODULES=y |
84 | CONFIG_MODULE_UNLOAD=y | 99 | CONFIG_MODULE_UNLOAD=y |
85 | CONFIG_MODULE_FORCE_UNLOAD=y | 100 | # CONFIG_MODULE_FORCE_UNLOAD is not set |
86 | # CONFIG_MODVERSIONS is not set | 101 | # CONFIG_MODVERSIONS is not set |
87 | # CONFIG_MODULE_SRCVERSION_ALL is not set | 102 | # CONFIG_MODULE_SRCVERSION_ALL is not set |
88 | CONFIG_KMOD=y | 103 | CONFIG_KMOD=y |
@@ -99,11 +114,12 @@ CONFIG_IOSCHED_NOOP=y | |||
99 | CONFIG_IOSCHED_AS=y | 114 | CONFIG_IOSCHED_AS=y |
100 | CONFIG_IOSCHED_DEADLINE=y | 115 | CONFIG_IOSCHED_DEADLINE=y |
101 | CONFIG_IOSCHED_CFQ=y | 116 | CONFIG_IOSCHED_CFQ=y |
102 | CONFIG_DEFAULT_AS=y | 117 | # CONFIG_DEFAULT_AS is not set |
103 | # CONFIG_DEFAULT_DEADLINE is not set | 118 | # CONFIG_DEFAULT_DEADLINE is not set |
104 | # CONFIG_DEFAULT_CFQ is not set | 119 | CONFIG_DEFAULT_CFQ=y |
105 | # CONFIG_DEFAULT_NOOP is not set | 120 | # CONFIG_DEFAULT_NOOP is not set |
106 | CONFIG_DEFAULT_IOSCHED="anticipatory" | 121 | CONFIG_DEFAULT_IOSCHED="cfq" |
122 | CONFIG_CLASSIC_RCU=y | ||
107 | 123 | ||
108 | # | 124 | # |
109 | # System Type | 125 | # System Type |
@@ -131,6 +147,8 @@ CONFIG_DEFAULT_IOSCHED="anticipatory" | |||
131 | # CONFIG_ARCH_L7200 is not set | 147 | # CONFIG_ARCH_L7200 is not set |
132 | # CONFIG_ARCH_KS8695 is not set | 148 | # CONFIG_ARCH_KS8695 is not set |
133 | # CONFIG_ARCH_NS9XXX is not set | 149 | # CONFIG_ARCH_NS9XXX is not set |
150 | # CONFIG_ARCH_MXC is not set | ||
151 | # CONFIG_ARCH_ORION5X is not set | ||
134 | # CONFIG_ARCH_PNX4008 is not set | 152 | # CONFIG_ARCH_PNX4008 is not set |
135 | CONFIG_ARCH_PXA=y | 153 | CONFIG_ARCH_PXA=y |
136 | # CONFIG_ARCH_RPC is not set | 154 | # CONFIG_ARCH_RPC is not set |
@@ -140,19 +158,41 @@ CONFIG_ARCH_PXA=y | |||
140 | # CONFIG_ARCH_LH7A40X is not set | 158 | # CONFIG_ARCH_LH7A40X is not set |
141 | # CONFIG_ARCH_DAVINCI is not set | 159 | # CONFIG_ARCH_DAVINCI is not set |
142 | # CONFIG_ARCH_OMAP is not set | 160 | # CONFIG_ARCH_OMAP is not set |
161 | # CONFIG_ARCH_MSM7X00A is not set | ||
143 | CONFIG_DMABOUNCE=y | 162 | CONFIG_DMABOUNCE=y |
144 | 163 | ||
145 | # | 164 | # |
146 | # Intel PXA2xx Implementations | 165 | # Intel PXA2xx/PXA3xx Implementations |
147 | # | 166 | # |
167 | |||
168 | # | ||
169 | # Select target boards | ||
170 | # | ||
171 | # CONFIG_ARCH_GUMSTIX is not set | ||
148 | # CONFIG_ARCH_LUBBOCK is not set | 172 | # CONFIG_ARCH_LUBBOCK is not set |
149 | # CONFIG_MACH_LOGICPD_PXA270 is not set | 173 | # CONFIG_MACH_LOGICPD_PXA270 is not set |
150 | # CONFIG_MACH_MAINSTONE is not set | 174 | # CONFIG_MACH_MAINSTONE is not set |
151 | # CONFIG_ARCH_PXA_IDP is not set | 175 | # CONFIG_ARCH_PXA_IDP is not set |
152 | # CONFIG_PXA_SHARPSL is not set | 176 | # CONFIG_PXA_SHARPSL is not set |
177 | # CONFIG_ARCH_PXA_ESERIES is not set | ||
153 | # CONFIG_MACH_TRIZEPS4 is not set | 178 | # CONFIG_MACH_TRIZEPS4 is not set |
179 | CONFIG_MACH_EM_X270=y | ||
180 | # CONFIG_MACH_COLIBRI is not set | ||
181 | # CONFIG_MACH_ZYLONITE is not set | ||
182 | # CONFIG_MACH_LITTLETON is not set | ||
154 | CONFIG_MACH_ARMCORE=y | 183 | CONFIG_MACH_ARMCORE=y |
184 | # CONFIG_MACH_MAGICIAN is not set | ||
185 | # CONFIG_MACH_PCM027 is not set | ||
155 | CONFIG_PXA27x=y | 186 | CONFIG_PXA27x=y |
187 | # CONFIG_PXA_PWM is not set | ||
188 | |||
189 | # | ||
190 | # Boot options | ||
191 | # | ||
192 | |||
193 | # | ||
194 | # Power management | ||
195 | # | ||
156 | 196 | ||
157 | # | 197 | # |
158 | # Processor Type | 198 | # Processor Type |
@@ -161,6 +201,7 @@ CONFIG_CPU_32=y | |||
161 | CONFIG_CPU_XSCALE=y | 201 | CONFIG_CPU_XSCALE=y |
162 | CONFIG_CPU_32v5=y | 202 | CONFIG_CPU_32v5=y |
163 | CONFIG_CPU_ABRT_EV5T=y | 203 | CONFIG_CPU_ABRT_EV5T=y |
204 | CONFIG_CPU_PABRT_NOIFAR=y | ||
164 | CONFIG_CPU_CACHE_VIVT=y | 205 | CONFIG_CPU_CACHE_VIVT=y |
165 | CONFIG_CPU_TLB_V4WBI=y | 206 | CONFIG_CPU_TLB_V4WBI=y |
166 | CONFIG_CPU_CP15=y | 207 | CONFIG_CPU_CP15=y |
@@ -182,20 +223,40 @@ CONFIG_PCI=y | |||
182 | CONFIG_PCI_SYSCALL=y | 223 | CONFIG_PCI_SYSCALL=y |
183 | CONFIG_PCI_HOST_ITE8152=y | 224 | CONFIG_PCI_HOST_ITE8152=y |
184 | # CONFIG_ARCH_SUPPORTS_MSI is not set | 225 | # CONFIG_ARCH_SUPPORTS_MSI is not set |
226 | CONFIG_PCI_LEGACY=y | ||
185 | # CONFIG_PCI_DEBUG is not set | 227 | # CONFIG_PCI_DEBUG is not set |
228 | CONFIG_PCCARD=m | ||
229 | # CONFIG_PCMCIA_DEBUG is not set | ||
230 | CONFIG_PCMCIA=m | ||
231 | CONFIG_PCMCIA_LOAD_CIS=y | ||
232 | CONFIG_PCMCIA_IOCTL=y | ||
233 | CONFIG_CARDBUS=y | ||
186 | 234 | ||
187 | # | 235 | # |
188 | # PCCARD (PCMCIA/CardBus) support | 236 | # PC-card bridges |
189 | # | 237 | # |
190 | # CONFIG_PCCARD is not set | 238 | CONFIG_YENTA=m |
239 | # CONFIG_YENTA_O2 is not set | ||
240 | # CONFIG_YENTA_RICOH is not set | ||
241 | CONFIG_YENTA_TI=y | ||
242 | # CONFIG_YENTA_ENE_TUNE is not set | ||
243 | # CONFIG_YENTA_TOSHIBA is not set | ||
244 | # CONFIG_PD6729 is not set | ||
245 | # CONFIG_I82092 is not set | ||
246 | CONFIG_PCMCIA_PXA2XX=m | ||
247 | CONFIG_PCCARD_NONSTATIC=m | ||
191 | 248 | ||
192 | # | 249 | # |
193 | # Kernel Features | 250 | # Kernel Features |
194 | # | 251 | # |
195 | # CONFIG_TICK_ONESHOT is not set | 252 | CONFIG_TICK_ONESHOT=y |
253 | CONFIG_NO_HZ=y | ||
254 | # CONFIG_HIGH_RES_TIMERS is not set | ||
255 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y | ||
196 | # CONFIG_PREEMPT is not set | 256 | # CONFIG_PREEMPT is not set |
197 | CONFIG_HZ=100 | 257 | CONFIG_HZ=100 |
198 | # CONFIG_AEABI is not set | 258 | CONFIG_AEABI=y |
259 | CONFIG_OABI_COMPAT=y | ||
199 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | 260 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set |
200 | CONFIG_SELECT_MEMORY_MODEL=y | 261 | CONFIG_SELECT_MEMORY_MODEL=y |
201 | CONFIG_FLATMEM_MANUAL=y | 262 | CONFIG_FLATMEM_MANUAL=y |
@@ -204,6 +265,8 @@ CONFIG_FLATMEM_MANUAL=y | |||
204 | CONFIG_FLATMEM=y | 265 | CONFIG_FLATMEM=y |
205 | CONFIG_FLAT_NODE_MEM_MAP=y | 266 | CONFIG_FLAT_NODE_MEM_MAP=y |
206 | # CONFIG_SPARSEMEM_STATIC is not set | 267 | # CONFIG_SPARSEMEM_STATIC is not set |
268 | # CONFIG_SPARSEMEM_VMEMMAP_ENABLE is not set | ||
269 | CONFIG_PAGEFLAGS_EXTENDED=y | ||
207 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | 270 | CONFIG_SPLIT_PTLOCK_CPUS=4096 |
208 | # CONFIG_RESOURCES_64BIT is not set | 271 | # CONFIG_RESOURCES_64BIT is not set |
209 | CONFIG_ZONE_DMA_FLAG=1 | 272 | CONFIG_ZONE_DMA_FLAG=1 |
@@ -216,11 +279,16 @@ CONFIG_ALIGNMENT_TRAP=y | |||
216 | # | 279 | # |
217 | CONFIG_ZBOOT_ROM_TEXT=0x0 | 280 | CONFIG_ZBOOT_ROM_TEXT=0x0 |
218 | CONFIG_ZBOOT_ROM_BSS=0x0 | 281 | CONFIG_ZBOOT_ROM_BSS=0x0 |
219 | CONFIG_CMDLINE="" | 282 | CONFIG_CMDLINE="root=1f03 mem=32M" |
220 | # CONFIG_XIP_KERNEL is not set | 283 | # CONFIG_XIP_KERNEL is not set |
221 | # CONFIG_KEXEC is not set | 284 | # CONFIG_KEXEC is not set |
222 | 285 | ||
223 | # | 286 | # |
287 | # CPU Frequency scaling | ||
288 | # | ||
289 | # CONFIG_CPU_FREQ is not set | ||
290 | |||
291 | # | ||
224 | # Floating point emulation | 292 | # Floating point emulation |
225 | # | 293 | # |
226 | 294 | ||
@@ -237,16 +305,17 @@ CONFIG_FPE_NWFPE=y | |||
237 | CONFIG_BINFMT_ELF=y | 305 | CONFIG_BINFMT_ELF=y |
238 | # CONFIG_BINFMT_AOUT is not set | 306 | # CONFIG_BINFMT_AOUT is not set |
239 | # CONFIG_BINFMT_MISC is not set | 307 | # CONFIG_BINFMT_MISC is not set |
240 | # CONFIG_ARTHUR is not set | ||
241 | 308 | ||
242 | # | 309 | # |
243 | # Power management options | 310 | # Power management options |
244 | # | 311 | # |
245 | CONFIG_PM=y | 312 | CONFIG_PM=y |
246 | # CONFIG_PM_LEGACY is not set | ||
247 | # CONFIG_PM_DEBUG is not set | 313 | # CONFIG_PM_DEBUG is not set |
248 | # CONFIG_PM_SYSFS_DEPRECATED is not set | 314 | CONFIG_PM_SLEEP=y |
249 | # CONFIG_APM_EMULATION is not set | 315 | CONFIG_SUSPEND=y |
316 | CONFIG_SUSPEND_FREEZER=y | ||
317 | CONFIG_APM_EMULATION=m | ||
318 | CONFIG_ARCH_SUSPEND_POSSIBLE=y | ||
250 | 319 | ||
251 | # | 320 | # |
252 | # Networking | 321 | # Networking |
@@ -257,15 +326,16 @@ CONFIG_NET=y | |||
257 | # Networking options | 326 | # Networking options |
258 | # | 327 | # |
259 | CONFIG_PACKET=y | 328 | CONFIG_PACKET=y |
260 | # CONFIG_PACKET_MMAP is not set | 329 | CONFIG_PACKET_MMAP=y |
261 | CONFIG_UNIX=y | 330 | CONFIG_UNIX=y |
262 | CONFIG_XFRM=y | 331 | CONFIG_XFRM=y |
263 | # CONFIG_XFRM_USER is not set | 332 | # CONFIG_XFRM_USER is not set |
264 | # CONFIG_XFRM_SUB_POLICY is not set | 333 | # CONFIG_XFRM_SUB_POLICY is not set |
265 | # CONFIG_XFRM_MIGRATE is not set | 334 | # CONFIG_XFRM_MIGRATE is not set |
335 | # CONFIG_XFRM_STATISTICS is not set | ||
266 | # CONFIG_NET_KEY is not set | 336 | # CONFIG_NET_KEY is not set |
267 | CONFIG_INET=y | 337 | CONFIG_INET=y |
268 | # CONFIG_IP_MULTICAST is not set | 338 | CONFIG_IP_MULTICAST=y |
269 | # CONFIG_IP_ADVANCED_ROUTER is not set | 339 | # CONFIG_IP_ADVANCED_ROUTER is not set |
270 | CONFIG_IP_FIB_HASH=y | 340 | CONFIG_IP_FIB_HASH=y |
271 | CONFIG_IP_PNP=y | 341 | CONFIG_IP_PNP=y |
@@ -274,6 +344,7 @@ CONFIG_IP_PNP_BOOTP=y | |||
274 | # CONFIG_IP_PNP_RARP is not set | 344 | # CONFIG_IP_PNP_RARP is not set |
275 | # CONFIG_NET_IPIP is not set | 345 | # CONFIG_NET_IPIP is not set |
276 | # CONFIG_NET_IPGRE is not set | 346 | # CONFIG_NET_IPGRE is not set |
347 | # CONFIG_IP_MROUTE is not set | ||
277 | # CONFIG_ARPD is not set | 348 | # CONFIG_ARPD is not set |
278 | # CONFIG_SYN_COOKIES is not set | 349 | # CONFIG_SYN_COOKIES is not set |
279 | # CONFIG_INET_AH is not set | 350 | # CONFIG_INET_AH is not set |
@@ -284,15 +355,13 @@ CONFIG_IP_PNP_BOOTP=y | |||
284 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | 355 | CONFIG_INET_XFRM_MODE_TRANSPORT=y |
285 | CONFIG_INET_XFRM_MODE_TUNNEL=y | 356 | CONFIG_INET_XFRM_MODE_TUNNEL=y |
286 | CONFIG_INET_XFRM_MODE_BEET=y | 357 | CONFIG_INET_XFRM_MODE_BEET=y |
287 | CONFIG_INET_DIAG=y | 358 | # CONFIG_INET_LRO is not set |
288 | CONFIG_INET_TCP_DIAG=y | 359 | # CONFIG_INET_DIAG is not set |
289 | # CONFIG_TCP_CONG_ADVANCED is not set | 360 | # CONFIG_TCP_CONG_ADVANCED is not set |
290 | CONFIG_TCP_CONG_CUBIC=y | 361 | CONFIG_TCP_CONG_CUBIC=y |
291 | CONFIG_DEFAULT_TCP_CONG="cubic" | 362 | CONFIG_DEFAULT_TCP_CONG="cubic" |
292 | # CONFIG_TCP_MD5SIG is not set | 363 | # CONFIG_TCP_MD5SIG is not set |
293 | # CONFIG_IPV6 is not set | 364 | # CONFIG_IPV6 is not set |
294 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
295 | # CONFIG_INET6_TUNNEL is not set | ||
296 | # CONFIG_NETWORK_SECMARK is not set | 365 | # CONFIG_NETWORK_SECMARK is not set |
297 | # CONFIG_NETFILTER is not set | 366 | # CONFIG_NETFILTER is not set |
298 | # CONFIG_IP_DCCP is not set | 367 | # CONFIG_IP_DCCP is not set |
@@ -309,10 +378,6 @@ CONFIG_DEFAULT_TCP_CONG="cubic" | |||
309 | # CONFIG_LAPB is not set | 378 | # CONFIG_LAPB is not set |
310 | # CONFIG_ECONET is not set | 379 | # CONFIG_ECONET is not set |
311 | # CONFIG_WAN_ROUTER is not set | 380 | # CONFIG_WAN_ROUTER is not set |
312 | |||
313 | # | ||
314 | # QoS and/or fair queueing | ||
315 | # | ||
316 | # CONFIG_NET_SCHED is not set | 381 | # CONFIG_NET_SCHED is not set |
317 | 382 | ||
318 | # | 383 | # |
@@ -320,8 +385,33 @@ CONFIG_DEFAULT_TCP_CONG="cubic" | |||
320 | # | 385 | # |
321 | # CONFIG_NET_PKTGEN is not set | 386 | # CONFIG_NET_PKTGEN is not set |
322 | # CONFIG_HAMRADIO is not set | 387 | # CONFIG_HAMRADIO is not set |
388 | # CONFIG_CAN is not set | ||
323 | # CONFIG_IRDA is not set | 389 | # CONFIG_IRDA is not set |
324 | # CONFIG_BT is not set | 390 | CONFIG_BT=m |
391 | CONFIG_BT_L2CAP=m | ||
392 | CONFIG_BT_SCO=m | ||
393 | CONFIG_BT_RFCOMM=m | ||
394 | # CONFIG_BT_RFCOMM_TTY is not set | ||
395 | CONFIG_BT_BNEP=m | ||
396 | # CONFIG_BT_BNEP_MC_FILTER is not set | ||
397 | # CONFIG_BT_BNEP_PROTO_FILTER is not set | ||
398 | CONFIG_BT_HIDP=m | ||
399 | |||
400 | # | ||
401 | # Bluetooth device drivers | ||
402 | # | ||
403 | CONFIG_BT_HCIUSB=m | ||
404 | CONFIG_BT_HCIUSB_SCO=y | ||
405 | # CONFIG_BT_HCIBTSDIO is not set | ||
406 | # CONFIG_BT_HCIUART is not set | ||
407 | # CONFIG_BT_HCIBCM203X is not set | ||
408 | # CONFIG_BT_HCIBPA10X is not set | ||
409 | # CONFIG_BT_HCIBFUSB is not set | ||
410 | # CONFIG_BT_HCIDTL1 is not set | ||
411 | # CONFIG_BT_HCIBT3C is not set | ||
412 | # CONFIG_BT_HCIBLUECARD is not set | ||
413 | # CONFIG_BT_HCIBTUART is not set | ||
414 | # CONFIG_BT_HCIVHCI is not set | ||
325 | # CONFIG_AF_RXRPC is not set | 415 | # CONFIG_AF_RXRPC is not set |
326 | 416 | ||
327 | # | 417 | # |
@@ -330,12 +420,7 @@ CONFIG_DEFAULT_TCP_CONG="cubic" | |||
330 | # CONFIG_CFG80211 is not set | 420 | # CONFIG_CFG80211 is not set |
331 | CONFIG_WIRELESS_EXT=y | 421 | CONFIG_WIRELESS_EXT=y |
332 | # CONFIG_MAC80211 is not set | 422 | # CONFIG_MAC80211 is not set |
333 | CONFIG_IEEE80211=m | 423 | # CONFIG_IEEE80211 is not set |
334 | # CONFIG_IEEE80211_DEBUG is not set | ||
335 | CONFIG_IEEE80211_CRYPT_WEP=m | ||
336 | CONFIG_IEEE80211_CRYPT_CCMP=m | ||
337 | # CONFIG_IEEE80211_CRYPT_TKIP is not set | ||
338 | # CONFIG_IEEE80211_SOFTMAC is not set | ||
339 | # CONFIG_RFKILL is not set | 424 | # CONFIG_RFKILL is not set |
340 | # CONFIG_NET_9P is not set | 425 | # CONFIG_NET_9P is not set |
341 | 426 | ||
@@ -346,38 +431,47 @@ CONFIG_IEEE80211_CRYPT_CCMP=m | |||
346 | # | 431 | # |
347 | # Generic Driver Options | 432 | # Generic Driver Options |
348 | # | 433 | # |
434 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
349 | CONFIG_STANDALONE=y | 435 | CONFIG_STANDALONE=y |
350 | CONFIG_PREVENT_FIRMWARE_BUILD=y | 436 | CONFIG_PREVENT_FIRMWARE_BUILD=y |
351 | CONFIG_FW_LOADER=y | 437 | CONFIG_FW_LOADER=m |
352 | # CONFIG_DEBUG_DRIVER is not set | 438 | # CONFIG_DEBUG_DRIVER is not set |
353 | # CONFIG_DEBUG_DEVRES is not set | 439 | # CONFIG_DEBUG_DEVRES is not set |
354 | # CONFIG_SYS_HYPERVISOR is not set | 440 | # CONFIG_SYS_HYPERVISOR is not set |
355 | # CONFIG_CONNECTOR is not set | 441 | # CONFIG_CONNECTOR is not set |
356 | CONFIG_MTD=m | 442 | CONFIG_MTD=y |
357 | # CONFIG_MTD_DEBUG is not set | 443 | # CONFIG_MTD_DEBUG is not set |
358 | # CONFIG_MTD_CONCAT is not set | 444 | # CONFIG_MTD_CONCAT is not set |
359 | CONFIG_MTD_PARTITIONS=y | 445 | CONFIG_MTD_PARTITIONS=y |
360 | # CONFIG_MTD_REDBOOT_PARTS is not set | 446 | # CONFIG_MTD_REDBOOT_PARTS is not set |
447 | CONFIG_MTD_CMDLINE_PARTS=y | ||
361 | # CONFIG_MTD_AFS_PARTS is not set | 448 | # CONFIG_MTD_AFS_PARTS is not set |
449 | # CONFIG_MTD_AR7_PARTS is not set | ||
362 | 450 | ||
363 | # | 451 | # |
364 | # User Modules And Translation Layers | 452 | # User Modules And Translation Layers |
365 | # | 453 | # |
366 | CONFIG_MTD_CHAR=m | 454 | CONFIG_MTD_CHAR=y |
367 | CONFIG_MTD_BLKDEVS=m | 455 | CONFIG_MTD_BLKDEVS=y |
368 | CONFIG_MTD_BLOCK=m | 456 | CONFIG_MTD_BLOCK=y |
369 | # CONFIG_MTD_BLOCK_RO is not set | ||
370 | # CONFIG_FTL is not set | 457 | # CONFIG_FTL is not set |
371 | # CONFIG_NFTL is not set | 458 | # CONFIG_NFTL is not set |
372 | # CONFIG_INFTL is not set | 459 | # CONFIG_INFTL is not set |
373 | # CONFIG_RFD_FTL is not set | 460 | # CONFIG_RFD_FTL is not set |
374 | # CONFIG_SSFDC is not set | 461 | # CONFIG_SSFDC is not set |
462 | # CONFIG_MTD_OOPS is not set | ||
375 | 463 | ||
376 | # | 464 | # |
377 | # RAM/ROM/Flash chip drivers | 465 | # RAM/ROM/Flash chip drivers |
378 | # | 466 | # |
379 | # CONFIG_MTD_CFI is not set | 467 | CONFIG_MTD_CFI=y |
380 | # CONFIG_MTD_JEDECPROBE is not set | 468 | CONFIG_MTD_JEDECPROBE=y |
469 | CONFIG_MTD_GEN_PROBE=y | ||
470 | CONFIG_MTD_CFI_ADV_OPTIONS=y | ||
471 | CONFIG_MTD_CFI_NOSWAP=y | ||
472 | # CONFIG_MTD_CFI_BE_BYTE_SWAP is not set | ||
473 | # CONFIG_MTD_CFI_LE_BYTE_SWAP is not set | ||
474 | # CONFIG_MTD_CFI_GEOMETRY is not set | ||
381 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | 475 | CONFIG_MTD_MAP_BANK_WIDTH_1=y |
382 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | 476 | CONFIG_MTD_MAP_BANK_WIDTH_2=y |
383 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | 477 | CONFIG_MTD_MAP_BANK_WIDTH_4=y |
@@ -388,15 +482,29 @@ CONFIG_MTD_CFI_I1=y | |||
388 | CONFIG_MTD_CFI_I2=y | 482 | CONFIG_MTD_CFI_I2=y |
389 | # CONFIG_MTD_CFI_I4 is not set | 483 | # CONFIG_MTD_CFI_I4 is not set |
390 | # CONFIG_MTD_CFI_I8 is not set | 484 | # CONFIG_MTD_CFI_I8 is not set |
485 | # CONFIG_MTD_OTP is not set | ||
486 | CONFIG_MTD_CFI_INTELEXT=y | ||
487 | CONFIG_MTD_CFI_AMDSTD=y | ||
488 | CONFIG_MTD_CFI_STAA=y | ||
489 | CONFIG_MTD_CFI_UTIL=y | ||
391 | # CONFIG_MTD_RAM is not set | 490 | # CONFIG_MTD_RAM is not set |
392 | # CONFIG_MTD_ROM is not set | 491 | # CONFIG_MTD_ROM is not set |
393 | # CONFIG_MTD_ABSENT is not set | 492 | # CONFIG_MTD_ABSENT is not set |
493 | # CONFIG_MTD_XIP is not set | ||
394 | 494 | ||
395 | # | 495 | # |
396 | # Mapping drivers for chip access | 496 | # Mapping drivers for chip access |
397 | # | 497 | # |
398 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | 498 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set |
499 | CONFIG_MTD_PHYSMAP=y | ||
500 | CONFIG_MTD_PHYSMAP_START=0x0 | ||
501 | CONFIG_MTD_PHYSMAP_LEN=0x400000 | ||
502 | CONFIG_MTD_PHYSMAP_BANKWIDTH=2 | ||
503 | CONFIG_MTD_PXA2XX=y | ||
504 | # CONFIG_MTD_ARM_INTEGRATOR is not set | ||
505 | # CONFIG_MTD_IMPA7 is not set | ||
399 | # CONFIG_MTD_SHARP_SL is not set | 506 | # CONFIG_MTD_SHARP_SL is not set |
507 | # CONFIG_MTD_INTEL_VR_NOR is not set | ||
400 | # CONFIG_MTD_PLATRAM is not set | 508 | # CONFIG_MTD_PLATRAM is not set |
401 | 509 | ||
402 | # | 510 | # |
@@ -414,18 +522,19 @@ CONFIG_MTD_CFI_I2=y | |||
414 | # CONFIG_MTD_DOC2000 is not set | 522 | # CONFIG_MTD_DOC2000 is not set |
415 | # CONFIG_MTD_DOC2001 is not set | 523 | # CONFIG_MTD_DOC2001 is not set |
416 | # CONFIG_MTD_DOC2001PLUS is not set | 524 | # CONFIG_MTD_DOC2001PLUS is not set |
417 | CONFIG_MTD_NAND=m | 525 | CONFIG_MTD_NAND=y |
418 | # CONFIG_MTD_NAND_VERIFY_WRITE is not set | 526 | # CONFIG_MTD_NAND_VERIFY_WRITE is not set |
419 | # CONFIG_MTD_NAND_ECC_SMC is not set | 527 | # CONFIG_MTD_NAND_ECC_SMC is not set |
420 | # CONFIG_MTD_NAND_MUSEUM_IDS is not set | 528 | # CONFIG_MTD_NAND_MUSEUM_IDS is not set |
421 | # CONFIG_MTD_NAND_H1900 is not set | 529 | # CONFIG_MTD_NAND_H1900 is not set |
422 | CONFIG_MTD_NAND_IDS=m | 530 | CONFIG_MTD_NAND_IDS=y |
423 | # CONFIG_MTD_NAND_DISKONCHIP is not set | 531 | # CONFIG_MTD_NAND_DISKONCHIP is not set |
424 | # CONFIG_MTD_NAND_SHARPSL is not set | 532 | # CONFIG_MTD_NAND_SHARPSL is not set |
425 | # CONFIG_MTD_NAND_CAFE is not set | 533 | # CONFIG_MTD_NAND_CAFE is not set |
426 | CONFIG_MTD_NAND_CM_X270=m | 534 | CONFIG_MTD_NAND_CM_X270=y |
427 | # CONFIG_MTD_NAND_NANDSIM is not set | 535 | # CONFIG_MTD_NAND_NANDSIM is not set |
428 | # CONFIG_MTD_NAND_PLATFORM is not set | 536 | CONFIG_MTD_NAND_PLATFORM=y |
537 | # CONFIG_MTD_ALAUDA is not set | ||
429 | # CONFIG_MTD_ONENAND is not set | 538 | # CONFIG_MTD_ONENAND is not set |
430 | 539 | ||
431 | # | 540 | # |
@@ -446,36 +555,13 @@ CONFIG_BLK_DEV_LOOP=y | |||
446 | # CONFIG_BLK_DEV_UB is not set | 555 | # CONFIG_BLK_DEV_UB is not set |
447 | CONFIG_BLK_DEV_RAM=y | 556 | CONFIG_BLK_DEV_RAM=y |
448 | CONFIG_BLK_DEV_RAM_COUNT=16 | 557 | CONFIG_BLK_DEV_RAM_COUNT=16 |
449 | CONFIG_BLK_DEV_RAM_SIZE=12000 | 558 | CONFIG_BLK_DEV_RAM_SIZE=4096 |
450 | CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 | 559 | # CONFIG_BLK_DEV_XIP is not set |
451 | # CONFIG_CDROM_PKTCDVD is not set | 560 | # CONFIG_CDROM_PKTCDVD is not set |
452 | # CONFIG_ATA_OVER_ETH is not set | 561 | # CONFIG_ATA_OVER_ETH is not set |
453 | CONFIG_IDE=m | 562 | # CONFIG_MISC_DEVICES is not set |
454 | CONFIG_IDE_MAX_HWIFS=4 | 563 | CONFIG_HAVE_IDE=y |
455 | CONFIG_BLK_DEV_IDE=m | 564 | # CONFIG_IDE is not set |
456 | |||
457 | # | ||
458 | # Please see Documentation/ide.txt for help/info on IDE drives | ||
459 | # | ||
460 | # CONFIG_BLK_DEV_IDE_SATA is not set | ||
461 | CONFIG_BLK_DEV_IDEDISK=m | ||
462 | # CONFIG_IDEDISK_MULTI_MODE is not set | ||
463 | CONFIG_BLK_DEV_IDECD=m | ||
464 | # CONFIG_BLK_DEV_IDETAPE is not set | ||
465 | # CONFIG_BLK_DEV_IDEFLOPPY is not set | ||
466 | # CONFIG_BLK_DEV_IDESCSI is not set | ||
467 | # CONFIG_IDE_TASK_IOCTL is not set | ||
468 | CONFIG_IDE_PROC_FS=y | ||
469 | |||
470 | # | ||
471 | # IDE chipset support/bugfixes | ||
472 | # | ||
473 | # CONFIG_IDE_GENERIC is not set | ||
474 | # CONFIG_BLK_DEV_IDEPCI is not set | ||
475 | # CONFIG_IDEPCI_PCIBUS_ORDER is not set | ||
476 | # CONFIG_IDE_ARM is not set | ||
477 | # CONFIG_BLK_DEV_IDEDMA is not set | ||
478 | # CONFIG_BLK_DEV_HD is not set | ||
479 | 565 | ||
480 | # | 566 | # |
481 | # SCSI device support | 567 | # SCSI device support |
@@ -485,7 +571,7 @@ CONFIG_SCSI=y | |||
485 | CONFIG_SCSI_DMA=y | 571 | CONFIG_SCSI_DMA=y |
486 | # CONFIG_SCSI_TGT is not set | 572 | # CONFIG_SCSI_TGT is not set |
487 | # CONFIG_SCSI_NETLINK is not set | 573 | # CONFIG_SCSI_NETLINK is not set |
488 | # CONFIG_SCSI_PROC_FS is not set | 574 | CONFIG_SCSI_PROC_FS=y |
489 | 575 | ||
490 | # | 576 | # |
491 | # SCSI support type (disk, tape, CD-ROM) | 577 | # SCSI support type (disk, tape, CD-ROM) |
@@ -512,12 +598,9 @@ CONFIG_SCSI_WAIT_SCAN=m | |||
512 | # CONFIG_SCSI_SPI_ATTRS is not set | 598 | # CONFIG_SCSI_SPI_ATTRS is not set |
513 | # CONFIG_SCSI_FC_ATTRS is not set | 599 | # CONFIG_SCSI_FC_ATTRS is not set |
514 | # CONFIG_SCSI_ISCSI_ATTRS is not set | 600 | # CONFIG_SCSI_ISCSI_ATTRS is not set |
515 | # CONFIG_SCSI_SAS_ATTRS is not set | ||
516 | # CONFIG_SCSI_SAS_LIBSAS is not set | 601 | # CONFIG_SCSI_SAS_LIBSAS is not set |
517 | 602 | # CONFIG_SCSI_SRP_ATTRS is not set | |
518 | # | 603 | CONFIG_SCSI_LOWLEVEL=y |
519 | # SCSI low-level drivers | ||
520 | # | ||
521 | # CONFIG_ISCSI_TCP is not set | 604 | # CONFIG_ISCSI_TCP is not set |
522 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set | 605 | # CONFIG_BLK_DEV_3W_XXXX_RAID is not set |
523 | # CONFIG_SCSI_3W_9XXX is not set | 606 | # CONFIG_SCSI_3W_9XXX is not set |
@@ -528,6 +611,7 @@ CONFIG_SCSI_WAIT_SCAN=m | |||
528 | # CONFIG_SCSI_AIC79XX is not set | 611 | # CONFIG_SCSI_AIC79XX is not set |
529 | # CONFIG_SCSI_AIC94XX is not set | 612 | # CONFIG_SCSI_AIC94XX is not set |
530 | # CONFIG_SCSI_DPT_I2O is not set | 613 | # CONFIG_SCSI_DPT_I2O is not set |
614 | # CONFIG_SCSI_ADVANSYS is not set | ||
531 | # CONFIG_SCSI_ARCMSR is not set | 615 | # CONFIG_SCSI_ARCMSR is not set |
532 | # CONFIG_MEGARAID_NEWGEN is not set | 616 | # CONFIG_MEGARAID_NEWGEN is not set |
533 | # CONFIG_MEGARAID_LEGACY is not set | 617 | # CONFIG_MEGARAID_LEGACY is not set |
@@ -538,8 +622,10 @@ CONFIG_SCSI_WAIT_SCAN=m | |||
538 | # CONFIG_SCSI_IPS is not set | 622 | # CONFIG_SCSI_IPS is not set |
539 | # CONFIG_SCSI_INITIO is not set | 623 | # CONFIG_SCSI_INITIO is not set |
540 | # CONFIG_SCSI_INIA100 is not set | 624 | # CONFIG_SCSI_INIA100 is not set |
625 | # CONFIG_SCSI_MVSAS is not set | ||
541 | # CONFIG_SCSI_STEX is not set | 626 | # CONFIG_SCSI_STEX is not set |
542 | # CONFIG_SCSI_SYM53C8XX_2 is not set | 627 | # CONFIG_SCSI_SYM53C8XX_2 is not set |
628 | # CONFIG_SCSI_IPR is not set | ||
543 | # CONFIG_SCSI_QLOGIC_1280 is not set | 629 | # CONFIG_SCSI_QLOGIC_1280 is not set |
544 | # CONFIG_SCSI_QLA_FC is not set | 630 | # CONFIG_SCSI_QLA_FC is not set |
545 | # CONFIG_SCSI_QLA_ISCSI is not set | 631 | # CONFIG_SCSI_QLA_ISCSI is not set |
@@ -549,16 +635,69 @@ CONFIG_SCSI_WAIT_SCAN=m | |||
549 | # CONFIG_SCSI_NSP32 is not set | 635 | # CONFIG_SCSI_NSP32 is not set |
550 | # CONFIG_SCSI_DEBUG is not set | 636 | # CONFIG_SCSI_DEBUG is not set |
551 | # CONFIG_SCSI_SRP is not set | 637 | # CONFIG_SCSI_SRP is not set |
552 | # CONFIG_ATA is not set | 638 | # CONFIG_SCSI_LOWLEVEL_PCMCIA is not set |
639 | CONFIG_ATA=m | ||
640 | # CONFIG_ATA_NONSTANDARD is not set | ||
641 | # CONFIG_SATA_PMP is not set | ||
642 | # CONFIG_SATA_AHCI is not set | ||
643 | # CONFIG_SATA_SIL24 is not set | ||
644 | CONFIG_ATA_SFF=y | ||
645 | # CONFIG_SATA_SVW is not set | ||
646 | # CONFIG_ATA_PIIX is not set | ||
647 | # CONFIG_SATA_MV is not set | ||
648 | # CONFIG_SATA_NV is not set | ||
649 | # CONFIG_PDC_ADMA is not set | ||
650 | # CONFIG_SATA_QSTOR is not set | ||
651 | # CONFIG_SATA_PROMISE is not set | ||
652 | # CONFIG_SATA_SX4 is not set | ||
653 | # CONFIG_SATA_SIL is not set | ||
654 | # CONFIG_SATA_SIS is not set | ||
655 | # CONFIG_SATA_ULI is not set | ||
656 | # CONFIG_SATA_VIA is not set | ||
657 | # CONFIG_SATA_VITESSE is not set | ||
658 | # CONFIG_SATA_INIC162X is not set | ||
659 | # CONFIG_PATA_ALI is not set | ||
660 | # CONFIG_PATA_AMD is not set | ||
661 | # CONFIG_PATA_ARTOP is not set | ||
662 | # CONFIG_PATA_ATIIXP is not set | ||
663 | # CONFIG_PATA_CMD640_PCI is not set | ||
664 | # CONFIG_PATA_CMD64X is not set | ||
665 | # CONFIG_PATA_CS5520 is not set | ||
666 | # CONFIG_PATA_CS5530 is not set | ||
667 | # CONFIG_PATA_CYPRESS is not set | ||
668 | # CONFIG_PATA_EFAR is not set | ||
669 | # CONFIG_ATA_GENERIC is not set | ||
670 | # CONFIG_PATA_HPT366 is not set | ||
671 | # CONFIG_PATA_HPT37X is not set | ||
672 | # CONFIG_PATA_HPT3X2N is not set | ||
673 | # CONFIG_PATA_HPT3X3 is not set | ||
674 | # CONFIG_PATA_IT821X is not set | ||
675 | # CONFIG_PATA_IT8213 is not set | ||
676 | # CONFIG_PATA_JMICRON is not set | ||
677 | # CONFIG_PATA_TRIFLEX is not set | ||
678 | # CONFIG_PATA_MARVELL is not set | ||
679 | # CONFIG_PATA_MPIIX is not set | ||
680 | # CONFIG_PATA_OLDPIIX is not set | ||
681 | # CONFIG_PATA_NETCELL is not set | ||
682 | # CONFIG_PATA_NINJA32 is not set | ||
683 | # CONFIG_PATA_NS87410 is not set | ||
684 | # CONFIG_PATA_NS87415 is not set | ||
685 | # CONFIG_PATA_OPTI is not set | ||
686 | # CONFIG_PATA_OPTIDMA is not set | ||
687 | CONFIG_PATA_PCMCIA=m | ||
688 | # CONFIG_PATA_PDC_OLD is not set | ||
689 | # CONFIG_PATA_RADISYS is not set | ||
690 | # CONFIG_PATA_RZ1000 is not set | ||
691 | # CONFIG_PATA_SC1200 is not set | ||
692 | # CONFIG_PATA_SERVERWORKS is not set | ||
693 | # CONFIG_PATA_PDC2027X is not set | ||
694 | # CONFIG_PATA_SIL680 is not set | ||
695 | # CONFIG_PATA_SIS is not set | ||
696 | # CONFIG_PATA_VIA is not set | ||
697 | # CONFIG_PATA_WINBOND is not set | ||
698 | # CONFIG_PATA_PLATFORM is not set | ||
553 | # CONFIG_MD is not set | 699 | # CONFIG_MD is not set |
554 | |||
555 | # | ||
556 | # Fusion MPT device support | ||
557 | # | ||
558 | # CONFIG_FUSION is not set | 700 | # CONFIG_FUSION is not set |
559 | # CONFIG_FUSION_SPI is not set | ||
560 | # CONFIG_FUSION_FC is not set | ||
561 | # CONFIG_FUSION_SAS is not set | ||
562 | 701 | ||
563 | # | 702 | # |
564 | # IEEE 1394 (FireWire) support | 703 | # IEEE 1394 (FireWire) support |
@@ -573,6 +712,7 @@ CONFIG_NETDEVICES=y | |||
573 | # CONFIG_MACVLAN is not set | 712 | # CONFIG_MACVLAN is not set |
574 | # CONFIG_EQUALIZER is not set | 713 | # CONFIG_EQUALIZER is not set |
575 | # CONFIG_TUN is not set | 714 | # CONFIG_TUN is not set |
715 | # CONFIG_VETH is not set | ||
576 | # CONFIG_ARCNET is not set | 716 | # CONFIG_ARCNET is not set |
577 | # CONFIG_PHYLIB is not set | 717 | # CONFIG_PHYLIB is not set |
578 | CONFIG_NET_ETHERNET=y | 718 | CONFIG_NET_ETHERNET=y |
@@ -584,64 +724,65 @@ CONFIG_MII=y | |||
584 | # CONFIG_NET_VENDOR_3COM is not set | 724 | # CONFIG_NET_VENDOR_3COM is not set |
585 | # CONFIG_SMC91X is not set | 725 | # CONFIG_SMC91X is not set |
586 | CONFIG_DM9000=y | 726 | CONFIG_DM9000=y |
727 | CONFIG_DM9000_DEBUGLEVEL=1 | ||
587 | # CONFIG_SMC911X is not set | 728 | # CONFIG_SMC911X is not set |
588 | # CONFIG_NET_TULIP is not set | 729 | # CONFIG_NET_TULIP is not set |
589 | # CONFIG_HP100 is not set | 730 | # CONFIG_HP100 is not set |
731 | # CONFIG_IBM_NEW_EMAC_ZMII is not set | ||
732 | # CONFIG_IBM_NEW_EMAC_RGMII is not set | ||
733 | # CONFIG_IBM_NEW_EMAC_TAH is not set | ||
734 | # CONFIG_IBM_NEW_EMAC_EMAC4 is not set | ||
590 | CONFIG_NET_PCI=y | 735 | CONFIG_NET_PCI=y |
591 | # CONFIG_PCNET32 is not set | 736 | # CONFIG_PCNET32 is not set |
592 | # CONFIG_AMD8111_ETH is not set | 737 | # CONFIG_AMD8111_ETH is not set |
593 | # CONFIG_ADAPTEC_STARFIRE is not set | 738 | # CONFIG_ADAPTEC_STARFIRE is not set |
594 | # CONFIG_B44 is not set | 739 | # CONFIG_B44 is not set |
595 | # CONFIG_FORCEDETH is not set | 740 | # CONFIG_FORCEDETH is not set |
596 | # CONFIG_DGRS is not set | ||
597 | # CONFIG_EEPRO100 is not set | 741 | # CONFIG_EEPRO100 is not set |
598 | # CONFIG_E100 is not set | 742 | # CONFIG_E100 is not set |
599 | # CONFIG_FEALNX is not set | 743 | # CONFIG_FEALNX is not set |
600 | # CONFIG_NATSEMI is not set | 744 | # CONFIG_NATSEMI is not set |
601 | # CONFIG_NE2K_PCI is not set | 745 | # CONFIG_NE2K_PCI is not set |
602 | # CONFIG_8139CP is not set | 746 | # CONFIG_8139CP is not set |
603 | CONFIG_8139TOO=m | 747 | CONFIG_8139TOO=y |
604 | # CONFIG_8139TOO_PIO is not set | 748 | # CONFIG_8139TOO_PIO is not set |
605 | # CONFIG_8139TOO_TUNE_TWISTER is not set | 749 | # CONFIG_8139TOO_TUNE_TWISTER is not set |
606 | # CONFIG_8139TOO_8129 is not set | 750 | # CONFIG_8139TOO_8129 is not set |
607 | # CONFIG_8139_OLD_RX_RESET is not set | 751 | # CONFIG_8139_OLD_RX_RESET is not set |
752 | # CONFIG_R6040 is not set | ||
608 | # CONFIG_SIS900 is not set | 753 | # CONFIG_SIS900 is not set |
609 | # CONFIG_EPIC100 is not set | 754 | # CONFIG_EPIC100 is not set |
610 | # CONFIG_SUNDANCE is not set | 755 | # CONFIG_SUNDANCE is not set |
611 | # CONFIG_TLAN is not set | 756 | # CONFIG_TLAN is not set |
612 | # CONFIG_VIA_RHINE is not set | 757 | # CONFIG_VIA_RHINE is not set |
613 | # CONFIG_SC92031 is not set | 758 | # CONFIG_SC92031 is not set |
614 | CONFIG_NETDEV_1000=y | 759 | # CONFIG_NETDEV_1000 is not set |
615 | # CONFIG_ACENIC is not set | 760 | # CONFIG_NETDEV_10000 is not set |
616 | # CONFIG_DL2K is not set | ||
617 | # CONFIG_E1000 is not set | ||
618 | # CONFIG_NS83820 is not set | ||
619 | # CONFIG_HAMACHI is not set | ||
620 | # CONFIG_YELLOWFIN is not set | ||
621 | # CONFIG_R8169 is not set | ||
622 | # CONFIG_SIS190 is not set | ||
623 | # CONFIG_SKGE is not set | ||
624 | # CONFIG_SKY2 is not set | ||
625 | # CONFIG_VIA_VELOCITY is not set | ||
626 | # CONFIG_TIGON3 is not set | ||
627 | # CONFIG_BNX2 is not set | ||
628 | # CONFIG_QLA3XXX is not set | ||
629 | # CONFIG_ATL1 is not set | ||
630 | CONFIG_NETDEV_10000=y | ||
631 | # CONFIG_CHELSIO_T1 is not set | ||
632 | # CONFIG_CHELSIO_T3 is not set | ||
633 | # CONFIG_IXGB is not set | ||
634 | # CONFIG_S2IO is not set | ||
635 | # CONFIG_MYRI10GE is not set | ||
636 | # CONFIG_NETXEN_NIC is not set | ||
637 | # CONFIG_MLX4_CORE is not set | ||
638 | # CONFIG_TR is not set | 761 | # CONFIG_TR is not set |
639 | 762 | ||
640 | # | 763 | # |
641 | # Wireless LAN | 764 | # Wireless LAN |
642 | # | 765 | # |
643 | # CONFIG_WLAN_PRE80211 is not set | 766 | # CONFIG_WLAN_PRE80211 is not set |
644 | # CONFIG_WLAN_80211 is not set | 767 | CONFIG_WLAN_80211=y |
768 | # CONFIG_PCMCIA_RAYCS is not set | ||
769 | # CONFIG_IPW2100 is not set | ||
770 | # CONFIG_IPW2200 is not set | ||
771 | CONFIG_LIBERTAS=m | ||
772 | # CONFIG_LIBERTAS_USB is not set | ||
773 | # CONFIG_LIBERTAS_CS is not set | ||
774 | CONFIG_LIBERTAS_SDIO=m | ||
775 | # CONFIG_LIBERTAS_DEBUG is not set | ||
776 | # CONFIG_HERMES is not set | ||
777 | # CONFIG_ATMEL is not set | ||
778 | # CONFIG_AIRO_CS is not set | ||
779 | # CONFIG_PCMCIA_WL3501 is not set | ||
780 | # CONFIG_PRISM54 is not set | ||
781 | # CONFIG_USB_ZD1201 is not set | ||
782 | # CONFIG_USB_NET_RNDIS_WLAN is not set | ||
783 | # CONFIG_IWLWIFI is not set | ||
784 | # CONFIG_IWLWIFI_LEDS is not set | ||
785 | # CONFIG_HOSTAP is not set | ||
645 | 786 | ||
646 | # | 787 | # |
647 | # USB Network Adapters | 788 | # USB Network Adapters |
@@ -650,15 +791,24 @@ CONFIG_NETDEV_10000=y | |||
650 | # CONFIG_USB_KAWETH is not set | 791 | # CONFIG_USB_KAWETH is not set |
651 | # CONFIG_USB_PEGASUS is not set | 792 | # CONFIG_USB_PEGASUS is not set |
652 | # CONFIG_USB_RTL8150 is not set | 793 | # CONFIG_USB_RTL8150 is not set |
653 | # CONFIG_USB_USBNET_MII is not set | ||
654 | # CONFIG_USB_USBNET is not set | 794 | # CONFIG_USB_USBNET is not set |
795 | # CONFIG_NET_PCMCIA is not set | ||
655 | # CONFIG_WAN is not set | 796 | # CONFIG_WAN is not set |
656 | # CONFIG_FDDI is not set | 797 | # CONFIG_FDDI is not set |
657 | # CONFIG_HIPPI is not set | 798 | # CONFIG_HIPPI is not set |
658 | # CONFIG_PPP is not set | 799 | CONFIG_PPP=m |
800 | CONFIG_PPP_MULTILINK=y | ||
801 | CONFIG_PPP_FILTER=y | ||
802 | CONFIG_PPP_ASYNC=m | ||
803 | # CONFIG_PPP_SYNC_TTY is not set | ||
804 | CONFIG_PPP_DEFLATE=m | ||
805 | CONFIG_PPP_BSDCOMP=m | ||
806 | # CONFIG_PPP_MPPE is not set | ||
807 | # CONFIG_PPPOE is not set | ||
808 | # CONFIG_PPPOL2TP is not set | ||
659 | # CONFIG_SLIP is not set | 809 | # CONFIG_SLIP is not set |
810 | CONFIG_SLHC=m | ||
660 | # CONFIG_NET_FC is not set | 811 | # CONFIG_NET_FC is not set |
661 | # CONFIG_SHAPER is not set | ||
662 | # CONFIG_NETCONSOLE is not set | 812 | # CONFIG_NETCONSOLE is not set |
663 | # CONFIG_NETPOLL is not set | 813 | # CONFIG_NETPOLL is not set |
664 | # CONFIG_NET_POLL_CONTROLLER is not set | 814 | # CONFIG_NET_POLL_CONTROLLER is not set |
@@ -674,20 +824,32 @@ CONFIG_INPUT=y | |||
674 | # | 824 | # |
675 | # Userland interfaces | 825 | # Userland interfaces |
676 | # | 826 | # |
677 | # CONFIG_INPUT_MOUSEDEV is not set | 827 | CONFIG_INPUT_MOUSEDEV=y |
828 | CONFIG_INPUT_MOUSEDEV_PSAUX=y | ||
829 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
830 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
678 | # CONFIG_INPUT_JOYDEV is not set | 831 | # CONFIG_INPUT_JOYDEV is not set |
679 | # CONFIG_INPUT_TSDEV is not set | ||
680 | CONFIG_INPUT_EVDEV=y | 832 | CONFIG_INPUT_EVDEV=y |
681 | # CONFIG_INPUT_EVBUG is not set | 833 | # CONFIG_INPUT_EVBUG is not set |
834 | # CONFIG_INPUT_APMPOWER is not set | ||
682 | 835 | ||
683 | # | 836 | # |
684 | # Input Device Drivers | 837 | # Input Device Drivers |
685 | # | 838 | # |
686 | # CONFIG_INPUT_KEYBOARD is not set | 839 | CONFIG_INPUT_KEYBOARD=y |
840 | CONFIG_KEYBOARD_ATKBD=y | ||
841 | # CONFIG_KEYBOARD_SUNKBD is not set | ||
842 | # CONFIG_KEYBOARD_LKKBD is not set | ||
843 | # CONFIG_KEYBOARD_XTKBD is not set | ||
844 | # CONFIG_KEYBOARD_NEWTON is not set | ||
845 | # CONFIG_KEYBOARD_STOWAWAY is not set | ||
846 | CONFIG_KEYBOARD_PXA27x=m | ||
847 | # CONFIG_KEYBOARD_GPIO is not set | ||
687 | # CONFIG_INPUT_MOUSE is not set | 848 | # CONFIG_INPUT_MOUSE is not set |
688 | # CONFIG_INPUT_JOYSTICK is not set | 849 | # CONFIG_INPUT_JOYSTICK is not set |
689 | # CONFIG_INPUT_TABLET is not set | 850 | # CONFIG_INPUT_TABLET is not set |
690 | CONFIG_INPUT_TOUCHSCREEN=y | 851 | CONFIG_INPUT_TOUCHSCREEN=y |
852 | # CONFIG_TOUCHSCREEN_FUJITSU is not set | ||
691 | # CONFIG_TOUCHSCREEN_GUNZE is not set | 853 | # CONFIG_TOUCHSCREEN_GUNZE is not set |
692 | # CONFIG_TOUCHSCREEN_ELO is not set | 854 | # CONFIG_TOUCHSCREEN_ELO is not set |
693 | # CONFIG_TOUCHSCREEN_MTOUCH is not set | 855 | # CONFIG_TOUCHSCREEN_MTOUCH is not set |
@@ -696,13 +858,22 @@ CONFIG_INPUT_TOUCHSCREEN=y | |||
696 | # CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set | 858 | # CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set |
697 | # CONFIG_TOUCHSCREEN_TOUCHWIN is not set | 859 | # CONFIG_TOUCHSCREEN_TOUCHWIN is not set |
698 | CONFIG_TOUCHSCREEN_UCB1400=m | 860 | CONFIG_TOUCHSCREEN_UCB1400=m |
861 | CONFIG_TOUCHSCREEN_WM97XX=m | ||
862 | # CONFIG_TOUCHSCREEN_WM9705 is not set | ||
863 | CONFIG_TOUCHSCREEN_WM9712=y | ||
864 | # CONFIG_TOUCHSCREEN_WM9713 is not set | ||
865 | # CONFIG_TOUCHSCREEN_WM97XX_MAINSTONE is not set | ||
699 | # CONFIG_TOUCHSCREEN_USB_COMPOSITE is not set | 866 | # CONFIG_TOUCHSCREEN_USB_COMPOSITE is not set |
700 | # CONFIG_INPUT_MISC is not set | 867 | # CONFIG_INPUT_MISC is not set |
701 | 868 | ||
702 | # | 869 | # |
703 | # Hardware I/O ports | 870 | # Hardware I/O ports |
704 | # | 871 | # |
705 | # CONFIG_SERIO is not set | 872 | CONFIG_SERIO=y |
873 | # CONFIG_SERIO_SERPORT is not set | ||
874 | # CONFIG_SERIO_PCIPS2 is not set | ||
875 | CONFIG_SERIO_LIBPS2=y | ||
876 | # CONFIG_SERIO_RAW is not set | ||
706 | # CONFIG_GAMEPORT is not set | 877 | # CONFIG_GAMEPORT is not set |
707 | 878 | ||
708 | # | 879 | # |
@@ -712,7 +883,9 @@ CONFIG_VT=y | |||
712 | CONFIG_VT_CONSOLE=y | 883 | CONFIG_VT_CONSOLE=y |
713 | CONFIG_HW_CONSOLE=y | 884 | CONFIG_HW_CONSOLE=y |
714 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | 885 | # CONFIG_VT_HW_CONSOLE_BINDING is not set |
886 | CONFIG_DEVKMEM=y | ||
715 | # CONFIG_SERIAL_NONSTANDARD is not set | 887 | # CONFIG_SERIAL_NONSTANDARD is not set |
888 | # CONFIG_NOZOMI is not set | ||
716 | 889 | ||
717 | # | 890 | # |
718 | # Serial drivers | 891 | # Serial drivers |
@@ -729,83 +902,141 @@ CONFIG_SERIAL_CORE_CONSOLE=y | |||
729 | # CONFIG_SERIAL_JSM is not set | 902 | # CONFIG_SERIAL_JSM is not set |
730 | CONFIG_UNIX98_PTYS=y | 903 | CONFIG_UNIX98_PTYS=y |
731 | CONFIG_LEGACY_PTYS=y | 904 | CONFIG_LEGACY_PTYS=y |
732 | CONFIG_LEGACY_PTY_COUNT=256 | 905 | CONFIG_LEGACY_PTY_COUNT=16 |
733 | # CONFIG_IPMI_HANDLER is not set | 906 | # CONFIG_IPMI_HANDLER is not set |
734 | # CONFIG_WATCHDOG is not set | 907 | # CONFIG_HW_RANDOM is not set |
735 | CONFIG_HW_RANDOM=m | ||
736 | # CONFIG_NVRAM is not set | 908 | # CONFIG_NVRAM is not set |
737 | # CONFIG_R3964 is not set | 909 | # CONFIG_R3964 is not set |
738 | # CONFIG_APPLICOM is not set | 910 | # CONFIG_APPLICOM is not set |
739 | # CONFIG_DRM is not set | 911 | |
912 | # | ||
913 | # PCMCIA character devices | ||
914 | # | ||
915 | # CONFIG_SYNCLINK_CS is not set | ||
916 | # CONFIG_CARDMAN_4000 is not set | ||
917 | # CONFIG_CARDMAN_4040 is not set | ||
918 | # CONFIG_IPWIRELESS is not set | ||
740 | # CONFIG_RAW_DRIVER is not set | 919 | # CONFIG_RAW_DRIVER is not set |
741 | # CONFIG_TCG_TPM is not set | 920 | # CONFIG_TCG_TPM is not set |
742 | CONFIG_DEVPORT=y | 921 | CONFIG_DEVPORT=y |
743 | # CONFIG_I2C is not set | 922 | CONFIG_I2C=y |
923 | CONFIG_I2C_BOARDINFO=y | ||
924 | CONFIG_I2C_CHARDEV=m | ||
925 | |||
926 | # | ||
927 | # I2C Hardware Bus support | ||
928 | # | ||
929 | # CONFIG_I2C_ALI1535 is not set | ||
930 | # CONFIG_I2C_ALI1563 is not set | ||
931 | # CONFIG_I2C_ALI15X3 is not set | ||
932 | # CONFIG_I2C_AMD756 is not set | ||
933 | # CONFIG_I2C_AMD8111 is not set | ||
934 | # CONFIG_I2C_GPIO is not set | ||
935 | # CONFIG_I2C_I801 is not set | ||
936 | # CONFIG_I2C_I810 is not set | ||
937 | CONFIG_I2C_PXA=y | ||
938 | # CONFIG_I2C_PXA_SLAVE is not set | ||
939 | # CONFIG_I2C_PIIX4 is not set | ||
940 | # CONFIG_I2C_NFORCE2 is not set | ||
941 | # CONFIG_I2C_OCORES is not set | ||
942 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
943 | # CONFIG_I2C_PROSAVAGE is not set | ||
944 | # CONFIG_I2C_SAVAGE4 is not set | ||
945 | # CONFIG_I2C_SIMTEC is not set | ||
946 | # CONFIG_I2C_SIS5595 is not set | ||
947 | # CONFIG_I2C_SIS630 is not set | ||
948 | # CONFIG_I2C_SIS96X is not set | ||
949 | # CONFIG_I2C_TAOS_EVM is not set | ||
950 | # CONFIG_I2C_STUB is not set | ||
951 | # CONFIG_I2C_TINY_USB is not set | ||
952 | # CONFIG_I2C_VIA is not set | ||
953 | # CONFIG_I2C_VIAPRO is not set | ||
954 | # CONFIG_I2C_VOODOO3 is not set | ||
955 | # CONFIG_I2C_PCA_PLATFORM is not set | ||
956 | |||
957 | # | ||
958 | # Miscellaneous I2C Chip support | ||
959 | # | ||
960 | # CONFIG_DS1682 is not set | ||
961 | # CONFIG_SENSORS_EEPROM is not set | ||
962 | # CONFIG_SENSORS_PCF8574 is not set | ||
963 | # CONFIG_PCF8575 is not set | ||
964 | # CONFIG_SENSORS_PCF8591 is not set | ||
965 | # CONFIG_TPS65010 is not set | ||
966 | # CONFIG_SENSORS_MAX6875 is not set | ||
967 | # CONFIG_SENSORS_TSL2550 is not set | ||
968 | # CONFIG_I2C_DEBUG_CORE is not set | ||
969 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
970 | # CONFIG_I2C_DEBUG_BUS is not set | ||
971 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
972 | # CONFIG_SPI is not set | ||
973 | CONFIG_HAVE_GPIO_LIB=y | ||
744 | 974 | ||
745 | # | 975 | # |
746 | # SPI support | 976 | # GPIO Support |
747 | # | 977 | # |
748 | # CONFIG_SPI is not set | 978 | # CONFIG_DEBUG_GPIO is not set |
749 | # CONFIG_SPI_MASTER is not set | ||
750 | # CONFIG_W1 is not set | ||
751 | # CONFIG_HWMON is not set | ||
752 | CONFIG_MISC_DEVICES=y | ||
753 | # CONFIG_PHANTOM is not set | ||
754 | # CONFIG_EEPROM_93CX6 is not set | ||
755 | # CONFIG_SGI_IOC4 is not set | ||
756 | # CONFIG_TIFM_CORE is not set | ||
757 | 979 | ||
758 | # | 980 | # |
759 | # Multifunction device drivers | 981 | # I2C GPIO expanders: |
760 | # | 982 | # |
761 | # CONFIG_MFD_SM501 is not set | 983 | # CONFIG_GPIO_PCA953X is not set |
984 | # CONFIG_GPIO_PCF857X is not set | ||
762 | 985 | ||
763 | # | 986 | # |
764 | # LED devices | 987 | # SPI GPIO expanders: |
765 | # | 988 | # |
766 | CONFIG_NEW_LEDS=y | 989 | # CONFIG_W1 is not set |
767 | CONFIG_LEDS_CLASS=y | 990 | # CONFIG_POWER_SUPPLY is not set |
991 | # CONFIG_HWMON is not set | ||
992 | # CONFIG_WATCHDOG is not set | ||
768 | 993 | ||
769 | # | 994 | # |
770 | # LED drivers | 995 | # Sonics Silicon Backplane |
771 | # | 996 | # |
772 | CONFIG_LEDS_CM_X270=y | 997 | CONFIG_SSB_POSSIBLE=y |
998 | # CONFIG_SSB is not set | ||
773 | 999 | ||
774 | # | 1000 | # |
775 | # LED Triggers | 1001 | # Multifunction device drivers |
776 | # | 1002 | # |
777 | CONFIG_LEDS_TRIGGERS=y | 1003 | # CONFIG_MFD_SM501 is not set |
778 | # CONFIG_LEDS_TRIGGER_TIMER is not set | 1004 | # CONFIG_MFD_ASIC3 is not set |
779 | # CONFIG_LEDS_TRIGGER_IDE_DISK is not set | 1005 | # CONFIG_HTC_EGPIO is not set |
780 | CONFIG_LEDS_TRIGGER_HEARTBEAT=y | 1006 | # CONFIG_HTC_PASIC3 is not set |
781 | 1007 | ||
782 | # | 1008 | # |
783 | # Multimedia devices | 1009 | # Multimedia devices |
784 | # | 1010 | # |
1011 | |||
1012 | # | ||
1013 | # Multimedia core support | ||
1014 | # | ||
785 | # CONFIG_VIDEO_DEV is not set | 1015 | # CONFIG_VIDEO_DEV is not set |
786 | # CONFIG_DVB_CORE is not set | 1016 | # CONFIG_DVB_CORE is not set |
787 | CONFIG_DAB=y | ||
788 | # CONFIG_USB_DABUSB is not set | ||
789 | 1017 | ||
790 | # | 1018 | # |
791 | # Graphics support | 1019 | # Multimedia drivers |
792 | # | 1020 | # |
793 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | 1021 | # CONFIG_DAB is not set |
794 | 1022 | ||
795 | # | 1023 | # |
796 | # Display device support | 1024 | # Graphics support |
797 | # | 1025 | # |
798 | # CONFIG_DISPLAY_SUPPORT is not set | 1026 | # CONFIG_DRM is not set |
799 | # CONFIG_VGASTATE is not set | 1027 | # CONFIG_VGASTATE is not set |
1028 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set | ||
800 | CONFIG_FB=y | 1029 | CONFIG_FB=y |
801 | # CONFIG_FIRMWARE_EDID is not set | 1030 | # CONFIG_FIRMWARE_EDID is not set |
802 | # CONFIG_FB_DDC is not set | 1031 | # CONFIG_FB_DDC is not set |
803 | CONFIG_FB_CFB_FILLRECT=y | 1032 | CONFIG_FB_CFB_FILLRECT=y |
804 | CONFIG_FB_CFB_COPYAREA=y | 1033 | CONFIG_FB_CFB_COPYAREA=y |
805 | CONFIG_FB_CFB_IMAGEBLIT=y | 1034 | CONFIG_FB_CFB_IMAGEBLIT=y |
1035 | # CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set | ||
806 | # CONFIG_FB_SYS_FILLRECT is not set | 1036 | # CONFIG_FB_SYS_FILLRECT is not set |
807 | # CONFIG_FB_SYS_COPYAREA is not set | 1037 | # CONFIG_FB_SYS_COPYAREA is not set |
808 | # CONFIG_FB_SYS_IMAGEBLIT is not set | 1038 | # CONFIG_FB_SYS_IMAGEBLIT is not set |
1039 | # CONFIG_FB_FOREIGN_ENDIAN is not set | ||
809 | # CONFIG_FB_SYS_FOPS is not set | 1040 | # CONFIG_FB_SYS_FOPS is not set |
810 | CONFIG_FB_DEFERRED_IO=y | 1041 | CONFIG_FB_DEFERRED_IO=y |
811 | # CONFIG_FB_SVGALIB is not set | 1042 | # CONFIG_FB_SVGALIB is not set |
@@ -841,9 +1072,17 @@ CONFIG_FB_DEFERRED_IO=y | |||
841 | # CONFIG_FB_ARK is not set | 1072 | # CONFIG_FB_ARK is not set |
842 | # CONFIG_FB_PM3 is not set | 1073 | # CONFIG_FB_PM3 is not set |
843 | CONFIG_FB_PXA=y | 1074 | CONFIG_FB_PXA=y |
844 | # CONFIG_FB_PXA_PARAMETERS is not set | 1075 | # CONFIG_FB_PXA_SMARTPANEL is not set |
1076 | CONFIG_FB_PXA_PARAMETERS=y | ||
845 | CONFIG_FB_MBX=m | 1077 | CONFIG_FB_MBX=m |
1078 | # CONFIG_FB_AM200EPD is not set | ||
846 | # CONFIG_FB_VIRTUAL is not set | 1079 | # CONFIG_FB_VIRTUAL is not set |
1080 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
1081 | |||
1082 | # | ||
1083 | # Display device support | ||
1084 | # | ||
1085 | # CONFIG_DISPLAY_SUPPORT is not set | ||
847 | 1086 | ||
848 | # | 1087 | # |
849 | # Console display driver support | 1088 | # Console display driver support |
@@ -903,10 +1142,12 @@ CONFIG_SND_AC97_CODEC=m | |||
903 | # CONFIG_SND_AU8810 is not set | 1142 | # CONFIG_SND_AU8810 is not set |
904 | # CONFIG_SND_AU8820 is not set | 1143 | # CONFIG_SND_AU8820 is not set |
905 | # CONFIG_SND_AU8830 is not set | 1144 | # CONFIG_SND_AU8830 is not set |
1145 | # CONFIG_SND_AW2 is not set | ||
906 | # CONFIG_SND_AZT3328 is not set | 1146 | # CONFIG_SND_AZT3328 is not set |
907 | # CONFIG_SND_BT87X is not set | 1147 | # CONFIG_SND_BT87X is not set |
908 | # CONFIG_SND_CA0106 is not set | 1148 | # CONFIG_SND_CA0106 is not set |
909 | # CONFIG_SND_CMIPCI is not set | 1149 | # CONFIG_SND_CMIPCI is not set |
1150 | # CONFIG_SND_OXYGEN is not set | ||
910 | # CONFIG_SND_CS4281 is not set | 1151 | # CONFIG_SND_CS4281 is not set |
911 | # CONFIG_SND_CS46XX is not set | 1152 | # CONFIG_SND_CS46XX is not set |
912 | # CONFIG_SND_DARLA20 is not set | 1153 | # CONFIG_SND_DARLA20 is not set |
@@ -931,6 +1172,7 @@ CONFIG_SND_AC97_CODEC=m | |||
931 | # CONFIG_SND_HDA_INTEL is not set | 1172 | # CONFIG_SND_HDA_INTEL is not set |
932 | # CONFIG_SND_HDSP is not set | 1173 | # CONFIG_SND_HDSP is not set |
933 | # CONFIG_SND_HDSPM is not set | 1174 | # CONFIG_SND_HDSPM is not set |
1175 | # CONFIG_SND_HIFIER is not set | ||
934 | # CONFIG_SND_ICE1712 is not set | 1176 | # CONFIG_SND_ICE1712 is not set |
935 | # CONFIG_SND_ICE1724 is not set | 1177 | # CONFIG_SND_ICE1724 is not set |
936 | # CONFIG_SND_INTEL8X0 is not set | 1178 | # CONFIG_SND_INTEL8X0 is not set |
@@ -948,6 +1190,7 @@ CONFIG_SND_AC97_CODEC=m | |||
948 | # CONFIG_SND_TRIDENT is not set | 1190 | # CONFIG_SND_TRIDENT is not set |
949 | # CONFIG_SND_VIA82XX is not set | 1191 | # CONFIG_SND_VIA82XX is not set |
950 | # CONFIG_SND_VIA82XX_MODEM is not set | 1192 | # CONFIG_SND_VIA82XX_MODEM is not set |
1193 | # CONFIG_SND_VIRTUOSO is not set | ||
951 | # CONFIG_SND_VX222 is not set | 1194 | # CONFIG_SND_VX222 is not set |
952 | # CONFIG_SND_YMFPCI is not set | 1195 | # CONFIG_SND_YMFPCI is not set |
953 | # CONFIG_SND_AC97_POWER_SAVE is not set | 1196 | # CONFIG_SND_AC97_POWER_SAVE is not set |
@@ -965,18 +1208,33 @@ CONFIG_SND_PXA2XX_AC97=m | |||
965 | # CONFIG_SND_USB_CAIAQ is not set | 1208 | # CONFIG_SND_USB_CAIAQ is not set |
966 | 1209 | ||
967 | # | 1210 | # |
1211 | # PCMCIA devices | ||
1212 | # | ||
1213 | # CONFIG_SND_VXPOCKET is not set | ||
1214 | # CONFIG_SND_PDAUDIOCF is not set | ||
1215 | |||
1216 | # | ||
968 | # System on Chip audio support | 1217 | # System on Chip audio support |
969 | # | 1218 | # |
970 | # CONFIG_SND_SOC is not set | 1219 | # CONFIG_SND_SOC is not set |
971 | 1220 | ||
972 | # | 1221 | # |
1222 | # ALSA SoC audio for Freescale SOCs | ||
1223 | # | ||
1224 | |||
1225 | # | ||
1226 | # SoC Audio for the Texas Instruments OMAP | ||
1227 | # | ||
1228 | |||
1229 | # | ||
973 | # Open Sound System | 1230 | # Open Sound System |
974 | # | 1231 | # |
975 | # CONFIG_SOUND_PRIME is not set | 1232 | # CONFIG_SOUND_PRIME is not set |
976 | CONFIG_AC97_BUS=m | 1233 | CONFIG_AC97_BUS=m |
977 | CONFIG_HID_SUPPORT=y | 1234 | CONFIG_HID_SUPPORT=y |
978 | CONFIG_HID=y | 1235 | CONFIG_HID=y |
979 | # CONFIG_HID_DEBUG is not set | 1236 | CONFIG_HID_DEBUG=y |
1237 | # CONFIG_HIDRAW is not set | ||
980 | 1238 | ||
981 | # | 1239 | # |
982 | # USB Input Devices | 1240 | # USB Input Devices |
@@ -991,6 +1249,7 @@ CONFIG_USB_ARCH_HAS_OHCI=y | |||
991 | CONFIG_USB_ARCH_HAS_EHCI=y | 1249 | CONFIG_USB_ARCH_HAS_EHCI=y |
992 | CONFIG_USB=y | 1250 | CONFIG_USB=y |
993 | # CONFIG_USB_DEBUG is not set | 1251 | # CONFIG_USB_DEBUG is not set |
1252 | # CONFIG_USB_ANNOUNCE_NEW_DEVICES is not set | ||
994 | 1253 | ||
995 | # | 1254 | # |
996 | # Miscellaneous USB options | 1255 | # Miscellaneous USB options |
@@ -999,8 +1258,9 @@ CONFIG_USB_DEVICEFS=y | |||
999 | # CONFIG_USB_DEVICE_CLASS is not set | 1258 | # CONFIG_USB_DEVICE_CLASS is not set |
1000 | # CONFIG_USB_DYNAMIC_MINORS is not set | 1259 | # CONFIG_USB_DYNAMIC_MINORS is not set |
1001 | # CONFIG_USB_SUSPEND is not set | 1260 | # CONFIG_USB_SUSPEND is not set |
1002 | # CONFIG_USB_PERSIST is not set | ||
1003 | # CONFIG_USB_OTG is not set | 1261 | # CONFIG_USB_OTG is not set |
1262 | # CONFIG_USB_OTG_WHITELIST is not set | ||
1263 | # CONFIG_USB_OTG_BLACKLIST_HUB is not set | ||
1004 | 1264 | ||
1005 | # | 1265 | # |
1006 | # USB Host Controller Drivers | 1266 | # USB Host Controller Drivers |
@@ -1032,13 +1292,16 @@ CONFIG_USB_STORAGE=y | |||
1032 | # CONFIG_USB_STORAGE_DEBUG is not set | 1292 | # CONFIG_USB_STORAGE_DEBUG is not set |
1033 | # CONFIG_USB_STORAGE_DATAFAB is not set | 1293 | # CONFIG_USB_STORAGE_DATAFAB is not set |
1034 | # CONFIG_USB_STORAGE_FREECOM is not set | 1294 | # CONFIG_USB_STORAGE_FREECOM is not set |
1295 | # CONFIG_USB_STORAGE_ISD200 is not set | ||
1035 | # CONFIG_USB_STORAGE_DPCM is not set | 1296 | # CONFIG_USB_STORAGE_DPCM is not set |
1036 | # CONFIG_USB_STORAGE_USBAT is not set | 1297 | # CONFIG_USB_STORAGE_USBAT is not set |
1037 | # CONFIG_USB_STORAGE_SDDR09 is not set | 1298 | # CONFIG_USB_STORAGE_SDDR09 is not set |
1038 | # CONFIG_USB_STORAGE_SDDR55 is not set | 1299 | # CONFIG_USB_STORAGE_SDDR55 is not set |
1039 | # CONFIG_USB_STORAGE_JUMPSHOT is not set | 1300 | # CONFIG_USB_STORAGE_JUMPSHOT is not set |
1040 | # CONFIG_USB_STORAGE_ALAUDA is not set | 1301 | # CONFIG_USB_STORAGE_ALAUDA is not set |
1302 | # CONFIG_USB_STORAGE_ONETOUCH is not set | ||
1041 | # CONFIG_USB_STORAGE_KARMA is not set | 1303 | # CONFIG_USB_STORAGE_KARMA is not set |
1304 | # CONFIG_USB_STORAGE_CYPRESS_ATACB is not set | ||
1042 | # CONFIG_USB_LIBUSUAL is not set | 1305 | # CONFIG_USB_LIBUSUAL is not set |
1043 | 1306 | ||
1044 | # | 1307 | # |
@@ -1051,10 +1314,6 @@ CONFIG_USB_MON=y | |||
1051 | # | 1314 | # |
1052 | # USB port drivers | 1315 | # USB port drivers |
1053 | # | 1316 | # |
1054 | |||
1055 | # | ||
1056 | # USB Serial Converter support | ||
1057 | # | ||
1058 | # CONFIG_USB_SERIAL is not set | 1317 | # CONFIG_USB_SERIAL is not set |
1059 | 1318 | ||
1060 | # | 1319 | # |
@@ -1079,14 +1338,6 @@ CONFIG_USB_MON=y | |||
1079 | # CONFIG_USB_TRANCEVIBRATOR is not set | 1338 | # CONFIG_USB_TRANCEVIBRATOR is not set |
1080 | # CONFIG_USB_IOWARRIOR is not set | 1339 | # CONFIG_USB_IOWARRIOR is not set |
1081 | # CONFIG_USB_TEST is not set | 1340 | # CONFIG_USB_TEST is not set |
1082 | |||
1083 | # | ||
1084 | # USB DSL modem support | ||
1085 | # | ||
1086 | |||
1087 | # | ||
1088 | # USB Gadget Support | ||
1089 | # | ||
1090 | # CONFIG_USB_GADGET is not set | 1341 | # CONFIG_USB_GADGET is not set |
1091 | CONFIG_MMC=m | 1342 | CONFIG_MMC=m |
1092 | # CONFIG_MMC_DEBUG is not set | 1343 | # CONFIG_MMC_DEBUG is not set |
@@ -1097,6 +1348,7 @@ CONFIG_MMC=m | |||
1097 | # | 1348 | # |
1098 | CONFIG_MMC_BLOCK=m | 1349 | CONFIG_MMC_BLOCK=m |
1099 | CONFIG_MMC_BLOCK_BOUNCE=y | 1350 | CONFIG_MMC_BLOCK_BOUNCE=y |
1351 | # CONFIG_SDIO_UART is not set | ||
1100 | 1352 | ||
1101 | # | 1353 | # |
1102 | # MMC/SD Host Controller Drivers | 1354 | # MMC/SD Host Controller Drivers |
@@ -1104,10 +1356,22 @@ CONFIG_MMC_BLOCK_BOUNCE=y | |||
1104 | CONFIG_MMC_PXA=m | 1356 | CONFIG_MMC_PXA=m |
1105 | # CONFIG_MMC_SDHCI is not set | 1357 | # CONFIG_MMC_SDHCI is not set |
1106 | # CONFIG_MMC_TIFM_SD is not set | 1358 | # CONFIG_MMC_TIFM_SD is not set |
1359 | CONFIG_NEW_LEDS=y | ||
1360 | CONFIG_LEDS_CLASS=y | ||
1107 | 1361 | ||
1108 | # | 1362 | # |
1109 | # Real Time Clock | 1363 | # LED drivers |
1110 | # | 1364 | # |
1365 | # CONFIG_LEDS_GPIO is not set | ||
1366 | CONFIG_LEDS_CM_X270=y | ||
1367 | |||
1368 | # | ||
1369 | # LED Triggers | ||
1370 | # | ||
1371 | CONFIG_LEDS_TRIGGERS=y | ||
1372 | # CONFIG_LEDS_TRIGGER_TIMER is not set | ||
1373 | CONFIG_LEDS_TRIGGER_HEARTBEAT=y | ||
1374 | # CONFIG_LEDS_TRIGGER_DEFAULT_ON is not set | ||
1111 | CONFIG_RTC_LIB=y | 1375 | CONFIG_RTC_LIB=y |
1112 | CONFIG_RTC_CLASS=y | 1376 | CONFIG_RTC_CLASS=y |
1113 | CONFIG_RTC_HCTOSYS=y | 1377 | CONFIG_RTC_HCTOSYS=y |
@@ -1124,11 +1388,32 @@ CONFIG_RTC_INTF_DEV=y | |||
1124 | # CONFIG_RTC_DRV_TEST is not set | 1388 | # CONFIG_RTC_DRV_TEST is not set |
1125 | 1389 | ||
1126 | # | 1390 | # |
1391 | # I2C RTC drivers | ||
1392 | # | ||
1393 | # CONFIG_RTC_DRV_DS1307 is not set | ||
1394 | # CONFIG_RTC_DRV_DS1374 is not set | ||
1395 | # CONFIG_RTC_DRV_DS1672 is not set | ||
1396 | # CONFIG_RTC_DRV_MAX6900 is not set | ||
1397 | # CONFIG_RTC_DRV_RS5C372 is not set | ||
1398 | # CONFIG_RTC_DRV_ISL1208 is not set | ||
1399 | # CONFIG_RTC_DRV_X1205 is not set | ||
1400 | # CONFIG_RTC_DRV_PCF8563 is not set | ||
1401 | # CONFIG_RTC_DRV_PCF8583 is not set | ||
1402 | # CONFIG_RTC_DRV_M41T80 is not set | ||
1403 | # CONFIG_RTC_DRV_S35390A is not set | ||
1404 | |||
1405 | # | ||
1406 | # SPI RTC drivers | ||
1407 | # | ||
1408 | |||
1409 | # | ||
1127 | # Platform RTC drivers | 1410 | # Platform RTC drivers |
1128 | # | 1411 | # |
1129 | # CONFIG_RTC_DRV_CMOS is not set | 1412 | # CONFIG_RTC_DRV_CMOS is not set |
1413 | # CONFIG_RTC_DRV_DS1511 is not set | ||
1130 | # CONFIG_RTC_DRV_DS1553 is not set | 1414 | # CONFIG_RTC_DRV_DS1553 is not set |
1131 | # CONFIG_RTC_DRV_DS1742 is not set | 1415 | # CONFIG_RTC_DRV_DS1742 is not set |
1416 | # CONFIG_RTC_DRV_STK17TA8 is not set | ||
1132 | # CONFIG_RTC_DRV_M48T86 is not set | 1417 | # CONFIG_RTC_DRV_M48T86 is not set |
1133 | # CONFIG_RTC_DRV_M48T59 is not set | 1418 | # CONFIG_RTC_DRV_M48T59 is not set |
1134 | CONFIG_RTC_DRV_V3020=y | 1419 | CONFIG_RTC_DRV_V3020=y |
@@ -1137,19 +1422,7 @@ CONFIG_RTC_DRV_V3020=y | |||
1137 | # on-CPU RTC drivers | 1422 | # on-CPU RTC drivers |
1138 | # | 1423 | # |
1139 | CONFIG_RTC_DRV_SA1100=y | 1424 | CONFIG_RTC_DRV_SA1100=y |
1140 | 1425 | # CONFIG_UIO is not set | |
1141 | # | ||
1142 | # DMA Engine support | ||
1143 | # | ||
1144 | # CONFIG_DMA_ENGINE is not set | ||
1145 | |||
1146 | # | ||
1147 | # DMA Clients | ||
1148 | # | ||
1149 | |||
1150 | # | ||
1151 | # DMA Devices | ||
1152 | # | ||
1153 | 1426 | ||
1154 | # | 1427 | # |
1155 | # File systems | 1428 | # File systems |
@@ -1163,20 +1436,16 @@ CONFIG_EXT3_FS_XATTR=y | |||
1163 | # CONFIG_EXT3_FS_SECURITY is not set | 1436 | # CONFIG_EXT3_FS_SECURITY is not set |
1164 | # CONFIG_EXT4DEV_FS is not set | 1437 | # CONFIG_EXT4DEV_FS is not set |
1165 | CONFIG_JBD=y | 1438 | CONFIG_JBD=y |
1166 | # CONFIG_JBD_DEBUG is not set | ||
1167 | CONFIG_FS_MBCACHE=y | 1439 | CONFIG_FS_MBCACHE=y |
1168 | # CONFIG_REISERFS_FS is not set | 1440 | # CONFIG_REISERFS_FS is not set |
1169 | # CONFIG_JFS_FS is not set | 1441 | # CONFIG_JFS_FS is not set |
1170 | # CONFIG_FS_POSIX_ACL is not set | 1442 | # CONFIG_FS_POSIX_ACL is not set |
1171 | # CONFIG_XFS_FS is not set | 1443 | # CONFIG_XFS_FS is not set |
1172 | # CONFIG_GFS2_FS is not set | ||
1173 | # CONFIG_OCFS2_FS is not set | 1444 | # CONFIG_OCFS2_FS is not set |
1174 | # CONFIG_MINIX_FS is not set | 1445 | CONFIG_DNOTIFY=y |
1175 | # CONFIG_ROMFS_FS is not set | ||
1176 | CONFIG_INOTIFY=y | 1446 | CONFIG_INOTIFY=y |
1177 | CONFIG_INOTIFY_USER=y | 1447 | CONFIG_INOTIFY_USER=y |
1178 | # CONFIG_QUOTA is not set | 1448 | # CONFIG_QUOTA is not set |
1179 | CONFIG_DNOTIFY=y | ||
1180 | # CONFIG_AUTOFS_FS is not set | 1449 | # CONFIG_AUTOFS_FS is not set |
1181 | # CONFIG_AUTOFS4_FS is not set | 1450 | # CONFIG_AUTOFS4_FS is not set |
1182 | # CONFIG_FUSE_FS is not set | 1451 | # CONFIG_FUSE_FS is not set |
@@ -1190,9 +1459,9 @@ CONFIG_DNOTIFY=y | |||
1190 | # | 1459 | # |
1191 | # DOS/FAT/NT Filesystems | 1460 | # DOS/FAT/NT Filesystems |
1192 | # | 1461 | # |
1193 | CONFIG_FAT_FS=y | 1462 | CONFIG_FAT_FS=m |
1194 | CONFIG_MSDOS_FS=y | 1463 | # CONFIG_MSDOS_FS is not set |
1195 | CONFIG_VFAT_FS=y | 1464 | CONFIG_VFAT_FS=m |
1196 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | 1465 | CONFIG_FAT_DEFAULT_CODEPAGE=437 |
1197 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | 1466 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" |
1198 | # CONFIG_NTFS_FS is not set | 1467 | # CONFIG_NTFS_FS is not set |
@@ -1206,7 +1475,6 @@ CONFIG_SYSFS=y | |||
1206 | CONFIG_TMPFS=y | 1475 | CONFIG_TMPFS=y |
1207 | # CONFIG_TMPFS_POSIX_ACL is not set | 1476 | # CONFIG_TMPFS_POSIX_ACL is not set |
1208 | # CONFIG_HUGETLB_PAGE is not set | 1477 | # CONFIG_HUGETLB_PAGE is not set |
1209 | CONFIG_RAMFS=y | ||
1210 | # CONFIG_CONFIGFS_FS is not set | 1478 | # CONFIG_CONFIGFS_FS is not set |
1211 | 1479 | ||
1212 | # | 1480 | # |
@@ -1219,22 +1487,30 @@ CONFIG_RAMFS=y | |||
1219 | # CONFIG_BEFS_FS is not set | 1487 | # CONFIG_BEFS_FS is not set |
1220 | # CONFIG_BFS_FS is not set | 1488 | # CONFIG_BFS_FS is not set |
1221 | # CONFIG_EFS_FS is not set | 1489 | # CONFIG_EFS_FS is not set |
1222 | # CONFIG_JFFS2_FS is not set | 1490 | CONFIG_JFFS2_FS=y |
1491 | CONFIG_JFFS2_FS_DEBUG=0 | ||
1492 | CONFIG_JFFS2_FS_WRITEBUFFER=y | ||
1493 | # CONFIG_JFFS2_FS_WBUF_VERIFY is not set | ||
1494 | CONFIG_JFFS2_SUMMARY=y | ||
1495 | # CONFIG_JFFS2_FS_XATTR is not set | ||
1496 | # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set | ||
1497 | CONFIG_JFFS2_ZLIB=y | ||
1498 | # CONFIG_JFFS2_LZO is not set | ||
1499 | CONFIG_JFFS2_RTIME=y | ||
1500 | # CONFIG_JFFS2_RUBIN is not set | ||
1223 | # CONFIG_CRAMFS is not set | 1501 | # CONFIG_CRAMFS is not set |
1224 | # CONFIG_VXFS_FS is not set | 1502 | # CONFIG_VXFS_FS is not set |
1503 | # CONFIG_MINIX_FS is not set | ||
1225 | # CONFIG_HPFS_FS is not set | 1504 | # CONFIG_HPFS_FS is not set |
1226 | # CONFIG_QNX4FS_FS is not set | 1505 | # CONFIG_QNX4FS_FS is not set |
1506 | # CONFIG_ROMFS_FS is not set | ||
1227 | # CONFIG_SYSV_FS is not set | 1507 | # CONFIG_SYSV_FS is not set |
1228 | # CONFIG_UFS_FS is not set | 1508 | # CONFIG_UFS_FS is not set |
1229 | 1509 | CONFIG_NETWORK_FILESYSTEMS=y | |
1230 | # | ||
1231 | # Network File Systems | ||
1232 | # | ||
1233 | CONFIG_NFS_FS=y | 1510 | CONFIG_NFS_FS=y |
1234 | CONFIG_NFS_V3=y | 1511 | CONFIG_NFS_V3=y |
1235 | # CONFIG_NFS_V3_ACL is not set | 1512 | # CONFIG_NFS_V3_ACL is not set |
1236 | # CONFIG_NFS_V4 is not set | 1513 | # CONFIG_NFS_V4 is not set |
1237 | # CONFIG_NFS_DIRECTIO is not set | ||
1238 | # CONFIG_NFSD is not set | 1514 | # CONFIG_NFSD is not set |
1239 | CONFIG_ROOT_NFS=y | 1515 | CONFIG_ROOT_NFS=y |
1240 | CONFIG_LOCKD=y | 1516 | CONFIG_LOCKD=y |
@@ -1244,9 +1520,13 @@ CONFIG_SUNRPC=y | |||
1244 | # CONFIG_SUNRPC_BIND34 is not set | 1520 | # CONFIG_SUNRPC_BIND34 is not set |
1245 | # CONFIG_RPCSEC_GSS_KRB5 is not set | 1521 | # CONFIG_RPCSEC_GSS_KRB5 is not set |
1246 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | 1522 | # CONFIG_RPCSEC_GSS_SPKM3 is not set |
1247 | CONFIG_SMB_FS=y | 1523 | # CONFIG_SMB_FS is not set |
1248 | # CONFIG_SMB_NLS_DEFAULT is not set | 1524 | CONFIG_CIFS=m |
1249 | # CONFIG_CIFS is not set | 1525 | # CONFIG_CIFS_STATS is not set |
1526 | # CONFIG_CIFS_WEAK_PW_HASH is not set | ||
1527 | # CONFIG_CIFS_XATTR is not set | ||
1528 | # CONFIG_CIFS_DEBUG2 is not set | ||
1529 | # CONFIG_CIFS_EXPERIMENTAL is not set | ||
1250 | # CONFIG_NCP_FS is not set | 1530 | # CONFIG_NCP_FS is not set |
1251 | # CONFIG_CODA_FS is not set | 1531 | # CONFIG_CODA_FS is not set |
1252 | # CONFIG_AFS_FS is not set | 1532 | # CONFIG_AFS_FS is not set |
@@ -1254,15 +1534,27 @@ CONFIG_SMB_FS=y | |||
1254 | # | 1534 | # |
1255 | # Partition Types | 1535 | # Partition Types |
1256 | # | 1536 | # |
1257 | # CONFIG_PARTITION_ADVANCED is not set | 1537 | CONFIG_PARTITION_ADVANCED=y |
1538 | # CONFIG_ACORN_PARTITION is not set | ||
1539 | # CONFIG_OSF_PARTITION is not set | ||
1540 | # CONFIG_AMIGA_PARTITION is not set | ||
1541 | # CONFIG_ATARI_PARTITION is not set | ||
1542 | # CONFIG_MAC_PARTITION is not set | ||
1258 | CONFIG_MSDOS_PARTITION=y | 1543 | CONFIG_MSDOS_PARTITION=y |
1259 | 1544 | # CONFIG_BSD_DISKLABEL is not set | |
1260 | # | 1545 | # CONFIG_MINIX_SUBPARTITION is not set |
1261 | # Native Language Support | 1546 | # CONFIG_SOLARIS_X86_PARTITION is not set |
1262 | # | 1547 | # CONFIG_UNIXWARE_DISKLABEL is not set |
1263 | CONFIG_NLS=y | 1548 | # CONFIG_LDM_PARTITION is not set |
1549 | # CONFIG_SGI_PARTITION is not set | ||
1550 | # CONFIG_ULTRIX_PARTITION is not set | ||
1551 | # CONFIG_SUN_PARTITION is not set | ||
1552 | # CONFIG_KARMA_PARTITION is not set | ||
1553 | # CONFIG_EFI_PARTITION is not set | ||
1554 | # CONFIG_SYSV68_PARTITION is not set | ||
1555 | CONFIG_NLS=m | ||
1264 | CONFIG_NLS_DEFAULT="iso8859-1" | 1556 | CONFIG_NLS_DEFAULT="iso8859-1" |
1265 | CONFIG_NLS_CODEPAGE_437=y | 1557 | CONFIG_NLS_CODEPAGE_437=m |
1266 | # CONFIG_NLS_CODEPAGE_737 is not set | 1558 | # CONFIG_NLS_CODEPAGE_737 is not set |
1267 | # CONFIG_NLS_CODEPAGE_775 is not set | 1559 | # CONFIG_NLS_CODEPAGE_775 is not set |
1268 | # CONFIG_NLS_CODEPAGE_850 is not set | 1560 | # CONFIG_NLS_CODEPAGE_850 is not set |
@@ -1286,7 +1578,7 @@ CONFIG_NLS_CODEPAGE_437=y | |||
1286 | # CONFIG_NLS_CODEPAGE_1250 is not set | 1578 | # CONFIG_NLS_CODEPAGE_1250 is not set |
1287 | # CONFIG_NLS_CODEPAGE_1251 is not set | 1579 | # CONFIG_NLS_CODEPAGE_1251 is not set |
1288 | # CONFIG_NLS_ASCII is not set | 1580 | # CONFIG_NLS_ASCII is not set |
1289 | CONFIG_NLS_ISO8859_1=y | 1581 | CONFIG_NLS_ISO8859_1=m |
1290 | # CONFIG_NLS_ISO8859_2 is not set | 1582 | # CONFIG_NLS_ISO8859_2 is not set |
1291 | # CONFIG_NLS_ISO8859_3 is not set | 1583 | # CONFIG_NLS_ISO8859_3 is not set |
1292 | # CONFIG_NLS_ISO8859_4 is not set | 1584 | # CONFIG_NLS_ISO8859_4 is not set |
@@ -1299,53 +1591,52 @@ CONFIG_NLS_ISO8859_1=y | |||
1299 | # CONFIG_NLS_ISO8859_15 is not set | 1591 | # CONFIG_NLS_ISO8859_15 is not set |
1300 | # CONFIG_NLS_KOI8_R is not set | 1592 | # CONFIG_NLS_KOI8_R is not set |
1301 | # CONFIG_NLS_KOI8_U is not set | 1593 | # CONFIG_NLS_KOI8_U is not set |
1302 | # CONFIG_NLS_UTF8 is not set | 1594 | CONFIG_NLS_UTF8=m |
1303 | |||
1304 | # | ||
1305 | # Distributed Lock Manager | ||
1306 | # | ||
1307 | # CONFIG_DLM is not set | 1595 | # CONFIG_DLM is not set |
1308 | 1596 | ||
1309 | # | 1597 | # |
1310 | # Profiling support | ||
1311 | # | ||
1312 | # CONFIG_PROFILING is not set | ||
1313 | |||
1314 | # | ||
1315 | # Kernel hacking | 1598 | # Kernel hacking |
1316 | # | 1599 | # |
1317 | # CONFIG_PRINTK_TIME is not set | 1600 | # CONFIG_PRINTK_TIME is not set |
1601 | CONFIG_ENABLE_WARN_DEPRECATED=y | ||
1318 | CONFIG_ENABLE_MUST_CHECK=y | 1602 | CONFIG_ENABLE_MUST_CHECK=y |
1319 | CONFIG_MAGIC_SYSRQ=y | 1603 | CONFIG_FRAME_WARN=0 |
1604 | # CONFIG_MAGIC_SYSRQ is not set | ||
1320 | # CONFIG_UNUSED_SYMBOLS is not set | 1605 | # CONFIG_UNUSED_SYMBOLS is not set |
1321 | # CONFIG_DEBUG_FS is not set | 1606 | # CONFIG_DEBUG_FS is not set |
1322 | # CONFIG_HEADERS_CHECK is not set | 1607 | # CONFIG_HEADERS_CHECK is not set |
1323 | CONFIG_DEBUG_KERNEL=y | 1608 | CONFIG_DEBUG_KERNEL=y |
1324 | # CONFIG_DEBUG_SHIRQ is not set | 1609 | # CONFIG_DEBUG_SHIRQ is not set |
1325 | # CONFIG_DETECT_SOFTLOCKUP is not set | 1610 | # CONFIG_DETECT_SOFTLOCKUP is not set |
1326 | CONFIG_SCHED_DEBUG=y | 1611 | # CONFIG_SCHED_DEBUG is not set |
1327 | # CONFIG_SCHEDSTATS is not set | 1612 | # CONFIG_SCHEDSTATS is not set |
1328 | # CONFIG_TIMER_STATS is not set | 1613 | # CONFIG_TIMER_STATS is not set |
1329 | # CONFIG_DEBUG_SLAB is not set | 1614 | # CONFIG_DEBUG_OBJECTS is not set |
1330 | # CONFIG_DEBUG_RT_MUTEXES is not set | 1615 | # CONFIG_DEBUG_RT_MUTEXES is not set |
1331 | # CONFIG_RT_MUTEX_TESTER is not set | 1616 | # CONFIG_RT_MUTEX_TESTER is not set |
1332 | # CONFIG_DEBUG_SPINLOCK is not set | 1617 | # CONFIG_DEBUG_SPINLOCK is not set |
1333 | # CONFIG_DEBUG_MUTEXES is not set | 1618 | # CONFIG_DEBUG_MUTEXES is not set |
1334 | # CONFIG_DEBUG_LOCK_ALLOC is not set | 1619 | # CONFIG_DEBUG_LOCK_ALLOC is not set |
1335 | # CONFIG_PROVE_LOCKING is not set | 1620 | # CONFIG_PROVE_LOCKING is not set |
1621 | # CONFIG_LOCK_STAT is not set | ||
1336 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | 1622 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set |
1337 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | 1623 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set |
1338 | # CONFIG_DEBUG_KOBJECT is not set | 1624 | # CONFIG_DEBUG_KOBJECT is not set |
1339 | # CONFIG_DEBUG_BUGVERBOSE is not set | 1625 | # CONFIG_DEBUG_BUGVERBOSE is not set |
1340 | CONFIG_DEBUG_INFO=y | 1626 | # CONFIG_DEBUG_INFO is not set |
1341 | # CONFIG_DEBUG_VM is not set | 1627 | # CONFIG_DEBUG_VM is not set |
1628 | # CONFIG_DEBUG_WRITECOUNT is not set | ||
1342 | # CONFIG_DEBUG_LIST is not set | 1629 | # CONFIG_DEBUG_LIST is not set |
1630 | # CONFIG_DEBUG_SG is not set | ||
1343 | CONFIG_FRAME_POINTER=y | 1631 | CONFIG_FRAME_POINTER=y |
1344 | CONFIG_FORCED_INLINING=y | 1632 | # CONFIG_BOOT_PRINTK_DELAY is not set |
1345 | # CONFIG_RCU_TORTURE_TEST is not set | 1633 | # CONFIG_RCU_TORTURE_TEST is not set |
1634 | # CONFIG_BACKTRACE_SELF_TEST is not set | ||
1346 | # CONFIG_FAULT_INJECTION is not set | 1635 | # CONFIG_FAULT_INJECTION is not set |
1636 | # CONFIG_SAMPLES is not set | ||
1347 | CONFIG_DEBUG_USER=y | 1637 | CONFIG_DEBUG_USER=y |
1348 | CONFIG_DEBUG_ERRORS=y | 1638 | CONFIG_DEBUG_ERRORS=y |
1639 | # CONFIG_DEBUG_STACK_USAGE is not set | ||
1349 | CONFIG_DEBUG_LL=y | 1640 | CONFIG_DEBUG_LL=y |
1350 | # CONFIG_DEBUG_ICEDCC is not set | 1641 | # CONFIG_DEBUG_ICEDCC is not set |
1351 | 1642 | ||
@@ -1354,55 +1645,96 @@ CONFIG_DEBUG_LL=y | |||
1354 | # | 1645 | # |
1355 | # CONFIG_KEYS is not set | 1646 | # CONFIG_KEYS is not set |
1356 | # CONFIG_SECURITY is not set | 1647 | # CONFIG_SECURITY is not set |
1648 | # CONFIG_SECURITY_FILE_CAPABILITIES is not set | ||
1357 | CONFIG_CRYPTO=y | 1649 | CONFIG_CRYPTO=y |
1358 | CONFIG_CRYPTO_ALGAPI=m | 1650 | |
1359 | CONFIG_CRYPTO_BLKCIPHER=m | 1651 | # |
1360 | CONFIG_CRYPTO_MANAGER=m | 1652 | # Crypto core or helper |
1653 | # | ||
1654 | # CONFIG_CRYPTO_MANAGER is not set | ||
1655 | # CONFIG_CRYPTO_GF128MUL is not set | ||
1656 | # CONFIG_CRYPTO_NULL is not set | ||
1657 | # CONFIG_CRYPTO_CRYPTD is not set | ||
1658 | # CONFIG_CRYPTO_AUTHENC is not set | ||
1659 | # CONFIG_CRYPTO_TEST is not set | ||
1660 | |||
1661 | # | ||
1662 | # Authenticated Encryption with Associated Data | ||
1663 | # | ||
1664 | # CONFIG_CRYPTO_CCM is not set | ||
1665 | # CONFIG_CRYPTO_GCM is not set | ||
1666 | # CONFIG_CRYPTO_SEQIV is not set | ||
1667 | |||
1668 | # | ||
1669 | # Block modes | ||
1670 | # | ||
1671 | # CONFIG_CRYPTO_CBC is not set | ||
1672 | # CONFIG_CRYPTO_CTR is not set | ||
1673 | # CONFIG_CRYPTO_CTS is not set | ||
1674 | # CONFIG_CRYPTO_ECB is not set | ||
1675 | # CONFIG_CRYPTO_LRW is not set | ||
1676 | # CONFIG_CRYPTO_PCBC is not set | ||
1677 | # CONFIG_CRYPTO_XTS is not set | ||
1678 | |||
1679 | # | ||
1680 | # Hash modes | ||
1681 | # | ||
1361 | # CONFIG_CRYPTO_HMAC is not set | 1682 | # CONFIG_CRYPTO_HMAC is not set |
1362 | # CONFIG_CRYPTO_XCBC is not set | 1683 | # CONFIG_CRYPTO_XCBC is not set |
1363 | # CONFIG_CRYPTO_NULL is not set | 1684 | |
1685 | # | ||
1686 | # Digest | ||
1687 | # | ||
1688 | # CONFIG_CRYPTO_CRC32C is not set | ||
1364 | # CONFIG_CRYPTO_MD4 is not set | 1689 | # CONFIG_CRYPTO_MD4 is not set |
1365 | # CONFIG_CRYPTO_MD5 is not set | 1690 | # CONFIG_CRYPTO_MD5 is not set |
1691 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
1366 | # CONFIG_CRYPTO_SHA1 is not set | 1692 | # CONFIG_CRYPTO_SHA1 is not set |
1367 | # CONFIG_CRYPTO_SHA256 is not set | 1693 | # CONFIG_CRYPTO_SHA256 is not set |
1368 | # CONFIG_CRYPTO_SHA512 is not set | 1694 | # CONFIG_CRYPTO_SHA512 is not set |
1369 | # CONFIG_CRYPTO_WP512 is not set | ||
1370 | # CONFIG_CRYPTO_TGR192 is not set | 1695 | # CONFIG_CRYPTO_TGR192 is not set |
1371 | # CONFIG_CRYPTO_GF128MUL is not set | 1696 | # CONFIG_CRYPTO_WP512 is not set |
1372 | CONFIG_CRYPTO_ECB=m | 1697 | |
1373 | CONFIG_CRYPTO_CBC=m | 1698 | # |
1374 | CONFIG_CRYPTO_PCBC=m | 1699 | # Ciphers |
1375 | # CONFIG_CRYPTO_LRW is not set | 1700 | # |
1376 | # CONFIG_CRYPTO_CRYPTD is not set | 1701 | # CONFIG_CRYPTO_AES is not set |
1377 | # CONFIG_CRYPTO_DES is not set | 1702 | # CONFIG_CRYPTO_ANUBIS is not set |
1378 | # CONFIG_CRYPTO_FCRYPT is not set | 1703 | # CONFIG_CRYPTO_ARC4 is not set |
1379 | # CONFIG_CRYPTO_BLOWFISH is not set | 1704 | # CONFIG_CRYPTO_BLOWFISH is not set |
1380 | # CONFIG_CRYPTO_TWOFISH is not set | 1705 | # CONFIG_CRYPTO_CAMELLIA is not set |
1381 | # CONFIG_CRYPTO_SERPENT is not set | ||
1382 | CONFIG_CRYPTO_AES=m | ||
1383 | # CONFIG_CRYPTO_CAST5 is not set | 1706 | # CONFIG_CRYPTO_CAST5 is not set |
1384 | # CONFIG_CRYPTO_CAST6 is not set | 1707 | # CONFIG_CRYPTO_CAST6 is not set |
1385 | # CONFIG_CRYPTO_TEA is not set | 1708 | # CONFIG_CRYPTO_DES is not set |
1386 | CONFIG_CRYPTO_ARC4=m | 1709 | # CONFIG_CRYPTO_FCRYPT is not set |
1387 | # CONFIG_CRYPTO_KHAZAD is not set | 1710 | # CONFIG_CRYPTO_KHAZAD is not set |
1388 | # CONFIG_CRYPTO_ANUBIS is not set | 1711 | # CONFIG_CRYPTO_SALSA20 is not set |
1712 | # CONFIG_CRYPTO_SEED is not set | ||
1713 | # CONFIG_CRYPTO_SERPENT is not set | ||
1714 | # CONFIG_CRYPTO_TEA is not set | ||
1715 | # CONFIG_CRYPTO_TWOFISH is not set | ||
1716 | |||
1717 | # | ||
1718 | # Compression | ||
1719 | # | ||
1389 | # CONFIG_CRYPTO_DEFLATE is not set | 1720 | # CONFIG_CRYPTO_DEFLATE is not set |
1390 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | 1721 | # CONFIG_CRYPTO_LZO is not set |
1391 | # CONFIG_CRYPTO_CRC32C is not set | 1722 | # CONFIG_CRYPTO_HW is not set |
1392 | # CONFIG_CRYPTO_CAMELLIA is not set | ||
1393 | # CONFIG_CRYPTO_TEST is not set | ||
1394 | CONFIG_CRYPTO_HW=y | ||
1395 | 1723 | ||
1396 | # | 1724 | # |
1397 | # Library routines | 1725 | # Library routines |
1398 | # | 1726 | # |
1399 | CONFIG_BITREVERSE=y | 1727 | CONFIG_BITREVERSE=y |
1400 | # CONFIG_CRC_CCITT is not set | 1728 | # CONFIG_GENERIC_FIND_FIRST_BIT is not set |
1729 | # CONFIG_GENERIC_FIND_NEXT_BIT is not set | ||
1730 | CONFIG_CRC_CCITT=m | ||
1401 | # CONFIG_CRC16 is not set | 1731 | # CONFIG_CRC16 is not set |
1402 | # CONFIG_CRC_ITU_T is not set | 1732 | # CONFIG_CRC_ITU_T is not set |
1403 | CONFIG_CRC32=y | 1733 | CONFIG_CRC32=y |
1404 | # CONFIG_CRC7 is not set | 1734 | # CONFIG_CRC7 is not set |
1405 | # CONFIG_LIBCRC32C is not set | 1735 | # CONFIG_LIBCRC32C is not set |
1736 | CONFIG_ZLIB_INFLATE=y | ||
1737 | CONFIG_ZLIB_DEFLATE=y | ||
1406 | CONFIG_PLIST=y | 1738 | CONFIG_PLIST=y |
1407 | CONFIG_HAS_IOMEM=y | 1739 | CONFIG_HAS_IOMEM=y |
1408 | CONFIG_HAS_IOPORT=y | 1740 | CONFIG_HAS_IOPORT=y |
diff --git a/arch/arm/mach-ixp4xx/common.c b/arch/arm/mach-ixp4xx/common.c index f6d66dce6852..3781b3db9f49 100644 --- a/arch/arm/mach-ixp4xx/common.c +++ b/arch/arm/mach-ixp4xx/common.c | |||
@@ -326,11 +326,11 @@ static struct resource ixp4xx_udc_resources[] = { | |||
326 | }; | 326 | }; |
327 | 327 | ||
328 | /* | 328 | /* |
329 | * USB device controller. The IXP4xx uses the same controller as PXA2XX, | 329 | * USB device controller. The IXP4xx uses the same controller as PXA25X, |
330 | * so we just use the same device. | 330 | * so we just use the same device. |
331 | */ | 331 | */ |
332 | static struct platform_device ixp4xx_udc_device = { | 332 | static struct platform_device ixp4xx_udc_device = { |
333 | .name = "pxa2xx-udc", | 333 | .name = "pxa25x-udc", |
334 | .id = -1, | 334 | .id = -1, |
335 | .num_resources = 2, | 335 | .num_resources = 2, |
336 | .resource = ixp4xx_udc_resources, | 336 | .resource = ixp4xx_udc_resources, |
diff --git a/arch/arm/mach-pxa/Kconfig b/arch/arm/mach-pxa/Kconfig index 5da7a6820492..e8ee7ec9ff6d 100644 --- a/arch/arm/mach-pxa/Kconfig +++ b/arch/arm/mach-pxa/Kconfig | |||
@@ -16,19 +16,24 @@ config CPU_PXA310 | |||
16 | config CPU_PXA320 | 16 | config CPU_PXA320 |
17 | bool "PXA320 (codename Monahans-P)" | 17 | bool "PXA320 (codename Monahans-P)" |
18 | 18 | ||
19 | config CPU_PXA930 | ||
20 | bool "PXA930 (codename Tavor-P)" | ||
21 | |||
19 | endmenu | 22 | endmenu |
20 | 23 | ||
21 | endif | 24 | endif |
22 | 25 | ||
23 | choice | ||
24 | prompt "Select target board" | ||
25 | |||
26 | config ARCH_GUMSTIX | 26 | config ARCH_GUMSTIX |
27 | bool "Gumstix XScale boards" | 27 | bool "Gumstix XScale boards" |
28 | help | 28 | help |
29 | Say Y here if you intend to run this kernel on a | 29 | Say Y here if you intend to run this kernel on a |
30 | Gumstix Full Function Minature Computer. | 30 | Gumstix Full Function Minature Computer. |
31 | 31 | ||
32 | config MACH_GUMSTIX_F | ||
33 | bool "Basix, Connex, ws-200ax, ws-400ax systems" | ||
34 | depends on ARCH_GUMSTIX | ||
35 | select PXA25x | ||
36 | |||
32 | config ARCH_LUBBOCK | 37 | config ARCH_LUBBOCK |
33 | bool "Intel DBPXA250 Development Platform" | 38 | bool "Intel DBPXA250 Development Platform" |
34 | select PXA25x | 39 | select PXA25x |
@@ -37,10 +42,12 @@ config ARCH_LUBBOCK | |||
37 | config MACH_LOGICPD_PXA270 | 42 | config MACH_LOGICPD_PXA270 |
38 | bool "LogicPD PXA270 Card Engine Development Platform" | 43 | bool "LogicPD PXA270 Card Engine Development Platform" |
39 | select PXA27x | 44 | select PXA27x |
45 | select HAVE_PWM | ||
40 | 46 | ||
41 | config MACH_MAINSTONE | 47 | config MACH_MAINSTONE |
42 | bool "Intel HCDDBBVA0 Development Platform" | 48 | bool "Intel HCDDBBVA0 Development Platform" |
43 | select PXA27x | 49 | select PXA27x |
50 | select HAVE_PWM | ||
44 | 51 | ||
45 | config ARCH_PXA_IDP | 52 | config ARCH_PXA_IDP |
46 | bool "Accelent Xscale IDP" | 53 | bool "Accelent Xscale IDP" |
@@ -57,6 +64,57 @@ config PXA_SHARPSL | |||
57 | SL-C3000 (Spitz), SL-C3100 (Borzoi) or SL-C6000x (Tosa) | 64 | SL-C3000 (Spitz), SL-C3100 (Borzoi) or SL-C6000x (Tosa) |
58 | handheld computer. | 65 | handheld computer. |
59 | 66 | ||
67 | config MACH_POODLE | ||
68 | bool "Enable Sharp SL-5600 (Poodle) Support" | ||
69 | depends on PXA_SHARPSL | ||
70 | select PXA25x | ||
71 | select SHARP_LOCOMO | ||
72 | select PXA_SSP | ||
73 | |||
74 | config MACH_CORGI | ||
75 | bool "Enable Sharp SL-C700 (Corgi) Support" | ||
76 | depends on PXA_SHARPSL | ||
77 | select PXA25x | ||
78 | select PXA_SHARP_C7xx | ||
79 | |||
80 | config MACH_SHEPHERD | ||
81 | bool "Enable Sharp SL-C750 (Shepherd) Support" | ||
82 | depends on PXA_SHARPSL | ||
83 | select PXA25x | ||
84 | select PXA_SHARP_C7xx | ||
85 | |||
86 | config MACH_HUSKY | ||
87 | bool "Enable Sharp SL-C760 (Husky) Support" | ||
88 | depends on PXA_SHARPSL | ||
89 | select PXA25x | ||
90 | select PXA_SHARP_C7xx | ||
91 | |||
92 | config MACH_AKITA | ||
93 | bool "Enable Sharp SL-1000 (Akita) Support" | ||
94 | depends on PXA_SHARPSL | ||
95 | select PXA27x | ||
96 | select PXA_SHARP_Cxx00 | ||
97 | select MACH_SPITZ | ||
98 | select I2C | ||
99 | select I2C_PXA | ||
100 | |||
101 | config MACH_SPITZ | ||
102 | bool "Enable Sharp Zaurus SL-3000 (Spitz) Support" | ||
103 | depends on PXA_SHARPSL | ||
104 | select PXA27x | ||
105 | select PXA_SHARP_Cxx00 | ||
106 | |||
107 | config MACH_BORZOI | ||
108 | bool "Enable Sharp Zaurus SL-3100 (Borzoi) Support" | ||
109 | depends on PXA_SHARPSL | ||
110 | select PXA27x | ||
111 | select PXA_SHARP_Cxx00 | ||
112 | |||
113 | config MACH_TOSA | ||
114 | bool "Enable Sharp SL-6000x (Tosa) Support" | ||
115 | depends on PXA_SHARPSL | ||
116 | select PXA25x | ||
117 | |||
60 | config ARCH_PXA_ESERIES | 118 | config ARCH_PXA_ESERIES |
61 | bool "PXA based Toshiba e-series PDAs" | 119 | bool "PXA based Toshiba e-series PDAs" |
62 | select PXA25x | 120 | select PXA25x |
@@ -69,10 +127,19 @@ config MACH_E330 | |||
69 | Say Y here if you intend to run this kernel on a Toshiba | 127 | Say Y here if you intend to run this kernel on a Toshiba |
70 | e330 family PDA. | 128 | e330 family PDA. |
71 | 129 | ||
130 | config MACH_E350 | ||
131 | bool "Toshiba e350" | ||
132 | default y | ||
133 | depends on ARCH_PXA_ESERIES | ||
134 | help | ||
135 | Say Y here if you intend to run this kernel on a Toshiba | ||
136 | e350 family PDA. | ||
137 | |||
72 | config MACH_E740 | 138 | config MACH_E740 |
73 | bool "Toshiba e740" | 139 | bool "Toshiba e740" |
74 | default y | 140 | default y |
75 | depends on ARCH_PXA_ESERIES | 141 | depends on ARCH_PXA_ESERIES |
142 | select FB_W100 | ||
76 | help | 143 | help |
77 | Say Y here if you intend to run this kernel on a Toshiba | 144 | Say Y here if you intend to run this kernel on a Toshiba |
78 | e740 family PDA. | 145 | e740 family PDA. |
@@ -81,6 +148,7 @@ config MACH_E750 | |||
81 | bool "Toshiba e750" | 148 | bool "Toshiba e750" |
82 | default y | 149 | default y |
83 | depends on ARCH_PXA_ESERIES | 150 | depends on ARCH_PXA_ESERIES |
151 | select FB_W100 | ||
84 | help | 152 | help |
85 | Say Y here if you intend to run this kernel on a Toshiba | 153 | Say Y here if you intend to run this kernel on a Toshiba |
86 | e750 family PDA. | 154 | e750 family PDA. |
@@ -97,6 +165,7 @@ config MACH_E800 | |||
97 | bool "Toshiba e800" | 165 | bool "Toshiba e800" |
98 | default y | 166 | default y |
99 | depends on ARCH_PXA_ESERIES | 167 | depends on ARCH_PXA_ESERIES |
168 | select FB_W100 | ||
100 | help | 169 | help |
101 | Say Y here if you intend to run this kernel on a Toshiba | 170 | Say Y here if you intend to run this kernel on a Toshiba |
102 | e800 family PDA. | 171 | e800 family PDA. |
@@ -105,6 +174,10 @@ config MACH_TRIZEPS4 | |||
105 | bool "Keith und Koep Trizeps4 DIMM-Module" | 174 | bool "Keith und Koep Trizeps4 DIMM-Module" |
106 | select PXA27x | 175 | select PXA27x |
107 | 176 | ||
177 | config MACH_TRIZEPS4_CONXS | ||
178 | bool "ConXS Eval Board" | ||
179 | depends on MACH_TRIZEPS4 | ||
180 | |||
108 | config MACH_EM_X270 | 181 | config MACH_EM_X270 |
109 | bool "CompuLab EM-x270 platform" | 182 | bool "CompuLab EM-x270 platform" |
110 | select PXA27x | 183 | select PXA27x |
@@ -114,14 +187,25 @@ config MACH_COLIBRI | |||
114 | select PXA27x | 187 | select PXA27x |
115 | 188 | ||
116 | config MACH_ZYLONITE | 189 | config MACH_ZYLONITE |
117 | bool "PXA3xx Development Platform" | 190 | bool "PXA3xx Development Platform (aka Zylonite)" |
118 | select PXA3xx | 191 | select PXA3xx |
192 | select HAVE_PWM | ||
119 | 193 | ||
120 | config MACH_LITTLETON | 194 | config MACH_LITTLETON |
121 | bool "PXA3xx Form Factor Platform (aka Littleton)" | 195 | bool "PXA3xx Form Factor Platform (aka Littleton)" |
122 | select PXA3xx | 196 | select PXA3xx |
123 | select PXA_SSP | 197 | select PXA_SSP |
124 | 198 | ||
199 | config MACH_TAVOREVB | ||
200 | bool "PXA930 Evaluation Board (aka TavorEVB)" | ||
201 | select PXA3xx | ||
202 | select PXA930 | ||
203 | |||
204 | config MACH_SAAR | ||
205 | bool "PXA930 Handheld Platform (aka SAAR)" | ||
206 | select PXA3xx | ||
207 | select PXA930 | ||
208 | |||
125 | config MACH_ARMCORE | 209 | config MACH_ARMCORE |
126 | bool "CompuLab CM-X270 modules" | 210 | bool "CompuLab CM-X270 modules" |
127 | select PXA27x | 211 | select PXA27x |
@@ -129,7 +213,6 @@ config MACH_ARMCORE | |||
129 | 213 | ||
130 | config MACH_MAGICIAN | 214 | config MACH_MAGICIAN |
131 | bool "Enable HTC Magician Support" | 215 | bool "Enable HTC Magician Support" |
132 | depends on ARCH_PXA | ||
133 | select PXA27x | 216 | select PXA27x |
134 | select IWMMXT | 217 | select IWMMXT |
135 | 218 | ||
@@ -137,109 +220,81 @@ config MACH_PCM027 | |||
137 | bool "Phytec phyCORE-PXA270 CPU module (PCM-027)" | 220 | bool "Phytec phyCORE-PXA270 CPU module (PCM-027)" |
138 | select PXA27x | 221 | select PXA27x |
139 | select IWMMXT | 222 | select IWMMXT |
223 | select PXA_SSP | ||
140 | 224 | ||
141 | endchoice | 225 | config ARCH_PXA_PALM |
226 | bool "PXA based Palm PDAs" | ||
227 | select HAVE_PWM | ||
142 | 228 | ||
143 | choice | 229 | config MACH_PALMTX |
144 | prompt "Used baseboard" | 230 | bool "Palm T|X" |
145 | depends on MACH_PCM027 | 231 | default y |
232 | depends on ARCH_PXA_PALM | ||
233 | select PXA27x | ||
234 | select IWMMXT | ||
235 | help | ||
236 | Say Y here if you intend to run this kernel on a Palm T|X | ||
237 | handheld computer. | ||
146 | 238 | ||
147 | config MACH_PCM990_BASEBOARD | 239 | config MACH_PCM990_BASEBOARD |
148 | bool "PHYTEC PCM-990 development board" | 240 | bool "PHYTEC PCM-990 development board" |
149 | 241 | select HAVE_PWM | |
150 | endchoice | 242 | depends on MACH_PCM027 |
151 | |||
152 | if PXA_SHARPSL | ||
153 | 243 | ||
154 | choice | 244 | choice |
155 | prompt "Select target Sharp Zaurus device range" | 245 | prompt "display on pcm990" |
156 | 246 | depends on MACH_PCM990_BASEBOARD | |
157 | config PXA_SHARPSL_25x | ||
158 | bool "Sharp PXA25x models (SL-5600, SL-C7xx and SL-C6000x)" | ||
159 | select PXA25x | ||
160 | |||
161 | config PXA_SHARPSL_27x | ||
162 | bool "Sharp PXA270 models (SL-Cxx00)" | ||
163 | select PXA27x | ||
164 | |||
165 | endchoice | ||
166 | 247 | ||
167 | endif | 248 | config PCM990_DISPLAY_SHARP |
249 | bool "sharp lq084v1dg21 stn display" | ||
168 | 250 | ||
169 | if ARCH_GUMSTIX | 251 | config PCM990_DISPLAY_NEC |
252 | bool "nec nl6448bc20_18d tft display" | ||
170 | 253 | ||
171 | choice | 254 | config PCM990_DISPLAY_NONE |
172 | prompt "Select target Gumstix board" | 255 | bool "no display" |
173 | |||
174 | config MACH_GUMSTIX_F | ||
175 | bool "Basix, Connex, ws-200ax, ws-400ax systems" | ||
176 | select PXA25x | ||
177 | 256 | ||
178 | endchoice | 257 | endchoice |
179 | 258 | ||
180 | endif | ||
181 | 259 | ||
260 | config PXA_EZX | ||
261 | bool "Motorola EZX Platform" | ||
262 | select PXA27x | ||
263 | select IWMMXT | ||
264 | select HAVE_PWM | ||
182 | 265 | ||
183 | if MACH_TRIZEPS4 | 266 | config MACH_EZX_A780 |
267 | bool "Motorola EZX A780" | ||
268 | default y | ||
269 | depends on PXA_EZX | ||
184 | 270 | ||
185 | choice | 271 | config MACH_EZX_E680 |
186 | prompt "Select base board for Trizeps 4 module" | 272 | bool "Motorola EZX E680" |
273 | default y | ||
274 | depends on PXA_EZX | ||
187 | 275 | ||
188 | config MACH_TRIZEPS4_CONXS | 276 | config MACH_EZX_A1200 |
189 | bool "ConXS Eval Board" | 277 | bool "Motorola EZX A1200" |
278 | default y | ||
279 | depends on PXA_EZX | ||
190 | 280 | ||
191 | config MACH_TRIZEPS4_ANY | 281 | config MACH_EZX_A910 |
192 | bool "another Board" | 282 | bool "Motorola EZX A910" |
283 | default y | ||
284 | depends on PXA_EZX | ||
193 | 285 | ||
194 | endchoice | 286 | config MACH_EZX_E6 |
287 | bool "Motorola EZX E6" | ||
288 | default y | ||
289 | depends on PXA_EZX | ||
195 | 290 | ||
196 | endif | 291 | config MACH_EZX_E2 |
292 | bool "Motorola EZX E2" | ||
293 | default y | ||
294 | depends on PXA_EZX | ||
197 | 295 | ||
198 | endmenu | 296 | endmenu |
199 | 297 | ||
200 | config MACH_POODLE | ||
201 | bool "Enable Sharp SL-5600 (Poodle) Support" | ||
202 | depends on PXA_SHARPSL_25x | ||
203 | select SHARP_LOCOMO | ||
204 | select PXA_SSP | ||
205 | |||
206 | config MACH_CORGI | ||
207 | bool "Enable Sharp SL-C700 (Corgi) Support" | ||
208 | depends on PXA_SHARPSL_25x | ||
209 | select PXA_SHARP_C7xx | ||
210 | |||
211 | config MACH_SHEPHERD | ||
212 | bool "Enable Sharp SL-C750 (Shepherd) Support" | ||
213 | depends on PXA_SHARPSL_25x | ||
214 | select PXA_SHARP_C7xx | ||
215 | |||
216 | config MACH_HUSKY | ||
217 | bool "Enable Sharp SL-C760 (Husky) Support" | ||
218 | depends on PXA_SHARPSL_25x | ||
219 | select PXA_SHARP_C7xx | ||
220 | |||
221 | config MACH_AKITA | ||
222 | bool "Enable Sharp SL-1000 (Akita) Support" | ||
223 | depends on PXA_SHARPSL_27x | ||
224 | select PXA_SHARP_Cxx00 | ||
225 | select MACH_SPITZ | ||
226 | select I2C | ||
227 | select I2C_PXA | ||
228 | |||
229 | config MACH_SPITZ | ||
230 | bool "Enable Sharp Zaurus SL-3000 (Spitz) Support" | ||
231 | depends on PXA_SHARPSL_27x | ||
232 | select PXA_SHARP_Cxx00 | ||
233 | |||
234 | config MACH_BORZOI | ||
235 | bool "Enable Sharp Zaurus SL-3100 (Borzoi) Support" | ||
236 | depends on PXA_SHARPSL_27x | ||
237 | select PXA_SHARP_Cxx00 | ||
238 | |||
239 | config MACH_TOSA | ||
240 | bool "Enable Sharp SL-6000x (Tosa) Support" | ||
241 | depends on PXA_SHARPSL_25x | ||
242 | |||
243 | config PXA25x | 298 | config PXA25x |
244 | bool | 299 | bool |
245 | help | 300 | help |
@@ -273,4 +328,19 @@ config PXA_SSP | |||
273 | tristate | 328 | tristate |
274 | help | 329 | help |
275 | Enable support for PXA2xx SSP ports | 330 | Enable support for PXA2xx SSP ports |
331 | |||
332 | config PXA_PWM | ||
333 | tristate | ||
334 | default BACKLIGHT_PWM | ||
335 | help | ||
336 | Enable support for PXA2xx/PXA3xx PWM controllers | ||
337 | |||
338 | config TOSA_BT | ||
339 | tristate "Control the state of built-in bluetooth chip on Sharp SL-6000" | ||
340 | depends on MACH_TOSA | ||
341 | select RFKILL | ||
342 | help | ||
343 | This is a simple driver that is able to control | ||
344 | the state of built in bluetooth chip on tosa. | ||
345 | |||
276 | endif | 346 | endif |
diff --git a/arch/arm/mach-pxa/Makefile b/arch/arm/mach-pxa/Makefile index 0e6d05bb81aa..99ecbe7f8506 100644 --- a/arch/arm/mach-pxa/Makefile +++ b/arch/arm/mach-pxa/Makefile | |||
@@ -4,19 +4,21 @@ | |||
4 | 4 | ||
5 | # Common support (must be linked before board specific support) | 5 | # Common support (must be linked before board specific support) |
6 | obj-y += clock.o devices.o generic.o irq.o dma.o \ | 6 | obj-y += clock.o devices.o generic.o irq.o dma.o \ |
7 | time.o gpio.o | 7 | time.o gpio.o reset.o |
8 | obj-$(CONFIG_PM) += pm.o sleep.o standby.o | 8 | obj-$(CONFIG_PM) += pm.o sleep.o standby.o |
9 | obj-$(CONFIG_CPU_FREQ) += cpu-pxa.o | 9 | obj-$(CONFIG_CPU_FREQ) += cpu-pxa.o |
10 | 10 | ||
11 | # Generic drivers that other drivers may depend upon | 11 | # Generic drivers that other drivers may depend upon |
12 | obj-$(CONFIG_PXA_SSP) += ssp.o | 12 | obj-$(CONFIG_PXA_SSP) += ssp.o |
13 | obj-$(CONFIG_PXA_PWM) += pwm.o | ||
13 | 14 | ||
14 | # SoC-specific code | 15 | # SoC-specific code |
15 | obj-$(CONFIG_PXA25x) += mfp-pxa2xx.o pxa25x.o | 16 | obj-$(CONFIG_PXA25x) += mfp-pxa2xx.o pxa2xx.o pxa25x.o |
16 | obj-$(CONFIG_PXA27x) += mfp-pxa2xx.o pxa27x.o | 17 | obj-$(CONFIG_PXA27x) += mfp-pxa2xx.o pxa2xx.o pxa27x.o |
17 | obj-$(CONFIG_PXA3xx) += mfp-pxa3xx.o pxa3xx.o smemc.o | 18 | obj-$(CONFIG_PXA3xx) += mfp-pxa3xx.o pxa3xx.o smemc.o |
18 | obj-$(CONFIG_CPU_PXA300) += pxa300.o | 19 | obj-$(CONFIG_CPU_PXA300) += pxa300.o |
19 | obj-$(CONFIG_CPU_PXA320) += pxa320.o | 20 | obj-$(CONFIG_CPU_PXA320) += pxa320.o |
21 | obj-$(CONFIG_CPU_PXA930) += pxa930.o | ||
20 | 22 | ||
21 | # Specific board support | 23 | # Specific board support |
22 | obj-$(CONFIG_ARCH_GUMSTIX) += gumstix.o | 24 | obj-$(CONFIG_ARCH_GUMSTIX) += gumstix.o |
@@ -35,7 +37,12 @@ obj-$(CONFIG_MACH_PCM990_BASEBOARD) += pcm990-baseboard.o | |||
35 | obj-$(CONFIG_MACH_TOSA) += tosa.o | 37 | obj-$(CONFIG_MACH_TOSA) += tosa.o |
36 | obj-$(CONFIG_MACH_EM_X270) += em-x270.o | 38 | obj-$(CONFIG_MACH_EM_X270) += em-x270.o |
37 | obj-$(CONFIG_MACH_MAGICIAN) += magician.o | 39 | obj-$(CONFIG_MACH_MAGICIAN) += magician.o |
38 | obj-$(CONFIG_ARCH_PXA_ESERIES) += eseries.o | 40 | obj-$(CONFIG_ARCH_PXA_ESERIES) += eseries.o eseries_udc.o |
41 | obj-$(CONFIG_MACH_E740) += e740_lcd.o | ||
42 | obj-$(CONFIG_MACH_E750) += e750_lcd.o | ||
43 | obj-$(CONFIG_MACH_E400) += e400_lcd.o | ||
44 | obj-$(CONFIG_MACH_E800) += e800_lcd.o | ||
45 | obj-$(CONFIG_MACH_PALMTX) += palmtx.o | ||
39 | 46 | ||
40 | ifeq ($(CONFIG_MACH_ZYLONITE),y) | 47 | ifeq ($(CONFIG_MACH_ZYLONITE),y) |
41 | obj-y += zylonite.o | 48 | obj-y += zylonite.o |
@@ -43,8 +50,11 @@ ifeq ($(CONFIG_MACH_ZYLONITE),y) | |||
43 | obj-$(CONFIG_CPU_PXA320) += zylonite_pxa320.o | 50 | obj-$(CONFIG_CPU_PXA320) += zylonite_pxa320.o |
44 | endif | 51 | endif |
45 | obj-$(CONFIG_MACH_LITTLETON) += littleton.o | 52 | obj-$(CONFIG_MACH_LITTLETON) += littleton.o |
53 | obj-$(CONFIG_MACH_TAVOREVB) += tavorevb.o | ||
54 | obj-$(CONFIG_MACH_SAAR) += saar.o | ||
46 | 55 | ||
47 | obj-$(CONFIG_MACH_ARMCORE) += cm-x270.o | 56 | obj-$(CONFIG_MACH_ARMCORE) += cm-x270.o |
57 | obj-$(CONFIG_PXA_EZX) += ezx.o | ||
48 | 58 | ||
49 | # Support for blinky lights | 59 | # Support for blinky lights |
50 | led-y := leds.o | 60 | led-y := leds.o |
@@ -58,3 +68,5 @@ obj-$(CONFIG_LEDS) += $(led-y) | |||
58 | ifeq ($(CONFIG_PCI),y) | 68 | ifeq ($(CONFIG_PCI),y) |
59 | obj-$(CONFIG_MACH_ARMCORE) += cm-x270-pci.o | 69 | obj-$(CONFIG_MACH_ARMCORE) += cm-x270-pci.o |
60 | endif | 70 | endif |
71 | |||
72 | obj-$(CONFIG_TOSA_BT) += tosa-bt.o | ||
diff --git a/arch/arm/mach-pxa/clock.c b/arch/arm/mach-pxa/clock.c index e97dc59813c8..630063ffa6fc 100644 --- a/arch/arm/mach-pxa/clock.c +++ b/arch/arm/mach-pxa/clock.c | |||
@@ -12,7 +12,7 @@ | |||
12 | #include <linux/platform_device.h> | 12 | #include <linux/platform_device.h> |
13 | #include <linux/delay.h> | 13 | #include <linux/delay.h> |
14 | 14 | ||
15 | #include <asm/arch/pxa-regs.h> | 15 | #include <asm/arch/pxa2xx-regs.h> |
16 | #include <asm/arch/pxa2xx-gpio.h> | 16 | #include <asm/arch/pxa2xx-gpio.h> |
17 | #include <asm/hardware.h> | 17 | #include <asm/hardware.h> |
18 | 18 | ||
@@ -47,6 +47,9 @@ struct clk *clk_get(struct device *dev, const char *id) | |||
47 | clk = p; | 47 | clk = p; |
48 | mutex_unlock(&clocks_mutex); | 48 | mutex_unlock(&clocks_mutex); |
49 | 49 | ||
50 | if (!IS_ERR(clk) && clk->ops == NULL) | ||
51 | clk = clk->other; | ||
52 | |||
50 | return clk; | 53 | return clk; |
51 | } | 54 | } |
52 | EXPORT_SYMBOL(clk_get); | 55 | EXPORT_SYMBOL(clk_get); |
@@ -98,21 +101,6 @@ unsigned long clk_get_rate(struct clk *clk) | |||
98 | EXPORT_SYMBOL(clk_get_rate); | 101 | EXPORT_SYMBOL(clk_get_rate); |
99 | 102 | ||
100 | 103 | ||
101 | static void clk_gpio27_enable(struct clk *clk) | ||
102 | { | ||
103 | pxa_gpio_mode(GPIO11_3_6MHz_MD); | ||
104 | } | ||
105 | |||
106 | static void clk_gpio27_disable(struct clk *clk) | ||
107 | { | ||
108 | } | ||
109 | |||
110 | static const struct clkops clk_gpio27_ops = { | ||
111 | .enable = clk_gpio27_enable, | ||
112 | .disable = clk_gpio27_disable, | ||
113 | }; | ||
114 | |||
115 | |||
116 | void clk_cken_enable(struct clk *clk) | 104 | void clk_cken_enable(struct clk *clk) |
117 | { | 105 | { |
118 | CKEN |= 1 << clk->cken; | 106 | CKEN |= 1 << clk->cken; |
@@ -128,14 +116,6 @@ const struct clkops clk_cken_ops = { | |||
128 | .disable = clk_cken_disable, | 116 | .disable = clk_cken_disable, |
129 | }; | 117 | }; |
130 | 118 | ||
131 | static struct clk common_clks[] = { | ||
132 | { | ||
133 | .name = "GPIO27_CLK", | ||
134 | .ops = &clk_gpio27_ops, | ||
135 | .rate = 3686400, | ||
136 | }, | ||
137 | }; | ||
138 | |||
139 | void clks_register(struct clk *clks, size_t num) | 119 | void clks_register(struct clk *clks, size_t num) |
140 | { | 120 | { |
141 | int i; | 121 | int i; |
@@ -145,10 +125,3 @@ void clks_register(struct clk *clks, size_t num) | |||
145 | list_add(&clks[i].node, &clocks); | 125 | list_add(&clks[i].node, &clocks); |
146 | mutex_unlock(&clocks_mutex); | 126 | mutex_unlock(&clocks_mutex); |
147 | } | 127 | } |
148 | |||
149 | static int __init clk_init(void) | ||
150 | { | ||
151 | clks_register(common_clks, ARRAY_SIZE(common_clks)); | ||
152 | return 0; | ||
153 | } | ||
154 | arch_initcall(clk_init); | ||
diff --git a/arch/arm/mach-pxa/clock.h b/arch/arm/mach-pxa/clock.h index bc6b77e1592e..1ec8f9178aaf 100644 --- a/arch/arm/mach-pxa/clock.h +++ b/arch/arm/mach-pxa/clock.h | |||
@@ -15,6 +15,7 @@ struct clk { | |||
15 | unsigned int cken; | 15 | unsigned int cken; |
16 | unsigned int delay; | 16 | unsigned int delay; |
17 | unsigned int enabled; | 17 | unsigned int enabled; |
18 | struct clk *other; | ||
18 | }; | 19 | }; |
19 | 20 | ||
20 | #define INIT_CKEN(_name, _cken, _rate, _delay, _dev) \ | 21 | #define INIT_CKEN(_name, _cken, _rate, _delay, _dev) \ |
@@ -35,9 +36,53 @@ struct clk { | |||
35 | .cken = CKEN_##_cken, \ | 36 | .cken = CKEN_##_cken, \ |
36 | } | 37 | } |
37 | 38 | ||
39 | /* | ||
40 | * This is a placeholder to alias one clock device+name pair | ||
41 | * to another struct clk. | ||
42 | */ | ||
43 | #define INIT_CKOTHER(_name, _other, _dev) \ | ||
44 | { \ | ||
45 | .name = _name, \ | ||
46 | .dev = _dev, \ | ||
47 | .other = _other, \ | ||
48 | } | ||
49 | |||
50 | #define INIT_CLK(_name, _ops, _rate, _delay, _dev) \ | ||
51 | { \ | ||
52 | .name = _name, \ | ||
53 | .dev = _dev, \ | ||
54 | .ops = _ops, \ | ||
55 | .rate = _rate, \ | ||
56 | .delay = _delay, \ | ||
57 | } | ||
58 | |||
38 | extern const struct clkops clk_cken_ops; | 59 | extern const struct clkops clk_cken_ops; |
39 | 60 | ||
40 | void clk_cken_enable(struct clk *clk); | 61 | void clk_cken_enable(struct clk *clk); |
41 | void clk_cken_disable(struct clk *clk); | 62 | void clk_cken_disable(struct clk *clk); |
42 | 63 | ||
64 | #ifdef CONFIG_PXA3xx | ||
65 | #define PXA3xx_CKEN(_name, _cken, _rate, _delay, _dev) \ | ||
66 | { \ | ||
67 | .name = _name, \ | ||
68 | .dev = _dev, \ | ||
69 | .ops = &clk_pxa3xx_cken_ops, \ | ||
70 | .rate = _rate, \ | ||
71 | .cken = CKEN_##_cken, \ | ||
72 | .delay = _delay, \ | ||
73 | } | ||
74 | |||
75 | #define PXA3xx_CK(_name, _cken, _ops, _dev) \ | ||
76 | { \ | ||
77 | .name = _name, \ | ||
78 | .dev = _dev, \ | ||
79 | .ops = _ops, \ | ||
80 | .cken = CKEN_##_cken, \ | ||
81 | } | ||
82 | |||
83 | extern const struct clkops clk_pxa3xx_cken_ops; | ||
84 | extern void clk_pxa3xx_cken_enable(struct clk *); | ||
85 | extern void clk_pxa3xx_cken_disable(struct clk *); | ||
86 | #endif | ||
87 | |||
43 | void clks_register(struct clk *clks, size_t num); | 88 | void clks_register(struct clk *clks, size_t num); |
diff --git a/arch/arm/mach-pxa/cm-x270-pci.c b/arch/arm/mach-pxa/cm-x270-pci.c index ac7f05f9f3eb..bcf0cde6ccc9 100644 --- a/arch/arm/mach-pxa/cm-x270-pci.c +++ b/arch/arm/mach-pxa/cm-x270-pci.c | |||
@@ -5,7 +5,7 @@ | |||
5 | * | 5 | * |
6 | * Bits taken from various places. | 6 | * Bits taken from various places. |
7 | * | 7 | * |
8 | * Copyright (C) 2007 Compulab, Ltd. | 8 | * Copyright (C) 2007, 2008 Compulab, Ltd. |
9 | * Mike Rapoport <mike@compulab.co.il> | 9 | * Mike Rapoport <mike@compulab.co.il> |
10 | * | 10 | * |
11 | * This program is free software; you can redistribute it and/or modify | 11 | * This program is free software; you can redistribute it and/or modify |
@@ -19,16 +19,16 @@ | |||
19 | #include <linux/device.h> | 19 | #include <linux/device.h> |
20 | #include <linux/platform_device.h> | 20 | #include <linux/platform_device.h> |
21 | #include <linux/irq.h> | 21 | #include <linux/irq.h> |
22 | #include <linux/gpio.h> | ||
22 | 23 | ||
23 | #include <asm/mach/pci.h> | 24 | #include <asm/mach/pci.h> |
24 | #include <asm/arch/cm-x270.h> | ||
25 | #include <asm/arch/pxa-regs.h> | 25 | #include <asm/arch/pxa-regs.h> |
26 | #include <asm/arch/pxa2xx-gpio.h> | ||
27 | #include <asm/mach-types.h> | 26 | #include <asm/mach-types.h> |
28 | 27 | ||
29 | #include <asm/hardware/it8152.h> | 28 | #include <asm/hardware/it8152.h> |
30 | 29 | ||
31 | unsigned long it8152_base_address = CMX270_IT8152_VIRT; | 30 | unsigned long it8152_base_address; |
31 | static int cmx270_it8152_irq_gpio; | ||
32 | 32 | ||
33 | /* | 33 | /* |
34 | * Only first 64MB of memory can be accessed via PCI. | 34 | * Only first 64MB of memory can be accessed via PCI. |
@@ -41,36 +41,39 @@ void __init cmx270_pci_adjust_zones(int node, unsigned long *zone_size, | |||
41 | { | 41 | { |
42 | unsigned int sz = SZ_64M >> PAGE_SHIFT; | 42 | unsigned int sz = SZ_64M >> PAGE_SHIFT; |
43 | 43 | ||
44 | pr_info("Adjusting zones for CM-x270\n"); | 44 | if (machine_is_armcore()) { |
45 | pr_info("Adjusting zones for CM-X270\n"); | ||
45 | 46 | ||
46 | /* | 47 | /* |
47 | * Only adjust if > 64M on current system | 48 | * Only adjust if > 64M on current system |
48 | */ | 49 | */ |
49 | if (node || (zone_size[0] <= sz)) | 50 | if (node || (zone_size[0] <= sz)) |
50 | return; | 51 | return; |
51 | 52 | ||
52 | zone_size[1] = zone_size[0] - sz; | 53 | zone_size[1] = zone_size[0] - sz; |
53 | zone_size[0] = sz; | 54 | zone_size[0] = sz; |
54 | zhole_size[1] = zhole_size[0]; | 55 | zhole_size[1] = zhole_size[0]; |
55 | zhole_size[0] = 0; | 56 | zhole_size[0] = 0; |
57 | } | ||
56 | } | 58 | } |
57 | 59 | ||
58 | static void cmx270_it8152_irq_demux(unsigned int irq, struct irq_desc *desc) | 60 | static void cmx270_it8152_irq_demux(unsigned int irq, struct irq_desc *desc) |
59 | { | 61 | { |
60 | /* clear our parent irq */ | 62 | /* clear our parent irq */ |
61 | GEDR(GPIO_IT8152_IRQ) = GPIO_bit(GPIO_IT8152_IRQ); | 63 | GEDR(cmx270_it8152_irq_gpio) = GPIO_bit(cmx270_it8152_irq_gpio); |
62 | 64 | ||
63 | it8152_irq_demux(irq, desc); | 65 | it8152_irq_demux(irq, desc); |
64 | } | 66 | } |
65 | 67 | ||
66 | void __cmx270_pci_init_irq(void) | 68 | void __cmx270_pci_init_irq(int irq_gpio) |
67 | { | 69 | { |
68 | it8152_init_irq(); | 70 | it8152_init_irq(); |
69 | pxa_gpio_mode(IRQ_TO_GPIO(GPIO_IT8152_IRQ)); | ||
70 | set_irq_type(IRQ_GPIO(GPIO_IT8152_IRQ), IRQT_RISING); | ||
71 | 71 | ||
72 | set_irq_chained_handler(IRQ_GPIO(GPIO_IT8152_IRQ), | 72 | cmx270_it8152_irq_gpio = irq_gpio; |
73 | cmx270_it8152_irq_demux); | 73 | |
74 | set_irq_type(gpio_to_irq(irq_gpio), IRQT_RISING); | ||
75 | |||
76 | set_irq_chained_handler(gpio_to_irq(irq_gpio), cmx270_it8152_irq_demux); | ||
74 | } | 77 | } |
75 | 78 | ||
76 | #ifdef CONFIG_PM | 79 | #ifdef CONFIG_PM |
@@ -113,8 +116,8 @@ static int __init cmx270_pci_map_irq(struct pci_dev *dev, u8 slot, u8 pin) | |||
113 | 116 | ||
114 | /* | 117 | /* |
115 | Here comes the ugly part. The routing is baseboard specific, | 118 | Here comes the ugly part. The routing is baseboard specific, |
116 | but defining a platform for each possible base of CM-x270 is | 119 | but defining a platform for each possible base of CM-X270 is |
117 | unrealistic. Here we keep mapping for ATXBase and SB-x270. | 120 | unrealistic. Here we keep mapping for ATXBase and SB-X270. |
118 | */ | 121 | */ |
119 | /* ATXBASE PCI slot */ | 122 | /* ATXBASE PCI slot */ |
120 | if (slot == 7) | 123 | if (slot == 7) |
diff --git a/arch/arm/mach-pxa/cm-x270-pci.h b/arch/arm/mach-pxa/cm-x270-pci.h index ffe37b66f9a0..48f532f4cb51 100644 --- a/arch/arm/mach-pxa/cm-x270-pci.h +++ b/arch/arm/mach-pxa/cm-x270-pci.h | |||
@@ -1,13 +1,13 @@ | |||
1 | extern void __cmx270_pci_init_irq(void); | 1 | extern void __cmx270_pci_init_irq(int irq_gpio); |
2 | extern void __cmx270_pci_suspend(void); | 2 | extern void __cmx270_pci_suspend(void); |
3 | extern void __cmx270_pci_resume(void); | 3 | extern void __cmx270_pci_resume(void); |
4 | 4 | ||
5 | #ifdef CONFIG_PCI | 5 | #ifdef CONFIG_PCI |
6 | #define cmx270_pci_init_irq __cmx270_pci_init_irq | 6 | #define cmx270_pci_init_irq(x) __cmx270_pci_init_irq(x) |
7 | #define cmx270_pci_suspend __cmx270_pci_suspend | 7 | #define cmx270_pci_suspend(x) __cmx270_pci_suspend(x) |
8 | #define cmx270_pci_resume __cmx270_pci_resume | 8 | #define cmx270_pci_resume(x) __cmx270_pci_resume(x) |
9 | #else | 9 | #else |
10 | #define cmx270_pci_init_irq() do {} while (0) | 10 | #define cmx270_pci_init_irq(x) do {} while (0) |
11 | #define cmx270_pci_suspend() do {} while (0) | 11 | #define cmx270_pci_suspend(x) do {} while (0) |
12 | #define cmx270_pci_resume() do {} while (0) | 12 | #define cmx270_pci_resume(x) do {} while (0) |
13 | #endif | 13 | #endif |
diff --git a/arch/arm/mach-pxa/cm-x270.c b/arch/arm/mach-pxa/cm-x270.c index f5851d1adc25..402e807eae54 100644 --- a/arch/arm/mach-pxa/cm-x270.c +++ b/arch/arm/mach-pxa/cm-x270.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * linux/arch/arm/mach-pxa/cm-x270.c | 2 | * linux/arch/arm/mach-pxa/cm-x270.c |
3 | * | 3 | * |
4 | * Copyright (C) 2007 CompuLab, Ltd. | 4 | * Copyright (C) 2007, 2008 CompuLab, Ltd. |
5 | * Mike Rapoport <mike@compulab.co.il> | 5 | * Mike Rapoport <mike@compulab.co.il> |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify | 7 | * This program is free software; you can redistribute it and/or modify |
@@ -9,43 +9,156 @@ | |||
9 | * published by the Free Software Foundation. | 9 | * published by the Free Software Foundation. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/types.h> | ||
13 | #include <linux/pm.h> | ||
14 | #include <linux/fb.h> | ||
15 | #include <linux/platform_device.h> | 12 | #include <linux/platform_device.h> |
16 | #include <linux/irq.h> | ||
17 | #include <linux/sysdev.h> | 13 | #include <linux/sysdev.h> |
18 | #include <linux/io.h> | 14 | #include <linux/irq.h> |
19 | #include <linux/delay.h> | 15 | #include <linux/gpio.h> |
20 | 16 | ||
21 | #include <linux/dm9000.h> | 17 | #include <linux/dm9000.h> |
22 | #include <linux/rtc-v3020.h> | 18 | #include <linux/rtc-v3020.h> |
23 | #include <linux/serial_8250.h> | ||
24 | |||
25 | #include <video/mbxfb.h> | 19 | #include <video/mbxfb.h> |
20 | #include <linux/leds.h> | ||
26 | 21 | ||
27 | #include <asm/mach/arch.h> | 22 | #include <asm/mach/arch.h> |
28 | #include <asm/mach-types.h> | 23 | #include <asm/mach-types.h> |
29 | #include <asm/mach/map.h> | 24 | #include <asm/mach/map.h> |
30 | 25 | ||
31 | #include <asm/arch/pxa-regs.h> | ||
32 | #include <asm/arch/pxa2xx-regs.h> | 26 | #include <asm/arch/pxa2xx-regs.h> |
33 | #include <asm/arch/pxa2xx-gpio.h> | 27 | #include <asm/arch/mfp-pxa27x.h> |
28 | #include <asm/arch/pxa-regs.h> | ||
29 | #include <asm/arch/audio.h> | ||
34 | #include <asm/arch/pxafb.h> | 30 | #include <asm/arch/pxafb.h> |
35 | #include <asm/arch/ohci.h> | 31 | #include <asm/arch/ohci.h> |
36 | #include <asm/arch/mmc.h> | 32 | #include <asm/arch/mmc.h> |
37 | #include <asm/arch/bitfield.h> | 33 | #include <asm/arch/bitfield.h> |
38 | #include <asm/arch/cm-x270.h> | ||
39 | 34 | ||
40 | #include <asm/hardware/it8152.h> | 35 | #include <asm/hardware/it8152.h> |
41 | 36 | ||
42 | #include "generic.h" | 37 | #include "generic.h" |
43 | #include "cm-x270-pci.h" | 38 | #include "cm-x270-pci.h" |
44 | 39 | ||
40 | /* virtual addresses for statically mapped regions */ | ||
41 | #define CMX270_VIRT_BASE (0xe8000000) | ||
42 | #define CMX270_IT8152_VIRT (CMX270_VIRT_BASE) | ||
43 | |||
45 | #define RTC_PHYS_BASE (PXA_CS1_PHYS + (5 << 22)) | 44 | #define RTC_PHYS_BASE (PXA_CS1_PHYS + (5 << 22)) |
46 | #define DM9000_PHYS_BASE (PXA_CS1_PHYS + (6 << 22)) | 45 | #define DM9000_PHYS_BASE (PXA_CS1_PHYS + (6 << 22)) |
47 | 46 | ||
48 | static struct resource cmx270_dm9k_resource[] = { | 47 | /* GPIO IRQ usage */ |
48 | #define GPIO10_ETHIRQ (10) | ||
49 | #define GPIO22_IT8152_IRQ (22) | ||
50 | #define GPIO83_MMC_IRQ (83) | ||
51 | #define GPIO95_GFXIRQ (95) | ||
52 | |||
53 | #define CMX270_ETHIRQ IRQ_GPIO(GPIO10_ETHIRQ) | ||
54 | #define CMX270_IT8152_IRQ IRQ_GPIO(GPIO22_IT8152_IRQ) | ||
55 | #define CMX270_MMC_IRQ IRQ_GPIO(GPIO83_MMC_IRQ) | ||
56 | #define CMX270_GFXIRQ IRQ_GPIO(GPIO95_GFXIRQ) | ||
57 | |||
58 | /* MMC power enable */ | ||
59 | #define GPIO105_MMC_POWER (105) | ||
60 | |||
61 | static unsigned long cmx270_pin_config[] = { | ||
62 | /* AC'97 */ | ||
63 | GPIO28_AC97_BITCLK, | ||
64 | GPIO29_AC97_SDATA_IN_0, | ||
65 | GPIO30_AC97_SDATA_OUT, | ||
66 | GPIO31_AC97_SYNC, | ||
67 | GPIO98_AC97_SYSCLK, | ||
68 | GPIO113_AC97_nRESET, | ||
69 | |||
70 | /* BTUART */ | ||
71 | GPIO42_BTUART_RXD, | ||
72 | GPIO43_BTUART_TXD, | ||
73 | GPIO44_BTUART_CTS, | ||
74 | GPIO45_BTUART_RTS, | ||
75 | |||
76 | /* STUART */ | ||
77 | GPIO46_STUART_RXD, | ||
78 | GPIO47_STUART_TXD, | ||
79 | |||
80 | /* MCI controller */ | ||
81 | GPIO32_MMC_CLK, | ||
82 | GPIO112_MMC_CMD, | ||
83 | GPIO92_MMC_DAT_0, | ||
84 | GPIO109_MMC_DAT_1, | ||
85 | GPIO110_MMC_DAT_2, | ||
86 | GPIO111_MMC_DAT_3, | ||
87 | |||
88 | /* LCD */ | ||
89 | GPIO58_LCD_LDD_0, | ||
90 | GPIO59_LCD_LDD_1, | ||
91 | GPIO60_LCD_LDD_2, | ||
92 | GPIO61_LCD_LDD_3, | ||
93 | GPIO62_LCD_LDD_4, | ||
94 | GPIO63_LCD_LDD_5, | ||
95 | GPIO64_LCD_LDD_6, | ||
96 | GPIO65_LCD_LDD_7, | ||
97 | GPIO66_LCD_LDD_8, | ||
98 | GPIO67_LCD_LDD_9, | ||
99 | GPIO68_LCD_LDD_10, | ||
100 | GPIO69_LCD_LDD_11, | ||
101 | GPIO70_LCD_LDD_12, | ||
102 | GPIO71_LCD_LDD_13, | ||
103 | GPIO72_LCD_LDD_14, | ||
104 | GPIO73_LCD_LDD_15, | ||
105 | GPIO74_LCD_FCLK, | ||
106 | GPIO75_LCD_LCLK, | ||
107 | GPIO76_LCD_PCLK, | ||
108 | GPIO77_LCD_BIAS, | ||
109 | |||
110 | /* I2C */ | ||
111 | GPIO117_I2C_SCL, | ||
112 | GPIO118_I2C_SDA, | ||
113 | |||
114 | /* SSP1 */ | ||
115 | GPIO23_SSP1_SCLK, | ||
116 | GPIO24_SSP1_SFRM, | ||
117 | GPIO25_SSP1_TXD, | ||
118 | GPIO26_SSP1_RXD, | ||
119 | |||
120 | /* SSP2 */ | ||
121 | GPIO19_SSP2_SCLK, | ||
122 | GPIO14_SSP2_SFRM, | ||
123 | GPIO87_SSP2_TXD, | ||
124 | GPIO88_SSP2_RXD, | ||
125 | |||
126 | /* PC Card */ | ||
127 | GPIO48_nPOE, | ||
128 | GPIO49_nPWE, | ||
129 | GPIO50_nPIOR, | ||
130 | GPIO51_nPIOW, | ||
131 | GPIO85_nPCE_1, | ||
132 | GPIO54_nPCE_2, | ||
133 | GPIO55_nPREG, | ||
134 | GPIO56_nPWAIT, | ||
135 | GPIO57_nIOIS16, | ||
136 | |||
137 | /* SDRAM and local bus */ | ||
138 | GPIO15_nCS_1, | ||
139 | GPIO78_nCS_2, | ||
140 | GPIO79_nCS_3, | ||
141 | GPIO80_nCS_4, | ||
142 | GPIO33_nCS_5, | ||
143 | GPIO49_nPWE, | ||
144 | GPIO18_RDY, | ||
145 | |||
146 | /* GPIO */ | ||
147 | GPIO0_GPIO | WAKEUP_ON_EDGE_BOTH, | ||
148 | GPIO105_GPIO | MFP_LPM_DRIVE_HIGH, /* MMC/SD power */ | ||
149 | GPIO53_GPIO, /* PC card reset */ | ||
150 | |||
151 | /* NAND controls */ | ||
152 | GPIO11_GPIO | MFP_LPM_DRIVE_HIGH, /* NAND CE# */ | ||
153 | GPIO89_GPIO, /* NAND Ready/Busy */ | ||
154 | |||
155 | /* interrupts */ | ||
156 | GPIO10_GPIO, /* DM9000 interrupt */ | ||
157 | GPIO83_GPIO, /* MMC card detect */ | ||
158 | }; | ||
159 | |||
160 | #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE) | ||
161 | static struct resource cmx270_dm9000_resource[] = { | ||
49 | [0] = { | 162 | [0] = { |
50 | .start = DM9000_PHYS_BASE, | 163 | .start = DM9000_PHYS_BASE, |
51 | .end = DM9000_PHYS_BASE + 4, | 164 | .end = DM9000_PHYS_BASE + 4, |
@@ -63,37 +176,45 @@ static struct resource cmx270_dm9k_resource[] = { | |||
63 | } | 176 | } |
64 | }; | 177 | }; |
65 | 178 | ||
66 | /* for the moment we limit ourselves to 32bit IO until some | 179 | static struct dm9000_plat_data cmx270_dm9000_platdata = { |
67 | * better IO routines can be written and tested | ||
68 | */ | ||
69 | static struct dm9000_plat_data cmx270_dm9k_platdata = { | ||
70 | .flags = DM9000_PLATF_32BITONLY, | 180 | .flags = DM9000_PLATF_32BITONLY, |
71 | }; | 181 | }; |
72 | 182 | ||
73 | /* Ethernet device */ | 183 | static struct platform_device cmx270_dm9000_device = { |
74 | static struct platform_device cmx270_device_dm9k = { | ||
75 | .name = "dm9000", | 184 | .name = "dm9000", |
76 | .id = 0, | 185 | .id = 0, |
77 | .num_resources = ARRAY_SIZE(cmx270_dm9k_resource), | 186 | .num_resources = ARRAY_SIZE(cmx270_dm9000_resource), |
78 | .resource = cmx270_dm9k_resource, | 187 | .resource = cmx270_dm9000_resource, |
79 | .dev = { | 188 | .dev = { |
80 | .platform_data = &cmx270_dm9k_platdata, | 189 | .platform_data = &cmx270_dm9000_platdata, |
81 | } | 190 | } |
82 | }; | 191 | }; |
83 | 192 | ||
84 | /* audio device */ | 193 | static void __init cmx270_init_dm9000(void) |
85 | static struct platform_device cmx270_audio_device = { | 194 | { |
86 | .name = "pxa2xx-ac97", | 195 | platform_device_register(&cmx270_dm9000_device); |
87 | .id = -1, | 196 | } |
88 | }; | 197 | #else |
198 | static inline void cmx270_init_dm9000(void) {} | ||
199 | #endif | ||
89 | 200 | ||
90 | /* touchscreen controller */ | 201 | /* UCB1400 touchscreen controller */ |
202 | #if defined(CONFIG_TOUCHSCREEN_UCB1400) || defined(CONFIG_TOUCHSCREEN_UCB1400_MODULE) | ||
91 | static struct platform_device cmx270_ts_device = { | 203 | static struct platform_device cmx270_ts_device = { |
92 | .name = "ucb1400_ts", | 204 | .name = "ucb1400_ts", |
93 | .id = -1, | 205 | .id = -1, |
94 | }; | 206 | }; |
95 | 207 | ||
96 | /* RTC */ | 208 | static void __init cmx270_init_touchscreen(void) |
209 | { | ||
210 | platform_device_register(&cmx270_ts_device); | ||
211 | } | ||
212 | #else | ||
213 | static inline void cmx270_init_touchscreen(void) {} | ||
214 | #endif | ||
215 | |||
216 | /* V3020 RTC */ | ||
217 | #if defined(CONFIG_RTC_DRV_V3020) || defined(CONFIG_RTC_DRV_V3020_MODULE) | ||
97 | static struct resource cmx270_v3020_resource[] = { | 218 | static struct resource cmx270_v3020_resource[] = { |
98 | [0] = { | 219 | [0] = { |
99 | .start = RTC_PHYS_BASE, | 220 | .start = RTC_PHYS_BASE, |
@@ -116,28 +237,67 @@ static struct platform_device cmx270_rtc_device = { | |||
116 | } | 237 | } |
117 | }; | 238 | }; |
118 | 239 | ||
119 | /* | 240 | static void __init cmx270_init_rtc(void) |
120 | * CM-X270 LEDs | 241 | { |
121 | */ | 242 | platform_device_register(&cmx270_rtc_device); |
243 | } | ||
244 | #else | ||
245 | static inline void cmx270_init_rtc(void) {} | ||
246 | #endif | ||
247 | |||
248 | /* CM-X270 LEDs */ | ||
249 | #if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE) | ||
250 | static struct gpio_led cmx270_leds[] = { | ||
251 | [0] = { | ||
252 | .name = "cm-x270:red", | ||
253 | .default_trigger = "nand-disk", | ||
254 | .gpio = 93, | ||
255 | .active_low = 1, | ||
256 | }, | ||
257 | [1] = { | ||
258 | .name = "cm-x270:green", | ||
259 | .default_trigger = "heartbeat", | ||
260 | .gpio = 94, | ||
261 | .active_low = 1, | ||
262 | }, | ||
263 | }; | ||
264 | |||
265 | static struct gpio_led_platform_data cmx270_gpio_led_pdata = { | ||
266 | .num_leds = ARRAY_SIZE(cmx270_leds), | ||
267 | .leds = cmx270_leds, | ||
268 | }; | ||
269 | |||
122 | static struct platform_device cmx270_led_device = { | 270 | static struct platform_device cmx270_led_device = { |
123 | .name = "cm-x270-led", | 271 | .name = "leds-gpio", |
124 | .id = -1, | 272 | .id = -1, |
273 | .dev = { | ||
274 | .platform_data = &cmx270_gpio_led_pdata, | ||
275 | }, | ||
125 | }; | 276 | }; |
126 | 277 | ||
278 | static void __init cmx270_init_leds(void) | ||
279 | { | ||
280 | platform_device_register(&cmx270_led_device); | ||
281 | } | ||
282 | #else | ||
283 | static inline void cmx270_init_leds(void) {} | ||
284 | #endif | ||
285 | |||
127 | /* 2700G graphics */ | 286 | /* 2700G graphics */ |
287 | #if defined(CONFIG_FB_MBX) || defined(CONFIG_FB_MBX_MODULE) | ||
128 | static u64 fb_dma_mask = ~(u64)0; | 288 | static u64 fb_dma_mask = ~(u64)0; |
129 | 289 | ||
130 | static struct resource cmx270_2700G_resource[] = { | 290 | static struct resource cmx270_2700G_resource[] = { |
131 | /* frame buffer memory including ODFB and External SDRAM */ | 291 | /* frame buffer memory including ODFB and External SDRAM */ |
132 | [0] = { | 292 | [0] = { |
133 | .start = MARATHON_PHYS, | 293 | .start = PXA_CS2_PHYS, |
134 | .end = MARATHON_PHYS + 0x02000000, | 294 | .end = PXA_CS2_PHYS + 0x01ffffff, |
135 | .flags = IORESOURCE_MEM, | 295 | .flags = IORESOURCE_MEM, |
136 | }, | 296 | }, |
137 | /* Marathon registers */ | 297 | /* Marathon registers */ |
138 | [1] = { | 298 | [1] = { |
139 | .start = MARATHON_PHYS + 0x03fe0000, | 299 | .start = PXA_CS2_PHYS + 0x03fe0000, |
140 | .end = MARATHON_PHYS + 0x03ffffff, | 300 | .end = PXA_CS2_PHYS + 0x03ffffff, |
141 | .flags = IORESOURCE_MEM, | 301 | .flags = IORESOURCE_MEM, |
142 | }, | 302 | }, |
143 | }; | 303 | }; |
@@ -205,44 +365,15 @@ static struct platform_device cmx270_2700G = { | |||
205 | .id = -1, | 365 | .id = -1, |
206 | }; | 366 | }; |
207 | 367 | ||
208 | static u64 ata_dma_mask = ~(u64)0; | 368 | static void __init cmx270_init_2700G(void) |
209 | 369 | { | |
210 | static struct platform_device cmx270_ata = { | 370 | platform_device_register(&cmx270_2700G); |
211 | .name = "pata_cm_x270", | 371 | } |
212 | .id = -1, | 372 | #else |
213 | .dev = { | 373 | static inline void cmx270_init_2700G(void) {} |
214 | .dma_mask = &ata_dma_mask, | 374 | #endif |
215 | .coherent_dma_mask = 0xffffffff, | ||
216 | }, | ||
217 | }; | ||
218 | |||
219 | /* platform devices */ | ||
220 | static struct platform_device *platform_devices[] __initdata = { | ||
221 | &cmx270_device_dm9k, | ||
222 | &cmx270_audio_device, | ||
223 | &cmx270_rtc_device, | ||
224 | &cmx270_2700G, | ||
225 | &cmx270_led_device, | ||
226 | &cmx270_ts_device, | ||
227 | &cmx270_ata, | ||
228 | }; | ||
229 | |||
230 | /* Map PCI companion and IDE/General Purpose CS statically */ | ||
231 | static struct map_desc cmx270_io_desc[] __initdata = { | ||
232 | [0] = { /* IDE/general purpose space */ | ||
233 | .virtual = CMX270_IDE104_VIRT, | ||
234 | .pfn = __phys_to_pfn(CMX270_IDE104_PHYS), | ||
235 | .length = SZ_64M - SZ_8M, | ||
236 | .type = MT_DEVICE | ||
237 | }, | ||
238 | [1] = { /* PCI bridge */ | ||
239 | .virtual = CMX270_IT8152_VIRT, | ||
240 | .pfn = __phys_to_pfn(CMX270_IT8152_PHYS), | ||
241 | .length = SZ_64M, | ||
242 | .type = MT_DEVICE | ||
243 | }, | ||
244 | }; | ||
245 | 375 | ||
376 | #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE) | ||
246 | /* | 377 | /* |
247 | Display definitions | 378 | Display definitions |
248 | keep these for backwards compatibility, although symbolic names (as | 379 | keep these for backwards compatibility, although symbolic names (as |
@@ -452,7 +583,16 @@ static int __init cmx270_set_display(char *str) | |||
452 | */ | 583 | */ |
453 | __setup("monitor=", cmx270_set_display); | 584 | __setup("monitor=", cmx270_set_display); |
454 | 585 | ||
586 | static void __init cmx270_init_display(void) | ||
587 | { | ||
588 | set_pxa_fb_info(cmx270_display); | ||
589 | } | ||
590 | #else | ||
591 | static inline void cmx270_init_display(void) {} | ||
592 | #endif | ||
593 | |||
455 | /* PXA27x OHCI controller setup */ | 594 | /* PXA27x OHCI controller setup */ |
595 | #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) | ||
456 | static int cmx270_ohci_init(struct device *dev) | 596 | static int cmx270_ohci_init(struct device *dev) |
457 | { | 597 | { |
458 | /* Set the Power Control Polarity Low */ | 598 | /* Set the Power Control Polarity Low */ |
@@ -467,35 +607,37 @@ static struct pxaohci_platform_data cmx270_ohci_platform_data = { | |||
467 | .init = cmx270_ohci_init, | 607 | .init = cmx270_ohci_init, |
468 | }; | 608 | }; |
469 | 609 | ||
610 | static void __init cmx270_init_ohci(void) | ||
611 | { | ||
612 | pxa_set_ohci_info(&cmx270_ohci_platform_data); | ||
613 | } | ||
614 | #else | ||
615 | static inline void cmx270_init_ohci(void) {} | ||
616 | #endif | ||
470 | 617 | ||
618 | #if defined(CONFIG_MMC) || defined(CONFIG_MMC_MODULE) | ||
471 | static int cmx270_mci_init(struct device *dev, | 619 | static int cmx270_mci_init(struct device *dev, |
472 | irq_handler_t cmx270_detect_int, | 620 | irq_handler_t cmx270_detect_int, |
473 | void *data) | 621 | void *data) |
474 | { | 622 | { |
475 | int err; | 623 | int err; |
476 | 624 | ||
477 | /* | 625 | err = gpio_request(GPIO105_MMC_POWER, "MMC/SD power"); |
478 | * setup GPIO for PXA27x MMC controller | 626 | if (err) { |
479 | */ | 627 | dev_warn(dev, "power gpio unavailable\n"); |
480 | pxa_gpio_mode(GPIO32_MMCCLK_MD); | 628 | return err; |
481 | pxa_gpio_mode(GPIO112_MMCCMD_MD); | 629 | } |
482 | pxa_gpio_mode(GPIO92_MMCDAT0_MD); | ||
483 | pxa_gpio_mode(GPIO109_MMCDAT1_MD); | ||
484 | pxa_gpio_mode(GPIO110_MMCDAT2_MD); | ||
485 | pxa_gpio_mode(GPIO111_MMCDAT3_MD); | ||
486 | |||
487 | /* SB-X270 uses GPIO105 as SD power enable */ | ||
488 | pxa_gpio_mode(105 | GPIO_OUT); | ||
489 | 630 | ||
490 | /* card detect IRQ on GPIO 83 */ | 631 | gpio_direction_output(GPIO105_MMC_POWER, 0); |
491 | pxa_gpio_mode(IRQ_TO_GPIO(CMX270_MMC_IRQ)); | ||
492 | 632 | ||
493 | err = request_irq(CMX270_MMC_IRQ, cmx270_detect_int, | 633 | err = request_irq(CMX270_MMC_IRQ, cmx270_detect_int, |
494 | IRQF_DISABLED | IRQF_TRIGGER_FALLING, | 634 | IRQF_DISABLED | IRQF_TRIGGER_FALLING, |
495 | "MMC card detect", data); | 635 | "MMC card detect", data); |
496 | if (err) | 636 | if (err) { |
497 | printk(KERN_ERR "cmx270_mci_init: MMC/SD: can't" | 637 | gpio_free(GPIO105_MMC_POWER); |
498 | " request MMC card detect IRQ\n"); | 638 | dev_err(dev, "cmx270_mci_init: MMC/SD: can't" |
639 | " request MMC card detect IRQ\n"); | ||
640 | } | ||
499 | 641 | ||
500 | return err; | 642 | return err; |
501 | } | 643 | } |
@@ -505,17 +647,18 @@ static void cmx270_mci_setpower(struct device *dev, unsigned int vdd) | |||
505 | struct pxamci_platform_data *p_d = dev->platform_data; | 647 | struct pxamci_platform_data *p_d = dev->platform_data; |
506 | 648 | ||
507 | if ((1 << vdd) & p_d->ocr_mask) { | 649 | if ((1 << vdd) & p_d->ocr_mask) { |
508 | printk(KERN_DEBUG "%s: on\n", __func__); | 650 | dev_dbg(dev, "power on\n"); |
509 | GPCR(105) = GPIO_bit(105); | 651 | gpio_set_value(GPIO105_MMC_POWER, 0); |
510 | } else { | 652 | } else { |
511 | GPSR(105) = GPIO_bit(105); | 653 | gpio_set_value(GPIO105_MMC_POWER, 1); |
512 | printk(KERN_DEBUG "%s: off\n", __func__); | 654 | dev_dbg(dev, "power off\n"); |
513 | } | 655 | } |
514 | } | 656 | } |
515 | 657 | ||
516 | static void cmx270_mci_exit(struct device *dev, void *data) | 658 | static void cmx270_mci_exit(struct device *dev, void *data) |
517 | { | 659 | { |
518 | free_irq(CMX270_MMC_IRQ, data); | 660 | free_irq(CMX270_MMC_IRQ, data); |
661 | gpio_free(GPIO105_MMC_POWER); | ||
519 | } | 662 | } |
520 | 663 | ||
521 | static struct pxamci_platform_data cmx270_mci_platform_data = { | 664 | static struct pxamci_platform_data cmx270_mci_platform_data = { |
@@ -525,6 +668,14 @@ static struct pxamci_platform_data cmx270_mci_platform_data = { | |||
525 | .exit = cmx270_mci_exit, | 668 | .exit = cmx270_mci_exit, |
526 | }; | 669 | }; |
527 | 670 | ||
671 | static void __init cmx270_init_mmc(void) | ||
672 | { | ||
673 | pxa_set_mci_info(&cmx270_mci_platform_data); | ||
674 | } | ||
675 | #else | ||
676 | static inline void cmx270_init_mmc(void) {} | ||
677 | #endif | ||
678 | |||
528 | #ifdef CONFIG_PM | 679 | #ifdef CONFIG_PM |
529 | static unsigned long sleep_save_msc[10]; | 680 | static unsigned long sleep_save_msc[10]; |
530 | 681 | ||
@@ -586,52 +737,63 @@ static int __init cmx270_pm_init(void) | |||
586 | static int __init cmx270_pm_init(void) { return 0; } | 737 | static int __init cmx270_pm_init(void) { return 0; } |
587 | #endif | 738 | #endif |
588 | 739 | ||
740 | #if defined(CONFIG_SND_PXA2XX_AC97) || defined(CONFIG_SND_PXA2XX_AC97_MODULE) | ||
741 | static void __init cmx270_init_ac97(void) | ||
742 | { | ||
743 | pxa_set_ac97_info(NULL); | ||
744 | } | ||
745 | #else | ||
746 | static inline void cmx270_init_ac97(void) {} | ||
747 | #endif | ||
748 | |||
589 | static void __init cmx270_init(void) | 749 | static void __init cmx270_init(void) |
590 | { | 750 | { |
591 | cmx270_pm_init(); | 751 | cmx270_pm_init(); |
592 | 752 | ||
593 | set_pxa_fb_info(cmx270_display); | 753 | pxa2xx_mfp_config(ARRAY_AND_SIZE(cmx270_pin_config)); |
594 | 754 | ||
595 | /* register CM-X270 platform devices */ | 755 | cmx270_init_dm9000(); |
596 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); | 756 | cmx270_init_rtc(); |
597 | 757 | cmx270_init_display(); | |
598 | /* set MCI and OHCI platform parameters */ | 758 | cmx270_init_mmc(); |
599 | pxa_set_mci_info(&cmx270_mci_platform_data); | 759 | cmx270_init_ohci(); |
600 | pxa_set_ohci_info(&cmx270_ohci_platform_data); | 760 | cmx270_init_ac97(); |
601 | 761 | cmx270_init_touchscreen(); | |
602 | /* This enables the STUART */ | 762 | cmx270_init_leds(); |
603 | pxa_gpio_mode(GPIO46_STRXD_MD); | 763 | cmx270_init_2700G(); |
604 | pxa_gpio_mode(GPIO47_STTXD_MD); | ||
605 | |||
606 | /* This enables the BTUART */ | ||
607 | pxa_gpio_mode(GPIO42_BTRXD_MD); | ||
608 | pxa_gpio_mode(GPIO43_BTTXD_MD); | ||
609 | pxa_gpio_mode(GPIO44_BTCTS_MD); | ||
610 | pxa_gpio_mode(GPIO45_BTRTS_MD); | ||
611 | } | 764 | } |
612 | 765 | ||
613 | static void __init cmx270_init_irq(void) | 766 | static void __init cmx270_init_irq(void) |
614 | { | 767 | { |
615 | pxa27x_init_irq(); | 768 | pxa27x_init_irq(); |
616 | 769 | ||
770 | cmx270_pci_init_irq(GPIO22_IT8152_IRQ); | ||
771 | } | ||
617 | 772 | ||
618 | cmx270_pci_init_irq(); | 773 | #ifdef CONFIG_PCI |
774 | /* Map PCI companion statically */ | ||
775 | static struct map_desc cmx270_io_desc[] __initdata = { | ||
776 | [0] = { /* PCI bridge */ | ||
777 | .virtual = CMX270_IT8152_VIRT, | ||
778 | .pfn = __phys_to_pfn(PXA_CS4_PHYS), | ||
779 | .length = SZ_64M, | ||
780 | .type = MT_DEVICE | ||
781 | }, | ||
782 | }; | ||
619 | 783 | ||
620 | /* Setup interrupt for dm9000 */ | 784 | static void __init cmx270_map_io(void) |
621 | pxa_gpio_mode(IRQ_TO_GPIO(CMX270_ETHIRQ)); | 785 | { |
622 | set_irq_type(CMX270_ETHIRQ, IRQT_RISING); | 786 | pxa_map_io(); |
787 | iotable_init(cmx270_io_desc, ARRAY_SIZE(cmx270_io_desc)); | ||
623 | 788 | ||
624 | /* Setup interrupt for 2700G */ | 789 | it8152_base_address = CMX270_IT8152_VIRT; |
625 | pxa_gpio_mode(IRQ_TO_GPIO(CMX270_GFXIRQ)); | ||
626 | set_irq_type(CMX270_GFXIRQ, IRQT_FALLING); | ||
627 | } | 790 | } |
628 | 791 | #else | |
629 | static void __init cmx270_map_io(void) | 792 | static void __init cmx270_map_io(void) |
630 | { | 793 | { |
631 | pxa_map_io(); | 794 | pxa_map_io(); |
632 | iotable_init(cmx270_io_desc, ARRAY_SIZE(cmx270_io_desc)); | ||
633 | } | 795 | } |
634 | 796 | #endif | |
635 | 797 | ||
636 | MACHINE_START(ARMCORE, "Compulab CM-x270") | 798 | MACHINE_START(ARMCORE, "Compulab CM-x270") |
637 | .boot_params = 0xa0000100, | 799 | .boot_params = 0xa0000100, |
diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index b757dd756655..e58504edb140 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/arch/arm/mach-pxa/corgi.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <asm/mach/irq.h> | 36 | #include <asm/mach/irq.h> |
37 | 37 | ||
38 | #include <asm/arch/pxa-regs.h> | 38 | #include <asm/arch/pxa-regs.h> |
39 | #include <asm/arch/pxa2xx-regs.h> | ||
39 | #include <asm/arch/pxa2xx-gpio.h> | 40 | #include <asm/arch/pxa2xx-gpio.h> |
40 | #include <asm/arch/irda.h> | 41 | #include <asm/arch/irda.h> |
41 | #include <asm/arch/mmc.h> | 42 | #include <asm/arch/mmc.h> |
@@ -464,6 +465,7 @@ static void corgi_irda_transceiver_mode(struct device *dev, int mode) | |||
464 | GPSR(CORGI_GPIO_IR_ON) = GPIO_bit(CORGI_GPIO_IR_ON); | 465 | GPSR(CORGI_GPIO_IR_ON) = GPIO_bit(CORGI_GPIO_IR_ON); |
465 | else | 466 | else |
466 | GPCR(CORGI_GPIO_IR_ON) = GPIO_bit(CORGI_GPIO_IR_ON); | 467 | GPCR(CORGI_GPIO_IR_ON) = GPIO_bit(CORGI_GPIO_IR_ON); |
468 | pxa2xx_transceiver_mode(dev, mode); | ||
467 | } | 469 | } |
468 | 470 | ||
469 | static struct pxaficp_platform_data corgi_ficp_platform_data = { | 471 | static struct pxaficp_platform_data corgi_ficp_platform_data = { |
diff --git a/arch/arm/mach-pxa/corgi_pm.c b/arch/arm/mach-pxa/corgi_pm.c index 0a85f706e887..e91c0f26c412 100644 --- a/arch/arm/mach-pxa/corgi_pm.c +++ b/arch/arm/mach-pxa/corgi_pm.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <asm/arch/sharpsl.h> | 26 | #include <asm/arch/sharpsl.h> |
27 | #include <asm/arch/corgi.h> | 27 | #include <asm/arch/corgi.h> |
28 | #include <asm/arch/pxa-regs.h> | 28 | #include <asm/arch/pxa-regs.h> |
29 | #include <asm/arch/pxa2xx-regs.h> | ||
29 | #include <asm/arch/pxa2xx-gpio.h> | 30 | #include <asm/arch/pxa2xx-gpio.h> |
30 | #include "sharpsl.h" | 31 | #include "sharpsl.h" |
31 | 32 | ||
@@ -204,7 +205,9 @@ static struct sharpsl_charger_machinfo corgi_pm_machinfo = { | |||
204 | .read_devdata = corgipm_read_devdata, | 205 | .read_devdata = corgipm_read_devdata, |
205 | .charger_wakeup = corgi_charger_wakeup, | 206 | .charger_wakeup = corgi_charger_wakeup, |
206 | .should_wakeup = corgi_should_wakeup, | 207 | .should_wakeup = corgi_should_wakeup, |
208 | #ifdef CONFIG_BACKLIGHT_CORGI | ||
207 | .backlight_limit = corgibl_limit_intensity, | 209 | .backlight_limit = corgibl_limit_intensity, |
210 | #endif | ||
208 | .charge_on_volt = SHARPSL_CHARGE_ON_VOLT, | 211 | .charge_on_volt = SHARPSL_CHARGE_ON_VOLT, |
209 | .charge_on_temp = SHARPSL_CHARGE_ON_TEMP, | 212 | .charge_on_temp = SHARPSL_CHARGE_ON_TEMP, |
210 | .charge_acin_high = SHARPSL_CHARGE_ON_ACIN_HIGH, | 213 | .charge_acin_high = SHARPSL_CHARGE_ON_ACIN_HIGH, |
@@ -226,6 +229,10 @@ static int __devinit corgipm_init(void) | |||
226 | { | 229 | { |
227 | int ret; | 230 | int ret; |
228 | 231 | ||
232 | if (!machine_is_corgi() && !machine_is_shepherd() | ||
233 | && !machine_is_husky()) | ||
234 | return -ENODEV; | ||
235 | |||
229 | corgipm_device = platform_device_alloc("sharpsl-pm", -1); | 236 | corgipm_device = platform_device_alloc("sharpsl-pm", -1); |
230 | if (!corgipm_device) | 237 | if (!corgipm_device) |
231 | return -ENOMEM; | 238 | return -ENOMEM; |
diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c index d6c05b6eab35..84489dc51d81 100644 --- a/arch/arm/mach-pxa/devices.c +++ b/arch/arm/mach-pxa/devices.c | |||
@@ -10,11 +10,16 @@ | |||
10 | #include <asm/arch/mmc.h> | 10 | #include <asm/arch/mmc.h> |
11 | #include <asm/arch/irda.h> | 11 | #include <asm/arch/irda.h> |
12 | #include <asm/arch/i2c.h> | 12 | #include <asm/arch/i2c.h> |
13 | #include <asm/arch/mfp-pxa27x.h> | ||
13 | #include <asm/arch/ohci.h> | 14 | #include <asm/arch/ohci.h> |
14 | #include <asm/arch/pxa27x_keypad.h> | 15 | #include <asm/arch/pxa27x_keypad.h> |
16 | #include <asm/arch/pxa2xx_spi.h> | ||
15 | #include <asm/arch/camera.h> | 17 | #include <asm/arch/camera.h> |
18 | #include <asm/arch/audio.h> | ||
19 | #include <asm/arch/pxa3xx_nand.h> | ||
16 | 20 | ||
17 | #include "devices.h" | 21 | #include "devices.h" |
22 | #include "generic.h" | ||
18 | 23 | ||
19 | void __init pxa_register_device(struct platform_device *dev, void *data) | 24 | void __init pxa_register_device(struct platform_device *dev, void *data) |
20 | { | 25 | { |
@@ -91,8 +96,19 @@ static struct resource pxa2xx_udc_resources[] = { | |||
91 | 96 | ||
92 | static u64 udc_dma_mask = ~(u32)0; | 97 | static u64 udc_dma_mask = ~(u32)0; |
93 | 98 | ||
94 | struct platform_device pxa_device_udc = { | 99 | struct platform_device pxa25x_device_udc = { |
95 | .name = "pxa2xx-udc", | 100 | .name = "pxa25x-udc", |
101 | .id = -1, | ||
102 | .resource = pxa2xx_udc_resources, | ||
103 | .num_resources = ARRAY_SIZE(pxa2xx_udc_resources), | ||
104 | .dev = { | ||
105 | .platform_data = &pxa_udc_info, | ||
106 | .dma_mask = &udc_dma_mask, | ||
107 | } | ||
108 | }; | ||
109 | |||
110 | struct platform_device pxa27x_device_udc = { | ||
111 | .name = "pxa27x-udc", | ||
96 | .id = -1, | 112 | .id = -1, |
97 | .resource = pxa2xx_udc_resources, | 113 | .resource = pxa2xx_udc_resources, |
98 | .num_resources = ARRAY_SIZE(pxa2xx_udc_resources), | 114 | .num_resources = ARRAY_SIZE(pxa2xx_udc_resources), |
@@ -233,8 +249,15 @@ struct platform_device pxa_device_i2c = { | |||
233 | .num_resources = ARRAY_SIZE(pxai2c_resources), | 249 | .num_resources = ARRAY_SIZE(pxai2c_resources), |
234 | }; | 250 | }; |
235 | 251 | ||
252 | static unsigned long pxa27x_i2c_mfp_cfg[] = { | ||
253 | GPIO117_I2C_SCL, | ||
254 | GPIO118_I2C_SDA, | ||
255 | }; | ||
256 | |||
236 | void __init pxa_set_i2c_info(struct i2c_pxa_platform_data *info) | 257 | void __init pxa_set_i2c_info(struct i2c_pxa_platform_data *info) |
237 | { | 258 | { |
259 | if (cpu_is_pxa27x()) | ||
260 | pxa2xx_mfp_config(ARRAY_AND_SIZE(pxa27x_i2c_mfp_cfg)); | ||
238 | pxa_register_device(&pxa_device_i2c, info); | 261 | pxa_register_device(&pxa_device_i2c, info); |
239 | } | 262 | } |
240 | 263 | ||
@@ -278,8 +301,69 @@ struct platform_device pxa_device_rtc = { | |||
278 | .id = -1, | 301 | .id = -1, |
279 | }; | 302 | }; |
280 | 303 | ||
304 | static struct resource pxa_ac97_resources[] = { | ||
305 | [0] = { | ||
306 | .start = 0x40500000, | ||
307 | .end = 0x40500000 + 0xfff, | ||
308 | .flags = IORESOURCE_MEM, | ||
309 | }, | ||
310 | [1] = { | ||
311 | .start = IRQ_AC97, | ||
312 | .end = IRQ_AC97, | ||
313 | .flags = IORESOURCE_IRQ, | ||
314 | }, | ||
315 | }; | ||
316 | |||
317 | static u64 pxa_ac97_dmamask = 0xffffffffUL; | ||
318 | |||
319 | struct platform_device pxa_device_ac97 = { | ||
320 | .name = "pxa2xx-ac97", | ||
321 | .id = -1, | ||
322 | .dev = { | ||
323 | .dma_mask = &pxa_ac97_dmamask, | ||
324 | .coherent_dma_mask = 0xffffffff, | ||
325 | }, | ||
326 | .num_resources = ARRAY_SIZE(pxa_ac97_resources), | ||
327 | .resource = pxa_ac97_resources, | ||
328 | }; | ||
329 | |||
330 | void __init pxa_set_ac97_info(pxa2xx_audio_ops_t *ops) | ||
331 | { | ||
332 | pxa_register_device(&pxa_device_ac97, ops); | ||
333 | } | ||
334 | |||
281 | #ifdef CONFIG_PXA25x | 335 | #ifdef CONFIG_PXA25x |
282 | 336 | ||
337 | static struct resource pxa25x_resource_pwm0[] = { | ||
338 | [0] = { | ||
339 | .start = 0x40b00000, | ||
340 | .end = 0x40b0000f, | ||
341 | .flags = IORESOURCE_MEM, | ||
342 | }, | ||
343 | }; | ||
344 | |||
345 | struct platform_device pxa25x_device_pwm0 = { | ||
346 | .name = "pxa25x-pwm", | ||
347 | .id = 0, | ||
348 | .resource = pxa25x_resource_pwm0, | ||
349 | .num_resources = ARRAY_SIZE(pxa25x_resource_pwm0), | ||
350 | }; | ||
351 | |||
352 | static struct resource pxa25x_resource_pwm1[] = { | ||
353 | [0] = { | ||
354 | .start = 0x40c00000, | ||
355 | .end = 0x40c0000f, | ||
356 | .flags = IORESOURCE_MEM, | ||
357 | }, | ||
358 | }; | ||
359 | |||
360 | struct platform_device pxa25x_device_pwm1 = { | ||
361 | .name = "pxa25x-pwm", | ||
362 | .id = 1, | ||
363 | .resource = pxa25x_resource_pwm1, | ||
364 | .num_resources = ARRAY_SIZE(pxa25x_resource_pwm1), | ||
365 | }; | ||
366 | |||
283 | static u64 pxa25x_ssp_dma_mask = DMA_BIT_MASK(32); | 367 | static u64 pxa25x_ssp_dma_mask = DMA_BIT_MASK(32); |
284 | 368 | ||
285 | static struct resource pxa25x_resource_ssp[] = { | 369 | static struct resource pxa25x_resource_ssp[] = { |
@@ -568,6 +652,36 @@ struct platform_device pxa27x_device_ssp3 = { | |||
568 | .num_resources = ARRAY_SIZE(pxa27x_resource_ssp3), | 652 | .num_resources = ARRAY_SIZE(pxa27x_resource_ssp3), |
569 | }; | 653 | }; |
570 | 654 | ||
655 | static struct resource pxa27x_resource_pwm0[] = { | ||
656 | [0] = { | ||
657 | .start = 0x40b00000, | ||
658 | .end = 0x40b0001f, | ||
659 | .flags = IORESOURCE_MEM, | ||
660 | }, | ||
661 | }; | ||
662 | |||
663 | struct platform_device pxa27x_device_pwm0 = { | ||
664 | .name = "pxa27x-pwm", | ||
665 | .id = 0, | ||
666 | .resource = pxa27x_resource_pwm0, | ||
667 | .num_resources = ARRAY_SIZE(pxa27x_resource_pwm0), | ||
668 | }; | ||
669 | |||
670 | static struct resource pxa27x_resource_pwm1[] = { | ||
671 | [0] = { | ||
672 | .start = 0x40c00000, | ||
673 | .end = 0x40c0001f, | ||
674 | .flags = IORESOURCE_MEM, | ||
675 | }, | ||
676 | }; | ||
677 | |||
678 | struct platform_device pxa27x_device_pwm1 = { | ||
679 | .name = "pxa27x-pwm", | ||
680 | .id = 1, | ||
681 | .resource = pxa27x_resource_pwm1, | ||
682 | .num_resources = ARRAY_SIZE(pxa27x_resource_pwm1), | ||
683 | }; | ||
684 | |||
571 | static struct resource pxa27x_resource_camera[] = { | 685 | static struct resource pxa27x_resource_camera[] = { |
572 | [0] = { | 686 | [0] = { |
573 | .start = 0x50000000, | 687 | .start = 0x50000000, |
@@ -718,4 +832,63 @@ void __init pxa3xx_set_mci3_info(struct pxamci_platform_data *info) | |||
718 | pxa_register_device(&pxa3xx_device_mci3, info); | 832 | pxa_register_device(&pxa3xx_device_mci3, info); |
719 | } | 833 | } |
720 | 834 | ||
835 | static struct resource pxa3xx_resources_nand[] = { | ||
836 | [0] = { | ||
837 | .start = 0x43100000, | ||
838 | .end = 0x43100053, | ||
839 | .flags = IORESOURCE_MEM, | ||
840 | }, | ||
841 | [1] = { | ||
842 | .start = IRQ_NAND, | ||
843 | .end = IRQ_NAND, | ||
844 | .flags = IORESOURCE_IRQ, | ||
845 | }, | ||
846 | [2] = { | ||
847 | /* DRCMR for Data DMA */ | ||
848 | .start = 97, | ||
849 | .end = 97, | ||
850 | .flags = IORESOURCE_DMA, | ||
851 | }, | ||
852 | [3] = { | ||
853 | /* DRCMR for Command DMA */ | ||
854 | .start = 99, | ||
855 | .end = 99, | ||
856 | .flags = IORESOURCE_DMA, | ||
857 | }, | ||
858 | }; | ||
859 | |||
860 | static u64 pxa3xx_nand_dma_mask = DMA_BIT_MASK(32); | ||
861 | |||
862 | struct platform_device pxa3xx_device_nand = { | ||
863 | .name = "pxa3xx-nand", | ||
864 | .id = -1, | ||
865 | .dev = { | ||
866 | .dma_mask = &pxa3xx_nand_dma_mask, | ||
867 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
868 | }, | ||
869 | .num_resources = ARRAY_SIZE(pxa3xx_resources_nand), | ||
870 | .resource = pxa3xx_resources_nand, | ||
871 | }; | ||
872 | |||
873 | void __init pxa3xx_set_nand_info(struct pxa3xx_nand_platform_data *info) | ||
874 | { | ||
875 | pxa_register_device(&pxa3xx_device_nand, info); | ||
876 | } | ||
721 | #endif /* CONFIG_PXA3xx */ | 877 | #endif /* CONFIG_PXA3xx */ |
878 | |||
879 | /* pxa2xx-spi platform-device ID equals respective SSP platform-device ID + 1. | ||
880 | * See comment in arch/arm/mach-pxa/ssp.c::ssp_probe() */ | ||
881 | void __init pxa2xx_set_spi_info(unsigned id, struct pxa2xx_spi_master *info) | ||
882 | { | ||
883 | struct platform_device *pd; | ||
884 | |||
885 | pd = platform_device_alloc("pxa2xx-spi", id); | ||
886 | if (pd == NULL) { | ||
887 | printk(KERN_ERR "pxa2xx-spi: failed to allocate device id %d\n", | ||
888 | id); | ||
889 | return; | ||
890 | } | ||
891 | |||
892 | pd->dev.platform_data = info; | ||
893 | platform_device_add(pd); | ||
894 | } | ||
diff --git a/arch/arm/mach-pxa/devices.h b/arch/arm/mach-pxa/devices.h index fcab017f27ee..887c738f5911 100644 --- a/arch/arm/mach-pxa/devices.h +++ b/arch/arm/mach-pxa/devices.h | |||
@@ -1,7 +1,8 @@ | |||
1 | extern struct platform_device pxa_device_mci; | 1 | extern struct platform_device pxa_device_mci; |
2 | extern struct platform_device pxa3xx_device_mci2; | 2 | extern struct platform_device pxa3xx_device_mci2; |
3 | extern struct platform_device pxa3xx_device_mci3; | 3 | extern struct platform_device pxa3xx_device_mci3; |
4 | extern struct platform_device pxa_device_udc; | 4 | extern struct platform_device pxa25x_device_udc; |
5 | extern struct platform_device pxa27x_device_udc; | ||
5 | extern struct platform_device pxa_device_fb; | 6 | extern struct platform_device pxa_device_fb; |
6 | extern struct platform_device pxa_device_ffuart; | 7 | extern struct platform_device pxa_device_ffuart; |
7 | extern struct platform_device pxa_device_btuart; | 8 | extern struct platform_device pxa_device_btuart; |
@@ -11,6 +12,7 @@ extern struct platform_device pxa_device_i2c; | |||
11 | extern struct platform_device pxa_device_i2s; | 12 | extern struct platform_device pxa_device_i2s; |
12 | extern struct platform_device pxa_device_ficp; | 13 | extern struct platform_device pxa_device_ficp; |
13 | extern struct platform_device pxa_device_rtc; | 14 | extern struct platform_device pxa_device_rtc; |
15 | extern struct platform_device pxa_device_ac97; | ||
14 | 16 | ||
15 | extern struct platform_device pxa27x_device_i2c_power; | 17 | extern struct platform_device pxa27x_device_i2c_power; |
16 | extern struct platform_device pxa27x_device_ohci; | 18 | extern struct platform_device pxa27x_device_ohci; |
@@ -24,4 +26,11 @@ extern struct platform_device pxa27x_device_ssp2; | |||
24 | extern struct platform_device pxa27x_device_ssp3; | 26 | extern struct platform_device pxa27x_device_ssp3; |
25 | extern struct platform_device pxa3xx_device_ssp4; | 27 | extern struct platform_device pxa3xx_device_ssp4; |
26 | 28 | ||
29 | extern struct platform_device pxa25x_device_pwm0; | ||
30 | extern struct platform_device pxa25x_device_pwm1; | ||
31 | extern struct platform_device pxa27x_device_pwm0; | ||
32 | extern struct platform_device pxa27x_device_pwm1; | ||
33 | |||
34 | extern struct platform_device pxa3xx_device_nand; | ||
35 | |||
27 | void __init pxa_register_device(struct platform_device *dev, void *data); | 36 | void __init pxa_register_device(struct platform_device *dev, void *data); |
diff --git a/arch/arm/mach-pxa/e400_lcd.c b/arch/arm/mach-pxa/e400_lcd.c new file mode 100644 index 000000000000..16c023630626 --- /dev/null +++ b/arch/arm/mach-pxa/e400_lcd.c | |||
@@ -0,0 +1,56 @@ | |||
1 | /* | ||
2 | * e400_lcd.c | ||
3 | * | ||
4 | * (c) 2005 Ian Molton <spyro@f2s.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | * | ||
10 | */ | ||
11 | |||
12 | #include <linux/kernel.h> | ||
13 | #include <linux/init.h> | ||
14 | #include <linux/module.h> | ||
15 | |||
16 | #include <asm/mach-types.h> | ||
17 | #include <asm/arch/pxa-regs.h> | ||
18 | #include <asm/arch/pxafb.h> | ||
19 | |||
20 | static struct pxafb_mode_info e400_pxafb_mode_info = { | ||
21 | .pixclock = 140703, | ||
22 | .xres = 240, | ||
23 | .yres = 320, | ||
24 | .bpp = 16, | ||
25 | .hsync_len = 4, | ||
26 | .left_margin = 28, | ||
27 | .right_margin = 8, | ||
28 | .vsync_len = 3, | ||
29 | .upper_margin = 5, | ||
30 | .lower_margin = 6, | ||
31 | .sync = 0, | ||
32 | }; | ||
33 | |||
34 | static struct pxafb_mach_info e400_pxafb_mach_info = { | ||
35 | .modes = &e400_pxafb_mode_info, | ||
36 | .num_modes = 1, | ||
37 | .lccr0 = LCCR0_Color | LCCR0_Sngl | LCCR0_Act, | ||
38 | .lccr3 = 0, | ||
39 | .pxafb_backlight_power = NULL, | ||
40 | }; | ||
41 | |||
42 | static int __init e400_lcd_init(void) | ||
43 | { | ||
44 | if (!machine_is_e400()) | ||
45 | return -ENODEV; | ||
46 | |||
47 | set_pxa_fb_info(&e400_pxafb_mach_info); | ||
48 | return 0; | ||
49 | } | ||
50 | |||
51 | module_init(e400_lcd_init); | ||
52 | |||
53 | MODULE_AUTHOR("Ian Molton <spyro@f2s.com>"); | ||
54 | MODULE_DESCRIPTION("e400 lcd driver"); | ||
55 | MODULE_LICENSE("GPLv2"); | ||
56 | |||
diff --git a/arch/arm/mach-pxa/e740_lcd.c b/arch/arm/mach-pxa/e740_lcd.c new file mode 100644 index 000000000000..26bd599af178 --- /dev/null +++ b/arch/arm/mach-pxa/e740_lcd.c | |||
@@ -0,0 +1,123 @@ | |||
1 | /* e740_lcd.c | ||
2 | * | ||
3 | * This file contains the definitions for the LCD timings and functions | ||
4 | * to control the LCD power / frontlighting via the w100fb driver. | ||
5 | * | ||
6 | * (c) 2005 Ian Molton <spyro@f2s.com> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | * | ||
12 | */ | ||
13 | |||
14 | #include <linux/module.h> | ||
15 | #include <linux/device.h> | ||
16 | #include <linux/fb.h> | ||
17 | #include <linux/err.h> | ||
18 | #include <linux/platform_device.h> | ||
19 | |||
20 | #include <asm/mach-types.h> | ||
21 | |||
22 | #include <video/w100fb.h> | ||
23 | |||
24 | /* | ||
25 | **potential** shutdown routine - to be investigated | ||
26 | devmem2 0x0c010528 w 0xff3fff00 | ||
27 | devmem2 0x0c010190 w 0x7FFF8000 | ||
28 | devmem2 0x0c0101b0 w 0x00FF0000 | ||
29 | devmem2 0x0c01008c w 0x00000000 | ||
30 | devmem2 0x0c010080 w 0x000000bf | ||
31 | devmem2 0x0c010098 w 0x00000015 | ||
32 | devmem2 0x0c010088 w 0x4b000204 | ||
33 | devmem2 0x0c010098 w 0x0000001d | ||
34 | */ | ||
35 | |||
36 | static struct w100_gen_regs e740_lcd_regs = { | ||
37 | .lcd_format = 0x00008023, | ||
38 | .lcdd_cntl1 = 0x0f000000, | ||
39 | .lcdd_cntl2 = 0x0003ffff, | ||
40 | .genlcd_cntl1 = 0x00ffff03, | ||
41 | .genlcd_cntl2 = 0x003c0f03, | ||
42 | .genlcd_cntl3 = 0x000143aa, | ||
43 | }; | ||
44 | |||
45 | static struct w100_mode e740_lcd_mode = { | ||
46 | .xres = 240, | ||
47 | .yres = 320, | ||
48 | .left_margin = 20, | ||
49 | .right_margin = 28, | ||
50 | .upper_margin = 9, | ||
51 | .lower_margin = 8, | ||
52 | .crtc_ss = 0x80140013, | ||
53 | .crtc_ls = 0x81150110, | ||
54 | .crtc_gs = 0x80050005, | ||
55 | .crtc_vpos_gs = 0x000a0009, | ||
56 | .crtc_rev = 0x0040010a, | ||
57 | .crtc_dclk = 0xa906000a, | ||
58 | .crtc_gclk = 0x80050108, | ||
59 | .crtc_goe = 0x80050108, | ||
60 | .pll_freq = 57, | ||
61 | .pixclk_divider = 4, | ||
62 | .pixclk_divider_rotated = 4, | ||
63 | .pixclk_src = CLK_SRC_XTAL, | ||
64 | .sysclk_divider = 1, | ||
65 | .sysclk_src = CLK_SRC_PLL, | ||
66 | .crtc_ps1_active = 0x41060010, | ||
67 | }; | ||
68 | |||
69 | |||
70 | static struct w100_gpio_regs e740_w100_gpio_info = { | ||
71 | .init_data1 = 0x21002103, | ||
72 | .gpio_dir1 = 0xffffdeff, | ||
73 | .gpio_oe1 = 0x03c00643, | ||
74 | .init_data2 = 0x003f003f, | ||
75 | .gpio_dir2 = 0xffffffff, | ||
76 | .gpio_oe2 = 0x000000ff, | ||
77 | }; | ||
78 | |||
79 | static struct w100fb_mach_info e740_fb_info = { | ||
80 | .modelist = &e740_lcd_mode, | ||
81 | .num_modes = 1, | ||
82 | .regs = &e740_lcd_regs, | ||
83 | .gpio = &e740_w100_gpio_info, | ||
84 | .xtal_freq = 14318000, | ||
85 | .xtal_dbl = 1, | ||
86 | }; | ||
87 | |||
88 | static struct resource e740_fb_resources[] = { | ||
89 | [0] = { | ||
90 | .start = 0x0c000000, | ||
91 | .end = 0x0cffffff, | ||
92 | .flags = IORESOURCE_MEM, | ||
93 | }, | ||
94 | }; | ||
95 | |||
96 | /* ----------------------- device declarations -------------------------- */ | ||
97 | |||
98 | |||
99 | static struct platform_device e740_fb_device = { | ||
100 | .name = "w100fb", | ||
101 | .id = -1, | ||
102 | .dev = { | ||
103 | .platform_data = &e740_fb_info, | ||
104 | }, | ||
105 | .num_resources = ARRAY_SIZE(e740_fb_resources), | ||
106 | .resource = e740_fb_resources, | ||
107 | }; | ||
108 | |||
109 | static int e740_lcd_init(void) | ||
110 | { | ||
111 | int ret; | ||
112 | |||
113 | if (!machine_is_e740()) | ||
114 | return -ENODEV; | ||
115 | |||
116 | return platform_device_register(&e740_fb_device); | ||
117 | } | ||
118 | |||
119 | module_init(e740_lcd_init); | ||
120 | |||
121 | MODULE_AUTHOR("Ian Molton <spyro@f2s.com>"); | ||
122 | MODULE_DESCRIPTION("e740 lcd driver"); | ||
123 | MODULE_LICENSE("GPLv2"); | ||
diff --git a/arch/arm/mach-pxa/e750_lcd.c b/arch/arm/mach-pxa/e750_lcd.c new file mode 100644 index 000000000000..75edc3b5390f --- /dev/null +++ b/arch/arm/mach-pxa/e750_lcd.c | |||
@@ -0,0 +1,109 @@ | |||
1 | /* e750_lcd.c | ||
2 | * | ||
3 | * This file contains the definitions for the LCD timings and functions | ||
4 | * to control the LCD power / frontlighting via the w100fb driver. | ||
5 | * | ||
6 | * (c) 2005 Ian Molton <spyro@f2s.com> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | * | ||
12 | */ | ||
13 | |||
14 | #include <linux/module.h> | ||
15 | #include <linux/device.h> | ||
16 | #include <linux/fb.h> | ||
17 | #include <linux/err.h> | ||
18 | #include <linux/platform_device.h> | ||
19 | |||
20 | #include <asm/mach-types.h> | ||
21 | |||
22 | #include <video/w100fb.h> | ||
23 | |||
24 | static struct w100_gen_regs e750_lcd_regs = { | ||
25 | .lcd_format = 0x00008003, | ||
26 | .lcdd_cntl1 = 0x00000000, | ||
27 | .lcdd_cntl2 = 0x0003ffff, | ||
28 | .genlcd_cntl1 = 0x00fff003, | ||
29 | .genlcd_cntl2 = 0x003c0f03, | ||
30 | .genlcd_cntl3 = 0x000143aa, | ||
31 | }; | ||
32 | |||
33 | static struct w100_mode e750_lcd_mode = { | ||
34 | .xres = 240, | ||
35 | .yres = 320, | ||
36 | .left_margin = 21, | ||
37 | .right_margin = 22, | ||
38 | .upper_margin = 5, | ||
39 | .lower_margin = 4, | ||
40 | .crtc_ss = 0x80150014, | ||
41 | .crtc_ls = 0x8014000d, | ||
42 | .crtc_gs = 0xc1000005, | ||
43 | .crtc_vpos_gs = 0x00020147, | ||
44 | .crtc_rev = 0x0040010a, | ||
45 | .crtc_dclk = 0xa1700030, | ||
46 | .crtc_gclk = 0x80cc0015, | ||
47 | .crtc_goe = 0x80cc0015, | ||
48 | .crtc_ps1_active = 0x61060017, | ||
49 | .pll_freq = 57, | ||
50 | .pixclk_divider = 4, | ||
51 | .pixclk_divider_rotated = 4, | ||
52 | .pixclk_src = CLK_SRC_XTAL, | ||
53 | .sysclk_divider = 1, | ||
54 | .sysclk_src = CLK_SRC_PLL, | ||
55 | }; | ||
56 | |||
57 | |||
58 | static struct w100_gpio_regs e750_w100_gpio_info = { | ||
59 | .init_data1 = 0x01192f1b, | ||
60 | .gpio_dir1 = 0xd5ffdeff, | ||
61 | .gpio_oe1 = 0x000020bf, | ||
62 | .init_data2 = 0x010f010f, | ||
63 | .gpio_dir2 = 0xffffffff, | ||
64 | .gpio_oe2 = 0x000001cf, | ||
65 | }; | ||
66 | |||
67 | static struct w100fb_mach_info e750_fb_info = { | ||
68 | .modelist = &e750_lcd_mode, | ||
69 | .num_modes = 1, | ||
70 | .regs = &e750_lcd_regs, | ||
71 | .gpio = &e750_w100_gpio_info, | ||
72 | .xtal_freq = 14318000, | ||
73 | .xtal_dbl = 1, | ||
74 | }; | ||
75 | |||
76 | static struct resource e750_fb_resources[] = { | ||
77 | [0] = { | ||
78 | .start = 0x0c000000, | ||
79 | .end = 0x0cffffff, | ||
80 | .flags = IORESOURCE_MEM, | ||
81 | }, | ||
82 | }; | ||
83 | |||
84 | /* ----------------------- device declarations -------------------------- */ | ||
85 | |||
86 | |||
87 | static struct platform_device e750_fb_device = { | ||
88 | .name = "w100fb", | ||
89 | .id = -1, | ||
90 | .dev = { | ||
91 | .platform_data = &e750_fb_info, | ||
92 | }, | ||
93 | .num_resources = ARRAY_SIZE(e750_fb_resources), | ||
94 | .resource = e750_fb_resources, | ||
95 | }; | ||
96 | |||
97 | static int e750_lcd_init(void) | ||
98 | { | ||
99 | if (!machine_is_e750()) | ||
100 | return -ENODEV; | ||
101 | |||
102 | return platform_device_register(&e750_fb_device); | ||
103 | } | ||
104 | |||
105 | module_init(e750_lcd_init); | ||
106 | |||
107 | MODULE_AUTHOR("Ian Molton <spyro@f2s.com>"); | ||
108 | MODULE_DESCRIPTION("e750 lcd driver"); | ||
109 | MODULE_LICENSE("GPLv2"); | ||
diff --git a/arch/arm/mach-pxa/e800_lcd.c b/arch/arm/mach-pxa/e800_lcd.c new file mode 100644 index 000000000000..e6aeab0ebc22 --- /dev/null +++ b/arch/arm/mach-pxa/e800_lcd.c | |||
@@ -0,0 +1,159 @@ | |||
1 | /* e800_lcd.c | ||
2 | * | ||
3 | * This file contains the definitions for the LCD timings and functions | ||
4 | * to control the LCD power / frontlighting via the w100fb driver. | ||
5 | * | ||
6 | * (c) 2005 Ian Molton <spyro@f2s.com> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | * | ||
12 | */ | ||
13 | |||
14 | #include <linux/module.h> | ||
15 | #include <linux/device.h> | ||
16 | #include <linux/fb.h> | ||
17 | #include <linux/err.h> | ||
18 | #include <linux/platform_device.h> | ||
19 | |||
20 | #include <asm/mach-types.h> | ||
21 | |||
22 | #include <video/w100fb.h> | ||
23 | |||
24 | static struct w100_gen_regs e800_lcd_regs = { | ||
25 | .lcd_format = 0x00008003, | ||
26 | .lcdd_cntl1 = 0x02a00000, | ||
27 | .lcdd_cntl2 = 0x0003ffff, | ||
28 | .genlcd_cntl1 = 0x000ff2a3, | ||
29 | .genlcd_cntl2 = 0x000002a3, | ||
30 | .genlcd_cntl3 = 0x000102aa, | ||
31 | }; | ||
32 | |||
33 | static struct w100_mode e800_lcd_mode[2] = { | ||
34 | [0] = { | ||
35 | .xres = 480, | ||
36 | .yres = 640, | ||
37 | .left_margin = 52, | ||
38 | .right_margin = 148, | ||
39 | .upper_margin = 2, | ||
40 | .lower_margin = 6, | ||
41 | .crtc_ss = 0x80350034, | ||
42 | .crtc_ls = 0x802b0026, | ||
43 | .crtc_gs = 0x80160016, | ||
44 | .crtc_vpos_gs = 0x00020003, | ||
45 | .crtc_rev = 0x0040001d, | ||
46 | .crtc_dclk = 0xe0000000, | ||
47 | .crtc_gclk = 0x82a50049, | ||
48 | .crtc_goe = 0x80ee001c, | ||
49 | .crtc_ps1_active = 0x00000000, | ||
50 | .pll_freq = 128, | ||
51 | .pixclk_divider = 4, | ||
52 | .pixclk_divider_rotated = 6, | ||
53 | .pixclk_src = CLK_SRC_PLL, | ||
54 | .sysclk_divider = 0, | ||
55 | .sysclk_src = CLK_SRC_PLL, | ||
56 | }, | ||
57 | [1] = { | ||
58 | .xres = 240, | ||
59 | .yres = 320, | ||
60 | .left_margin = 15, | ||
61 | .right_margin = 88, | ||
62 | .upper_margin = 0, | ||
63 | .lower_margin = 7, | ||
64 | .crtc_ss = 0xd010000f, | ||
65 | .crtc_ls = 0x80070003, | ||
66 | .crtc_gs = 0x80000000, | ||
67 | .crtc_vpos_gs = 0x01460147, | ||
68 | .crtc_rev = 0x00400003, | ||
69 | .crtc_dclk = 0xa1700030, | ||
70 | .crtc_gclk = 0x814b0008, | ||
71 | .crtc_goe = 0x80cc0015, | ||
72 | .crtc_ps1_active = 0x00000000, | ||
73 | .pll_freq = 100, | ||
74 | .pixclk_divider = 6, /* Wince uses 14 which gives a 7MHz pclk. */ | ||
75 | .pixclk_divider_rotated = 6, /* we want a 14MHz one (much nicer to look at) */ | ||
76 | .pixclk_src = CLK_SRC_PLL, | ||
77 | .sysclk_divider = 0, | ||
78 | .sysclk_src = CLK_SRC_PLL, | ||
79 | } | ||
80 | }; | ||
81 | |||
82 | |||
83 | static struct w100_gpio_regs e800_w100_gpio_info = { | ||
84 | .init_data1 = 0xc13fc019, | ||
85 | .gpio_dir1 = 0x3e40df7f, | ||
86 | .gpio_oe1 = 0x003c3000, | ||
87 | .init_data2 = 0x00000000, | ||
88 | .gpio_dir2 = 0x00000000, | ||
89 | .gpio_oe2 = 0x00000000, | ||
90 | }; | ||
91 | |||
92 | static struct w100_mem_info e800_w100_mem_info = { | ||
93 | .ext_cntl = 0x09640011, | ||
94 | .sdram_mode_reg = 0x00600021, | ||
95 | .ext_timing_cntl = 0x10001545, | ||
96 | .io_cntl = 0x7ddd7333, | ||
97 | .size = 0x1fffff, | ||
98 | }; | ||
99 | |||
100 | static void e800_tg_change(struct w100fb_par *par) | ||
101 | { | ||
102 | unsigned long tmp; | ||
103 | |||
104 | tmp = w100fb_gpio_read(W100_GPIO_PORT_A); | ||
105 | if (par->mode->xres == 480) | ||
106 | tmp |= 0x100; | ||
107 | else | ||
108 | tmp &= ~0x100; | ||
109 | w100fb_gpio_write(W100_GPIO_PORT_A, tmp); | ||
110 | } | ||
111 | |||
112 | static struct w100_tg_info e800_tg_info = { | ||
113 | .change = e800_tg_change, | ||
114 | }; | ||
115 | |||
116 | static struct w100fb_mach_info e800_fb_info = { | ||
117 | .modelist = e800_lcd_mode, | ||
118 | .num_modes = 2, | ||
119 | .regs = &e800_lcd_regs, | ||
120 | .gpio = &e800_w100_gpio_info, | ||
121 | .mem = &e800_w100_mem_info, | ||
122 | .tg = &e800_tg_info, | ||
123 | .xtal_freq = 16000000, | ||
124 | }; | ||
125 | |||
126 | static struct resource e800_fb_resources[] = { | ||
127 | [0] = { | ||
128 | .start = 0x0c000000, | ||
129 | .end = 0x0cffffff, | ||
130 | .flags = IORESOURCE_MEM, | ||
131 | }, | ||
132 | }; | ||
133 | |||
134 | /* ----------------------- device declarations -------------------------- */ | ||
135 | |||
136 | |||
137 | static struct platform_device e800_fb_device = { | ||
138 | .name = "w100fb", | ||
139 | .id = -1, | ||
140 | .dev = { | ||
141 | .platform_data = &e800_fb_info, | ||
142 | }, | ||
143 | .num_resources = ARRAY_SIZE(e800_fb_resources), | ||
144 | .resource = e800_fb_resources, | ||
145 | }; | ||
146 | |||
147 | static int e800_lcd_init(void) | ||
148 | { | ||
149 | if (!machine_is_e800()) | ||
150 | return -ENODEV; | ||
151 | |||
152 | return platform_device_register(&e800_fb_device); | ||
153 | } | ||
154 | |||
155 | module_init(e800_lcd_init); | ||
156 | |||
157 | MODULE_AUTHOR("Ian Molton <spyro@f2s.com>"); | ||
158 | MODULE_DESCRIPTION("e800 lcd driver"); | ||
159 | MODULE_LICENSE("GPLv2"); | ||
diff --git a/arch/arm/mach-pxa/em-x270.c b/arch/arm/mach-pxa/em-x270.c index 9c57700ee5c2..e5cc6ca63c75 100644 --- a/arch/arm/mach-pxa/em-x270.c +++ b/arch/arm/mach-pxa/em-x270.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Support for CompuLab EM-x270 platform | 2 | * Support for CompuLab EM-X270 platform |
3 | * | 3 | * |
4 | * Copyright (C) 2007 CompuLab, Ltd. | 4 | * Copyright (C) 2007, 2008 CompuLab, Ltd. |
5 | * Author: Mike Rapoport <mike@compulab.co.il> | 5 | * Author: Mike Rapoport <mike@compulab.co.il> |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify | 7 | * This program is free software; you can redistribute it and/or modify |
@@ -14,29 +14,159 @@ | |||
14 | 14 | ||
15 | #include <linux/dm9000.h> | 15 | #include <linux/dm9000.h> |
16 | #include <linux/rtc-v3020.h> | 16 | #include <linux/rtc-v3020.h> |
17 | |||
18 | #include <linux/mtd/nand.h> | 17 | #include <linux/mtd/nand.h> |
19 | #include <linux/mtd/partitions.h> | 18 | #include <linux/mtd/partitions.h> |
19 | #include <linux/input.h> | ||
20 | #include <linux/gpio_keys.h> | ||
21 | #include <linux/gpio.h> | ||
20 | 22 | ||
21 | #include <asm/mach-types.h> | 23 | #include <asm/mach-types.h> |
22 | |||
23 | #include <asm/mach/arch.h> | 24 | #include <asm/mach/arch.h> |
24 | 25 | ||
26 | #include <asm/arch/mfp-pxa27x.h> | ||
25 | #include <asm/arch/pxa-regs.h> | 27 | #include <asm/arch/pxa-regs.h> |
26 | #include <asm/arch/pxa2xx-gpio.h> | 28 | #include <asm/arch/pxa27x-udc.h> |
29 | #include <asm/arch/audio.h> | ||
27 | #include <asm/arch/pxafb.h> | 30 | #include <asm/arch/pxafb.h> |
28 | #include <asm/arch/ohci.h> | 31 | #include <asm/arch/ohci.h> |
29 | #include <asm/arch/mmc.h> | 32 | #include <asm/arch/mmc.h> |
30 | #include <asm/arch/bitfield.h> | 33 | #include <asm/arch/pxa27x_keypad.h> |
31 | 34 | ||
32 | #include "generic.h" | 35 | #include "generic.h" |
33 | 36 | ||
34 | /* GPIO IRQ usage */ | 37 | /* GPIO IRQ usage */ |
35 | #define EM_X270_MMC_PD (105) | 38 | #define GPIO41_ETHIRQ (41) |
36 | #define EM_X270_ETHIRQ IRQ_GPIO(41) | 39 | #define GPIO13_MMC_CD (13) |
37 | #define EM_X270_MMC_IRQ IRQ_GPIO(13) | 40 | #define EM_X270_ETHIRQ IRQ_GPIO(GPIO41_ETHIRQ) |
41 | #define EM_X270_MMC_CD IRQ_GPIO(GPIO13_MMC_CD) | ||
42 | |||
43 | /* NAND control GPIOs */ | ||
44 | #define GPIO11_NAND_CS (11) | ||
45 | #define GPIO56_NAND_RB (56) | ||
46 | |||
47 | static unsigned long em_x270_pin_config[] = { | ||
48 | /* AC'97 */ | ||
49 | GPIO28_AC97_BITCLK, | ||
50 | GPIO29_AC97_SDATA_IN_0, | ||
51 | GPIO30_AC97_SDATA_OUT, | ||
52 | GPIO31_AC97_SYNC, | ||
53 | GPIO98_AC97_SYSCLK, | ||
54 | GPIO113_AC97_nRESET, | ||
55 | |||
56 | /* BTUART */ | ||
57 | GPIO42_BTUART_RXD, | ||
58 | GPIO43_BTUART_TXD, | ||
59 | GPIO44_BTUART_CTS, | ||
60 | GPIO45_BTUART_RTS, | ||
61 | |||
62 | /* STUART */ | ||
63 | GPIO46_STUART_RXD, | ||
64 | GPIO47_STUART_TXD, | ||
65 | |||
66 | /* MCI controller */ | ||
67 | GPIO32_MMC_CLK, | ||
68 | GPIO112_MMC_CMD, | ||
69 | GPIO92_MMC_DAT_0, | ||
70 | GPIO109_MMC_DAT_1, | ||
71 | GPIO110_MMC_DAT_2, | ||
72 | GPIO111_MMC_DAT_3, | ||
73 | |||
74 | /* LCD */ | ||
75 | GPIO58_LCD_LDD_0, | ||
76 | GPIO59_LCD_LDD_1, | ||
77 | GPIO60_LCD_LDD_2, | ||
78 | GPIO61_LCD_LDD_3, | ||
79 | GPIO62_LCD_LDD_4, | ||
80 | GPIO63_LCD_LDD_5, | ||
81 | GPIO64_LCD_LDD_6, | ||
82 | GPIO65_LCD_LDD_7, | ||
83 | GPIO66_LCD_LDD_8, | ||
84 | GPIO67_LCD_LDD_9, | ||
85 | GPIO68_LCD_LDD_10, | ||
86 | GPIO69_LCD_LDD_11, | ||
87 | GPIO70_LCD_LDD_12, | ||
88 | GPIO71_LCD_LDD_13, | ||
89 | GPIO72_LCD_LDD_14, | ||
90 | GPIO73_LCD_LDD_15, | ||
91 | GPIO74_LCD_FCLK, | ||
92 | GPIO75_LCD_LCLK, | ||
93 | GPIO76_LCD_PCLK, | ||
94 | GPIO77_LCD_BIAS, | ||
95 | |||
96 | /* QCI */ | ||
97 | GPIO84_CIF_FV, | ||
98 | GPIO25_CIF_LV, | ||
99 | GPIO53_CIF_MCLK, | ||
100 | GPIO54_CIF_PCLK, | ||
101 | GPIO81_CIF_DD_0, | ||
102 | GPIO55_CIF_DD_1, | ||
103 | GPIO51_CIF_DD_2, | ||
104 | GPIO50_CIF_DD_3, | ||
105 | GPIO52_CIF_DD_4, | ||
106 | GPIO48_CIF_DD_5, | ||
107 | GPIO17_CIF_DD_6, | ||
108 | GPIO12_CIF_DD_7, | ||
109 | |||
110 | /* I2C */ | ||
111 | GPIO117_I2C_SCL, | ||
112 | GPIO118_I2C_SDA, | ||
113 | |||
114 | /* Keypad */ | ||
115 | GPIO100_KP_MKIN_0 | WAKEUP_ON_LEVEL_HIGH, | ||
116 | GPIO101_KP_MKIN_1 | WAKEUP_ON_LEVEL_HIGH, | ||
117 | GPIO102_KP_MKIN_2 | WAKEUP_ON_LEVEL_HIGH, | ||
118 | GPIO34_KP_MKIN_3 | WAKEUP_ON_LEVEL_HIGH, | ||
119 | GPIO39_KP_MKIN_4 | WAKEUP_ON_LEVEL_HIGH, | ||
120 | GPIO99_KP_MKIN_5 | WAKEUP_ON_LEVEL_HIGH, | ||
121 | GPIO91_KP_MKIN_6 | WAKEUP_ON_LEVEL_HIGH, | ||
122 | GPIO36_KP_MKIN_7 | WAKEUP_ON_LEVEL_HIGH, | ||
123 | GPIO103_KP_MKOUT_0, | ||
124 | GPIO104_KP_MKOUT_1, | ||
125 | GPIO105_KP_MKOUT_2, | ||
126 | GPIO106_KP_MKOUT_3, | ||
127 | GPIO107_KP_MKOUT_4, | ||
128 | GPIO108_KP_MKOUT_5, | ||
129 | GPIO96_KP_MKOUT_6, | ||
130 | GPIO22_KP_MKOUT_7, | ||
131 | |||
132 | /* SSP1 */ | ||
133 | GPIO26_SSP1_RXD, | ||
134 | GPIO23_SSP1_SCLK, | ||
135 | GPIO24_SSP1_SFRM, | ||
136 | GPIO57_SSP1_TXD, | ||
137 | |||
138 | /* SSP2 */ | ||
139 | GPIO19_SSP2_SCLK, | ||
140 | GPIO14_SSP2_SFRM, | ||
141 | GPIO89_SSP2_TXD, | ||
142 | GPIO88_SSP2_RXD, | ||
143 | |||
144 | /* SDRAM and local bus */ | ||
145 | GPIO15_nCS_1, | ||
146 | GPIO78_nCS_2, | ||
147 | GPIO79_nCS_3, | ||
148 | GPIO80_nCS_4, | ||
149 | GPIO49_nPWE, | ||
150 | GPIO18_RDY, | ||
151 | |||
152 | /* GPIO */ | ||
153 | GPIO1_GPIO | WAKEUP_ON_EDGE_BOTH, | ||
154 | |||
155 | /* power controls */ | ||
156 | GPIO20_GPIO | MFP_LPM_DRIVE_LOW, /* GPRS_PWEN */ | ||
157 | GPIO115_GPIO | MFP_LPM_DRIVE_LOW, /* WLAN_PWEN */ | ||
158 | |||
159 | /* NAND controls */ | ||
160 | GPIO11_GPIO | MFP_LPM_DRIVE_HIGH, /* NAND CE# */ | ||
161 | GPIO56_GPIO, /* NAND Ready/Busy */ | ||
162 | |||
163 | /* interrupts */ | ||
164 | GPIO13_GPIO, /* MMC card detect */ | ||
165 | GPIO41_GPIO, /* DM9000 interrupt */ | ||
166 | }; | ||
38 | 167 | ||
39 | static struct resource em_x270_dm9k_resource[] = { | 168 | #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE) |
169 | static struct resource em_x270_dm9000_resource[] = { | ||
40 | [0] = { | 170 | [0] = { |
41 | .start = PXA_CS2_PHYS, | 171 | .start = PXA_CS2_PHYS, |
42 | .end = PXA_CS2_PHYS + 3, | 172 | .end = PXA_CS2_PHYS + 3, |
@@ -54,38 +184,30 @@ static struct resource em_x270_dm9k_resource[] = { | |||
54 | } | 184 | } |
55 | }; | 185 | }; |
56 | 186 | ||
57 | /* for the moment we limit ourselves to 32bit IO until some | 187 | static struct dm9000_plat_data em_x270_dm9000_platdata = { |
58 | * better IO routines can be written and tested | ||
59 | */ | ||
60 | static struct dm9000_plat_data em_x270_dm9k_platdata = { | ||
61 | .flags = DM9000_PLATF_32BITONLY, | 188 | .flags = DM9000_PLATF_32BITONLY, |
62 | }; | 189 | }; |
63 | 190 | ||
64 | /* Ethernet device */ | 191 | static struct platform_device em_x270_dm9000 = { |
65 | static struct platform_device em_x270_dm9k = { | ||
66 | .name = "dm9000", | 192 | .name = "dm9000", |
67 | .id = 0, | 193 | .id = 0, |
68 | .num_resources = ARRAY_SIZE(em_x270_dm9k_resource), | 194 | .num_resources = ARRAY_SIZE(em_x270_dm9000_resource), |
69 | .resource = em_x270_dm9k_resource, | 195 | .resource = em_x270_dm9000_resource, |
70 | .dev = { | 196 | .dev = { |
71 | .platform_data = &em_x270_dm9k_platdata, | 197 | .platform_data = &em_x270_dm9000_platdata, |
72 | } | 198 | } |
73 | }; | 199 | }; |
74 | 200 | ||
75 | /* audio device */ | 201 | static void __init em_x270_init_dm9000(void) |
76 | static struct platform_device em_x270_audio = { | 202 | { |
77 | .name = "pxa2xx-ac97", | 203 | platform_device_register(&em_x270_dm9000); |
78 | .id = -1, | 204 | } |
79 | }; | 205 | #else |
80 | 206 | static inline void em_x270_init_dm9000(void) {} | |
81 | /* WM9712 touchscreen controller. Hopefully the driver will make it to | 207 | #endif |
82 | * the mainstream sometime */ | ||
83 | static struct platform_device em_x270_ts = { | ||
84 | .name = "wm97xx-ts", | ||
85 | .id = -1, | ||
86 | }; | ||
87 | 208 | ||
88 | /* RTC */ | 209 | /* V3020 RTC */ |
210 | #if defined(CONFIG_RTC_DRV_V3020) || defined(CONFIG_RTC_DRV_V3020_MODULE) | ||
89 | static struct resource em_x270_v3020_resource[] = { | 211 | static struct resource em_x270_v3020_resource[] = { |
90 | [0] = { | 212 | [0] = { |
91 | .start = PXA_CS4_PHYS, | 213 | .start = PXA_CS4_PHYS, |
@@ -108,20 +230,26 @@ static struct platform_device em_x270_rtc = { | |||
108 | } | 230 | } |
109 | }; | 231 | }; |
110 | 232 | ||
111 | /* NAND flash */ | 233 | static void __init em_x270_init_rtc(void) |
112 | #define GPIO_NAND_CS (11) | 234 | { |
113 | #define GPIO_NAND_RB (56) | 235 | platform_device_register(&em_x270_rtc); |
236 | } | ||
237 | #else | ||
238 | static inline void em_x270_init_rtc(void) {} | ||
239 | #endif | ||
114 | 240 | ||
241 | /* NAND flash */ | ||
242 | #if defined(CONFIG_MTD_NAND_PLATFORM) || defined(CONFIG_MTD_NAND_PLATFORM_MODULE) | ||
115 | static inline void nand_cs_on(void) | 243 | static inline void nand_cs_on(void) |
116 | { | 244 | { |
117 | GPCR(GPIO_NAND_CS) = GPIO_bit(GPIO_NAND_CS); | 245 | gpio_set_value(GPIO11_NAND_CS, 0); |
118 | } | 246 | } |
119 | 247 | ||
120 | static void nand_cs_off(void) | 248 | static void nand_cs_off(void) |
121 | { | 249 | { |
122 | dsb(); | 250 | dsb(); |
123 | 251 | ||
124 | GPSR(GPIO_NAND_CS) = GPIO_bit(GPIO_NAND_CS); | 252 | gpio_set_value(GPIO11_NAND_CS, 1); |
125 | } | 253 | } |
126 | 254 | ||
127 | /* hardware specific access to control-lines */ | 255 | /* hardware specific access to control-lines */ |
@@ -161,7 +289,7 @@ static int em_x270_nand_device_ready(struct mtd_info *mtd) | |||
161 | { | 289 | { |
162 | dsb(); | 290 | dsb(); |
163 | 291 | ||
164 | return GPLR(GPIO_NAND_RB) & GPIO_bit(GPIO_NAND_RB); | 292 | return gpio_get_value(GPIO56_NAND_RB); |
165 | } | 293 | } |
166 | 294 | ||
167 | static struct mtd_partition em_x270_partition_info[] = { | 295 | static struct mtd_partition em_x270_partition_info[] = { |
@@ -214,17 +342,35 @@ static struct platform_device em_x270_nand = { | |||
214 | } | 342 | } |
215 | }; | 343 | }; |
216 | 344 | ||
217 | /* platform devices */ | 345 | static void __init em_x270_init_nand(void) |
218 | static struct platform_device *platform_devices[] __initdata = { | 346 | { |
219 | &em_x270_dm9k, | 347 | int err; |
220 | &em_x270_audio, | 348 | |
221 | &em_x270_ts, | 349 | err = gpio_request(GPIO11_NAND_CS, "NAND CS"); |
222 | &em_x270_rtc, | 350 | if (err) { |
223 | &em_x270_nand, | 351 | pr_warning("EM-X270: failed to request NAND CS gpio\n"); |
224 | }; | 352 | return; |
353 | } | ||
354 | |||
355 | gpio_direction_output(GPIO11_NAND_CS, 1); | ||
356 | |||
357 | err = gpio_request(GPIO56_NAND_RB, "NAND R/B"); | ||
358 | if (err) { | ||
359 | pr_warning("EM-X270: failed to request NAND R/B gpio\n"); | ||
360 | gpio_free(GPIO11_NAND_CS); | ||
361 | return; | ||
362 | } | ||
363 | |||
364 | gpio_direction_input(GPIO56_NAND_RB); | ||
225 | 365 | ||
366 | platform_device_register(&em_x270_nand); | ||
367 | } | ||
368 | #else | ||
369 | static inline void em_x270_init_nand(void) {} | ||
370 | #endif | ||
226 | 371 | ||
227 | /* PXA27x OHCI controller setup */ | 372 | /* PXA27x OHCI controller setup */ |
373 | #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) | ||
228 | static int em_x270_ohci_init(struct device *dev) | 374 | static int em_x270_ohci_init(struct device *dev) |
229 | { | 375 | { |
230 | /* Set the Power Control Polarity Low */ | 376 | /* Set the Power Control Polarity Low */ |
@@ -242,27 +388,23 @@ static struct pxaohci_platform_data em_x270_ohci_platform_data = { | |||
242 | .init = em_x270_ohci_init, | 388 | .init = em_x270_ohci_init, |
243 | }; | 389 | }; |
244 | 390 | ||
391 | static void __init em_x270_init_ohci(void) | ||
392 | { | ||
393 | pxa_set_ohci_info(&em_x270_ohci_platform_data); | ||
394 | } | ||
395 | #else | ||
396 | static inline void em_x270_init_ohci(void) {} | ||
397 | #endif | ||
245 | 398 | ||
399 | /* MCI controller setup */ | ||
400 | #if defined(CONFIG_MMC) || defined(CONFIG_MMC_MODULE) | ||
246 | static int em_x270_mci_init(struct device *dev, | 401 | static int em_x270_mci_init(struct device *dev, |
247 | irq_handler_t em_x270_detect_int, | 402 | irq_handler_t em_x270_detect_int, |
248 | void *data) | 403 | void *data) |
249 | { | 404 | { |
250 | int err; | 405 | int err = request_irq(EM_X270_MMC_CD, em_x270_detect_int, |
251 | 406 | IRQF_DISABLED | IRQF_TRIGGER_FALLING, | |
252 | /* setup GPIO for PXA27x MMC controller */ | 407 | "MMC card detect", data); |
253 | pxa_gpio_mode(GPIO32_MMCCLK_MD); | ||
254 | pxa_gpio_mode(GPIO112_MMCCMD_MD); | ||
255 | pxa_gpio_mode(GPIO92_MMCDAT0_MD); | ||
256 | pxa_gpio_mode(GPIO109_MMCDAT1_MD); | ||
257 | pxa_gpio_mode(GPIO110_MMCDAT2_MD); | ||
258 | pxa_gpio_mode(GPIO111_MMCDAT3_MD); | ||
259 | |||
260 | /* EM-X270 uses GPIO13 as SD power enable */ | ||
261 | pxa_gpio_mode(EM_X270_MMC_PD | GPIO_OUT); | ||
262 | |||
263 | err = request_irq(EM_X270_MMC_IRQ, em_x270_detect_int, | ||
264 | IRQF_DISABLED | IRQF_TRIGGER_FALLING, | ||
265 | "MMC card detect", data); | ||
266 | if (err) { | 408 | if (err) { |
267 | printk(KERN_ERR "%s: can't request MMC card detect IRQ: %d\n", | 409 | printk(KERN_ERR "%s: can't request MMC card detect IRQ: %d\n", |
268 | __func__, err); | 410 | __func__, err); |
@@ -284,7 +426,8 @@ static void em_x270_mci_setpower(struct device *dev, unsigned int vdd) | |||
284 | 426 | ||
285 | static void em_x270_mci_exit(struct device *dev, void *data) | 427 | static void em_x270_mci_exit(struct device *dev, void *data) |
286 | { | 428 | { |
287 | free_irq(EM_X270_MMC_IRQ, data); | 429 | int irq = gpio_to_irq(GPIO13_MMC_CD); |
430 | free_irq(irq, data); | ||
288 | } | 431 | } |
289 | 432 | ||
290 | static struct pxamci_platform_data em_x270_mci_platform_data = { | 433 | static struct pxamci_platform_data em_x270_mci_platform_data = { |
@@ -294,7 +437,16 @@ static struct pxamci_platform_data em_x270_mci_platform_data = { | |||
294 | .exit = em_x270_mci_exit, | 437 | .exit = em_x270_mci_exit, |
295 | }; | 438 | }; |
296 | 439 | ||
440 | static void __init em_x270_init_mmc(void) | ||
441 | { | ||
442 | pxa_set_mci_info(&em_x270_mci_platform_data); | ||
443 | } | ||
444 | #else | ||
445 | static inline void em_x270_init_mmc(void) {} | ||
446 | #endif | ||
447 | |||
297 | /* LCD 480x640 */ | 448 | /* LCD 480x640 */ |
449 | #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE) | ||
298 | static struct pxafb_mode_info em_x270_lcd_mode = { | 450 | static struct pxafb_mode_info em_x270_lcd_mode = { |
299 | .pixclock = 50000, | 451 | .pixclock = 50000, |
300 | .bpp = 16, | 452 | .bpp = 16, |
@@ -312,39 +464,96 @@ static struct pxafb_mode_info em_x270_lcd_mode = { | |||
312 | static struct pxafb_mach_info em_x270_lcd = { | 464 | static struct pxafb_mach_info em_x270_lcd = { |
313 | .modes = &em_x270_lcd_mode, | 465 | .modes = &em_x270_lcd_mode, |
314 | .num_modes = 1, | 466 | .num_modes = 1, |
315 | .cmap_inverse = 0, | 467 | .lcd_conn = LCD_COLOR_TFT_16BPP, |
316 | .cmap_static = 0, | ||
317 | .lccr0 = LCCR0_PAS, | ||
318 | .lccr3 = LCCR3_PixClkDiv(0x01) | LCCR3_Acb(0xff), | ||
319 | }; | 468 | }; |
320 | 469 | static void __init em_x270_init_lcd(void) | |
321 | static void __init em_x270_init(void) | ||
322 | { | 470 | { |
323 | /* setup LCD */ | ||
324 | set_pxa_fb_info(&em_x270_lcd); | 471 | set_pxa_fb_info(&em_x270_lcd); |
472 | } | ||
473 | #else | ||
474 | static inline void em_x270_init_lcd(void) {} | ||
475 | #endif | ||
476 | |||
477 | #if defined(CONFIG_SND_PXA2XX_AC97) || defined(CONFIG_SND_PXA2XX_AC97_MODULE) | ||
478 | static void __init em_x270_init_ac97(void) | ||
479 | { | ||
480 | pxa_set_ac97_info(NULL); | ||
481 | } | ||
482 | #else | ||
483 | static inline void em_x270_init_ac97(void) {} | ||
484 | #endif | ||
485 | |||
486 | #if defined(CONFIG_KEYBOARD_PXA27x) || defined(CONFIG_KEYBOARD_PXA27x_MODULE) | ||
487 | static unsigned int em_x270_matrix_keys[] = { | ||
488 | KEY(0, 0, KEY_A), KEY(1, 0, KEY_UP), KEY(2, 1, KEY_B), | ||
489 | KEY(0, 2, KEY_LEFT), KEY(1, 1, KEY_ENTER), KEY(2, 0, KEY_RIGHT), | ||
490 | KEY(0, 1, KEY_C), KEY(1, 2, KEY_DOWN), KEY(2, 2, KEY_D), | ||
491 | }; | ||
325 | 492 | ||
326 | /* register EM-X270 platform devices */ | 493 | struct pxa27x_keypad_platform_data em_x270_keypad_info = { |
327 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); | 494 | /* code map for the matrix keys */ |
495 | .matrix_key_rows = 3, | ||
496 | .matrix_key_cols = 3, | ||
497 | .matrix_key_map = em_x270_matrix_keys, | ||
498 | .matrix_key_map_size = ARRAY_SIZE(em_x270_matrix_keys), | ||
499 | }; | ||
328 | 500 | ||
329 | /* set MCI and OHCI platform parameters */ | 501 | static void __init em_x270_init_keypad(void) |
330 | pxa_set_mci_info(&em_x270_mci_platform_data); | 502 | { |
331 | pxa_set_ohci_info(&em_x270_ohci_platform_data); | 503 | pxa_set_keypad_info(&em_x270_keypad_info); |
504 | } | ||
505 | #else | ||
506 | static inline void em_x270_init_keypad(void) {} | ||
507 | #endif | ||
508 | |||
509 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | ||
510 | static struct gpio_keys_button gpio_keys_button[] = { | ||
511 | [0] = { | ||
512 | .desc = "sleep/wakeup", | ||
513 | .code = KEY_SUSPEND, | ||
514 | .type = EV_PWR, | ||
515 | .gpio = 1, | ||
516 | .wakeup = 1, | ||
517 | }, | ||
518 | }; | ||
519 | |||
520 | static struct gpio_keys_platform_data em_x270_gpio_keys_data = { | ||
521 | .buttons = gpio_keys_button, | ||
522 | .nbuttons = 1, | ||
523 | }; | ||
332 | 524 | ||
333 | /* setup STUART GPIOs */ | 525 | static struct platform_device em_x270_gpio_keys = { |
334 | pxa_gpio_mode(GPIO46_STRXD_MD); | 526 | .name = "gpio-keys", |
335 | pxa_gpio_mode(GPIO47_STTXD_MD); | 527 | .id = -1, |
528 | .dev = { | ||
529 | .platform_data = &em_x270_gpio_keys_data, | ||
530 | }, | ||
531 | }; | ||
336 | 532 | ||
337 | /* setup BTUART GPIOs */ | 533 | static void __init em_x270_init_gpio_keys(void) |
338 | pxa_gpio_mode(GPIO42_BTRXD_MD); | 534 | { |
339 | pxa_gpio_mode(GPIO43_BTTXD_MD); | 535 | platform_device_register(&em_x270_gpio_keys); |
340 | pxa_gpio_mode(GPIO44_BTCTS_MD); | 536 | } |
341 | pxa_gpio_mode(GPIO45_BTRTS_MD); | 537 | #else |
538 | static inline void em_x270_init_gpio_keys(void) {} | ||
539 | #endif | ||
342 | 540 | ||
343 | /* Setup interrupt for dm9000 */ | 541 | static void __init em_x270_init(void) |
344 | set_irq_type(EM_X270_ETHIRQ, IRQT_RISING); | 542 | { |
543 | pxa2xx_mfp_config(ARRAY_AND_SIZE(em_x270_pin_config)); | ||
544 | |||
545 | em_x270_init_dm9000(); | ||
546 | em_x270_init_rtc(); | ||
547 | em_x270_init_nand(); | ||
548 | em_x270_init_lcd(); | ||
549 | em_x270_init_mmc(); | ||
550 | em_x270_init_ohci(); | ||
551 | em_x270_init_keypad(); | ||
552 | em_x270_init_gpio_keys(); | ||
553 | em_x270_init_ac97(); | ||
345 | } | 554 | } |
346 | 555 | ||
347 | MACHINE_START(EM_X270, "Compulab EM-x270") | 556 | MACHINE_START(EM_X270, "Compulab EM-X270") |
348 | .boot_params = 0xa0000100, | 557 | .boot_params = 0xa0000100, |
349 | .phys_io = 0x40000000, | 558 | .phys_io = 0x40000000, |
350 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | 559 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, |
diff --git a/arch/arm/mach-pxa/eseries.c b/arch/arm/mach-pxa/eseries.c index ee0ae93c876a..c29b7b21c11b 100644 --- a/arch/arm/mach-pxa/eseries.c +++ b/arch/arm/mach-pxa/eseries.c | |||
@@ -17,7 +17,7 @@ | |||
17 | #include <asm/arch/hardware.h> | 17 | #include <asm/arch/hardware.h> |
18 | #include <asm/mach-types.h> | 18 | #include <asm/mach-types.h> |
19 | 19 | ||
20 | #include <generic.h> | 20 | #include "generic.h" |
21 | 21 | ||
22 | /* Only e800 has 128MB RAM */ | 22 | /* Only e800 has 128MB RAM */ |
23 | static void __init eseries_fixup(struct machine_desc *desc, | 23 | static void __init eseries_fixup(struct machine_desc *desc, |
@@ -47,6 +47,19 @@ MACHINE_START(E330, "Toshiba e330") | |||
47 | MACHINE_END | 47 | MACHINE_END |
48 | #endif | 48 | #endif |
49 | 49 | ||
50 | #ifdef CONFIG_MACH_E350 | ||
51 | MACHINE_START(E350, "Toshiba e350") | ||
52 | /* Maintainer: Ian Molton (spyro@f2s.com) */ | ||
53 | .phys_io = 0x40000000, | ||
54 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | ||
55 | .boot_params = 0xa0000100, | ||
56 | .map_io = pxa_map_io, | ||
57 | .init_irq = pxa25x_init_irq, | ||
58 | .fixup = eseries_fixup, | ||
59 | .timer = &pxa_timer, | ||
60 | MACHINE_END | ||
61 | #endif | ||
62 | |||
50 | #ifdef CONFIG_MACH_E740 | 63 | #ifdef CONFIG_MACH_E740 |
51 | MACHINE_START(E740, "Toshiba e740") | 64 | MACHINE_START(E740, "Toshiba e740") |
52 | /* Maintainer: Ian Molton (spyro@f2s.com) */ | 65 | /* Maintainer: Ian Molton (spyro@f2s.com) */ |
diff --git a/arch/arm/mach-pxa/eseries_udc.c b/arch/arm/mach-pxa/eseries_udc.c new file mode 100644 index 000000000000..362847a10998 --- /dev/null +++ b/arch/arm/mach-pxa/eseries_udc.c | |||
@@ -0,0 +1,57 @@ | |||
1 | /* | ||
2 | * UDC functions for the Toshiba e-series PDAs | ||
3 | * | ||
4 | * Copyright (c) Ian Molton 2003 | ||
5 | * | ||
6 | * This file is licensed under | ||
7 | * the terms of the GNU General Public License version 2. This program | ||
8 | * is licensed "as is" without any warranty of any kind, whether express | ||
9 | * or implied. | ||
10 | * | ||
11 | */ | ||
12 | |||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/init.h> | ||
15 | #include <linux/device.h> | ||
16 | |||
17 | #include <asm/arch/udc.h> | ||
18 | #include <asm/arch/eseries-gpio.h> | ||
19 | #include <asm/arch/hardware.h> | ||
20 | #include <asm/arch/pxa-regs.h> | ||
21 | #include <asm/mach/arch.h> | ||
22 | #include <asm/mach-types.h> | ||
23 | #include <asm/mach/map.h> | ||
24 | #include <asm/domain.h> | ||
25 | |||
26 | /* local PXA generic code */ | ||
27 | #include "generic.h" | ||
28 | |||
29 | static struct pxa2xx_udc_mach_info e7xx_udc_mach_info = { | ||
30 | .gpio_vbus = GPIO_E7XX_USB_DISC, | ||
31 | .gpio_pullup = GPIO_E7XX_USB_PULLUP, | ||
32 | .gpio_pullup_inverted = 1 | ||
33 | }; | ||
34 | |||
35 | static struct pxa2xx_udc_mach_info e800_udc_mach_info = { | ||
36 | .gpio_vbus = GPIO_E800_USB_DISC, | ||
37 | .gpio_pullup = GPIO_E800_USB_PULLUP, | ||
38 | .gpio_pullup_inverted = 1 | ||
39 | }; | ||
40 | |||
41 | static int __init eseries_udc_init(void) | ||
42 | { | ||
43 | if (machine_is_e330() || machine_is_e350() || | ||
44 | machine_is_e740() || machine_is_e750() || | ||
45 | machine_is_e400()) | ||
46 | pxa_set_udc_info(&e7xx_udc_mach_info); | ||
47 | else if (machine_is_e800()) | ||
48 | pxa_set_udc_info(&e800_udc_mach_info); | ||
49 | |||
50 | return 0; | ||
51 | } | ||
52 | |||
53 | module_init(eseries_udc_init); | ||
54 | |||
55 | MODULE_AUTHOR("Ian Molton <spyro@f2s.com>"); | ||
56 | MODULE_DESCRIPTION("eseries UDC support"); | ||
57 | MODULE_LICENSE("GPLv2"); | ||
diff --git a/arch/arm/mach-pxa/ezx.c b/arch/arm/mach-pxa/ezx.c new file mode 100644 index 000000000000..0143eed65398 --- /dev/null +++ b/arch/arm/mach-pxa/ezx.c | |||
@@ -0,0 +1,220 @@ | |||
1 | /* | ||
2 | * ezx.c - Common code for the EZX platform. | ||
3 | * | ||
4 | * Copyright (C) 2005-2006 Harald Welte <laforge@openezx.org>, | ||
5 | * 2007-2008 Daniel Ribeiro <drwyrm@gmail.com>, | ||
6 | * 2007-2008 Stefan Schmidt <stefan@datenfreihafen.org> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | * | ||
12 | */ | ||
13 | |||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/init.h> | ||
16 | #include <linux/platform_device.h> | ||
17 | #include <linux/delay.h> | ||
18 | #include <linux/pwm_backlight.h> | ||
19 | |||
20 | #include <asm/setup.h> | ||
21 | #include <asm/arch/pxafb.h> | ||
22 | #include <asm/arch/ohci.h> | ||
23 | #include <asm/arch/i2c.h> | ||
24 | |||
25 | #include <asm/arch/mfp-pxa27x.h> | ||
26 | #include <asm/arch/pxa-regs.h> | ||
27 | #include <asm/arch/pxa2xx-regs.h> | ||
28 | #include <asm/mach-types.h> | ||
29 | #include <asm/mach/arch.h> | ||
30 | |||
31 | #include "devices.h" | ||
32 | #include "generic.h" | ||
33 | |||
34 | static struct platform_pwm_backlight_data ezx_backlight_data = { | ||
35 | .pwm_id = 0, | ||
36 | .max_brightness = 1023, | ||
37 | .dft_brightness = 1023, | ||
38 | .pwm_period_ns = 78770, | ||
39 | }; | ||
40 | |||
41 | static struct platform_device ezx_backlight_device = { | ||
42 | .name = "pwm-backlight", | ||
43 | .dev = { | ||
44 | .parent = &pxa27x_device_pwm0.dev, | ||
45 | .platform_data = &ezx_backlight_data, | ||
46 | }, | ||
47 | }; | ||
48 | |||
49 | static struct pxafb_mode_info mode_ezx_old = { | ||
50 | .pixclock = 150000, | ||
51 | .xres = 240, | ||
52 | .yres = 320, | ||
53 | .bpp = 16, | ||
54 | .hsync_len = 10, | ||
55 | .left_margin = 20, | ||
56 | .right_margin = 10, | ||
57 | .vsync_len = 2, | ||
58 | .upper_margin = 3, | ||
59 | .lower_margin = 2, | ||
60 | .sync = 0, | ||
61 | }; | ||
62 | |||
63 | static struct pxafb_mach_info ezx_fb_info_1 = { | ||
64 | .modes = &mode_ezx_old, | ||
65 | .num_modes = 1, | ||
66 | .lcd_conn = LCD_COLOR_TFT_16BPP, | ||
67 | }; | ||
68 | |||
69 | static struct pxafb_mode_info mode_72r89803y01 = { | ||
70 | .pixclock = 192308, | ||
71 | .xres = 240, | ||
72 | .yres = 320, | ||
73 | .bpp = 32, | ||
74 | .depth = 18, | ||
75 | .hsync_len = 10, | ||
76 | .left_margin = 20, | ||
77 | .right_margin = 10, | ||
78 | .vsync_len = 2, | ||
79 | .upper_margin = 3, | ||
80 | .lower_margin = 2, | ||
81 | .sync = 0, | ||
82 | }; | ||
83 | |||
84 | static struct pxafb_mach_info ezx_fb_info_2 = { | ||
85 | .modes = &mode_72r89803y01, | ||
86 | .num_modes = 1, | ||
87 | .lcd_conn = LCD_COLOR_TFT_18BPP, | ||
88 | }; | ||
89 | |||
90 | static struct platform_device *devices[] __initdata = { | ||
91 | &ezx_backlight_device, | ||
92 | }; | ||
93 | |||
94 | static unsigned long ezx_pin_config[] __initdata = { | ||
95 | /* PWM backlight */ | ||
96 | GPIO16_PWM0_OUT, | ||
97 | |||
98 | /* BTUART */ | ||
99 | GPIO42_BTUART_RXD, | ||
100 | GPIO43_BTUART_TXD, | ||
101 | GPIO44_BTUART_CTS, | ||
102 | GPIO45_BTUART_RTS, | ||
103 | |||
104 | /* STUART */ | ||
105 | GPIO46_STUART_RXD, | ||
106 | GPIO47_STUART_TXD, | ||
107 | |||
108 | /* For A780 support (connected with Neptune GSM chip) */ | ||
109 | GPIO30_USB_P3_2, /* ICL_TXENB */ | ||
110 | GPIO31_USB_P3_6, /* ICL_VPOUT */ | ||
111 | GPIO90_USB_P3_5, /* ICL_VPIN */ | ||
112 | GPIO91_USB_P3_1, /* ICL_XRXD */ | ||
113 | GPIO56_USB_P3_4, /* ICL_VMOUT */ | ||
114 | GPIO113_USB_P3_3, /* /ICL_VMIN */ | ||
115 | }; | ||
116 | |||
117 | static void __init ezx_init(void) | ||
118 | { | ||
119 | pxa2xx_mfp_config(ARRAY_AND_SIZE(ezx_pin_config)); | ||
120 | pxa_set_i2c_info(NULL); | ||
121 | if (machine_is_ezx_a780() || machine_is_ezx_e680()) | ||
122 | set_pxa_fb_info(&ezx_fb_info_1); | ||
123 | else | ||
124 | set_pxa_fb_info(&ezx_fb_info_2); | ||
125 | |||
126 | platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
127 | } | ||
128 | |||
129 | static void __init ezx_fixup(struct machine_desc *desc, struct tag *tags, | ||
130 | char **cmdline, struct meminfo *mi) | ||
131 | { | ||
132 | /* We have two ram chips. First one with 32MB at 0xA0000000 and a second | ||
133 | * 16MB one at 0xAC000000 | ||
134 | */ | ||
135 | mi->nr_banks = 2; | ||
136 | mi->bank[0].start = 0xa0000000; | ||
137 | mi->bank[0].node = 0; | ||
138 | mi->bank[0].size = (32*1024*1024); | ||
139 | mi->bank[1].start = 0xac000000; | ||
140 | mi->bank[1].node = 1; | ||
141 | mi->bank[1].size = (16*1024*1024); | ||
142 | } | ||
143 | |||
144 | #ifdef CONFIG_MACH_EZX_A780 | ||
145 | MACHINE_START(EZX_A780, "Motorola EZX A780") | ||
146 | .phys_io = 0x40000000, | ||
147 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | ||
148 | .fixup = ezx_fixup, | ||
149 | .boot_params = 0xa0000100, | ||
150 | .map_io = pxa_map_io, | ||
151 | .init_irq = pxa27x_init_irq, | ||
152 | .timer = &pxa_timer, | ||
153 | .init_machine = &ezx_init, | ||
154 | MACHINE_END | ||
155 | #endif | ||
156 | |||
157 | #ifdef CONFIG_MACH_EZX_E680 | ||
158 | MACHINE_START(EZX_E680, "Motorola EZX E680") | ||
159 | .phys_io = 0x40000000, | ||
160 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | ||
161 | .fixup = ezx_fixup, | ||
162 | .boot_params = 0xa0000100, | ||
163 | .map_io = pxa_map_io, | ||
164 | .init_irq = pxa27x_init_irq, | ||
165 | .timer = &pxa_timer, | ||
166 | .init_machine = &ezx_init, | ||
167 | MACHINE_END | ||
168 | #endif | ||
169 | |||
170 | #ifdef CONFIG_MACH_EZX_A1200 | ||
171 | MACHINE_START(EZX_A1200, "Motorola EZX A1200") | ||
172 | .phys_io = 0x40000000, | ||
173 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | ||
174 | .fixup = ezx_fixup, | ||
175 | .boot_params = 0xa0000100, | ||
176 | .map_io = pxa_map_io, | ||
177 | .init_irq = pxa27x_init_irq, | ||
178 | .timer = &pxa_timer, | ||
179 | .init_machine = &ezx_init, | ||
180 | MACHINE_END | ||
181 | #endif | ||
182 | |||
183 | #ifdef CONFIG_MACH_EZX_A910 | ||
184 | MACHINE_START(EZX_A910, "Motorola EZX A910") | ||
185 | .phys_io = 0x40000000, | ||
186 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | ||
187 | .fixup = ezx_fixup, | ||
188 | .boot_params = 0xa0000100, | ||
189 | .map_io = pxa_map_io, | ||
190 | .init_irq = pxa27x_init_irq, | ||
191 | .timer = &pxa_timer, | ||
192 | .init_machine = &ezx_init, | ||
193 | MACHINE_END | ||
194 | #endif | ||
195 | |||
196 | #ifdef CONFIG_MACH_EZX_E6 | ||
197 | MACHINE_START(EZX_E6, "Motorola EZX E6") | ||
198 | .phys_io = 0x40000000, | ||
199 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | ||
200 | .fixup = ezx_fixup, | ||
201 | .boot_params = 0xa0000100, | ||
202 | .map_io = pxa_map_io, | ||
203 | .init_irq = pxa27x_init_irq, | ||
204 | .timer = &pxa_timer, | ||
205 | .init_machine = &ezx_init, | ||
206 | MACHINE_END | ||
207 | #endif | ||
208 | |||
209 | #ifdef CONFIG_MACH_EZX_E2 | ||
210 | MACHINE_START(EZX_E2, "Motorola EZX E2") | ||
211 | .phys_io = 0x40000000, | ||
212 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | ||
213 | .fixup = ezx_fixup, | ||
214 | .boot_params = 0xa0000100, | ||
215 | .map_io = pxa_map_io, | ||
216 | .init_irq = pxa27x_init_irq, | ||
217 | .timer = &pxa_timer, | ||
218 | .init_machine = &ezx_init, | ||
219 | MACHINE_END | ||
220 | #endif | ||
diff --git a/arch/arm/mach-pxa/generic.c b/arch/arm/mach-pxa/generic.c index 44617938f3f1..ca053226fba0 100644 --- a/arch/arm/mach-pxa/generic.c +++ b/arch/arm/mach-pxa/generic.c | |||
@@ -60,23 +60,6 @@ unsigned int get_memclk_frequency_10khz(void) | |||
60 | EXPORT_SYMBOL(get_memclk_frequency_10khz); | 60 | EXPORT_SYMBOL(get_memclk_frequency_10khz); |
61 | 61 | ||
62 | /* | 62 | /* |
63 | * Routine to safely enable or disable a clock in the CKEN | ||
64 | */ | ||
65 | void __pxa_set_cken(int clock, int enable) | ||
66 | { | ||
67 | unsigned long flags; | ||
68 | local_irq_save(flags); | ||
69 | |||
70 | if (enable) | ||
71 | CKEN |= (1 << clock); | ||
72 | else | ||
73 | CKEN &= ~(1 << clock); | ||
74 | |||
75 | local_irq_restore(flags); | ||
76 | } | ||
77 | EXPORT_SYMBOL(__pxa_set_cken); | ||
78 | |||
79 | /* | ||
80 | * Intel PXA2xx internal register mapping. | 63 | * Intel PXA2xx internal register mapping. |
81 | * | 64 | * |
82 | * Note 1: not all PXA2xx variants implement all those addresses. | 65 | * Note 1: not all PXA2xx variants implement all those addresses. |
diff --git a/arch/arm/mach-pxa/irq.c b/arch/arm/mach-pxa/irq.c index a9a0c3fab159..fbff557bb225 100644 --- a/arch/arm/mach-pxa/irq.c +++ b/arch/arm/mach-pxa/irq.c | |||
@@ -21,7 +21,6 @@ | |||
21 | #include <asm/irq.h> | 21 | #include <asm/irq.h> |
22 | #include <asm/mach/irq.h> | 22 | #include <asm/mach/irq.h> |
23 | #include <asm/arch/pxa-regs.h> | 23 | #include <asm/arch/pxa-regs.h> |
24 | #include <asm/arch/pxa2xx-gpio.h> | ||
25 | 24 | ||
26 | #include "generic.h" | 25 | #include "generic.h" |
27 | 26 | ||
diff --git a/arch/arm/mach-pxa/littleton.c b/arch/arm/mach-pxa/littleton.c index 530654474bb2..dd759d03a9fd 100644 --- a/arch/arm/mach-pxa/littleton.c +++ b/arch/arm/mach-pxa/littleton.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/delay.h> | 20 | #include <linux/delay.h> |
21 | #include <linux/platform_device.h> | 21 | #include <linux/platform_device.h> |
22 | #include <linux/clk.h> | 22 | #include <linux/clk.h> |
23 | #include <linux/smc91x.h> | ||
23 | 24 | ||
24 | #include <asm/types.h> | 25 | #include <asm/types.h> |
25 | #include <asm/setup.h> | 26 | #include <asm/setup.h> |
@@ -38,6 +39,7 @@ | |||
38 | #include <asm/arch/pxafb.h> | 39 | #include <asm/arch/pxafb.h> |
39 | #include <asm/arch/ssp.h> | 40 | #include <asm/arch/ssp.h> |
40 | #include <asm/arch/pxa27x_keypad.h> | 41 | #include <asm/arch/pxa27x_keypad.h> |
42 | #include <asm/arch/pxa3xx_nand.h> | ||
41 | #include <asm/arch/littleton.h> | 43 | #include <asm/arch/littleton.h> |
42 | 44 | ||
43 | #include "generic.h" | 45 | #include "generic.h" |
@@ -101,18 +103,26 @@ static struct resource smc91x_resources[] = { | |||
101 | [1] = { | 103 | [1] = { |
102 | .start = IRQ_GPIO(mfp_to_gpio(MFP_PIN_GPIO90)), | 104 | .start = IRQ_GPIO(mfp_to_gpio(MFP_PIN_GPIO90)), |
103 | .end = IRQ_GPIO(mfp_to_gpio(MFP_PIN_GPIO90)), | 105 | .end = IRQ_GPIO(mfp_to_gpio(MFP_PIN_GPIO90)), |
104 | .flags = IORESOURCE_IRQ | IRQF_TRIGGER_FALLING, | 106 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWEDGE, |
105 | } | 107 | } |
106 | }; | 108 | }; |
107 | 109 | ||
110 | static struct smc91x_platdata littleton_smc91x_info = { | ||
111 | .flags = SMC91X_USE_8BIT | SMC91X_USE_16BIT | | ||
112 | SMC91X_NOWAIT | SMC91X_USE_DMA, | ||
113 | }; | ||
114 | |||
108 | static struct platform_device smc91x_device = { | 115 | static struct platform_device smc91x_device = { |
109 | .name = "smc91x", | 116 | .name = "smc91x", |
110 | .id = 0, | 117 | .id = 0, |
111 | .num_resources = ARRAY_SIZE(smc91x_resources), | 118 | .num_resources = ARRAY_SIZE(smc91x_resources), |
112 | .resource = smc91x_resources, | 119 | .resource = smc91x_resources, |
120 | .dev = { | ||
121 | .platform_data = &littleton_smc91x_info, | ||
122 | }, | ||
113 | }; | 123 | }; |
114 | 124 | ||
115 | #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULES) | 125 | #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE) |
116 | /* use bit 30, 31 as the indicator of command parameter number */ | 126 | /* use bit 30, 31 as the indicator of command parameter number */ |
117 | #define CMD0(x) ((0x00000000) | ((x) << 9)) | 127 | #define CMD0(x) ((0x00000000) | ((x) << 9)) |
118 | #define CMD1(x, x1) ((0x40000000) | ((x) << 9) | 0x100 | (x1)) | 128 | #define CMD1(x, x1) ((0x40000000) | ((x) << 9) | 0x100 | (x1)) |
@@ -311,9 +321,9 @@ static void littleton_init_lcd(void) | |||
311 | } | 321 | } |
312 | #else | 322 | #else |
313 | static inline void littleton_init_lcd(void) {}; | 323 | static inline void littleton_init_lcd(void) {}; |
314 | #endif /* CONFIG_FB_PXA || CONFIG_FB_PXA_MODULES */ | 324 | #endif /* CONFIG_FB_PXA || CONFIG_FB_PXA_MODULE */ |
315 | 325 | ||
316 | #if defined(CONFIG_KEYBOARD_PXA27x) || defined(CONFIG_KEYBOARD_PXA27x_MODULES) | 326 | #if defined(CONFIG_KEYBOARD_PXA27x) || defined(CONFIG_KEYBOARD_PXA27x_MODULE) |
317 | static unsigned int littleton_matrix_key_map[] = { | 327 | static unsigned int littleton_matrix_key_map[] = { |
318 | /* KEY(row, col, key_code) */ | 328 | /* KEY(row, col, key_code) */ |
319 | KEY(1, 3, KEY_0), KEY(0, 0, KEY_1), KEY(1, 0, KEY_2), KEY(2, 0, KEY_3), | 329 | KEY(1, 3, KEY_0), KEY(0, 0, KEY_1), KEY(1, 0, KEY_2), KEY(2, 0, KEY_3), |
@@ -361,6 +371,57 @@ static void __init littleton_init_keypad(void) | |||
361 | static inline void littleton_init_keypad(void) {} | 371 | static inline void littleton_init_keypad(void) {} |
362 | #endif | 372 | #endif |
363 | 373 | ||
374 | #if defined(CONFIG_MTD_NAND_PXA3xx) || defined(CONFIG_MTD_NAND_PXA3xx_MODULE) | ||
375 | static struct mtd_partition littleton_nand_partitions[] = { | ||
376 | [0] = { | ||
377 | .name = "Bootloader", | ||
378 | .offset = 0, | ||
379 | .size = 0x060000, | ||
380 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
381 | }, | ||
382 | [1] = { | ||
383 | .name = "Kernel", | ||
384 | .offset = 0x060000, | ||
385 | .size = 0x200000, | ||
386 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
387 | }, | ||
388 | [2] = { | ||
389 | .name = "Filesystem", | ||
390 | .offset = 0x0260000, | ||
391 | .size = 0x3000000, /* 48M - rootfs */ | ||
392 | }, | ||
393 | [3] = { | ||
394 | .name = "MassStorage", | ||
395 | .offset = 0x3260000, | ||
396 | .size = 0x3d40000, | ||
397 | }, | ||
398 | [4] = { | ||
399 | .name = "BBT", | ||
400 | .offset = 0x6FA0000, | ||
401 | .size = 0x80000, | ||
402 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
403 | }, | ||
404 | /* NOTE: we reserve some blocks at the end of the NAND flash for | ||
405 | * bad block management, and the max number of relocation blocks | ||
406 | * differs on different platforms. Please take care with it when | ||
407 | * defining the partition table. | ||
408 | */ | ||
409 | }; | ||
410 | |||
411 | static struct pxa3xx_nand_platform_data littleton_nand_info = { | ||
412 | .enable_arbiter = 1, | ||
413 | .parts = littleton_nand_partitions, | ||
414 | .nr_parts = ARRAY_SIZE(littleton_nand_partitions), | ||
415 | }; | ||
416 | |||
417 | static void __init littleton_init_nand(void) | ||
418 | { | ||
419 | pxa3xx_set_nand_info(&littleton_nand_info); | ||
420 | } | ||
421 | #else | ||
422 | static inline void littleton_init_nand(void) {} | ||
423 | #endif /* CONFIG_MTD_NAND_PXA3xx || CONFIG_MTD_NAND_PXA3xx_MODULE */ | ||
424 | |||
364 | static void __init littleton_init(void) | 425 | static void __init littleton_init(void) |
365 | { | 426 | { |
366 | /* initialize MFP configurations */ | 427 | /* initialize MFP configurations */ |
@@ -374,6 +435,7 @@ static void __init littleton_init(void) | |||
374 | 435 | ||
375 | littleton_init_lcd(); | 436 | littleton_init_lcd(); |
376 | littleton_init_keypad(); | 437 | littleton_init_keypad(); |
438 | littleton_init_nand(); | ||
377 | } | 439 | } |
378 | 440 | ||
379 | MACHINE_START(LITTLETON, "Marvell Form Factor Development Platform (aka Littleton)") | 441 | MACHINE_START(LITTLETON, "Marvell Form Factor Development Platform (aka Littleton)") |
diff --git a/arch/arm/mach-pxa/lpd270.c b/arch/arm/mach-pxa/lpd270.c index a20e4b1649d6..cc1c4fa06145 100644 --- a/arch/arm/mach-pxa/lpd270.c +++ b/arch/arm/mach-pxa/lpd270.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/ioport.h> | 23 | #include <linux/ioport.h> |
24 | #include <linux/mtd/mtd.h> | 24 | #include <linux/mtd/mtd.h> |
25 | #include <linux/mtd/partitions.h> | 25 | #include <linux/mtd/partitions.h> |
26 | #include <linux/pwm_backlight.h> | ||
26 | 27 | ||
27 | #include <asm/types.h> | 28 | #include <asm/types.h> |
28 | #include <asm/setup.h> | 29 | #include <asm/setup.h> |
@@ -134,9 +135,12 @@ static struct sys_device lpd270_irq_device = { | |||
134 | 135 | ||
135 | static int __init lpd270_irq_device_init(void) | 136 | static int __init lpd270_irq_device_init(void) |
136 | { | 137 | { |
137 | int ret = sysdev_class_register(&lpd270_irq_sysclass); | 138 | int ret = -ENODEV; |
138 | if (ret == 0) | 139 | if (machine_is_logicpd_pxa270()) { |
139 | ret = sysdev_register(&lpd270_irq_device); | 140 | ret = sysdev_class_register(&lpd270_irq_sysclass); |
141 | if (ret == 0) | ||
142 | ret = sysdev_register(&lpd270_irq_device); | ||
143 | } | ||
140 | return ret; | 144 | return ret; |
141 | } | 145 | } |
142 | 146 | ||
@@ -164,11 +168,6 @@ static struct platform_device smc91x_device = { | |||
164 | .resource = smc91x_resources, | 168 | .resource = smc91x_resources, |
165 | }; | 169 | }; |
166 | 170 | ||
167 | static struct platform_device lpd270_audio_device = { | ||
168 | .name = "pxa2xx-ac97", | ||
169 | .id = -1, | ||
170 | }; | ||
171 | |||
172 | static struct resource lpd270_flash_resources[] = { | 171 | static struct resource lpd270_flash_resources[] = { |
173 | [0] = { | 172 | [0] = { |
174 | .start = PXA_CS0_PHYS, | 173 | .start = PXA_CS0_PHYS, |
@@ -233,21 +232,20 @@ static struct platform_device lpd270_flash_device[2] = { | |||
233 | }, | 232 | }, |
234 | }; | 233 | }; |
235 | 234 | ||
236 | static void lpd270_backlight_power(int on) | 235 | static struct platform_pwm_backlight_data lpd270_backlight_data = { |
237 | { | 236 | .pwm_id = 0, |
238 | if (on) { | 237 | .max_brightness = 1, |
239 | pxa_gpio_mode(GPIO16_PWM0_MD); | 238 | .dft_brightness = 1, |
240 | pxa_set_cken(CKEN_PWM0, 1); | 239 | .pwm_period_ns = 78770, |
241 | PWM_CTRL0 = 0; | 240 | }; |
242 | PWM_PWDUTY0 = 0x3ff; | 241 | |
243 | PWM_PERVAL0 = 0x3ff; | 242 | static struct platform_device lpd270_backlight_device = { |
244 | } else { | 243 | .name = "pwm-backlight", |
245 | PWM_CTRL0 = 0; | 244 | .dev = { |
246 | PWM_PWDUTY0 = 0x0; | 245 | .parent = &pxa27x_device_pwm0.dev, |
247 | PWM_PERVAL0 = 0x3FF; | 246 | .platform_data = &lpd270_backlight_data, |
248 | pxa_set_cken(CKEN_PWM0, 0); | 247 | }, |
249 | } | 248 | }; |
250 | } | ||
251 | 249 | ||
252 | /* 5.7" TFT QVGA (LoLo display number 1) */ | 250 | /* 5.7" TFT QVGA (LoLo display number 1) */ |
253 | static struct pxafb_mode_info sharp_lq057q3dc02_mode = { | 251 | static struct pxafb_mode_info sharp_lq057q3dc02_mode = { |
@@ -269,7 +267,6 @@ static struct pxafb_mach_info sharp_lq057q3dc02 = { | |||
269 | .num_modes = 1, | 267 | .num_modes = 1, |
270 | .lccr0 = 0x07800080, | 268 | .lccr0 = 0x07800080, |
271 | .lccr3 = 0x00400000, | 269 | .lccr3 = 0x00400000, |
272 | .pxafb_backlight_power = lpd270_backlight_power, | ||
273 | }; | 270 | }; |
274 | 271 | ||
275 | /* 12.1" TFT SVGA (LoLo display number 2) */ | 272 | /* 12.1" TFT SVGA (LoLo display number 2) */ |
@@ -292,7 +289,6 @@ static struct pxafb_mach_info sharp_lq121s1dg31 = { | |||
292 | .num_modes = 1, | 289 | .num_modes = 1, |
293 | .lccr0 = 0x07800080, | 290 | .lccr0 = 0x07800080, |
294 | .lccr3 = 0x00400000, | 291 | .lccr3 = 0x00400000, |
295 | .pxafb_backlight_power = lpd270_backlight_power, | ||
296 | }; | 292 | }; |
297 | 293 | ||
298 | /* 3.6" TFT QVGA (LoLo display number 3) */ | 294 | /* 3.6" TFT QVGA (LoLo display number 3) */ |
@@ -315,7 +311,6 @@ static struct pxafb_mach_info sharp_lq036q1da01 = { | |||
315 | .num_modes = 1, | 311 | .num_modes = 1, |
316 | .lccr0 = 0x07800080, | 312 | .lccr0 = 0x07800080, |
317 | .lccr3 = 0x00400000, | 313 | .lccr3 = 0x00400000, |
318 | .pxafb_backlight_power = lpd270_backlight_power, | ||
319 | }; | 314 | }; |
320 | 315 | ||
321 | /* 6.4" TFT VGA (LoLo display number 5) */ | 316 | /* 6.4" TFT VGA (LoLo display number 5) */ |
@@ -338,7 +333,6 @@ static struct pxafb_mach_info sharp_lq64d343 = { | |||
338 | .num_modes = 1, | 333 | .num_modes = 1, |
339 | .lccr0 = 0x07800080, | 334 | .lccr0 = 0x07800080, |
340 | .lccr3 = 0x00400000, | 335 | .lccr3 = 0x00400000, |
341 | .pxafb_backlight_power = lpd270_backlight_power, | ||
342 | }; | 336 | }; |
343 | 337 | ||
344 | /* 10.4" TFT VGA (LoLo display number 7) */ | 338 | /* 10.4" TFT VGA (LoLo display number 7) */ |
@@ -361,7 +355,6 @@ static struct pxafb_mach_info sharp_lq10d368 = { | |||
361 | .num_modes = 1, | 355 | .num_modes = 1, |
362 | .lccr0 = 0x07800080, | 356 | .lccr0 = 0x07800080, |
363 | .lccr3 = 0x00400000, | 357 | .lccr3 = 0x00400000, |
364 | .pxafb_backlight_power = lpd270_backlight_power, | ||
365 | }; | 358 | }; |
366 | 359 | ||
367 | /* 3.5" TFT QVGA (LoLo display number 8) */ | 360 | /* 3.5" TFT QVGA (LoLo display number 8) */ |
@@ -384,7 +377,6 @@ static struct pxafb_mach_info sharp_lq035q7db02_20 = { | |||
384 | .num_modes = 1, | 377 | .num_modes = 1, |
385 | .lccr0 = 0x07800080, | 378 | .lccr0 = 0x07800080, |
386 | .lccr3 = 0x00400000, | 379 | .lccr3 = 0x00400000, |
387 | .pxafb_backlight_power = lpd270_backlight_power, | ||
388 | }; | 380 | }; |
389 | 381 | ||
390 | static struct pxafb_mach_info *lpd270_lcd_to_use; | 382 | static struct pxafb_mach_info *lpd270_lcd_to_use; |
@@ -414,7 +406,7 @@ __setup("lcd=", lpd270_set_lcd); | |||
414 | 406 | ||
415 | static struct platform_device *platform_devices[] __initdata = { | 407 | static struct platform_device *platform_devices[] __initdata = { |
416 | &smc91x_device, | 408 | &smc91x_device, |
417 | &lpd270_audio_device, | 409 | &lpd270_backlight_device, |
418 | &lpd270_flash_device[0], | 410 | &lpd270_flash_device[0], |
419 | &lpd270_flash_device[1], | 411 | &lpd270_flash_device[1], |
420 | }; | 412 | }; |
@@ -454,9 +446,12 @@ static void __init lpd270_init(void) | |||
454 | * On LogicPD PXA270, we route AC97_SYSCLK via GPIO45. | 446 | * On LogicPD PXA270, we route AC97_SYSCLK via GPIO45. |
455 | */ | 447 | */ |
456 | pxa_gpio_mode(GPIO45_SYSCLK_AC97_MD); | 448 | pxa_gpio_mode(GPIO45_SYSCLK_AC97_MD); |
449 | pxa_gpio_mode(GPIO16_PWM0_MD); | ||
457 | 450 | ||
458 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); | 451 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); |
459 | 452 | ||
453 | pxa_set_ac97_info(NULL); | ||
454 | |||
460 | if (lpd270_lcd_to_use != NULL) | 455 | if (lpd270_lcd_to_use != NULL) |
461 | set_pxa_fb_info(lpd270_lcd_to_use); | 456 | set_pxa_fb_info(lpd270_lcd_to_use); |
462 | 457 | ||
diff --git a/arch/arm/mach-pxa/lubbock.c b/arch/arm/mach-pxa/lubbock.c index 7b9bdd0c6665..ac26423cd20c 100644 --- a/arch/arm/mach-pxa/lubbock.c +++ b/arch/arm/mach-pxa/lubbock.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/interrupt.h> | 21 | #include <linux/interrupt.h> |
22 | #include <linux/mtd/mtd.h> | 22 | #include <linux/mtd/mtd.h> |
23 | #include <linux/mtd/partitions.h> | 23 | #include <linux/mtd/partitions.h> |
24 | #include <linux/smc91x.h> | ||
24 | 25 | ||
25 | #include <linux/spi/spi.h> | 26 | #include <linux/spi/spi.h> |
26 | #include <linux/spi/ads7846.h> | 27 | #include <linux/spi/ads7846.h> |
@@ -43,6 +44,7 @@ | |||
43 | #include <asm/arch/pxa-regs.h> | 44 | #include <asm/arch/pxa-regs.h> |
44 | #include <asm/arch/pxa2xx-regs.h> | 45 | #include <asm/arch/pxa2xx-regs.h> |
45 | #include <asm/arch/mfp-pxa25x.h> | 46 | #include <asm/arch/mfp-pxa25x.h> |
47 | #include <asm/arch/audio.h> | ||
46 | #include <asm/arch/lubbock.h> | 48 | #include <asm/arch/lubbock.h> |
47 | #include <asm/arch/udc.h> | 49 | #include <asm/arch/udc.h> |
48 | #include <asm/arch/irda.h> | 50 | #include <asm/arch/irda.h> |
@@ -196,11 +198,6 @@ static struct pxa2xx_udc_mach_info udc_info __initdata = { | |||
196 | // no D+ pullup; lubbock can't connect/disconnect in software | 198 | // no D+ pullup; lubbock can't connect/disconnect in software |
197 | }; | 199 | }; |
198 | 200 | ||
199 | static struct platform_device lub_audio_device = { | ||
200 | .name = "pxa2xx-ac97", | ||
201 | .id = -1, | ||
202 | }; | ||
203 | |||
204 | static struct resource sa1111_resources[] = { | 201 | static struct resource sa1111_resources[] = { |
205 | [0] = { | 202 | [0] = { |
206 | .start = 0x10000000, | 203 | .start = 0x10000000, |
@@ -230,14 +227,6 @@ static struct pxa2xx_spi_master pxa_ssp_master_info = { | |||
230 | .num_chipselect = 0, | 227 | .num_chipselect = 0, |
231 | }; | 228 | }; |
232 | 229 | ||
233 | static struct platform_device pxa_ssp = { | ||
234 | .name = "pxa2xx-spi", | ||
235 | .id = 1, | ||
236 | .dev = { | ||
237 | .platform_data = &pxa_ssp_master_info, | ||
238 | }, | ||
239 | }; | ||
240 | |||
241 | static int lubbock_ads7846_pendown_state(void) | 230 | static int lubbock_ads7846_pendown_state(void) |
242 | { | 231 | { |
243 | /* TS_BUSY is bit 8 in LUB_MISC_RD, but pendown is irq-only */ | 232 | /* TS_BUSY is bit 8 in LUB_MISC_RD, but pendown is irq-only */ |
@@ -296,11 +285,18 @@ static struct resource smc91x_resources[] = { | |||
296 | }, | 285 | }, |
297 | }; | 286 | }; |
298 | 287 | ||
288 | static struct smc91x_platdata lubbock_smc91x_info = { | ||
289 | .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT | SMC91X_IO_SHIFT_2, | ||
290 | }; | ||
291 | |||
299 | static struct platform_device smc91x_device = { | 292 | static struct platform_device smc91x_device = { |
300 | .name = "smc91x", | 293 | .name = "smc91x", |
301 | .id = -1, | 294 | .id = -1, |
302 | .num_resources = ARRAY_SIZE(smc91x_resources), | 295 | .num_resources = ARRAY_SIZE(smc91x_resources), |
303 | .resource = smc91x_resources, | 296 | .resource = smc91x_resources, |
297 | .dev = { | ||
298 | .platform_data = &lubbock_smc91x_info, | ||
299 | }, | ||
304 | }; | 300 | }; |
305 | 301 | ||
306 | static struct resource flash_resources[] = { | 302 | static struct resource flash_resources[] = { |
@@ -368,11 +364,9 @@ static struct platform_device lubbock_flash_device[2] = { | |||
368 | 364 | ||
369 | static struct platform_device *devices[] __initdata = { | 365 | static struct platform_device *devices[] __initdata = { |
370 | &sa1111_device, | 366 | &sa1111_device, |
371 | &lub_audio_device, | ||
372 | &smc91x_device, | 367 | &smc91x_device, |
373 | &lubbock_flash_device[0], | 368 | &lubbock_flash_device[0], |
374 | &lubbock_flash_device[1], | 369 | &lubbock_flash_device[1], |
375 | &pxa_ssp, | ||
376 | }; | 370 | }; |
377 | 371 | ||
378 | static struct pxafb_mode_info sharp_lm8v31_mode = { | 372 | static struct pxafb_mode_info sharp_lm8v31_mode = { |
@@ -476,6 +470,7 @@ static void lubbock_irda_transceiver_mode(struct device *dev, int mode) | |||
476 | } else if (mode & IR_FIRMODE) { | 470 | } else if (mode & IR_FIRMODE) { |
477 | LUB_MISC_WR |= 1 << 4; | 471 | LUB_MISC_WR |= 1 << 4; |
478 | } | 472 | } |
473 | pxa2xx_transceiver_mode(dev, mode); | ||
479 | local_irq_restore(flags); | 474 | local_irq_restore(flags); |
480 | } | 475 | } |
481 | 476 | ||
@@ -494,6 +489,7 @@ static void __init lubbock_init(void) | |||
494 | set_pxa_fb_info(&sharp_lm8v31); | 489 | set_pxa_fb_info(&sharp_lm8v31); |
495 | pxa_set_mci_info(&lubbock_mci_platform_data); | 490 | pxa_set_mci_info(&lubbock_mci_platform_data); |
496 | pxa_set_ficp_info(&lubbock_ficp_platform_data); | 491 | pxa_set_ficp_info(&lubbock_ficp_platform_data); |
492 | pxa_set_ac97_info(NULL); | ||
497 | 493 | ||
498 | lubbock_flash_data[0].width = lubbock_flash_data[1].width = | 494 | lubbock_flash_data[0].width = lubbock_flash_data[1].width = |
499 | (BOOT_DEF & 1) ? 2 : 4; | 495 | (BOOT_DEF & 1) ? 2 : 4; |
@@ -505,6 +501,7 @@ static void __init lubbock_init(void) | |||
505 | lubbock_flash_data[flashboot].name = "boot-rom"; | 501 | lubbock_flash_data[flashboot].name = "boot-rom"; |
506 | (void) platform_add_devices(devices, ARRAY_SIZE(devices)); | 502 | (void) platform_add_devices(devices, ARRAY_SIZE(devices)); |
507 | 503 | ||
504 | pxa2xx_set_spi_info(1, &pxa_ssp_master_info); | ||
508 | spi_register_board_info(spi_board_info, ARRAY_SIZE(spi_board_info)); | 505 | spi_register_board_info(spi_board_info, ARRAY_SIZE(spi_board_info)); |
509 | } | 506 | } |
510 | 507 | ||
diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c index badba064dc04..c9d274f0048f 100644 --- a/arch/arm/mach-pxa/magician.c +++ b/arch/arm/mach-pxa/magician.c | |||
@@ -17,31 +17,32 @@ | |||
17 | #include <linux/init.h> | 17 | #include <linux/init.h> |
18 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
19 | #include <linux/delay.h> | 19 | #include <linux/delay.h> |
20 | #include <linux/gpio.h> | ||
20 | #include <linux/gpio_keys.h> | 21 | #include <linux/gpio_keys.h> |
21 | #include <linux/input.h> | 22 | #include <linux/input.h> |
22 | #include <linux/mfd/htc-egpio.h> | 23 | #include <linux/mfd/htc-egpio.h> |
23 | #include <linux/mfd/htc-pasic3.h> | 24 | #include <linux/mfd/htc-pasic3.h> |
24 | #include <linux/mtd/mtd.h> | ||
25 | #include <linux/mtd/map.h> | ||
26 | #include <linux/mtd/physmap.h> | 25 | #include <linux/mtd/physmap.h> |
27 | #include <linux/pda_power.h> | 26 | #include <linux/pda_power.h> |
27 | #include <linux/pwm_backlight.h> | ||
28 | 28 | ||
29 | #include <asm/gpio.h> | ||
30 | #include <asm/hardware.h> | 29 | #include <asm/hardware.h> |
31 | #include <asm/mach-types.h> | 30 | #include <asm/mach-types.h> |
32 | #include <asm/mach/arch.h> | 31 | #include <asm/mach/arch.h> |
33 | #include <asm/arch/magician.h> | 32 | #include <asm/arch/magician.h> |
34 | #include <asm/arch/mfp-pxa27x.h> | 33 | #include <asm/arch/mfp-pxa27x.h> |
35 | #include <asm/arch/pxa-regs.h> | 34 | #include <asm/arch/pxa-regs.h> |
35 | #include <asm/arch/pxa2xx-regs.h> | ||
36 | #include <asm/arch/pxafb.h> | 36 | #include <asm/arch/pxafb.h> |
37 | #include <asm/arch/i2c.h> | 37 | #include <asm/arch/i2c.h> |
38 | #include <asm/arch/mmc.h> | 38 | #include <asm/arch/mmc.h> |
39 | #include <asm/arch/irda.h> | 39 | #include <asm/arch/irda.h> |
40 | #include <asm/arch/ohci.h> | 40 | #include <asm/arch/ohci.h> |
41 | 41 | ||
42 | #include "devices.h" | ||
42 | #include "generic.h" | 43 | #include "generic.h" |
43 | 44 | ||
44 | static unsigned long magician_pin_config[] = { | 45 | static unsigned long magician_pin_config[] __initdata = { |
45 | 46 | ||
46 | /* SDRAM and Static Memory I/O Signals */ | 47 | /* SDRAM and Static Memory I/O Signals */ |
47 | GPIO20_nSDCS_2, | 48 | GPIO20_nSDCS_2, |
@@ -131,6 +132,7 @@ static unsigned long magician_pin_config[] = { | |||
131 | static void magician_irda_transceiver_mode(struct device *dev, int mode) | 132 | static void magician_irda_transceiver_mode(struct device *dev, int mode) |
132 | { | 133 | { |
133 | gpio_set_value(GPIO83_MAGICIAN_nIR_EN, mode & IR_OFF); | 134 | gpio_set_value(GPIO83_MAGICIAN_nIR_EN, mode & IR_OFF); |
135 | pxa2xx_transceiver_mode(dev, mode); | ||
134 | } | 136 | } |
135 | 137 | ||
136 | static struct pxaficp_platform_data magician_ficp_info = { | 138 | static struct pxaficp_platform_data magician_ficp_info = { |
@@ -348,40 +350,59 @@ static struct pxafb_mach_info samsung_info = { | |||
348 | * Backlight | 350 | * Backlight |
349 | */ | 351 | */ |
350 | 352 | ||
351 | static void magician_set_bl_intensity(int intensity) | 353 | static int magician_backlight_init(struct device *dev) |
352 | { | 354 | { |
353 | if (intensity) { | 355 | int ret; |
354 | PWM_CTRL0 = 1; | 356 | |
355 | PWM_PERVAL0 = 0xc8; | 357 | ret = gpio_request(EGPIO_MAGICIAN_BL_POWER, "BL_POWER"); |
356 | if (intensity > 0xc7) { | 358 | if (ret) |
357 | PWM_PWDUTY0 = intensity - 0x48; | 359 | goto err; |
358 | gpio_set_value(EGPIO_MAGICIAN_BL_POWER2, 1); | 360 | ret = gpio_request(EGPIO_MAGICIAN_BL_POWER2, "BL_POWER2"); |
359 | } else { | 361 | if (ret) |
360 | PWM_PWDUTY0 = intensity; | 362 | goto err2; |
361 | gpio_set_value(EGPIO_MAGICIAN_BL_POWER2, 0); | 363 | return 0; |
362 | } | 364 | |
363 | gpio_set_value(EGPIO_MAGICIAN_BL_POWER, 1); | 365 | err2: |
364 | pxa_set_cken(CKEN_PWM0, 1); | 366 | gpio_free(EGPIO_MAGICIAN_BL_POWER); |
367 | err: | ||
368 | return ret; | ||
369 | } | ||
370 | |||
371 | static int magician_backlight_notify(int brightness) | ||
372 | { | ||
373 | gpio_set_value(EGPIO_MAGICIAN_BL_POWER, brightness); | ||
374 | if (brightness >= 200) { | ||
375 | gpio_set_value(EGPIO_MAGICIAN_BL_POWER2, 1); | ||
376 | return brightness - 72; | ||
365 | } else { | 377 | } else { |
366 | /* PWM_PWDUTY0 = intensity; */ | 378 | gpio_set_value(EGPIO_MAGICIAN_BL_POWER2, 0); |
367 | gpio_set_value(EGPIO_MAGICIAN_BL_POWER, 0); | 379 | return brightness; |
368 | pxa_set_cken(CKEN_PWM0, 0); | ||
369 | } | 380 | } |
370 | } | 381 | } |
371 | 382 | ||
372 | static struct generic_bl_info backlight_info = { | 383 | static void magician_backlight_exit(struct device *dev) |
373 | .default_intensity = 0x64, | 384 | { |
374 | .limit_mask = 0x0b, | 385 | gpio_free(EGPIO_MAGICIAN_BL_POWER); |
375 | .max_intensity = 0xc7+0x48, | 386 | gpio_free(EGPIO_MAGICIAN_BL_POWER2); |
376 | .set_bl_intensity = magician_set_bl_intensity, | 387 | } |
388 | |||
389 | static struct platform_pwm_backlight_data backlight_data = { | ||
390 | .pwm_id = 0, | ||
391 | .max_brightness = 272, | ||
392 | .dft_brightness = 100, | ||
393 | .pwm_period_ns = 30923, | ||
394 | .init = magician_backlight_init, | ||
395 | .notify = magician_backlight_notify, | ||
396 | .exit = magician_backlight_exit, | ||
377 | }; | 397 | }; |
378 | 398 | ||
379 | static struct platform_device backlight = { | 399 | static struct platform_device backlight = { |
380 | .name = "generic-bl", | 400 | .name = "pwm-backlight", |
401 | .id = -1, | ||
381 | .dev = { | 402 | .dev = { |
382 | .platform_data = &backlight_info, | 403 | .parent = &pxa27x_device_pwm0.dev, |
404 | .platform_data = &backlight_data, | ||
383 | }, | 405 | }, |
384 | .id = -1, | ||
385 | }; | 406 | }; |
386 | 407 | ||
387 | /* | 408 | /* |
@@ -490,6 +511,37 @@ static struct platform_device pasic3 = { | |||
490 | * External power | 511 | * External power |
491 | */ | 512 | */ |
492 | 513 | ||
514 | static int power_supply_init(struct device *dev) | ||
515 | { | ||
516 | int ret; | ||
517 | |||
518 | ret = gpio_request(EGPIO_MAGICIAN_CABLE_STATE_AC, "CABLE_STATE_AC"); | ||
519 | if (ret) | ||
520 | goto err_cs_ac; | ||
521 | ret = gpio_request(EGPIO_MAGICIAN_CABLE_STATE_USB, "CABLE_STATE_USB"); | ||
522 | if (ret) | ||
523 | goto err_cs_usb; | ||
524 | ret = gpio_request(EGPIO_MAGICIAN_CHARGE_EN, "CHARGE_EN"); | ||
525 | if (ret) | ||
526 | goto err_chg_en; | ||
527 | ret = gpio_request(GPIO30_MAGICIAN_nCHARGE_EN, "nCHARGE_EN"); | ||
528 | if (!ret) | ||
529 | ret = gpio_direction_output(GPIO30_MAGICIAN_nCHARGE_EN, 0); | ||
530 | if (ret) | ||
531 | goto err_nchg_en; | ||
532 | |||
533 | return 0; | ||
534 | |||
535 | err_nchg_en: | ||
536 | gpio_free(EGPIO_MAGICIAN_CHARGE_EN); | ||
537 | err_chg_en: | ||
538 | gpio_free(EGPIO_MAGICIAN_CABLE_STATE_USB); | ||
539 | err_cs_usb: | ||
540 | gpio_free(EGPIO_MAGICIAN_CABLE_STATE_AC); | ||
541 | err_cs_ac: | ||
542 | return ret; | ||
543 | } | ||
544 | |||
493 | static int magician_is_ac_online(void) | 545 | static int magician_is_ac_online(void) |
494 | { | 546 | { |
495 | return gpio_get_value(EGPIO_MAGICIAN_CABLE_STATE_AC); | 547 | return gpio_get_value(EGPIO_MAGICIAN_CABLE_STATE_AC); |
@@ -506,14 +558,24 @@ static void magician_set_charge(int flags) | |||
506 | gpio_set_value(EGPIO_MAGICIAN_CHARGE_EN, flags); | 558 | gpio_set_value(EGPIO_MAGICIAN_CHARGE_EN, flags); |
507 | } | 559 | } |
508 | 560 | ||
561 | static void power_supply_exit(struct device *dev) | ||
562 | { | ||
563 | gpio_free(GPIO30_MAGICIAN_nCHARGE_EN); | ||
564 | gpio_free(EGPIO_MAGICIAN_CHARGE_EN); | ||
565 | gpio_free(EGPIO_MAGICIAN_CABLE_STATE_USB); | ||
566 | gpio_free(EGPIO_MAGICIAN_CABLE_STATE_AC); | ||
567 | } | ||
568 | |||
509 | static char *magician_supplicants[] = { | 569 | static char *magician_supplicants[] = { |
510 | "ds2760-battery.0", "backup-battery" | 570 | "ds2760-battery.0", "backup-battery" |
511 | }; | 571 | }; |
512 | 572 | ||
513 | static struct pda_power_pdata power_supply_info = { | 573 | static struct pda_power_pdata power_supply_info = { |
574 | .init = power_supply_init, | ||
514 | .is_ac_online = magician_is_ac_online, | 575 | .is_ac_online = magician_is_ac_online, |
515 | .is_usb_online = magician_is_usb_online, | 576 | .is_usb_online = magician_is_usb_online, |
516 | .set_charge = magician_set_charge, | 577 | .set_charge = magician_set_charge, |
578 | .exit = power_supply_exit, | ||
517 | .supplied_to = magician_supplicants, | 579 | .supplied_to = magician_supplicants, |
518 | .num_supplicants = ARRAY_SIZE(magician_supplicants), | 580 | .num_supplicants = ARRAY_SIZE(magician_supplicants), |
519 | }; | 581 | }; |
diff --git a/arch/arm/mach-pxa/mainstone.c b/arch/arm/mach-pxa/mainstone.c index 7399fb34da4e..851ec2d9b699 100644 --- a/arch/arm/mach-pxa/mainstone.c +++ b/arch/arm/mach-pxa/mainstone.c | |||
@@ -23,9 +23,10 @@ | |||
23 | #include <linux/ioport.h> | 23 | #include <linux/ioport.h> |
24 | #include <linux/mtd/mtd.h> | 24 | #include <linux/mtd/mtd.h> |
25 | #include <linux/mtd/partitions.h> | 25 | #include <linux/mtd/partitions.h> |
26 | #include <linux/backlight.h> | ||
27 | #include <linux/input.h> | 26 | #include <linux/input.h> |
28 | #include <linux/gpio_keys.h> | 27 | #include <linux/gpio_keys.h> |
28 | #include <linux/pwm_backlight.h> | ||
29 | #include <linux/smc91x.h> | ||
29 | 30 | ||
30 | #include <asm/types.h> | 31 | #include <asm/types.h> |
31 | #include <asm/setup.h> | 32 | #include <asm/setup.h> |
@@ -110,9 +111,9 @@ static unsigned long mainstone_pin_config[] = { | |||
110 | GPIO45_AC97_SYSCLK, | 111 | GPIO45_AC97_SYSCLK, |
111 | 112 | ||
112 | /* Keypad */ | 113 | /* Keypad */ |
113 | GPIO93_KP_DKIN_0 | WAKEUP_ON_LEVEL_HIGH, | 114 | GPIO93_KP_DKIN_0, |
114 | GPIO94_KP_DKIN_1 | WAKEUP_ON_LEVEL_HIGH, | 115 | GPIO94_KP_DKIN_1, |
115 | GPIO95_KP_DKIN_2 | WAKEUP_ON_LEVEL_HIGH, | 116 | GPIO95_KP_DKIN_2, |
116 | GPIO100_KP_MKIN_0 | WAKEUP_ON_LEVEL_HIGH, | 117 | GPIO100_KP_MKIN_0 | WAKEUP_ON_LEVEL_HIGH, |
117 | GPIO101_KP_MKIN_1 | WAKEUP_ON_LEVEL_HIGH, | 118 | GPIO101_KP_MKIN_1 | WAKEUP_ON_LEVEL_HIGH, |
118 | GPIO102_KP_MKIN_2 | WAKEUP_ON_LEVEL_HIGH, | 119 | GPIO102_KP_MKIN_2 | WAKEUP_ON_LEVEL_HIGH, |
@@ -240,11 +241,19 @@ static struct resource smc91x_resources[] = { | |||
240 | } | 241 | } |
241 | }; | 242 | }; |
242 | 243 | ||
244 | static struct smc91x_platdata mainstone_smc91x_info = { | ||
245 | .flags = SMC91X_USE_8BIT | SMC91X_USE_16BIT | SMC91X_USE_32BIT | | ||
246 | SMC91X_NOWAIT | SMC91X_USE_DMA, | ||
247 | }; | ||
248 | |||
243 | static struct platform_device smc91x_device = { | 249 | static struct platform_device smc91x_device = { |
244 | .name = "smc91x", | 250 | .name = "smc91x", |
245 | .id = 0, | 251 | .id = 0, |
246 | .num_resources = ARRAY_SIZE(smc91x_resources), | 252 | .num_resources = ARRAY_SIZE(smc91x_resources), |
247 | .resource = smc91x_resources, | 253 | .resource = smc91x_resources, |
254 | .dev = { | ||
255 | .platform_data = &mainstone_smc91x_info, | ||
256 | }, | ||
248 | }; | 257 | }; |
249 | 258 | ||
250 | static int mst_audio_startup(struct snd_pcm_substream *substream, void *priv) | 259 | static int mst_audio_startup(struct snd_pcm_substream *substream, void *priv) |
@@ -280,12 +289,6 @@ static pxa2xx_audio_ops_t mst_audio_ops = { | |||
280 | .resume = mst_audio_resume, | 289 | .resume = mst_audio_resume, |
281 | }; | 290 | }; |
282 | 291 | ||
283 | static struct platform_device mst_audio_device = { | ||
284 | .name = "pxa2xx-ac97", | ||
285 | .id = -1, | ||
286 | .dev = { .platform_data = &mst_audio_ops }, | ||
287 | }; | ||
288 | |||
289 | static struct resource flash_resources[] = { | 292 | static struct resource flash_resources[] = { |
290 | [0] = { | 293 | [0] = { |
291 | .start = PXA_CS0_PHYS, | 294 | .start = PXA_CS0_PHYS, |
@@ -349,56 +352,27 @@ static struct platform_device mst_flash_device[2] = { | |||
349 | }, | 352 | }, |
350 | }; | 353 | }; |
351 | 354 | ||
352 | #ifdef CONFIG_BACKLIGHT_CLASS_DEVICE | 355 | #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE) |
353 | static int mainstone_backlight_update_status(struct backlight_device *bl) | 356 | static struct platform_pwm_backlight_data mainstone_backlight_data = { |
354 | { | 357 | .pwm_id = 0, |
355 | int brightness = bl->props.brightness; | 358 | .max_brightness = 1023, |
356 | 359 | .dft_brightness = 1023, | |
357 | if (bl->props.power != FB_BLANK_UNBLANK || | 360 | .pwm_period_ns = 78770, |
358 | bl->props.fb_blank != FB_BLANK_UNBLANK) | 361 | }; |
359 | brightness = 0; | ||
360 | |||
361 | if (brightness != 0) | ||
362 | pxa_set_cken(CKEN_PWM0, 1); | ||
363 | |||
364 | PWM_CTRL0 = 0; | ||
365 | PWM_PWDUTY0 = brightness; | ||
366 | PWM_PERVAL0 = bl->props.max_brightness; | ||
367 | |||
368 | if (brightness == 0) | ||
369 | pxa_set_cken(CKEN_PWM0, 0); | ||
370 | return 0; /* pointless return value */ | ||
371 | } | ||
372 | |||
373 | static int mainstone_backlight_get_brightness(struct backlight_device *bl) | ||
374 | { | ||
375 | return PWM_PWDUTY0; | ||
376 | } | ||
377 | 362 | ||
378 | static /*const*/ struct backlight_ops mainstone_backlight_ops = { | 363 | static struct platform_device mainstone_backlight_device = { |
379 | .update_status = mainstone_backlight_update_status, | 364 | .name = "pwm-backlight", |
380 | .get_brightness = mainstone_backlight_get_brightness, | 365 | .dev = { |
366 | .parent = &pxa27x_device_pwm0.dev, | ||
367 | .platform_data = &mainstone_backlight_data, | ||
368 | }, | ||
381 | }; | 369 | }; |
382 | 370 | ||
383 | static void __init mainstone_backlight_register(void) | 371 | static void __init mainstone_backlight_register(void) |
384 | { | 372 | { |
385 | struct backlight_device *bl; | 373 | int ret = platform_device_register(&mainstone_backlight_device); |
386 | 374 | if (ret) | |
387 | bl = backlight_device_register("mainstone-bl", &pxa_device_fb.dev, | 375 | printk(KERN_ERR "mainstone: failed to register backlight device: %d\n", ret); |
388 | NULL, &mainstone_backlight_ops); | ||
389 | if (IS_ERR(bl)) { | ||
390 | printk(KERN_ERR "mainstone: unable to register backlight: %ld\n", | ||
391 | PTR_ERR(bl)); | ||
392 | return; | ||
393 | } | ||
394 | |||
395 | /* | ||
396 | * broken design - register-then-setup interfaces are | ||
397 | * utterly broken by definition. | ||
398 | */ | ||
399 | bl->props.max_brightness = 1023; | ||
400 | bl->props.brightness = 1023; | ||
401 | backlight_update_status(bl); | ||
402 | } | 376 | } |
403 | #else | 377 | #else |
404 | #define mainstone_backlight_register() do { } while (0) | 378 | #define mainstone_backlight_register() do { } while (0) |
@@ -490,6 +464,7 @@ static void mainstone_irda_transceiver_mode(struct device *dev, int mode) | |||
490 | } else if (mode & IR_FIRMODE) { | 464 | } else if (mode & IR_FIRMODE) { |
491 | MST_MSCWR1 |= MST_MSCWR1_IRDA_FIR; | 465 | MST_MSCWR1 |= MST_MSCWR1_IRDA_FIR; |
492 | } | 466 | } |
467 | pxa2xx_transceiver_mode(dev, mode); | ||
493 | if (mode & IR_OFF) { | 468 | if (mode & IR_OFF) { |
494 | MST_MSCWR1 = (MST_MSCWR1 & ~MST_MSCWR1_IRDA_MASK) | MST_MSCWR1_IRDA_OFF; | 469 | MST_MSCWR1 = (MST_MSCWR1 & ~MST_MSCWR1_IRDA_MASK) | MST_MSCWR1_IRDA_OFF; |
495 | } else { | 470 | } else { |
@@ -528,7 +503,6 @@ static struct platform_device mst_gpio_keys_device = { | |||
528 | 503 | ||
529 | static struct platform_device *platform_devices[] __initdata = { | 504 | static struct platform_device *platform_devices[] __initdata = { |
530 | &smc91x_device, | 505 | &smc91x_device, |
531 | &mst_audio_device, | ||
532 | &mst_flash_device[0], | 506 | &mst_flash_device[0], |
533 | &mst_flash_device[1], | 507 | &mst_flash_device[1], |
534 | &mst_gpio_keys_device, | 508 | &mst_gpio_keys_device, |
@@ -549,7 +523,7 @@ static struct pxaohci_platform_data mainstone_ohci_platform_data = { | |||
549 | .init = mainstone_ohci_init, | 523 | .init = mainstone_ohci_init, |
550 | }; | 524 | }; |
551 | 525 | ||
552 | #if defined(CONFIG_KEYBOARD_PXA27x) || defined(CONFIG_KEYBOARD_PXA27x_MODULES) | 526 | #if defined(CONFIG_KEYBOARD_PXA27x) || defined(CONFIG_KEYBOARD_PXA27x_MODULE) |
553 | static unsigned int mainstone_matrix_keys[] = { | 527 | static unsigned int mainstone_matrix_keys[] = { |
554 | KEY(0, 0, KEY_A), KEY(1, 0, KEY_B), KEY(2, 0, KEY_C), | 528 | KEY(0, 0, KEY_A), KEY(1, 0, KEY_B), KEY(2, 0, KEY_C), |
555 | KEY(3, 0, KEY_D), KEY(4, 0, KEY_E), KEY(5, 0, KEY_F), | 529 | KEY(3, 0, KEY_D), KEY(4, 0, KEY_E), KEY(5, 0, KEY_F), |
@@ -638,6 +612,7 @@ static void __init mainstone_init(void) | |||
638 | pxa_set_ficp_info(&mainstone_ficp_platform_data); | 612 | pxa_set_ficp_info(&mainstone_ficp_platform_data); |
639 | pxa_set_ohci_info(&mainstone_ohci_platform_data); | 613 | pxa_set_ohci_info(&mainstone_ohci_platform_data); |
640 | pxa_set_i2c_info(NULL); | 614 | pxa_set_i2c_info(NULL); |
615 | pxa_set_ac97_info(&mst_audio_ops); | ||
641 | 616 | ||
642 | mainstone_init_keypad(); | 617 | mainstone_init_keypad(); |
643 | } | 618 | } |
diff --git a/arch/arm/mach-pxa/mfp-pxa2xx.c b/arch/arm/mach-pxa/mfp-pxa2xx.c index 22097a1707cc..fd4545eab803 100644 --- a/arch/arm/mach-pxa/mfp-pxa2xx.c +++ b/arch/arm/mach-pxa/mfp-pxa2xx.c | |||
@@ -20,6 +20,7 @@ | |||
20 | 20 | ||
21 | #include <asm/arch/hardware.h> | 21 | #include <asm/arch/hardware.h> |
22 | #include <asm/arch/pxa-regs.h> | 22 | #include <asm/arch/pxa-regs.h> |
23 | #include <asm/arch/pxa2xx-regs.h> | ||
23 | #include <asm/arch/mfp-pxa2xx.h> | 24 | #include <asm/arch/mfp-pxa2xx.h> |
24 | 25 | ||
25 | #include "generic.h" | 26 | #include "generic.h" |
@@ -38,6 +39,28 @@ struct gpio_desc { | |||
38 | 39 | ||
39 | static struct gpio_desc gpio_desc[MFP_PIN_GPIO127 + 1]; | 40 | static struct gpio_desc gpio_desc[MFP_PIN_GPIO127 + 1]; |
40 | 41 | ||
42 | static int __mfp_config_lpm(unsigned gpio, unsigned long lpm) | ||
43 | { | ||
44 | unsigned mask = GPIO_bit(gpio); | ||
45 | |||
46 | /* low power state */ | ||
47 | switch (lpm) { | ||
48 | case MFP_LPM_DRIVE_HIGH: | ||
49 | PGSR(gpio) |= mask; | ||
50 | break; | ||
51 | case MFP_LPM_DRIVE_LOW: | ||
52 | PGSR(gpio) &= ~mask; | ||
53 | break; | ||
54 | case MFP_LPM_INPUT: | ||
55 | break; | ||
56 | default: | ||
57 | pr_warning("%s: invalid low power state for GPIO%d\n", | ||
58 | __func__, gpio); | ||
59 | return -EINVAL; | ||
60 | } | ||
61 | return 0; | ||
62 | } | ||
63 | |||
41 | static int __mfp_config_gpio(unsigned gpio, unsigned long c) | 64 | static int __mfp_config_gpio(unsigned gpio, unsigned long c) |
42 | { | 65 | { |
43 | unsigned long gafr, mask = GPIO_bit(gpio); | 66 | unsigned long gafr, mask = GPIO_bit(gpio); |
@@ -56,21 +79,8 @@ static int __mfp_config_gpio(unsigned gpio, unsigned long c) | |||
56 | else | 79 | else |
57 | GPDR(gpio) &= ~mask; | 80 | GPDR(gpio) &= ~mask; |
58 | 81 | ||
59 | /* low power state */ | 82 | if (__mfp_config_lpm(gpio, c & MFP_LPM_STATE_MASK)) |
60 | switch (c & MFP_LPM_STATE_MASK) { | ||
61 | case MFP_LPM_DRIVE_HIGH: | ||
62 | PGSR(gpio) |= mask; | ||
63 | break; | ||
64 | case MFP_LPM_DRIVE_LOW: | ||
65 | PGSR(gpio) &= ~mask; | ||
66 | break; | ||
67 | case MFP_LPM_INPUT: | ||
68 | break; | ||
69 | default: | ||
70 | pr_warning("%s: invalid low power state for GPIO%d\n", | ||
71 | __func__, gpio); | ||
72 | return -EINVAL; | 83 | return -EINVAL; |
73 | } | ||
74 | 84 | ||
75 | /* give early warning if MFP_LPM_CAN_WAKEUP is set on the | 85 | /* give early warning if MFP_LPM_CAN_WAKEUP is set on the |
76 | * configurations of those pins not able to wakeup | 86 | * configurations of those pins not able to wakeup |
@@ -90,6 +100,18 @@ static int __mfp_config_gpio(unsigned gpio, unsigned long c) | |||
90 | return 0; | 100 | return 0; |
91 | } | 101 | } |
92 | 102 | ||
103 | static inline int __mfp_validate(int mfp) | ||
104 | { | ||
105 | int gpio = mfp_to_gpio(mfp); | ||
106 | |||
107 | if ((mfp > MFP_PIN_GPIO127) || !gpio_desc[gpio].valid) { | ||
108 | pr_warning("%s: GPIO%d is invalid pin\n", __func__, gpio); | ||
109 | return -1; | ||
110 | } | ||
111 | |||
112 | return gpio; | ||
113 | } | ||
114 | |||
93 | void pxa2xx_mfp_config(unsigned long *mfp_cfgs, int num) | 115 | void pxa2xx_mfp_config(unsigned long *mfp_cfgs, int num) |
94 | { | 116 | { |
95 | unsigned long flags; | 117 | unsigned long flags; |
@@ -98,13 +120,9 @@ void pxa2xx_mfp_config(unsigned long *mfp_cfgs, int num) | |||
98 | 120 | ||
99 | for (i = 0, c = mfp_cfgs; i < num; i++, c++) { | 121 | for (i = 0, c = mfp_cfgs; i < num; i++, c++) { |
100 | 122 | ||
101 | gpio = mfp_to_gpio(MFP_PIN(*c)); | 123 | gpio = __mfp_validate(MFP_PIN(*c)); |
102 | 124 | if (gpio < 0) | |
103 | if (!gpio_desc[gpio].valid) { | ||
104 | pr_warning("%s: GPIO%d is invalid pin\n", | ||
105 | __func__, gpio); | ||
106 | continue; | 125 | continue; |
107 | } | ||
108 | 126 | ||
109 | local_irq_save(flags); | 127 | local_irq_save(flags); |
110 | 128 | ||
@@ -115,6 +133,20 @@ void pxa2xx_mfp_config(unsigned long *mfp_cfgs, int num) | |||
115 | } | 133 | } |
116 | } | 134 | } |
117 | 135 | ||
136 | void pxa2xx_mfp_set_lpm(int mfp, unsigned long lpm) | ||
137 | { | ||
138 | unsigned long flags; | ||
139 | int gpio; | ||
140 | |||
141 | gpio = __mfp_validate(mfp); | ||
142 | if (gpio < 0) | ||
143 | return; | ||
144 | |||
145 | local_irq_save(flags); | ||
146 | __mfp_config_lpm(gpio, lpm); | ||
147 | local_irq_restore(flags); | ||
148 | } | ||
149 | |||
118 | int gpio_set_wake(unsigned int gpio, unsigned int on) | 150 | int gpio_set_wake(unsigned int gpio, unsigned int on) |
119 | { | 151 | { |
120 | struct gpio_desc *d; | 152 | struct gpio_desc *d; |
diff --git a/arch/arm/mach-pxa/palmtx.c b/arch/arm/mach-pxa/palmtx.c new file mode 100644 index 000000000000..408657a24f8c --- /dev/null +++ b/arch/arm/mach-pxa/palmtx.c | |||
@@ -0,0 +1,416 @@ | |||
1 | /* | ||
2 | * Hardware definitions for PalmTX | ||
3 | * | ||
4 | * Author: Marek Vasut <marek.vasut@gmail.com> | ||
5 | * | ||
6 | * Based on work of: | ||
7 | * Alex Osborne <ato@meshy.org> | ||
8 | * Cristiano P. <cristianop@users.sourceforge.net> | ||
9 | * Jan Herman <2hp@seznam.cz> | ||
10 | * Michal Hrusecky | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or modify | ||
13 | * it under the terms of the GNU General Public License version 2 as | ||
14 | * published by the Free Software Foundation. | ||
15 | * | ||
16 | * (find more info at www.hackndev.com) | ||
17 | * | ||
18 | */ | ||
19 | |||
20 | #include <linux/platform_device.h> | ||
21 | #include <linux/delay.h> | ||
22 | #include <linux/irq.h> | ||
23 | #include <linux/gpio_keys.h> | ||
24 | #include <linux/input.h> | ||
25 | #include <linux/pda_power.h> | ||
26 | #include <linux/pwm_backlight.h> | ||
27 | #include <linux/gpio.h> | ||
28 | |||
29 | #include <asm/mach-types.h> | ||
30 | #include <asm/mach/arch.h> | ||
31 | #include <asm/mach/map.h> | ||
32 | |||
33 | #include <asm/arch/audio.h> | ||
34 | #include <asm/arch/palmtx.h> | ||
35 | #include <asm/arch/mmc.h> | ||
36 | #include <asm/arch/pxafb.h> | ||
37 | #include <asm/arch/pxa-regs.h> | ||
38 | #include <asm/arch/mfp-pxa27x.h> | ||
39 | #include <asm/arch/irda.h> | ||
40 | #include <asm/arch/pxa27x_keypad.h> | ||
41 | #include <asm/arch/udc.h> | ||
42 | |||
43 | #include "generic.h" | ||
44 | #include "devices.h" | ||
45 | |||
46 | /****************************************************************************** | ||
47 | * Pin configuration | ||
48 | ******************************************************************************/ | ||
49 | static unsigned long palmtx_pin_config[] __initdata = { | ||
50 | /* MMC */ | ||
51 | GPIO32_MMC_CLK, | ||
52 | GPIO92_MMC_DAT_0, | ||
53 | GPIO109_MMC_DAT_1, | ||
54 | GPIO110_MMC_DAT_2, | ||
55 | GPIO111_MMC_DAT_3, | ||
56 | GPIO112_MMC_CMD, | ||
57 | |||
58 | /* AC97 */ | ||
59 | GPIO28_AC97_BITCLK, | ||
60 | GPIO29_AC97_SDATA_IN_0, | ||
61 | GPIO30_AC97_SDATA_OUT, | ||
62 | GPIO31_AC97_SYNC, | ||
63 | |||
64 | /* IrDA */ | ||
65 | GPIO46_FICP_RXD, | ||
66 | GPIO47_FICP_TXD, | ||
67 | |||
68 | /* PWM */ | ||
69 | GPIO16_PWM0_OUT, | ||
70 | |||
71 | /* USB */ | ||
72 | GPIO13_GPIO, | ||
73 | |||
74 | /* PCMCIA */ | ||
75 | GPIO48_nPOE, | ||
76 | GPIO49_nPWE, | ||
77 | GPIO50_nPIOR, | ||
78 | GPIO51_nPIOW, | ||
79 | GPIO85_nPCE_1, | ||
80 | GPIO54_nPCE_2, | ||
81 | GPIO79_PSKTSEL, | ||
82 | GPIO55_nPREG, | ||
83 | GPIO56_nPWAIT, | ||
84 | GPIO57_nIOIS16, | ||
85 | }; | ||
86 | |||
87 | /****************************************************************************** | ||
88 | * SD/MMC card controller | ||
89 | ******************************************************************************/ | ||
90 | static int palmtx_mci_init(struct device *dev, irq_handler_t palmtx_detect_int, | ||
91 | void *data) | ||
92 | { | ||
93 | int err = 0; | ||
94 | |||
95 | /* Setup an interrupt for detecting card insert/remove events */ | ||
96 | err = request_irq(IRQ_GPIO_PALMTX_SD_DETECT_N, palmtx_detect_int, | ||
97 | IRQF_DISABLED | IRQF_SAMPLE_RANDOM | | ||
98 | IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING, | ||
99 | "SD/MMC card detect", data); | ||
100 | if (err) { | ||
101 | printk(KERN_ERR "%s: cannot request SD/MMC card detect IRQ\n", | ||
102 | __func__); | ||
103 | return err; | ||
104 | } | ||
105 | |||
106 | err = gpio_request(GPIO_NR_PALMTX_SD_POWER, "SD_POWER"); | ||
107 | if (err) | ||
108 | goto pwr_err; | ||
109 | |||
110 | err = gpio_request(GPIO_NR_PALMTX_SD_READONLY, "SD_READONLY"); | ||
111 | if (err) | ||
112 | goto ro_err; | ||
113 | |||
114 | printk(KERN_DEBUG "%s: irq registered\n", __func__); | ||
115 | |||
116 | return 0; | ||
117 | |||
118 | ro_err: | ||
119 | gpio_free(GPIO_NR_PALMTX_SD_POWER); | ||
120 | pwr_err: | ||
121 | free_irq(IRQ_GPIO_PALMTX_SD_DETECT_N, data); | ||
122 | return err; | ||
123 | } | ||
124 | |||
125 | static void palmtx_mci_exit(struct device *dev, void *data) | ||
126 | { | ||
127 | gpio_free(GPIO_NR_PALMTX_SD_READONLY); | ||
128 | gpio_free(GPIO_NR_PALMTX_SD_POWER); | ||
129 | free_irq(IRQ_GPIO_PALMTX_SD_DETECT_N, data); | ||
130 | } | ||
131 | |||
132 | static void palmtx_mci_power(struct device *dev, unsigned int vdd) | ||
133 | { | ||
134 | struct pxamci_platform_data *p_d = dev->platform_data; | ||
135 | gpio_set_value(GPIO_NR_PALMTX_SD_POWER, p_d->ocr_mask & (1 << vdd)); | ||
136 | } | ||
137 | |||
138 | static int palmtx_mci_get_ro(struct device *dev) | ||
139 | { | ||
140 | return gpio_get_value(GPIO_NR_PALMTX_SD_READONLY); | ||
141 | } | ||
142 | |||
143 | static struct pxamci_platform_data palmtx_mci_platform_data = { | ||
144 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, | ||
145 | .setpower = palmtx_mci_power, | ||
146 | .get_ro = palmtx_mci_get_ro, | ||
147 | .init = palmtx_mci_init, | ||
148 | .exit = palmtx_mci_exit, | ||
149 | }; | ||
150 | |||
151 | /****************************************************************************** | ||
152 | * GPIO keyboard | ||
153 | ******************************************************************************/ | ||
154 | static unsigned int palmtx_matrix_keys[] = { | ||
155 | KEY(0, 0, KEY_POWER), | ||
156 | KEY(0, 1, KEY_F1), | ||
157 | KEY(0, 2, KEY_ENTER), | ||
158 | |||
159 | KEY(1, 0, KEY_F2), | ||
160 | KEY(1, 1, KEY_F3), | ||
161 | KEY(1, 2, KEY_F4), | ||
162 | |||
163 | KEY(2, 0, KEY_UP), | ||
164 | KEY(2, 2, KEY_DOWN), | ||
165 | |||
166 | KEY(3, 0, KEY_RIGHT), | ||
167 | KEY(3, 2, KEY_LEFT), | ||
168 | |||
169 | }; | ||
170 | |||
171 | static struct pxa27x_keypad_platform_data palmtx_keypad_platform_data = { | ||
172 | .matrix_key_rows = 4, | ||
173 | .matrix_key_cols = 3, | ||
174 | .matrix_key_map = palmtx_matrix_keys, | ||
175 | .matrix_key_map_size = ARRAY_SIZE(palmtx_matrix_keys), | ||
176 | |||
177 | .debounce_interval = 30, | ||
178 | }; | ||
179 | |||
180 | /****************************************************************************** | ||
181 | * GPIO keys | ||
182 | ******************************************************************************/ | ||
183 | static struct gpio_keys_button palmtx_pxa_buttons[] = { | ||
184 | {KEY_F8, GPIO_NR_PALMTX_HOTSYNC_BUTTON_N, 1, "HotSync Button" }, | ||
185 | }; | ||
186 | |||
187 | static struct gpio_keys_platform_data palmtx_pxa_keys_data = { | ||
188 | .buttons = palmtx_pxa_buttons, | ||
189 | .nbuttons = ARRAY_SIZE(palmtx_pxa_buttons), | ||
190 | }; | ||
191 | |||
192 | static struct platform_device palmtx_pxa_keys = { | ||
193 | .name = "gpio-keys", | ||
194 | .id = -1, | ||
195 | .dev = { | ||
196 | .platform_data = &palmtx_pxa_keys_data, | ||
197 | }, | ||
198 | }; | ||
199 | |||
200 | /****************************************************************************** | ||
201 | * Backlight | ||
202 | ******************************************************************************/ | ||
203 | static int palmtx_backlight_init(struct device *dev) | ||
204 | { | ||
205 | int ret; | ||
206 | |||
207 | ret = gpio_request(GPIO_NR_PALMTX_BL_POWER, "BL POWER"); | ||
208 | if (ret) | ||
209 | goto err; | ||
210 | ret = gpio_request(GPIO_NR_PALMTX_LCD_POWER, "LCD POWER"); | ||
211 | if (ret) | ||
212 | goto err2; | ||
213 | |||
214 | return 0; | ||
215 | err2: | ||
216 | gpio_free(GPIO_NR_PALMTX_BL_POWER); | ||
217 | err: | ||
218 | return ret; | ||
219 | } | ||
220 | |||
221 | static int palmtx_backlight_notify(int brightness) | ||
222 | { | ||
223 | gpio_set_value(GPIO_NR_PALMTX_BL_POWER, brightness); | ||
224 | gpio_set_value(GPIO_NR_PALMTX_LCD_POWER, brightness); | ||
225 | return brightness; | ||
226 | } | ||
227 | |||
228 | static void palmtx_backlight_exit(struct device *dev) | ||
229 | { | ||
230 | gpio_free(GPIO_NR_PALMTX_BL_POWER); | ||
231 | gpio_free(GPIO_NR_PALMTX_LCD_POWER); | ||
232 | } | ||
233 | |||
234 | static struct platform_pwm_backlight_data palmtx_backlight_data = { | ||
235 | .pwm_id = 0, | ||
236 | .max_brightness = PALMTX_MAX_INTENSITY, | ||
237 | .dft_brightness = PALMTX_MAX_INTENSITY, | ||
238 | .pwm_period_ns = PALMTX_PERIOD_NS, | ||
239 | .init = palmtx_backlight_init, | ||
240 | .notify = palmtx_backlight_notify, | ||
241 | .exit = palmtx_backlight_exit, | ||
242 | }; | ||
243 | |||
244 | static struct platform_device palmtx_backlight = { | ||
245 | .name = "pwm-backlight", | ||
246 | .dev = { | ||
247 | .parent = &pxa27x_device_pwm0.dev, | ||
248 | .platform_data = &palmtx_backlight_data, | ||
249 | }, | ||
250 | }; | ||
251 | |||
252 | /****************************************************************************** | ||
253 | * IrDA | ||
254 | ******************************************************************************/ | ||
255 | static void palmtx_irda_transceiver_mode(struct device *dev, int mode) | ||
256 | { | ||
257 | gpio_set_value(GPIO_NR_PALMTX_IR_DISABLE, mode & IR_OFF); | ||
258 | pxa2xx_transceiver_mode(dev, mode); | ||
259 | } | ||
260 | |||
261 | static struct pxaficp_platform_data palmtx_ficp_platform_data = { | ||
262 | .transceiver_cap = IR_SIRMODE | IR_FIRMODE | IR_OFF, | ||
263 | .transceiver_mode = palmtx_irda_transceiver_mode, | ||
264 | }; | ||
265 | |||
266 | /****************************************************************************** | ||
267 | * UDC | ||
268 | ******************************************************************************/ | ||
269 | static void palmtx_udc_command(int cmd) | ||
270 | { | ||
271 | gpio_set_value(GPIO_NR_PALMTX_USB_POWER, !cmd); | ||
272 | udelay(50); | ||
273 | gpio_set_value(GPIO_NR_PALMTX_USB_PULLUP, !cmd); | ||
274 | } | ||
275 | |||
276 | static struct pxa2xx_udc_mach_info palmtx_udc_info __initdata = { | ||
277 | .gpio_vbus = GPIO_NR_PALMTX_USB_DETECT_N, | ||
278 | .gpio_vbus_inverted = 1, | ||
279 | .udc_command = palmtx_udc_command, | ||
280 | }; | ||
281 | |||
282 | /****************************************************************************** | ||
283 | * Power supply | ||
284 | ******************************************************************************/ | ||
285 | static int power_supply_init(struct device *dev) | ||
286 | { | ||
287 | int ret; | ||
288 | |||
289 | ret = gpio_request(GPIO_NR_PALMTX_POWER_DETECT, "CABLE_STATE_AC"); | ||
290 | if (ret) | ||
291 | goto err_cs_ac; | ||
292 | |||
293 | ret = gpio_request(GPIO_NR_PALMTX_USB_DETECT_N, "CABLE_STATE_USB"); | ||
294 | if (ret) | ||
295 | goto err_cs_usb; | ||
296 | |||
297 | return 0; | ||
298 | |||
299 | err_cs_usb: | ||
300 | gpio_free(GPIO_NR_PALMTX_POWER_DETECT); | ||
301 | err_cs_ac: | ||
302 | return ret; | ||
303 | } | ||
304 | |||
305 | static int palmtx_is_ac_online(void) | ||
306 | { | ||
307 | return gpio_get_value(GPIO_NR_PALMTX_POWER_DETECT); | ||
308 | } | ||
309 | |||
310 | static int palmtx_is_usb_online(void) | ||
311 | { | ||
312 | return !gpio_get_value(GPIO_NR_PALMTX_USB_DETECT_N); | ||
313 | } | ||
314 | |||
315 | static void power_supply_exit(struct device *dev) | ||
316 | { | ||
317 | gpio_free(GPIO_NR_PALMTX_USB_DETECT_N); | ||
318 | gpio_free(GPIO_NR_PALMTX_POWER_DETECT); | ||
319 | } | ||
320 | |||
321 | static char *palmtx_supplicants[] = { | ||
322 | "main-battery", | ||
323 | }; | ||
324 | |||
325 | static struct pda_power_pdata power_supply_info = { | ||
326 | .init = power_supply_init, | ||
327 | .is_ac_online = palmtx_is_ac_online, | ||
328 | .is_usb_online = palmtx_is_usb_online, | ||
329 | .exit = power_supply_exit, | ||
330 | .supplied_to = palmtx_supplicants, | ||
331 | .num_supplicants = ARRAY_SIZE(palmtx_supplicants), | ||
332 | }; | ||
333 | |||
334 | static struct platform_device power_supply = { | ||
335 | .name = "pda-power", | ||
336 | .id = -1, | ||
337 | .dev = { | ||
338 | .platform_data = &power_supply_info, | ||
339 | }, | ||
340 | }; | ||
341 | |||
342 | /****************************************************************************** | ||
343 | * Framebuffer | ||
344 | ******************************************************************************/ | ||
345 | static struct pxafb_mode_info palmtx_lcd_modes[] = { | ||
346 | { | ||
347 | .pixclock = 57692, | ||
348 | .xres = 320, | ||
349 | .yres = 480, | ||
350 | .bpp = 16, | ||
351 | |||
352 | .left_margin = 32, | ||
353 | .right_margin = 1, | ||
354 | .upper_margin = 7, | ||
355 | .lower_margin = 1, | ||
356 | |||
357 | .hsync_len = 4, | ||
358 | .vsync_len = 1, | ||
359 | }, | ||
360 | }; | ||
361 | |||
362 | static struct pxafb_mach_info palmtx_lcd_screen = { | ||
363 | .modes = palmtx_lcd_modes, | ||
364 | .num_modes = ARRAY_SIZE(palmtx_lcd_modes), | ||
365 | .lcd_conn = LCD_COLOR_TFT_16BPP | LCD_PCLK_EDGE_FALL, | ||
366 | }; | ||
367 | |||
368 | /****************************************************************************** | ||
369 | * Machine init | ||
370 | ******************************************************************************/ | ||
371 | static struct platform_device *devices[] __initdata = { | ||
372 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) | ||
373 | &palmtx_pxa_keys, | ||
374 | #endif | ||
375 | &palmtx_backlight, | ||
376 | &power_supply, | ||
377 | }; | ||
378 | |||
379 | static struct map_desc palmtx_io_desc[] __initdata = { | ||
380 | { | ||
381 | .virtual = PALMTX_PCMCIA_VIRT, | ||
382 | .pfn = __phys_to_pfn(PALMTX_PCMCIA_PHYS), | ||
383 | .length = PALMTX_PCMCIA_SIZE, | ||
384 | .type = MT_DEVICE | ||
385 | }, | ||
386 | }; | ||
387 | |||
388 | static void __init palmtx_map_io(void) | ||
389 | { | ||
390 | pxa_map_io(); | ||
391 | iotable_init(palmtx_io_desc, ARRAY_SIZE(palmtx_io_desc)); | ||
392 | } | ||
393 | |||
394 | static void __init palmtx_init(void) | ||
395 | { | ||
396 | pxa2xx_mfp_config(ARRAY_AND_SIZE(palmtx_pin_config)); | ||
397 | |||
398 | set_pxa_fb_info(&palmtx_lcd_screen); | ||
399 | pxa_set_mci_info(&palmtx_mci_platform_data); | ||
400 | pxa_set_udc_info(&palmtx_udc_info); | ||
401 | pxa_set_ac97_info(NULL); | ||
402 | pxa_set_ficp_info(&palmtx_ficp_platform_data); | ||
403 | pxa_set_keypad_info(&palmtx_keypad_platform_data); | ||
404 | |||
405 | platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
406 | } | ||
407 | |||
408 | MACHINE_START(PALMTX, "Palm T|X") | ||
409 | .phys_io = PALMTX_PHYS_IO_START, | ||
410 | .io_pg_offst = io_p2v(0x40000000), | ||
411 | .boot_params = 0xa0000100, | ||
412 | .map_io = palmtx_map_io, | ||
413 | .init_irq = pxa27x_init_irq, | ||
414 | .timer = &pxa_timer, | ||
415 | .init_machine = palmtx_init | ||
416 | MACHINE_END | ||
diff --git a/arch/arm/mach-pxa/pcm027.c b/arch/arm/mach-pxa/pcm027.c index 3b945eb0aee3..377f3be8ce57 100644 --- a/arch/arm/mach-pxa/pcm027.c +++ b/arch/arm/mach-pxa/pcm027.c | |||
@@ -24,7 +24,9 @@ | |||
24 | #include <linux/platform_device.h> | 24 | #include <linux/platform_device.h> |
25 | #include <linux/mtd/physmap.h> | 25 | #include <linux/mtd/physmap.h> |
26 | #include <linux/spi/spi.h> | 26 | #include <linux/spi/spi.h> |
27 | #include <linux/spi/max7301.h> | ||
27 | #include <linux/leds.h> | 28 | #include <linux/leds.h> |
29 | |||
28 | #include <asm/mach-types.h> | 30 | #include <asm/mach-types.h> |
29 | #include <asm/mach/arch.h> | 31 | #include <asm/mach/arch.h> |
30 | #include <asm/arch/hardware.h> | 32 | #include <asm/arch/hardware.h> |
@@ -108,6 +110,32 @@ static struct platform_device smc91x_device = { | |||
108 | .resource = smc91x_resources, | 110 | .resource = smc91x_resources, |
109 | }; | 111 | }; |
110 | 112 | ||
113 | /* | ||
114 | * SPI host and devices | ||
115 | */ | ||
116 | static struct pxa2xx_spi_master pxa_ssp_master_info = { | ||
117 | .num_chipselect = 1, | ||
118 | }; | ||
119 | |||
120 | static struct max7301_platform_data max7301_info = { | ||
121 | .base = -1, | ||
122 | }; | ||
123 | |||
124 | /* bus_num must match id in pxa2xx_set_spi_info() call */ | ||
125 | static struct spi_board_info spi_board_info[] __initdata = { | ||
126 | { | ||
127 | .modalias = "max7301", | ||
128 | .platform_data = &max7301_info, | ||
129 | .max_speed_hz = 13000000, | ||
130 | .bus_num = 1, | ||
131 | .chip_select = 0, | ||
132 | .mode = SPI_MODE_0, | ||
133 | }, | ||
134 | }; | ||
135 | |||
136 | /* | ||
137 | * NOR flash | ||
138 | */ | ||
111 | static struct physmap_flash_data pcm027_flash_data = { | 139 | static struct physmap_flash_data pcm027_flash_data = { |
112 | .width = 4, | 140 | .width = 4, |
113 | }; | 141 | }; |
@@ -190,6 +218,9 @@ static void __init pcm027_init(void) | |||
190 | #ifdef CONFIG_MACH_PCM990_BASEBOARD | 218 | #ifdef CONFIG_MACH_PCM990_BASEBOARD |
191 | pcm990_baseboard_init(); | 219 | pcm990_baseboard_init(); |
192 | #endif | 220 | #endif |
221 | |||
222 | pxa2xx_set_spi_info(1, &pxa_ssp_master_info); | ||
223 | spi_register_board_info(spi_board_info, ARRAY_SIZE(spi_board_info)); | ||
193 | } | 224 | } |
194 | 225 | ||
195 | static void __init pcm027_map_io(void) | 226 | static void __init pcm027_map_io(void) |
diff --git a/arch/arm/mach-pxa/pcm990-baseboard.c b/arch/arm/mach-pxa/pcm990-baseboard.c index 49d951db0f3d..30023b00e476 100644 --- a/arch/arm/mach-pxa/pcm990-baseboard.c +++ b/arch/arm/mach-pxa/pcm990-baseboard.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/platform_device.h> | 24 | #include <linux/platform_device.h> |
25 | #include <linux/ide.h> | 25 | #include <linux/ide.h> |
26 | #include <linux/i2c.h> | 26 | #include <linux/i2c.h> |
27 | #include <linux/pwm_backlight.h> | ||
27 | 28 | ||
28 | #include <media/soc_camera.h> | 29 | #include <media/soc_camera.h> |
29 | 30 | ||
@@ -32,13 +33,120 @@ | |||
32 | #include <asm/arch/camera.h> | 33 | #include <asm/arch/camera.h> |
33 | #include <asm/mach/map.h> | 34 | #include <asm/mach/map.h> |
34 | #include <asm/arch/pxa-regs.h> | 35 | #include <asm/arch/pxa-regs.h> |
35 | #include <asm/arch/pxa2xx-gpio.h> | 36 | #include <asm/arch/audio.h> |
36 | #include <asm/arch/mmc.h> | 37 | #include <asm/arch/mmc.h> |
37 | #include <asm/arch/ohci.h> | 38 | #include <asm/arch/ohci.h> |
38 | #include <asm/arch/pcm990_baseboard.h> | 39 | #include <asm/arch/pcm990_baseboard.h> |
40 | #include <asm/arch/pxafb.h> | ||
41 | #include <asm/arch/mfp-pxa27x.h> | ||
42 | |||
43 | #include "devices.h" | ||
44 | #include "generic.h" | ||
45 | |||
46 | static unsigned long pcm990_pin_config[] __initdata = { | ||
47 | /* MMC */ | ||
48 | GPIO32_MMC_CLK, | ||
49 | GPIO112_MMC_CMD, | ||
50 | GPIO92_MMC_DAT_0, | ||
51 | GPIO109_MMC_DAT_1, | ||
52 | GPIO110_MMC_DAT_2, | ||
53 | GPIO111_MMC_DAT_3, | ||
54 | /* USB */ | ||
55 | GPIO88_USBH1_PWR, | ||
56 | GPIO89_USBH1_PEN, | ||
57 | /* PWM0 */ | ||
58 | GPIO16_PWM0_OUT, | ||
59 | }; | ||
39 | 60 | ||
40 | /* | 61 | /* |
41 | * The PCM-990 development baseboard uses PCM-027's hardeware in the | 62 | * pcm990_lcd_power - control power supply to the LCD |
63 | * @on: 0 = switch off, 1 = switch on | ||
64 | * | ||
65 | * Called by the pxafb driver | ||
66 | */ | ||
67 | #ifndef CONFIG_PCM990_DISPLAY_NONE | ||
68 | static void pcm990_lcd_power(int on, struct fb_var_screeninfo *var) | ||
69 | { | ||
70 | if (on) { | ||
71 | /* enable LCD-Latches | ||
72 | * power on LCD | ||
73 | */ | ||
74 | __PCM990_CTRL_REG(PCM990_CTRL_PHYS + PCM990_CTRL_REG3) = | ||
75 | PCM990_CTRL_LCDPWR + PCM990_CTRL_LCDON; | ||
76 | } else { | ||
77 | /* disable LCD-Latches | ||
78 | * power off LCD | ||
79 | */ | ||
80 | __PCM990_CTRL_REG(PCM990_CTRL_PHYS + PCM990_CTRL_REG3) = 0x00; | ||
81 | } | ||
82 | } | ||
83 | #endif | ||
84 | |||
85 | #if defined(CONFIG_PCM990_DISPLAY_SHARP) | ||
86 | static struct pxafb_mode_info fb_info_sharp_lq084v1dg21 = { | ||
87 | .pixclock = 28000, | ||
88 | .xres = 640, | ||
89 | .yres = 480, | ||
90 | .bpp = 16, | ||
91 | .hsync_len = 20, | ||
92 | .left_margin = 103, | ||
93 | .right_margin = 47, | ||
94 | .vsync_len = 6, | ||
95 | .upper_margin = 28, | ||
96 | .lower_margin = 5, | ||
97 | .sync = 0, | ||
98 | .cmap_greyscale = 0, | ||
99 | }; | ||
100 | |||
101 | static struct pxafb_mach_info pcm990_fbinfo __initdata = { | ||
102 | .modes = &fb_info_sharp_lq084v1dg21, | ||
103 | .num_modes = 1, | ||
104 | .lccr0 = LCCR0_PAS, | ||
105 | .lccr3 = LCCR3_PCP, | ||
106 | .pxafb_lcd_power = pcm990_lcd_power, | ||
107 | }; | ||
108 | #elif defined(CONFIG_PCM990_DISPLAY_NEC) | ||
109 | struct pxafb_mode_info fb_info_nec_nl6448bc20_18d = { | ||
110 | .pixclock = 39720, | ||
111 | .xres = 640, | ||
112 | .yres = 480, | ||
113 | .bpp = 16, | ||
114 | .hsync_len = 32, | ||
115 | .left_margin = 16, | ||
116 | .right_margin = 48, | ||
117 | .vsync_len = 2, | ||
118 | .upper_margin = 12, | ||
119 | .lower_margin = 17, | ||
120 | .sync = 0, | ||
121 | .cmap_greyscale = 0, | ||
122 | }; | ||
123 | |||
124 | static struct pxafb_mach_info pcm990_fbinfo __initdata = { | ||
125 | .modes = &fb_info_nec_nl6448bc20_18d, | ||
126 | .num_modes = 1, | ||
127 | .lccr0 = LCCR0_Act, | ||
128 | .lccr3 = LCCR3_PixFlEdg, | ||
129 | .pxafb_lcd_power = pcm990_lcd_power, | ||
130 | }; | ||
131 | #endif | ||
132 | |||
133 | static struct platform_pwm_backlight_data pcm990_backlight_data = { | ||
134 | .pwm_id = 0, | ||
135 | .max_brightness = 1023, | ||
136 | .dft_brightness = 1023, | ||
137 | .pwm_period_ns = 78770, | ||
138 | }; | ||
139 | |||
140 | static struct platform_device pcm990_backlight_device = { | ||
141 | .name = "pwm-backlight", | ||
142 | .dev = { | ||
143 | .parent = &pxa27x_device_pwm0.dev, | ||
144 | .platform_data = &pcm990_backlight_data, | ||
145 | }, | ||
146 | }; | ||
147 | |||
148 | /* | ||
149 | * The PCM-990 development baseboard uses PCM-027's hardware in the | ||
42 | * following way: | 150 | * following way: |
43 | * | 151 | * |
44 | * - LCD support is in use | 152 | * - LCD support is in use |
@@ -185,16 +293,6 @@ static int pcm990_mci_init(struct device *dev, irq_handler_t mci_detect_int, | |||
185 | { | 293 | { |
186 | int err; | 294 | int err; |
187 | 295 | ||
188 | /* | ||
189 | * enable GPIO for PXA27x MMC controller | ||
190 | */ | ||
191 | pxa_gpio_mode(GPIO32_MMCCLK_MD); | ||
192 | pxa_gpio_mode(GPIO112_MMCCMD_MD); | ||
193 | pxa_gpio_mode(GPIO92_MMCDAT0_MD); | ||
194 | pxa_gpio_mode(GPIO109_MMCDAT1_MD); | ||
195 | pxa_gpio_mode(GPIO110_MMCDAT2_MD); | ||
196 | pxa_gpio_mode(GPIO111_MMCDAT3_MD); | ||
197 | |||
198 | err = request_irq(PCM027_MMCDET_IRQ, mci_detect_int, IRQF_DISABLED, | 296 | err = request_irq(PCM027_MMCDET_IRQ, mci_detect_int, IRQF_DISABLED, |
199 | "MMC card detect", data); | 297 | "MMC card detect", data); |
200 | if (err) | 298 | if (err) |
@@ -241,8 +339,6 @@ static struct pxamci_platform_data pcm990_mci_platform_data = { | |||
241 | */ | 339 | */ |
242 | static int pcm990_ohci_init(struct device *dev) | 340 | static int pcm990_ohci_init(struct device *dev) |
243 | { | 341 | { |
244 | pxa_gpio_mode(PCM990_USB_OVERCURRENT); | ||
245 | pxa_gpio_mode(PCM990_USB_PWR_EN); | ||
246 | /* | 342 | /* |
247 | * disable USB port 2 and 3 | 343 | * disable USB port 2 and 3 |
248 | * power sense is active low | 344 | * power sense is active low |
@@ -269,23 +365,27 @@ static struct pxaohci_platform_data pcm990_ohci_platform_data = { | |||
269 | * PXA27x Camera specific stuff | 365 | * PXA27x Camera specific stuff |
270 | */ | 366 | */ |
271 | #if defined(CONFIG_VIDEO_PXA27x) || defined(CONFIG_VIDEO_PXA27x_MODULE) | 367 | #if defined(CONFIG_VIDEO_PXA27x) || defined(CONFIG_VIDEO_PXA27x_MODULE) |
368 | static unsigned long pcm990_camera_pin_config[] = { | ||
369 | /* CIF */ | ||
370 | GPIO98_CIF_DD_0, | ||
371 | GPIO105_CIF_DD_1, | ||
372 | GPIO104_CIF_DD_2, | ||
373 | GPIO103_CIF_DD_3, | ||
374 | GPIO95_CIF_DD_4, | ||
375 | GPIO94_CIF_DD_5, | ||
376 | GPIO93_CIF_DD_6, | ||
377 | GPIO108_CIF_DD_7, | ||
378 | GPIO107_CIF_DD_8, | ||
379 | GPIO106_CIF_DD_9, | ||
380 | GPIO42_CIF_MCLK, | ||
381 | GPIO45_CIF_PCLK, | ||
382 | GPIO43_CIF_FV, | ||
383 | GPIO44_CIF_LV, | ||
384 | }; | ||
385 | |||
272 | static int pcm990_pxacamera_init(struct device *dev) | 386 | static int pcm990_pxacamera_init(struct device *dev) |
273 | { | 387 | { |
274 | pxa_gpio_mode(GPIO98_CIF_DD_0_MD); | 388 | pxa2xx_mfp_config(ARRAY_AND_SIZE(pcm990_camera_pin_config)); |
275 | pxa_gpio_mode(GPIO105_CIF_DD_1_MD); | ||
276 | pxa_gpio_mode(GPIO104_CIF_DD_2_MD); | ||
277 | pxa_gpio_mode(GPIO103_CIF_DD_3_MD); | ||
278 | pxa_gpio_mode(GPIO95_CIF_DD_4_MD); | ||
279 | pxa_gpio_mode(GPIO94_CIF_DD_5_MD); | ||
280 | pxa_gpio_mode(GPIO93_CIF_DD_6_MD); | ||
281 | pxa_gpio_mode(GPIO108_CIF_DD_7_MD); | ||
282 | pxa_gpio_mode(GPIO107_CIF_DD_8_MD); | ||
283 | pxa_gpio_mode(GPIO106_CIF_DD_9_MD); | ||
284 | pxa_gpio_mode(GPIO42_CIF_MCLK_MD); | ||
285 | pxa_gpio_mode(GPIO45_CIF_PCLK_MD); | ||
286 | pxa_gpio_mode(GPIO43_CIF_FV_MD); | ||
287 | pxa_gpio_mode(GPIO44_CIF_LV_MD); | ||
288 | |||
289 | return 0; | 389 | return 0; |
290 | } | 390 | } |
291 | 391 | ||
@@ -333,36 +433,6 @@ static struct i2c_board_info __initdata pcm990_i2c_devices[] = { | |||
333 | #endif /* CONFIG_VIDEO_PXA27x ||CONFIG_VIDEO_PXA27x_MODULE */ | 433 | #endif /* CONFIG_VIDEO_PXA27x ||CONFIG_VIDEO_PXA27x_MODULE */ |
334 | 434 | ||
335 | /* | 435 | /* |
336 | * AC97 support | ||
337 | * Note: The connected AC97 mixer also reports interrupts at PCM990_AC97_IRQ | ||
338 | */ | ||
339 | static struct resource pxa27x_ac97_resources[] = { | ||
340 | [0] = { | ||
341 | .start = 0x40500000, | ||
342 | .end = 0x40500000 + 0xfff, | ||
343 | .flags = IORESOURCE_MEM, | ||
344 | }, | ||
345 | [1] = { | ||
346 | .start = IRQ_AC97, | ||
347 | .end = IRQ_AC97, | ||
348 | .flags = IORESOURCE_IRQ, | ||
349 | }, | ||
350 | }; | ||
351 | |||
352 | static u64 pxa_ac97_dmamask = 0xffffffffUL; | ||
353 | |||
354 | static struct platform_device pxa27x_device_ac97 = { | ||
355 | .name = "pxa2xx-ac97", | ||
356 | .id = -1, | ||
357 | .dev = { | ||
358 | .dma_mask = &pxa_ac97_dmamask, | ||
359 | .coherent_dma_mask = 0xffffffff, | ||
360 | }, | ||
361 | .num_resources = ARRAY_SIZE(pxa27x_ac97_resources), | ||
362 | .resource = pxa27x_ac97_resources, | ||
363 | }; | ||
364 | |||
365 | /* | ||
366 | * enable generic access to the base board control CPLDs U6 and U7 | 436 | * enable generic access to the base board control CPLDs U6 and U7 |
367 | */ | 437 | */ |
368 | static struct map_desc pcm990_io_desc[] __initdata = { | 438 | static struct map_desc pcm990_io_desc[] __initdata = { |
@@ -387,13 +457,18 @@ static struct map_desc pcm990_io_desc[] __initdata = { | |||
387 | */ | 457 | */ |
388 | void __init pcm990_baseboard_init(void) | 458 | void __init pcm990_baseboard_init(void) |
389 | { | 459 | { |
460 | pxa2xx_mfp_config(ARRAY_AND_SIZE(pcm990_pin_config)); | ||
461 | |||
390 | /* register CPLD access */ | 462 | /* register CPLD access */ |
391 | iotable_init(pcm990_io_desc, ARRAY_SIZE(pcm990_io_desc)); | 463 | iotable_init(ARRAY_AND_SIZE(pcm990_io_desc)); |
392 | 464 | ||
393 | /* register CPLD's IRQ controller */ | 465 | /* register CPLD's IRQ controller */ |
394 | pcm990_init_irq(); | 466 | pcm990_init_irq(); |
395 | 467 | ||
396 | platform_device_register(&pxa27x_device_ac97); | 468 | #ifndef CONFIG_PCM990_DISPLAY_NONE |
469 | set_pxa_fb_info(&pcm990_fbinfo); | ||
470 | #endif | ||
471 | platform_device_register(&pcm990_backlight_device); | ||
397 | 472 | ||
398 | /* MMC */ | 473 | /* MMC */ |
399 | pxa_set_mci_info(&pcm990_mci_platform_data); | 474 | pxa_set_mci_info(&pcm990_mci_platform_data); |
@@ -402,13 +477,13 @@ void __init pcm990_baseboard_init(void) | |||
402 | pxa_set_ohci_info(&pcm990_ohci_platform_data); | 477 | pxa_set_ohci_info(&pcm990_ohci_platform_data); |
403 | 478 | ||
404 | pxa_set_i2c_info(NULL); | 479 | pxa_set_i2c_info(NULL); |
480 | pxa_set_ac97_info(NULL); | ||
405 | 481 | ||
406 | #if defined(CONFIG_VIDEO_PXA27x) || defined(CONFIG_VIDEO_PXA27x_MODULE) | 482 | #if defined(CONFIG_VIDEO_PXA27x) || defined(CONFIG_VIDEO_PXA27x_MODULE) |
407 | pxa_set_camera_info(&pcm990_pxacamera_platform_data); | 483 | pxa_set_camera_info(&pcm990_pxacamera_platform_data); |
408 | 484 | ||
409 | i2c_register_board_info(0, pcm990_i2c_devices, | 485 | i2c_register_board_info(0, ARRAY_AND_SIZE(pcm990_i2c_devices)); |
410 | ARRAY_SIZE(pcm990_i2c_devices)); | ||
411 | #endif | 486 | #endif |
412 | 487 | ||
413 | printk(KERN_INFO"PCM-990 Evaluation baseboard initialized\n"); | 488 | printk(KERN_INFO "PCM-990 Evaluation baseboard initialized\n"); |
414 | } | 489 | } |
diff --git a/arch/arm/mach-pxa/poodle.c b/arch/arm/mach-pxa/poodle.c index 0b30f25cff3c..39612cfa0b4d 100644 --- a/arch/arm/mach-pxa/poodle.c +++ b/arch/arm/mach-pxa/poodle.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <asm/mach/irq.h> | 32 | #include <asm/mach/irq.h> |
33 | 33 | ||
34 | #include <asm/arch/pxa-regs.h> | 34 | #include <asm/arch/pxa-regs.h> |
35 | #include <asm/arch/pxa2xx-regs.h> | ||
35 | #include <asm/arch/pxa2xx-gpio.h> | 36 | #include <asm/arch/pxa2xx-gpio.h> |
36 | #include <asm/arch/mmc.h> | 37 | #include <asm/arch/mmc.h> |
37 | #include <asm/arch/udc.h> | 38 | #include <asm/arch/udc.h> |
@@ -266,6 +267,7 @@ static void poodle_irda_transceiver_mode(struct device *dev, int mode) | |||
266 | } else { | 267 | } else { |
267 | GPCR(POODLE_GPIO_IR_ON) = GPIO_bit(POODLE_GPIO_IR_ON); | 268 | GPCR(POODLE_GPIO_IR_ON) = GPIO_bit(POODLE_GPIO_IR_ON); |
268 | } | 269 | } |
270 | pxa2xx_transceiver_mode(dev, mode); | ||
269 | } | 271 | } |
270 | 272 | ||
271 | static struct pxaficp_platform_data poodle_ficp_platform_data = { | 273 | static struct pxaficp_platform_data poodle_ficp_platform_data = { |
diff --git a/arch/arm/mach-pxa/pwm.c b/arch/arm/mach-pxa/pwm.c new file mode 100644 index 000000000000..ce28cd9fed16 --- /dev/null +++ b/arch/arm/mach-pxa/pwm.c | |||
@@ -0,0 +1,319 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pxa/pwm.c | ||
3 | * | ||
4 | * simple driver for PWM (Pulse Width Modulator) controller | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | * | ||
10 | * 2008-02-13 initial version | ||
11 | * eric miao <eric.miao@marvell.com> | ||
12 | */ | ||
13 | |||
14 | #include <linux/module.h> | ||
15 | #include <linux/kernel.h> | ||
16 | #include <linux/platform_device.h> | ||
17 | #include <linux/err.h> | ||
18 | #include <linux/clk.h> | ||
19 | #include <linux/io.h> | ||
20 | #include <linux/pwm.h> | ||
21 | |||
22 | #include <asm/div64.h> | ||
23 | #include <asm/arch/pxa-regs.h> | ||
24 | |||
25 | /* PWM registers and bits definitions */ | ||
26 | #define PWMCR (0x00) | ||
27 | #define PWMDCR (0x04) | ||
28 | #define PWMPCR (0x08) | ||
29 | |||
30 | #define PWMCR_SD (1 << 6) | ||
31 | #define PWMDCR_FD (1 << 10) | ||
32 | |||
33 | struct pwm_device { | ||
34 | struct list_head node; | ||
35 | struct platform_device *pdev; | ||
36 | |||
37 | const char *label; | ||
38 | struct clk *clk; | ||
39 | int clk_enabled; | ||
40 | void __iomem *mmio_base; | ||
41 | |||
42 | unsigned int use_count; | ||
43 | unsigned int pwm_id; | ||
44 | }; | ||
45 | |||
46 | /* | ||
47 | * period_ns = 10^9 * (PRESCALE + 1) * (PV + 1) / PWM_CLK_RATE | ||
48 | * duty_ns = 10^9 * (PRESCALE + 1) * DC / PWM_CLK_RATE | ||
49 | */ | ||
50 | int pwm_config(struct pwm_device *pwm, int duty_ns, int period_ns) | ||
51 | { | ||
52 | unsigned long long c; | ||
53 | unsigned long period_cycles, prescale, pv, dc; | ||
54 | |||
55 | if (pwm == NULL || period_ns == 0 || duty_ns > period_ns) | ||
56 | return -EINVAL; | ||
57 | |||
58 | c = clk_get_rate(pwm->clk); | ||
59 | c = c * period_ns; | ||
60 | do_div(c, 1000000000); | ||
61 | period_cycles = c; | ||
62 | |||
63 | if (period_cycles < 0) | ||
64 | period_cycles = 1; | ||
65 | prescale = (period_cycles - 1) / 1024; | ||
66 | pv = period_cycles / (prescale + 1) - 1; | ||
67 | |||
68 | if (prescale > 63) | ||
69 | return -EINVAL; | ||
70 | |||
71 | if (duty_ns == period_ns) | ||
72 | dc = PWMDCR_FD; | ||
73 | else | ||
74 | dc = (pv + 1) * duty_ns / period_ns; | ||
75 | |||
76 | /* NOTE: the clock to PWM has to be enabled first | ||
77 | * before writing to the registers | ||
78 | */ | ||
79 | clk_enable(pwm->clk); | ||
80 | __raw_writel(prescale, pwm->mmio_base + PWMCR); | ||
81 | __raw_writel(dc, pwm->mmio_base + PWMDCR); | ||
82 | __raw_writel(pv, pwm->mmio_base + PWMPCR); | ||
83 | clk_disable(pwm->clk); | ||
84 | |||
85 | return 0; | ||
86 | } | ||
87 | EXPORT_SYMBOL(pwm_config); | ||
88 | |||
89 | int pwm_enable(struct pwm_device *pwm) | ||
90 | { | ||
91 | int rc = 0; | ||
92 | |||
93 | if (!pwm->clk_enabled) { | ||
94 | rc = clk_enable(pwm->clk); | ||
95 | if (!rc) | ||
96 | pwm->clk_enabled = 1; | ||
97 | } | ||
98 | return rc; | ||
99 | } | ||
100 | EXPORT_SYMBOL(pwm_enable); | ||
101 | |||
102 | void pwm_disable(struct pwm_device *pwm) | ||
103 | { | ||
104 | if (pwm->clk_enabled) { | ||
105 | clk_disable(pwm->clk); | ||
106 | pwm->clk_enabled = 0; | ||
107 | } | ||
108 | } | ||
109 | EXPORT_SYMBOL(pwm_disable); | ||
110 | |||
111 | static DEFINE_MUTEX(pwm_lock); | ||
112 | static LIST_HEAD(pwm_list); | ||
113 | |||
114 | struct pwm_device *pwm_request(int pwm_id, const char *label) | ||
115 | { | ||
116 | struct pwm_device *pwm; | ||
117 | int found = 0; | ||
118 | |||
119 | mutex_lock(&pwm_lock); | ||
120 | |||
121 | list_for_each_entry(pwm, &pwm_list, node) { | ||
122 | if (pwm->pwm_id == pwm_id) { | ||
123 | found = 1; | ||
124 | break; | ||
125 | } | ||
126 | } | ||
127 | |||
128 | if (found) { | ||
129 | if (pwm->use_count == 0) { | ||
130 | pwm->use_count++; | ||
131 | pwm->label = label; | ||
132 | } else | ||
133 | pwm = ERR_PTR(-EBUSY); | ||
134 | } else | ||
135 | pwm = ERR_PTR(-ENOENT); | ||
136 | |||
137 | mutex_unlock(&pwm_lock); | ||
138 | return pwm; | ||
139 | } | ||
140 | EXPORT_SYMBOL(pwm_request); | ||
141 | |||
142 | void pwm_free(struct pwm_device *pwm) | ||
143 | { | ||
144 | mutex_lock(&pwm_lock); | ||
145 | |||
146 | if (pwm->use_count) { | ||
147 | pwm->use_count--; | ||
148 | pwm->label = NULL; | ||
149 | } else | ||
150 | pr_warning("PWM device already freed\n"); | ||
151 | |||
152 | mutex_unlock(&pwm_lock); | ||
153 | } | ||
154 | EXPORT_SYMBOL(pwm_free); | ||
155 | |||
156 | static inline void __add_pwm(struct pwm_device *pwm) | ||
157 | { | ||
158 | mutex_lock(&pwm_lock); | ||
159 | list_add_tail(&pwm->node, &pwm_list); | ||
160 | mutex_unlock(&pwm_lock); | ||
161 | } | ||
162 | |||
163 | static struct pwm_device *pwm_probe(struct platform_device *pdev, | ||
164 | unsigned int pwm_id, struct pwm_device *parent_pwm) | ||
165 | { | ||
166 | struct pwm_device *pwm; | ||
167 | struct resource *r; | ||
168 | int ret = 0; | ||
169 | |||
170 | pwm = kzalloc(sizeof(struct pwm_device), GFP_KERNEL); | ||
171 | if (pwm == NULL) { | ||
172 | dev_err(&pdev->dev, "failed to allocate memory\n"); | ||
173 | return ERR_PTR(-ENOMEM); | ||
174 | } | ||
175 | |||
176 | pwm->clk = clk_get(&pdev->dev, "PWMCLK"); | ||
177 | if (IS_ERR(pwm->clk)) { | ||
178 | ret = PTR_ERR(pwm->clk); | ||
179 | goto err_free; | ||
180 | } | ||
181 | pwm->clk_enabled = 0; | ||
182 | |||
183 | pwm->use_count = 0; | ||
184 | pwm->pwm_id = pwm_id; | ||
185 | pwm->pdev = pdev; | ||
186 | |||
187 | if (parent_pwm != NULL) { | ||
188 | /* registers for the second PWM has offset of 0x10 */ | ||
189 | pwm->mmio_base = parent_pwm->mmio_base + 0x10; | ||
190 | __add_pwm(pwm); | ||
191 | return pwm; | ||
192 | } | ||
193 | |||
194 | r = platform_get_resource(pdev, IORESOURCE_MEM, 0); | ||
195 | if (r == NULL) { | ||
196 | dev_err(&pdev->dev, "no memory resource defined\n"); | ||
197 | ret = -ENODEV; | ||
198 | goto err_free_clk; | ||
199 | } | ||
200 | |||
201 | r = request_mem_region(r->start, r->end - r->start + 1, pdev->name); | ||
202 | if (r == NULL) { | ||
203 | dev_err(&pdev->dev, "failed to request memory resource\n"); | ||
204 | ret = -EBUSY; | ||
205 | goto err_free_clk; | ||
206 | } | ||
207 | |||
208 | pwm->mmio_base = ioremap(r->start, r->end - r->start + 1); | ||
209 | if (pwm->mmio_base == NULL) { | ||
210 | dev_err(&pdev->dev, "failed to ioremap() registers\n"); | ||
211 | ret = -ENODEV; | ||
212 | goto err_free_mem; | ||
213 | } | ||
214 | |||
215 | __add_pwm(pwm); | ||
216 | platform_set_drvdata(pdev, pwm); | ||
217 | return pwm; | ||
218 | |||
219 | err_free_mem: | ||
220 | release_mem_region(r->start, r->end - r->start + 1); | ||
221 | err_free_clk: | ||
222 | clk_put(pwm->clk); | ||
223 | err_free: | ||
224 | kfree(pwm); | ||
225 | return ERR_PTR(ret); | ||
226 | } | ||
227 | |||
228 | static int __devinit pxa25x_pwm_probe(struct platform_device *pdev) | ||
229 | { | ||
230 | struct pwm_device *pwm = pwm_probe(pdev, pdev->id, NULL); | ||
231 | |||
232 | if (IS_ERR(pwm)) | ||
233 | return PTR_ERR(pwm); | ||
234 | |||
235 | return 0; | ||
236 | } | ||
237 | |||
238 | static int __devinit pxa27x_pwm_probe(struct platform_device *pdev) | ||
239 | { | ||
240 | struct pwm_device *pwm; | ||
241 | |||
242 | pwm = pwm_probe(pdev, pdev->id, NULL); | ||
243 | if (IS_ERR(pwm)) | ||
244 | return PTR_ERR(pwm); | ||
245 | |||
246 | pwm = pwm_probe(pdev, pdev->id + 2, pwm); | ||
247 | if (IS_ERR(pwm)) | ||
248 | return PTR_ERR(pwm); | ||
249 | |||
250 | return 0; | ||
251 | } | ||
252 | |||
253 | static int __devexit pwm_remove(struct platform_device *pdev) | ||
254 | { | ||
255 | struct pwm_device *pwm; | ||
256 | struct resource *r; | ||
257 | |||
258 | pwm = platform_get_drvdata(pdev); | ||
259 | if (pwm == NULL) | ||
260 | return -ENODEV; | ||
261 | |||
262 | mutex_lock(&pwm_lock); | ||
263 | list_del(&pwm->node); | ||
264 | mutex_unlock(&pwm_lock); | ||
265 | |||
266 | iounmap(pwm->mmio_base); | ||
267 | |||
268 | r = platform_get_resource(pdev, IORESOURCE_MEM, 0); | ||
269 | release_mem_region(r->start, r->end - r->start + 1); | ||
270 | |||
271 | clk_put(pwm->clk); | ||
272 | kfree(pwm); | ||
273 | return 0; | ||
274 | } | ||
275 | |||
276 | static struct platform_driver pxa25x_pwm_driver = { | ||
277 | .driver = { | ||
278 | .name = "pxa25x-pwm", | ||
279 | }, | ||
280 | .probe = pxa25x_pwm_probe, | ||
281 | .remove = __devexit_p(pwm_remove), | ||
282 | }; | ||
283 | |||
284 | static struct platform_driver pxa27x_pwm_driver = { | ||
285 | .driver = { | ||
286 | .name = "pxa27x-pwm", | ||
287 | }, | ||
288 | .probe = pxa27x_pwm_probe, | ||
289 | .remove = __devexit_p(pwm_remove), | ||
290 | }; | ||
291 | |||
292 | static int __init pwm_init(void) | ||
293 | { | ||
294 | int ret = 0; | ||
295 | |||
296 | ret = platform_driver_register(&pxa25x_pwm_driver); | ||
297 | if (ret) { | ||
298 | printk(KERN_ERR "failed to register pxa25x_pwm_driver\n"); | ||
299 | return ret; | ||
300 | } | ||
301 | |||
302 | ret = platform_driver_register(&pxa27x_pwm_driver); | ||
303 | if (ret) { | ||
304 | printk(KERN_ERR "failed to register pxa27x_pwm_driver\n"); | ||
305 | return ret; | ||
306 | } | ||
307 | |||
308 | return ret; | ||
309 | } | ||
310 | arch_initcall(pwm_init); | ||
311 | |||
312 | static void __exit pwm_exit(void) | ||
313 | { | ||
314 | platform_driver_unregister(&pxa25x_pwm_driver); | ||
315 | platform_driver_unregister(&pxa27x_pwm_driver); | ||
316 | } | ||
317 | module_exit(pwm_exit); | ||
318 | |||
319 | MODULE_LICENSE("GPL v2"); | ||
diff --git a/arch/arm/mach-pxa/pxa25x.c b/arch/arm/mach-pxa/pxa25x.c index e5b417d14bb0..c5b845b935bb 100644 --- a/arch/arm/mach-pxa/pxa25x.c +++ b/arch/arm/mach-pxa/pxa25x.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <asm/hardware.h> | 26 | #include <asm/hardware.h> |
27 | #include <asm/arch/irqs.h> | 27 | #include <asm/arch/irqs.h> |
28 | #include <asm/arch/pxa-regs.h> | 28 | #include <asm/arch/pxa-regs.h> |
29 | #include <asm/arch/pxa2xx-regs.h> | ||
29 | #include <asm/arch/mfp-pxa25x.h> | 30 | #include <asm/arch/mfp-pxa25x.h> |
30 | #include <asm/arch/pm.h> | 31 | #include <asm/arch/pm.h> |
31 | #include <asm/arch/dma.h> | 32 | #include <asm/arch/dma.h> |
@@ -108,6 +109,52 @@ static const struct clkops clk_pxa25x_lcd_ops = { | |||
108 | .getrate = clk_pxa25x_lcd_getrate, | 109 | .getrate = clk_pxa25x_lcd_getrate, |
109 | }; | 110 | }; |
110 | 111 | ||
112 | static unsigned long gpio12_config_32k[] = { | ||
113 | GPIO12_32KHz, | ||
114 | }; | ||
115 | |||
116 | static unsigned long gpio12_config_gpio[] = { | ||
117 | GPIO12_GPIO, | ||
118 | }; | ||
119 | |||
120 | static void clk_gpio12_enable(struct clk *clk) | ||
121 | { | ||
122 | pxa2xx_mfp_config(gpio12_config_32k, 1); | ||
123 | } | ||
124 | |||
125 | static void clk_gpio12_disable(struct clk *clk) | ||
126 | { | ||
127 | pxa2xx_mfp_config(gpio12_config_gpio, 1); | ||
128 | } | ||
129 | |||
130 | static const struct clkops clk_pxa25x_gpio12_ops = { | ||
131 | .enable = clk_gpio12_enable, | ||
132 | .disable = clk_gpio12_disable, | ||
133 | }; | ||
134 | |||
135 | static unsigned long gpio11_config_3m6[] = { | ||
136 | GPIO11_3_6MHz, | ||
137 | }; | ||
138 | |||
139 | static unsigned long gpio11_config_gpio[] = { | ||
140 | GPIO11_GPIO, | ||
141 | }; | ||
142 | |||
143 | static void clk_gpio11_enable(struct clk *clk) | ||
144 | { | ||
145 | pxa2xx_mfp_config(gpio11_config_3m6, 1); | ||
146 | } | ||
147 | |||
148 | static void clk_gpio11_disable(struct clk *clk) | ||
149 | { | ||
150 | pxa2xx_mfp_config(gpio11_config_gpio, 1); | ||
151 | } | ||
152 | |||
153 | static const struct clkops clk_pxa25x_gpio11_ops = { | ||
154 | .enable = clk_gpio11_enable, | ||
155 | .disable = clk_gpio11_disable, | ||
156 | }; | ||
157 | |||
111 | /* | 158 | /* |
112 | * 3.6864MHz -> OST, GPIO, SSP, PWM, PLLs (95.842MHz, 147.456MHz) | 159 | * 3.6864MHz -> OST, GPIO, SSP, PWM, PLLs (95.842MHz, 147.456MHz) |
113 | * 95.842MHz -> MMC 19.169MHz, I2C 31.949MHz, FICP 47.923MHz, USB 47.923MHz | 160 | * 95.842MHz -> MMC 19.169MHz, I2C 31.949MHz, FICP 47.923MHz, USB 47.923MHz |
@@ -117,29 +164,40 @@ static struct clk pxa25x_hwuart_clk = | |||
117 | INIT_CKEN("UARTCLK", HWUART, 14745600, 1, &pxa_device_hwuart.dev) | 164 | INIT_CKEN("UARTCLK", HWUART, 14745600, 1, &pxa_device_hwuart.dev) |
118 | ; | 165 | ; |
119 | 166 | ||
167 | /* | ||
168 | * PXA 2xx clock declarations. Order is important (see aliases below) | ||
169 | * Please be careful not to disrupt the ordering. | ||
170 | */ | ||
120 | static struct clk pxa25x_clks[] = { | 171 | static struct clk pxa25x_clks[] = { |
121 | INIT_CK("LCDCLK", LCD, &clk_pxa25x_lcd_ops, &pxa_device_fb.dev), | 172 | INIT_CK("LCDCLK", LCD, &clk_pxa25x_lcd_ops, &pxa_device_fb.dev), |
122 | INIT_CKEN("UARTCLK", FFUART, 14745600, 1, &pxa_device_ffuart.dev), | 173 | INIT_CKEN("UARTCLK", FFUART, 14745600, 1, &pxa_device_ffuart.dev), |
123 | INIT_CKEN("UARTCLK", BTUART, 14745600, 1, &pxa_device_btuart.dev), | 174 | INIT_CKEN("UARTCLK", BTUART, 14745600, 1, &pxa_device_btuart.dev), |
124 | INIT_CKEN("UARTCLK", STUART, 14745600, 1, NULL), | 175 | INIT_CKEN("UARTCLK", STUART, 14745600, 1, NULL), |
125 | INIT_CKEN("UDCCLK", USB, 47923000, 5, &pxa_device_udc.dev), | 176 | INIT_CKEN("UDCCLK", USB, 47923000, 5, &pxa25x_device_udc.dev), |
177 | INIT_CLK("GPIO11_CLK", &clk_pxa25x_gpio11_ops, 3686400, 0, NULL), | ||
178 | INIT_CLK("GPIO12_CLK", &clk_pxa25x_gpio12_ops, 32768, 0, NULL), | ||
126 | INIT_CKEN("MMCCLK", MMC, 19169000, 0, &pxa_device_mci.dev), | 179 | INIT_CKEN("MMCCLK", MMC, 19169000, 0, &pxa_device_mci.dev), |
127 | INIT_CKEN("I2CCLK", I2C, 31949000, 0, &pxa_device_i2c.dev), | 180 | INIT_CKEN("I2CCLK", I2C, 31949000, 0, &pxa_device_i2c.dev), |
128 | 181 | ||
129 | INIT_CKEN("SSPCLK", SSP, 3686400, 0, &pxa25x_device_ssp.dev), | 182 | INIT_CKEN("SSPCLK", SSP, 3686400, 0, &pxa25x_device_ssp.dev), |
130 | INIT_CKEN("SSPCLK", NSSP, 3686400, 0, &pxa25x_device_nssp.dev), | 183 | INIT_CKEN("SSPCLK", NSSP, 3686400, 0, &pxa25x_device_nssp.dev), |
131 | INIT_CKEN("SSPCLK", ASSP, 3686400, 0, &pxa25x_device_assp.dev), | 184 | INIT_CKEN("SSPCLK", ASSP, 3686400, 0, &pxa25x_device_assp.dev), |
185 | INIT_CKEN("PWMCLK", PWM0, 3686400, 0, &pxa25x_device_pwm0.dev), | ||
186 | INIT_CKEN("PWMCLK", PWM1, 3686400, 0, &pxa25x_device_pwm1.dev), | ||
132 | 187 | ||
133 | INIT_CKEN("AC97CLK", AC97, 24576000, 0, NULL), | 188 | INIT_CKEN("AC97CLK", AC97, 24576000, 0, NULL), |
134 | 189 | ||
135 | /* | 190 | /* |
136 | INIT_CKEN("PWMCLK", PWM0, 3686400, 0, NULL), | ||
137 | INIT_CKEN("PWMCLK", PWM0, 3686400, 0, NULL), | ||
138 | INIT_CKEN("I2SCLK", I2S, 14745600, 0, NULL), | 191 | INIT_CKEN("I2SCLK", I2S, 14745600, 0, NULL), |
139 | */ | 192 | */ |
140 | INIT_CKEN("FICPCLK", FICP, 47923000, 0, NULL), | 193 | INIT_CKEN("FICPCLK", FICP, 47923000, 0, NULL), |
141 | }; | 194 | }; |
142 | 195 | ||
196 | static struct clk pxa2xx_clk_aliases[] = { | ||
197 | INIT_CKOTHER("GPIO7_CLK", &pxa25x_clks[4], NULL), | ||
198 | INIT_CKOTHER("SA1111_CLK", &pxa25x_clks[5], NULL), | ||
199 | }; | ||
200 | |||
143 | #ifdef CONFIG_PM | 201 | #ifdef CONFIG_PM |
144 | 202 | ||
145 | #define SAVE(x) sleep_save[SLEEP_SAVE_##x] = x | 203 | #define SAVE(x) sleep_save[SLEEP_SAVE_##x] = x |
@@ -260,7 +318,7 @@ void __init pxa25x_init_irq(void) | |||
260 | } | 318 | } |
261 | 319 | ||
262 | static struct platform_device *pxa25x_devices[] __initdata = { | 320 | static struct platform_device *pxa25x_devices[] __initdata = { |
263 | &pxa_device_udc, | 321 | &pxa25x_device_udc, |
264 | &pxa_device_ffuart, | 322 | &pxa_device_ffuart, |
265 | &pxa_device_btuart, | 323 | &pxa_device_btuart, |
266 | &pxa_device_stuart, | 324 | &pxa_device_stuart, |
@@ -269,6 +327,8 @@ static struct platform_device *pxa25x_devices[] __initdata = { | |||
269 | &pxa25x_device_ssp, | 327 | &pxa25x_device_ssp, |
270 | &pxa25x_device_nssp, | 328 | &pxa25x_device_nssp, |
271 | &pxa25x_device_assp, | 329 | &pxa25x_device_assp, |
330 | &pxa25x_device_pwm0, | ||
331 | &pxa25x_device_pwm1, | ||
272 | }; | 332 | }; |
273 | 333 | ||
274 | static struct sys_device pxa25x_sysdev[] = { | 334 | static struct sys_device pxa25x_sysdev[] = { |
@@ -284,7 +344,7 @@ static int __init pxa25x_init(void) | |||
284 | int i, ret = 0; | 344 | int i, ret = 0; |
285 | 345 | ||
286 | /* Only add HWUART for PXA255/26x; PXA210/250/27x do not have it. */ | 346 | /* Only add HWUART for PXA255/26x; PXA210/250/27x do not have it. */ |
287 | if (cpu_is_pxa25x()) | 347 | if (cpu_is_pxa255()) |
288 | clks_register(&pxa25x_hwuart_clk, 1); | 348 | clks_register(&pxa25x_hwuart_clk, 1); |
289 | 349 | ||
290 | if (cpu_is_pxa21x() || cpu_is_pxa25x()) { | 350 | if (cpu_is_pxa21x() || cpu_is_pxa25x()) { |
@@ -308,9 +368,11 @@ static int __init pxa25x_init(void) | |||
308 | } | 368 | } |
309 | 369 | ||
310 | /* Only add HWUART for PXA255/26x; PXA210/250/27x do not have it. */ | 370 | /* Only add HWUART for PXA255/26x; PXA210/250/27x do not have it. */ |
311 | if (cpu_is_pxa25x()) | 371 | if (cpu_is_pxa255()) |
312 | ret = platform_device_register(&pxa_device_hwuart); | 372 | ret = platform_device_register(&pxa_device_hwuart); |
313 | 373 | ||
374 | clks_register(pxa2xx_clk_aliases, ARRAY_SIZE(pxa2xx_clk_aliases)); | ||
375 | |||
314 | return ret; | 376 | return ret; |
315 | } | 377 | } |
316 | 378 | ||
diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c index 7e945836e129..d5d14ea33f27 100644 --- a/arch/arm/mach-pxa/pxa27x.c +++ b/arch/arm/mach-pxa/pxa27x.c | |||
@@ -146,7 +146,7 @@ static struct clk pxa27x_clks[] = { | |||
146 | 146 | ||
147 | INIT_CKEN("I2SCLK", I2S, 14682000, 0, &pxa_device_i2s.dev), | 147 | INIT_CKEN("I2SCLK", I2S, 14682000, 0, &pxa_device_i2s.dev), |
148 | INIT_CKEN("I2CCLK", I2C, 32842000, 0, &pxa_device_i2c.dev), | 148 | INIT_CKEN("I2CCLK", I2C, 32842000, 0, &pxa_device_i2c.dev), |
149 | INIT_CKEN("UDCCLK", USB, 48000000, 5, &pxa_device_udc.dev), | 149 | INIT_CKEN("UDCCLK", USB, 48000000, 5, &pxa27x_device_udc.dev), |
150 | INIT_CKEN("MMCCLK", MMC, 19500000, 0, &pxa_device_mci.dev), | 150 | INIT_CKEN("MMCCLK", MMC, 19500000, 0, &pxa_device_mci.dev), |
151 | INIT_CKEN("FICPCLK", FICP, 48000000, 0, &pxa_device_ficp.dev), | 151 | INIT_CKEN("FICPCLK", FICP, 48000000, 0, &pxa_device_ficp.dev), |
152 | 152 | ||
@@ -157,12 +157,13 @@ static struct clk pxa27x_clks[] = { | |||
157 | INIT_CKEN("SSPCLK", SSP1, 13000000, 0, &pxa27x_device_ssp1.dev), | 157 | INIT_CKEN("SSPCLK", SSP1, 13000000, 0, &pxa27x_device_ssp1.dev), |
158 | INIT_CKEN("SSPCLK", SSP2, 13000000, 0, &pxa27x_device_ssp2.dev), | 158 | INIT_CKEN("SSPCLK", SSP2, 13000000, 0, &pxa27x_device_ssp2.dev), |
159 | INIT_CKEN("SSPCLK", SSP3, 13000000, 0, &pxa27x_device_ssp3.dev), | 159 | INIT_CKEN("SSPCLK", SSP3, 13000000, 0, &pxa27x_device_ssp3.dev), |
160 | INIT_CKEN("PWMCLK", PWM0, 13000000, 0, &pxa27x_device_pwm0.dev), | ||
161 | INIT_CKEN("PWMCLK", PWM1, 13000000, 0, &pxa27x_device_pwm1.dev), | ||
160 | 162 | ||
161 | INIT_CKEN("AC97CLK", AC97, 24576000, 0, NULL), | 163 | INIT_CKEN("AC97CLK", AC97, 24576000, 0, NULL), |
162 | INIT_CKEN("AC97CONFCLK", AC97CONF, 24576000, 0, NULL), | 164 | INIT_CKEN("AC97CONFCLK", AC97CONF, 24576000, 0, NULL), |
163 | 165 | ||
164 | /* | 166 | /* |
165 | INIT_CKEN("PWMCLK", PWM0, 13000000, 0, NULL), | ||
166 | INIT_CKEN("MSLCLK", MSL, 48000000, 0, NULL), | 167 | INIT_CKEN("MSLCLK", MSL, 48000000, 0, NULL), |
167 | INIT_CKEN("USIMCLK", USIM, 48000000, 0, NULL), | 168 | INIT_CKEN("USIMCLK", USIM, 48000000, 0, NULL), |
168 | INIT_CKEN("MSTKCLK", MEMSTK, 19500000, 0, NULL), | 169 | INIT_CKEN("MSTKCLK", MEMSTK, 19500000, 0, NULL), |
@@ -349,11 +350,14 @@ struct platform_device pxa27x_device_i2c_power = { | |||
349 | 350 | ||
350 | void __init pxa_set_i2c_power_info(struct i2c_pxa_platform_data *info) | 351 | void __init pxa_set_i2c_power_info(struct i2c_pxa_platform_data *info) |
351 | { | 352 | { |
353 | local_irq_disable(); | ||
354 | PCFR |= PCFR_PI2CEN; | ||
355 | local_irq_enable(); | ||
352 | pxa27x_device_i2c_power.dev.platform_data = info; | 356 | pxa27x_device_i2c_power.dev.platform_data = info; |
353 | } | 357 | } |
354 | 358 | ||
355 | static struct platform_device *devices[] __initdata = { | 359 | static struct platform_device *devices[] __initdata = { |
356 | &pxa_device_udc, | 360 | &pxa27x_device_udc, |
357 | &pxa_device_ffuart, | 361 | &pxa_device_ffuart, |
358 | &pxa_device_btuart, | 362 | &pxa_device_btuart, |
359 | &pxa_device_stuart, | 363 | &pxa_device_stuart, |
@@ -363,6 +367,8 @@ static struct platform_device *devices[] __initdata = { | |||
363 | &pxa27x_device_ssp1, | 367 | &pxa27x_device_ssp1, |
364 | &pxa27x_device_ssp2, | 368 | &pxa27x_device_ssp2, |
365 | &pxa27x_device_ssp3, | 369 | &pxa27x_device_ssp3, |
370 | &pxa27x_device_pwm0, | ||
371 | &pxa27x_device_pwm1, | ||
366 | }; | 372 | }; |
367 | 373 | ||
368 | static struct sys_device pxa27x_sysdev[] = { | 374 | static struct sys_device pxa27x_sysdev[] = { |
diff --git a/arch/arm/mach-pxa/pxa2xx.c b/arch/arm/mach-pxa/pxa2xx.c new file mode 100644 index 000000000000..d4f6415e8413 --- /dev/null +++ b/arch/arm/mach-pxa/pxa2xx.c | |||
@@ -0,0 +1,46 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pxa/pxa2xx.c | ||
3 | * | ||
4 | * code specific to pxa2xx | ||
5 | * | ||
6 | * Copyright (C) 2008 Dmitry Baryshkov | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/module.h> | ||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/device.h> | ||
16 | |||
17 | #include <asm/arch/mfp-pxa2xx.h> | ||
18 | #include <asm/arch/mfp-pxa25x.h> | ||
19 | #include <asm/arch/irda.h> | ||
20 | |||
21 | static unsigned long pxa2xx_mfp_fir[] = { | ||
22 | GPIO46_FICP_RXD, | ||
23 | GPIO47_FICP_TXD, | ||
24 | }; | ||
25 | |||
26 | static unsigned long pxa2xx_mfp_sir[] = { | ||
27 | GPIO46_STUART_RXD, | ||
28 | GPIO47_STUART_TXD, | ||
29 | }; | ||
30 | |||
31 | static unsigned long pxa2xx_mfp_off[] = { | ||
32 | GPIO46_GPIO | MFP_LPM_DRIVE_LOW, | ||
33 | GPIO47_GPIO | MFP_LPM_DRIVE_LOW, | ||
34 | }; | ||
35 | |||
36 | void pxa2xx_transceiver_mode(struct device *dev, int mode) | ||
37 | { | ||
38 | if (mode & IR_OFF) { | ||
39 | pxa2xx_mfp_config(pxa2xx_mfp_off, ARRAY_SIZE(pxa2xx_mfp_off)); | ||
40 | } else if (mode & IR_SIRMODE) { | ||
41 | pxa2xx_mfp_config(pxa2xx_mfp_sir, ARRAY_SIZE(pxa2xx_mfp_sir)); | ||
42 | } else if (mode & IR_FIRMODE) { | ||
43 | pxa2xx_mfp_config(pxa2xx_mfp_fir, ARRAY_SIZE(pxa2xx_mfp_fir)); | ||
44 | } else | ||
45 | BUG(); | ||
46 | } | ||
diff --git a/arch/arm/mach-pxa/pxa300.c b/arch/arm/mach-pxa/pxa300.c index 0a0d3877f212..da92e9733886 100644 --- a/arch/arm/mach-pxa/pxa300.c +++ b/arch/arm/mach-pxa/pxa300.c | |||
@@ -15,10 +15,16 @@ | |||
15 | 15 | ||
16 | #include <linux/module.h> | 16 | #include <linux/module.h> |
17 | #include <linux/kernel.h> | 17 | #include <linux/kernel.h> |
18 | #include <linux/platform_device.h> | ||
18 | 19 | ||
19 | #include <asm/hardware.h> | 20 | #include <asm/hardware.h> |
21 | #include <asm/arch/pxa3xx-regs.h> | ||
20 | #include <asm/arch/mfp-pxa300.h> | 22 | #include <asm/arch/mfp-pxa300.h> |
21 | 23 | ||
24 | #include "generic.h" | ||
25 | #include "devices.h" | ||
26 | #include "clock.h" | ||
27 | |||
22 | static struct pxa3xx_mfp_addr_map pxa300_mfp_addr_map[] __initdata = { | 28 | static struct pxa3xx_mfp_addr_map pxa300_mfp_addr_map[] __initdata = { |
23 | 29 | ||
24 | MFP_ADDR_X(GPIO0, GPIO2, 0x00b4), | 30 | MFP_ADDR_X(GPIO0, GPIO2, 0x00b4), |
@@ -79,15 +85,26 @@ static struct pxa3xx_mfp_addr_map pxa310_mfp_addr_map[] __initdata = { | |||
79 | MFP_ADDR_END, | 85 | MFP_ADDR_END, |
80 | }; | 86 | }; |
81 | 87 | ||
88 | static struct clk common_clks[] = { | ||
89 | PXA3xx_CKEN("NANDCLK", NAND, 156000000, 0, &pxa3xx_device_nand.dev), | ||
90 | }; | ||
91 | |||
92 | static struct clk pxa310_clks[] = { | ||
93 | PXA3xx_CKEN("MMCCLK", MMC3, 19500000, 0, &pxa3xx_device_mci3.dev), | ||
94 | }; | ||
95 | |||
82 | static int __init pxa300_init(void) | 96 | static int __init pxa300_init(void) |
83 | { | 97 | { |
84 | if (cpu_is_pxa300() || cpu_is_pxa310()) { | 98 | if (cpu_is_pxa300() || cpu_is_pxa310()) { |
85 | pxa3xx_init_mfp(); | 99 | pxa3xx_init_mfp(); |
86 | pxa3xx_mfp_init_addr(pxa300_mfp_addr_map); | 100 | pxa3xx_mfp_init_addr(pxa300_mfp_addr_map); |
101 | clks_register(ARRAY_AND_SIZE(common_clks)); | ||
87 | } | 102 | } |
88 | 103 | ||
89 | if (cpu_is_pxa310()) | 104 | if (cpu_is_pxa310()) { |
90 | pxa3xx_mfp_init_addr(pxa310_mfp_addr_map); | 105 | pxa3xx_mfp_init_addr(pxa310_mfp_addr_map); |
106 | clks_register(ARRAY_AND_SIZE(pxa310_clks)); | ||
107 | } | ||
91 | 108 | ||
92 | return 0; | 109 | return 0; |
93 | } | 110 | } |
diff --git a/arch/arm/mach-pxa/pxa320.c b/arch/arm/mach-pxa/pxa320.c index 74128eb8f8d0..c557c23a1efe 100644 --- a/arch/arm/mach-pxa/pxa320.c +++ b/arch/arm/mach-pxa/pxa320.c | |||
@@ -15,11 +15,17 @@ | |||
15 | 15 | ||
16 | #include <linux/module.h> | 16 | #include <linux/module.h> |
17 | #include <linux/kernel.h> | 17 | #include <linux/kernel.h> |
18 | #include <linux/platform_device.h> | ||
18 | 19 | ||
19 | #include <asm/hardware.h> | 20 | #include <asm/hardware.h> |
20 | #include <asm/arch/mfp.h> | 21 | #include <asm/arch/mfp.h> |
22 | #include <asm/arch/pxa3xx-regs.h> | ||
21 | #include <asm/arch/mfp-pxa320.h> | 23 | #include <asm/arch/mfp-pxa320.h> |
22 | 24 | ||
25 | #include "generic.h" | ||
26 | #include "devices.h" | ||
27 | #include "clock.h" | ||
28 | |||
23 | static struct pxa3xx_mfp_addr_map pxa320_mfp_addr_map[] __initdata = { | 29 | static struct pxa3xx_mfp_addr_map pxa320_mfp_addr_map[] __initdata = { |
24 | 30 | ||
25 | MFP_ADDR_X(GPIO0, GPIO4, 0x0124), | 31 | MFP_ADDR_X(GPIO0, GPIO4, 0x0124), |
@@ -74,16 +80,17 @@ static struct pxa3xx_mfp_addr_map pxa320_mfp_addr_map[] __initdata = { | |||
74 | MFP_ADDR_END, | 80 | MFP_ADDR_END, |
75 | }; | 81 | }; |
76 | 82 | ||
77 | static void __init pxa320_init_mfp(void) | 83 | static struct clk pxa320_clks[] = { |
78 | { | 84 | PXA3xx_CKEN("NANDCLK", NAND, 104000000, 0, &pxa3xx_device_nand.dev), |
79 | pxa3xx_init_mfp(); | 85 | }; |
80 | pxa3xx_mfp_init_addr(pxa320_mfp_addr_map); | ||
81 | } | ||
82 | 86 | ||
83 | static int __init pxa320_init(void) | 87 | static int __init pxa320_init(void) |
84 | { | 88 | { |
85 | if (cpu_is_pxa320()) | 89 | if (cpu_is_pxa320()) { |
86 | pxa320_init_mfp(); | 90 | pxa3xx_init_mfp(); |
91 | pxa3xx_mfp_init_addr(pxa320_mfp_addr_map); | ||
92 | clks_register(ARRAY_AND_SIZE(pxa320_clks)); | ||
93 | } | ||
87 | 94 | ||
88 | return 0; | 95 | return 0; |
89 | } | 96 | } |
diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c index 644550bfa330..f491025a0c82 100644 --- a/arch/arm/mach-pxa/pxa3xx.c +++ b/arch/arm/mach-pxa/pxa3xx.c | |||
@@ -144,7 +144,7 @@ static unsigned long clk_pxa3xx_hsio_getrate(struct clk *clk) | |||
144 | return hsio_clk; | 144 | return hsio_clk; |
145 | } | 145 | } |
146 | 146 | ||
147 | static void clk_pxa3xx_cken_enable(struct clk *clk) | 147 | void clk_pxa3xx_cken_enable(struct clk *clk) |
148 | { | 148 | { |
149 | unsigned long mask = 1ul << (clk->cken & 0x1f); | 149 | unsigned long mask = 1ul << (clk->cken & 0x1f); |
150 | 150 | ||
@@ -154,7 +154,7 @@ static void clk_pxa3xx_cken_enable(struct clk *clk) | |||
154 | CKENB |= mask; | 154 | CKENB |= mask; |
155 | } | 155 | } |
156 | 156 | ||
157 | static void clk_pxa3xx_cken_disable(struct clk *clk) | 157 | void clk_pxa3xx_cken_disable(struct clk *clk) |
158 | { | 158 | { |
159 | unsigned long mask = 1ul << (clk->cken & 0x1f); | 159 | unsigned long mask = 1ul << (clk->cken & 0x1f); |
160 | 160 | ||
@@ -164,7 +164,7 @@ static void clk_pxa3xx_cken_disable(struct clk *clk) | |||
164 | CKENB &= ~mask; | 164 | CKENB &= ~mask; |
165 | } | 165 | } |
166 | 166 | ||
167 | static const struct clkops clk_pxa3xx_cken_ops = { | 167 | const struct clkops clk_pxa3xx_cken_ops = { |
168 | .enable = clk_pxa3xx_cken_enable, | 168 | .enable = clk_pxa3xx_cken_enable, |
169 | .disable = clk_pxa3xx_cken_disable, | 169 | .disable = clk_pxa3xx_cken_disable, |
170 | }; | 170 | }; |
@@ -196,24 +196,6 @@ static const struct clkops clk_pout_ops = { | |||
196 | .disable = clk_pout_disable, | 196 | .disable = clk_pout_disable, |
197 | }; | 197 | }; |
198 | 198 | ||
199 | #define PXA3xx_CKEN(_name, _cken, _rate, _delay, _dev) \ | ||
200 | { \ | ||
201 | .name = _name, \ | ||
202 | .dev = _dev, \ | ||
203 | .ops = &clk_pxa3xx_cken_ops, \ | ||
204 | .rate = _rate, \ | ||
205 | .cken = CKEN_##_cken, \ | ||
206 | .delay = _delay, \ | ||
207 | } | ||
208 | |||
209 | #define PXA3xx_CK(_name, _cken, _ops, _dev) \ | ||
210 | { \ | ||
211 | .name = _name, \ | ||
212 | .dev = _dev, \ | ||
213 | .ops = _ops, \ | ||
214 | .cken = CKEN_##_cken, \ | ||
215 | } | ||
216 | |||
217 | static struct clk pxa3xx_clks[] = { | 199 | static struct clk pxa3xx_clks[] = { |
218 | { | 200 | { |
219 | .name = "CLK_POUT", | 201 | .name = "CLK_POUT", |
@@ -231,7 +213,7 @@ static struct clk pxa3xx_clks[] = { | |||
231 | PXA3xx_CKEN("UARTCLK", STUART, 14857000, 1, NULL), | 213 | PXA3xx_CKEN("UARTCLK", STUART, 14857000, 1, NULL), |
232 | 214 | ||
233 | PXA3xx_CKEN("I2CCLK", I2C, 32842000, 0, &pxa_device_i2c.dev), | 215 | PXA3xx_CKEN("I2CCLK", I2C, 32842000, 0, &pxa_device_i2c.dev), |
234 | PXA3xx_CKEN("UDCCLK", UDC, 48000000, 5, &pxa_device_udc.dev), | 216 | PXA3xx_CKEN("UDCCLK", UDC, 48000000, 5, &pxa27x_device_udc.dev), |
235 | PXA3xx_CKEN("USBCLK", USBH, 48000000, 0, &pxa27x_device_ohci.dev), | 217 | PXA3xx_CKEN("USBCLK", USBH, 48000000, 0, &pxa27x_device_ohci.dev), |
236 | PXA3xx_CKEN("KBDCLK", KEYPAD, 32768, 0, &pxa27x_device_keypad.dev), | 218 | PXA3xx_CKEN("KBDCLK", KEYPAD, 32768, 0, &pxa27x_device_keypad.dev), |
237 | 219 | ||
@@ -239,10 +221,11 @@ static struct clk pxa3xx_clks[] = { | |||
239 | PXA3xx_CKEN("SSPCLK", SSP2, 13000000, 0, &pxa27x_device_ssp2.dev), | 221 | PXA3xx_CKEN("SSPCLK", SSP2, 13000000, 0, &pxa27x_device_ssp2.dev), |
240 | PXA3xx_CKEN("SSPCLK", SSP3, 13000000, 0, &pxa27x_device_ssp3.dev), | 222 | PXA3xx_CKEN("SSPCLK", SSP3, 13000000, 0, &pxa27x_device_ssp3.dev), |
241 | PXA3xx_CKEN("SSPCLK", SSP4, 13000000, 0, &pxa3xx_device_ssp4.dev), | 223 | PXA3xx_CKEN("SSPCLK", SSP4, 13000000, 0, &pxa3xx_device_ssp4.dev), |
224 | PXA3xx_CKEN("PWMCLK", PWM0, 13000000, 0, &pxa27x_device_pwm0.dev), | ||
225 | PXA3xx_CKEN("PWMCLK", PWM1, 13000000, 0, &pxa27x_device_pwm1.dev), | ||
242 | 226 | ||
243 | PXA3xx_CKEN("MMCCLK", MMC1, 19500000, 0, &pxa_device_mci.dev), | 227 | PXA3xx_CKEN("MMCCLK", MMC1, 19500000, 0, &pxa_device_mci.dev), |
244 | PXA3xx_CKEN("MMCCLK", MMC2, 19500000, 0, &pxa3xx_device_mci2.dev), | 228 | PXA3xx_CKEN("MMCCLK", MMC2, 19500000, 0, &pxa3xx_device_mci2.dev), |
245 | PXA3xx_CKEN("MMCCLK", MMC3, 19500000, 0, &pxa3xx_device_mci3.dev), | ||
246 | }; | 229 | }; |
247 | 230 | ||
248 | #ifdef CONFIG_PM | 231 | #ifdef CONFIG_PM |
@@ -520,7 +503,7 @@ void __init pxa3xx_init_irq(void) | |||
520 | */ | 503 | */ |
521 | 504 | ||
522 | static struct platform_device *devices[] __initdata = { | 505 | static struct platform_device *devices[] __initdata = { |
523 | &pxa_device_udc, | 506 | /* &pxa_device_udc, The UDC driver is PXA25x only */ |
524 | &pxa_device_ffuart, | 507 | &pxa_device_ffuart, |
525 | &pxa_device_btuart, | 508 | &pxa_device_btuart, |
526 | &pxa_device_stuart, | 509 | &pxa_device_stuart, |
@@ -530,6 +513,8 @@ static struct platform_device *devices[] __initdata = { | |||
530 | &pxa27x_device_ssp2, | 513 | &pxa27x_device_ssp2, |
531 | &pxa27x_device_ssp3, | 514 | &pxa27x_device_ssp3, |
532 | &pxa3xx_device_ssp4, | 515 | &pxa3xx_device_ssp4, |
516 | &pxa27x_device_pwm0, | ||
517 | &pxa27x_device_pwm1, | ||
533 | }; | 518 | }; |
534 | 519 | ||
535 | static struct sys_device pxa3xx_sysdev[] = { | 520 | static struct sys_device pxa3xx_sysdev[] = { |
diff --git a/arch/arm/mach-pxa/pxa930.c b/arch/arm/mach-pxa/pxa930.c new file mode 100644 index 000000000000..9503897d049c --- /dev/null +++ b/arch/arm/mach-pxa/pxa930.c | |||
@@ -0,0 +1,190 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pxa/pxa930.c | ||
3 | * | ||
4 | * Code specific to PXA930 | ||
5 | * | ||
6 | * Copyright (C) 2007-2008 Marvell Internation Ltd. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/module.h> | ||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/platform_device.h> | ||
16 | #include <linux/irq.h> | ||
17 | #include <linux/dma-mapping.h> | ||
18 | |||
19 | #include <asm/hardware.h> | ||
20 | #include <asm/arch/mfp-pxa930.h> | ||
21 | |||
22 | static struct pxa3xx_mfp_addr_map pxa930_mfp_addr_map[] __initdata = { | ||
23 | |||
24 | MFP_ADDR(GPIO0, 0x02e0), | ||
25 | MFP_ADDR(GPIO1, 0x02dc), | ||
26 | MFP_ADDR(GPIO2, 0x02e8), | ||
27 | MFP_ADDR(GPIO3, 0x02d8), | ||
28 | MFP_ADDR(GPIO4, 0x02e4), | ||
29 | MFP_ADDR(GPIO5, 0x02ec), | ||
30 | MFP_ADDR(GPIO6, 0x02f8), | ||
31 | MFP_ADDR(GPIO7, 0x02fc), | ||
32 | MFP_ADDR(GPIO8, 0x0300), | ||
33 | MFP_ADDR(GPIO9, 0x02d4), | ||
34 | MFP_ADDR(GPIO10, 0x02f4), | ||
35 | MFP_ADDR(GPIO11, 0x02f0), | ||
36 | MFP_ADDR(GPIO12, 0x0304), | ||
37 | MFP_ADDR(GPIO13, 0x0310), | ||
38 | MFP_ADDR(GPIO14, 0x0308), | ||
39 | MFP_ADDR(GPIO15, 0x030c), | ||
40 | MFP_ADDR(GPIO16, 0x04e8), | ||
41 | MFP_ADDR(GPIO17, 0x04f4), | ||
42 | MFP_ADDR(GPIO18, 0x04f8), | ||
43 | MFP_ADDR(GPIO19, 0x04fc), | ||
44 | MFP_ADDR(GPIO20, 0x0518), | ||
45 | MFP_ADDR(GPIO21, 0x051c), | ||
46 | MFP_ADDR(GPIO22, 0x04ec), | ||
47 | MFP_ADDR(GPIO23, 0x0500), | ||
48 | MFP_ADDR(GPIO24, 0x04f0), | ||
49 | MFP_ADDR(GPIO25, 0x0504), | ||
50 | MFP_ADDR(GPIO26, 0x0510), | ||
51 | MFP_ADDR(GPIO27, 0x0514), | ||
52 | MFP_ADDR(GPIO28, 0x0520), | ||
53 | MFP_ADDR(GPIO29, 0x0600), | ||
54 | MFP_ADDR(GPIO30, 0x0618), | ||
55 | MFP_ADDR(GPIO31, 0x0610), | ||
56 | MFP_ADDR(GPIO32, 0x060c), | ||
57 | MFP_ADDR(GPIO33, 0x061c), | ||
58 | MFP_ADDR(GPIO34, 0x0620), | ||
59 | MFP_ADDR(GPIO35, 0x0628), | ||
60 | MFP_ADDR(GPIO36, 0x062c), | ||
61 | MFP_ADDR(GPIO37, 0x0630), | ||
62 | MFP_ADDR(GPIO38, 0x0634), | ||
63 | MFP_ADDR(GPIO39, 0x0638), | ||
64 | MFP_ADDR(GPIO40, 0x063c), | ||
65 | MFP_ADDR(GPIO41, 0x0614), | ||
66 | MFP_ADDR(GPIO42, 0x0624), | ||
67 | MFP_ADDR(GPIO43, 0x0608), | ||
68 | MFP_ADDR(GPIO44, 0x0604), | ||
69 | MFP_ADDR(GPIO45, 0x050c), | ||
70 | MFP_ADDR(GPIO46, 0x0508), | ||
71 | MFP_ADDR(GPIO47, 0x02bc), | ||
72 | MFP_ADDR(GPIO48, 0x02b4), | ||
73 | MFP_ADDR(GPIO49, 0x02b8), | ||
74 | MFP_ADDR(GPIO50, 0x02c8), | ||
75 | MFP_ADDR(GPIO51, 0x02c0), | ||
76 | MFP_ADDR(GPIO52, 0x02c4), | ||
77 | MFP_ADDR(GPIO53, 0x02d0), | ||
78 | MFP_ADDR(GPIO54, 0x02cc), | ||
79 | MFP_ADDR(GPIO55, 0x029c), | ||
80 | MFP_ADDR(GPIO56, 0x02a0), | ||
81 | MFP_ADDR(GPIO57, 0x0294), | ||
82 | MFP_ADDR(GPIO58, 0x0298), | ||
83 | MFP_ADDR(GPIO59, 0x02a4), | ||
84 | MFP_ADDR(GPIO60, 0x02a8), | ||
85 | MFP_ADDR(GPIO61, 0x02b0), | ||
86 | MFP_ADDR(GPIO62, 0x02ac), | ||
87 | MFP_ADDR(GPIO63, 0x0640), | ||
88 | MFP_ADDR(GPIO64, 0x065c), | ||
89 | MFP_ADDR(GPIO65, 0x0648), | ||
90 | MFP_ADDR(GPIO66, 0x0644), | ||
91 | MFP_ADDR(GPIO67, 0x0674), | ||
92 | MFP_ADDR(GPIO68, 0x0658), | ||
93 | MFP_ADDR(GPIO69, 0x0654), | ||
94 | MFP_ADDR(GPIO70, 0x0660), | ||
95 | MFP_ADDR(GPIO71, 0x0668), | ||
96 | MFP_ADDR(GPIO72, 0x0664), | ||
97 | MFP_ADDR(GPIO73, 0x0650), | ||
98 | MFP_ADDR(GPIO74, 0x066c), | ||
99 | MFP_ADDR(GPIO75, 0x064c), | ||
100 | MFP_ADDR(GPIO76, 0x0670), | ||
101 | MFP_ADDR(GPIO77, 0x0678), | ||
102 | MFP_ADDR(GPIO78, 0x067c), | ||
103 | MFP_ADDR(GPIO79, 0x0694), | ||
104 | MFP_ADDR(GPIO80, 0x069c), | ||
105 | MFP_ADDR(GPIO81, 0x06a0), | ||
106 | MFP_ADDR(GPIO82, 0x06a4), | ||
107 | MFP_ADDR(GPIO83, 0x0698), | ||
108 | MFP_ADDR(GPIO84, 0x06bc), | ||
109 | MFP_ADDR(GPIO85, 0x06b4), | ||
110 | MFP_ADDR(GPIO86, 0x06b0), | ||
111 | MFP_ADDR(GPIO87, 0x06c0), | ||
112 | MFP_ADDR(GPIO88, 0x06c4), | ||
113 | MFP_ADDR(GPIO89, 0x06ac), | ||
114 | MFP_ADDR(GPIO90, 0x0680), | ||
115 | MFP_ADDR(GPIO91, 0x0684), | ||
116 | MFP_ADDR(GPIO92, 0x0688), | ||
117 | MFP_ADDR(GPIO93, 0x0690), | ||
118 | MFP_ADDR(GPIO94, 0x068c), | ||
119 | MFP_ADDR(GPIO95, 0x06a8), | ||
120 | MFP_ADDR(GPIO96, 0x06b8), | ||
121 | MFP_ADDR(GPIO97, 0x0410), | ||
122 | MFP_ADDR(GPIO98, 0x0418), | ||
123 | MFP_ADDR(GPIO99, 0x041c), | ||
124 | MFP_ADDR(GPIO100, 0x0414), | ||
125 | MFP_ADDR(GPIO101, 0x0408), | ||
126 | MFP_ADDR(GPIO102, 0x0324), | ||
127 | MFP_ADDR(GPIO103, 0x040c), | ||
128 | MFP_ADDR(GPIO104, 0x0400), | ||
129 | MFP_ADDR(GPIO105, 0x0328), | ||
130 | MFP_ADDR(GPIO106, 0x0404), | ||
131 | |||
132 | MFP_ADDR(nXCVREN, 0x0204), | ||
133 | MFP_ADDR(DF_CLE_nOE, 0x020c), | ||
134 | MFP_ADDR(DF_nADV1_ALE, 0x0218), | ||
135 | MFP_ADDR(DF_SCLK_E, 0x0214), | ||
136 | MFP_ADDR(DF_SCLK_S, 0x0210), | ||
137 | MFP_ADDR(nBE0, 0x021c), | ||
138 | MFP_ADDR(nBE1, 0x0220), | ||
139 | MFP_ADDR(DF_nADV2_ALE, 0x0224), | ||
140 | MFP_ADDR(DF_INT_RnB, 0x0228), | ||
141 | MFP_ADDR(DF_nCS0, 0x022c), | ||
142 | MFP_ADDR(DF_nCS1, 0x0230), | ||
143 | MFP_ADDR(nLUA, 0x0254), | ||
144 | MFP_ADDR(nLLA, 0x0258), | ||
145 | MFP_ADDR(DF_nWE, 0x0234), | ||
146 | MFP_ADDR(DF_nRE_nOE, 0x0238), | ||
147 | MFP_ADDR(DF_ADDR0, 0x024c), | ||
148 | MFP_ADDR(DF_ADDR1, 0x0250), | ||
149 | MFP_ADDR(DF_ADDR2, 0x025c), | ||
150 | MFP_ADDR(DF_ADDR3, 0x0260), | ||
151 | MFP_ADDR(DF_IO0, 0x023c), | ||
152 | MFP_ADDR(DF_IO1, 0x0240), | ||
153 | MFP_ADDR(DF_IO2, 0x0244), | ||
154 | MFP_ADDR(DF_IO3, 0x0248), | ||
155 | MFP_ADDR(DF_IO4, 0x0264), | ||
156 | MFP_ADDR(DF_IO5, 0x0268), | ||
157 | MFP_ADDR(DF_IO6, 0x026c), | ||
158 | MFP_ADDR(DF_IO7, 0x0270), | ||
159 | MFP_ADDR(DF_IO8, 0x0274), | ||
160 | MFP_ADDR(DF_IO9, 0x0278), | ||
161 | MFP_ADDR(DF_IO10, 0x027c), | ||
162 | MFP_ADDR(DF_IO11, 0x0280), | ||
163 | MFP_ADDR(DF_IO12, 0x0284), | ||
164 | MFP_ADDR(DF_IO13, 0x0288), | ||
165 | MFP_ADDR(DF_IO14, 0x028c), | ||
166 | MFP_ADDR(DF_IO15, 0x0290), | ||
167 | |||
168 | MFP_ADDR(GSIM_UIO, 0x0314), | ||
169 | MFP_ADDR(GSIM_UCLK, 0x0318), | ||
170 | MFP_ADDR(GSIM_UDET, 0x031c), | ||
171 | MFP_ADDR(GSIM_nURST, 0x0320), | ||
172 | |||
173 | MFP_ADDR(PMIC_INT, 0x06c8), | ||
174 | |||
175 | MFP_ADDR(RDY, 0x0200), | ||
176 | |||
177 | MFP_ADDR_END, | ||
178 | }; | ||
179 | |||
180 | static int __init pxa930_init(void) | ||
181 | { | ||
182 | if (cpu_is_pxa930()) { | ||
183 | pxa3xx_init_mfp(); | ||
184 | pxa3xx_mfp_init_addr(pxa930_mfp_addr_map); | ||
185 | } | ||
186 | |||
187 | return 0; | ||
188 | } | ||
189 | |||
190 | core_initcall(pxa930_init); | ||
diff --git a/arch/arm/mach-pxa/reset.c b/arch/arm/mach-pxa/reset.c new file mode 100644 index 000000000000..9d39dea57ce2 --- /dev/null +++ b/arch/arm/mach-pxa/reset.c | |||
@@ -0,0 +1,96 @@ | |||
1 | /* | ||
2 | * This program is free software; you can redistribute it and/or modify | ||
3 | * it under the terms of the GNU General Public License version 2 as | ||
4 | * published by the Free Software Foundation. | ||
5 | */ | ||
6 | #include <linux/kernel.h> | ||
7 | #include <linux/module.h> | ||
8 | #include <linux/delay.h> | ||
9 | #include <linux/gpio.h> | ||
10 | #include <asm/io.h> | ||
11 | #include <asm/proc-fns.h> | ||
12 | |||
13 | #include <asm/arch/pxa-regs.h> | ||
14 | #include <asm/arch/pxa2xx-regs.h> | ||
15 | |||
16 | static void do_hw_reset(void); | ||
17 | |||
18 | static int reset_gpio = -1; | ||
19 | |||
20 | int init_gpio_reset(int gpio) | ||
21 | { | ||
22 | int rc; | ||
23 | |||
24 | rc = gpio_request(gpio, "reset generator"); | ||
25 | if (rc) { | ||
26 | printk(KERN_ERR "Can't request reset_gpio\n"); | ||
27 | goto out; | ||
28 | } | ||
29 | |||
30 | rc = gpio_direction_input(gpio); | ||
31 | if (rc) { | ||
32 | printk(KERN_ERR "Can't configure reset_gpio for input\n"); | ||
33 | gpio_free(gpio); | ||
34 | goto out; | ||
35 | } | ||
36 | |||
37 | out: | ||
38 | if (!rc) | ||
39 | reset_gpio = gpio; | ||
40 | |||
41 | return rc; | ||
42 | } | ||
43 | |||
44 | /* | ||
45 | * Trigger GPIO reset. | ||
46 | * This covers various types of logic connecting gpio pin | ||
47 | * to RESET pins (nRESET or GPIO_RESET): | ||
48 | */ | ||
49 | static void do_gpio_reset(void) | ||
50 | { | ||
51 | BUG_ON(reset_gpio == -1); | ||
52 | |||
53 | /* drive it low */ | ||
54 | gpio_direction_output(reset_gpio, 0); | ||
55 | mdelay(2); | ||
56 | /* rising edge or drive high */ | ||
57 | gpio_set_value(reset_gpio, 1); | ||
58 | mdelay(2); | ||
59 | /* falling edge */ | ||
60 | gpio_set_value(reset_gpio, 0); | ||
61 | |||
62 | /* give it some time */ | ||
63 | mdelay(10); | ||
64 | |||
65 | WARN_ON(1); | ||
66 | /* fallback */ | ||
67 | do_hw_reset(); | ||
68 | } | ||
69 | |||
70 | static void do_hw_reset(void) | ||
71 | { | ||
72 | /* Initialize the watchdog and let it fire */ | ||
73 | OWER = OWER_WME; | ||
74 | OSSR = OSSR_M3; | ||
75 | OSMR3 = OSCR + 368640; /* ... in 100 ms */ | ||
76 | } | ||
77 | |||
78 | void arch_reset(char mode) | ||
79 | { | ||
80 | if (cpu_is_pxa2xx()) | ||
81 | RCSR = RCSR_HWR | RCSR_WDR | RCSR_SMR | RCSR_GPR; | ||
82 | |||
83 | switch (mode) { | ||
84 | case 's': | ||
85 | /* Jump into ROM at address 0 */ | ||
86 | cpu_reset(0); | ||
87 | break; | ||
88 | case 'h': | ||
89 | do_hw_reset(); | ||
90 | break; | ||
91 | case 'g': | ||
92 | do_gpio_reset(); | ||
93 | break; | ||
94 | } | ||
95 | } | ||
96 | |||
diff --git a/arch/arm/mach-pxa/saar.c b/arch/arm/mach-pxa/saar.c new file mode 100644 index 000000000000..d02bc6f8bb93 --- /dev/null +++ b/arch/arm/mach-pxa/saar.c | |||
@@ -0,0 +1,84 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pxa/saar.c | ||
3 | * | ||
4 | * Support for the Marvell PXA930 Handheld Platform (aka SAAR) | ||
5 | * | ||
6 | * Copyright (C) 2007-2008 Marvell International Ltd. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * publishhed by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/module.h> | ||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/interrupt.h> | ||
16 | #include <linux/init.h> | ||
17 | #include <linux/platform_device.h> | ||
18 | #include <linux/clk.h> | ||
19 | #include <linux/gpio.h> | ||
20 | #include <linux/smc91x.h> | ||
21 | |||
22 | #include <asm/mach-types.h> | ||
23 | #include <asm/mach/arch.h> | ||
24 | #include <asm/hardware.h> | ||
25 | #include <asm/arch/pxa3xx-regs.h> | ||
26 | #include <asm/arch/mfp-pxa930.h> | ||
27 | |||
28 | #include "devices.h" | ||
29 | #include "generic.h" | ||
30 | |||
31 | /* SAAR MFP configurations */ | ||
32 | static mfp_cfg_t saar_mfp_cfg[] __initdata = { | ||
33 | /* Ethernet */ | ||
34 | DF_nCS1_nCS3, | ||
35 | GPIO97_GPIO, | ||
36 | }; | ||
37 | |||
38 | #define SAAR_ETH_PHYS (0x14000000) | ||
39 | |||
40 | static struct resource smc91x_resources[] = { | ||
41 | [0] = { | ||
42 | .start = (SAAR_ETH_PHYS + 0x300), | ||
43 | .end = (SAAR_ETH_PHYS + 0xfffff), | ||
44 | .flags = IORESOURCE_MEM, | ||
45 | }, | ||
46 | [1] = { | ||
47 | .start = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO97)), | ||
48 | .end = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO97)), | ||
49 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE, | ||
50 | } | ||
51 | }; | ||
52 | |||
53 | static struct smc91x_platdata saar_smc91x_info = { | ||
54 | .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT | SMC91X_USE_DMA, | ||
55 | }; | ||
56 | |||
57 | static struct platform_device smc91x_device = { | ||
58 | .name = "smc91x", | ||
59 | .id = 0, | ||
60 | .num_resources = ARRAY_SIZE(smc91x_resources), | ||
61 | .resource = smc91x_resources, | ||
62 | .dev = { | ||
63 | .platform_data = &saar_smc91x_info, | ||
64 | }, | ||
65 | }; | ||
66 | |||
67 | static void __init saar_init(void) | ||
68 | { | ||
69 | /* initialize MFP configurations */ | ||
70 | pxa3xx_mfp_config(ARRAY_AND_SIZE(saar_mfp_cfg)); | ||
71 | |||
72 | platform_device_register(&smc91x_device); | ||
73 | } | ||
74 | |||
75 | MACHINE_START(SAAR, "PXA930 Handheld Platform (aka SAAR)") | ||
76 | /* Maintainer: Eric Miao <eric.miao@marvell.com> */ | ||
77 | .phys_io = 0x40000000, | ||
78 | .boot_params = 0xa0000100, | ||
79 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | ||
80 | .map_io = pxa_map_io, | ||
81 | .init_irq = pxa3xx_init_irq, | ||
82 | .timer = &pxa_timer, | ||
83 | .init_machine = saar_init, | ||
84 | MACHINE_END | ||
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index e7d0fcd9b43f..762249c03ded 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include <asm/arch/pxa-regs.h> | 38 | #include <asm/arch/pxa-regs.h> |
39 | #include <asm/arch/pxa2xx-regs.h> | 39 | #include <asm/arch/pxa2xx-regs.h> |
40 | #include <asm/arch/pxa2xx-gpio.h> | 40 | #include <asm/arch/pxa2xx-gpio.h> |
41 | #include <asm/arch/pxa27x-udc.h> | ||
41 | #include <asm/arch/irda.h> | 42 | #include <asm/arch/irda.h> |
42 | #include <asm/arch/mmc.h> | 43 | #include <asm/arch/mmc.h> |
43 | #include <asm/arch/ohci.h> | 44 | #include <asm/arch/ohci.h> |
@@ -450,6 +451,7 @@ static void spitz_irda_transceiver_mode(struct device *dev, int mode) | |||
450 | set_scoop_gpio(&spitzscoop2_device.dev, SPITZ_SCP2_IR_ON); | 451 | set_scoop_gpio(&spitzscoop2_device.dev, SPITZ_SCP2_IR_ON); |
451 | else | 452 | else |
452 | reset_scoop_gpio(&spitzscoop2_device.dev, SPITZ_SCP2_IR_ON); | 453 | reset_scoop_gpio(&spitzscoop2_device.dev, SPITZ_SCP2_IR_ON); |
454 | pxa2xx_transceiver_mode(dev, mode); | ||
453 | } | 455 | } |
454 | 456 | ||
455 | #ifdef CONFIG_MACH_AKITA | 457 | #ifdef CONFIG_MACH_AKITA |
@@ -459,6 +461,7 @@ static void akita_irda_transceiver_mode(struct device *dev, int mode) | |||
459 | akita_set_ioexp(&akitaioexp_device.dev, AKITA_IOEXP_IR_ON); | 461 | akita_set_ioexp(&akitaioexp_device.dev, AKITA_IOEXP_IR_ON); |
460 | else | 462 | else |
461 | akita_reset_ioexp(&akitaioexp_device.dev, AKITA_IOEXP_IR_ON); | 463 | akita_reset_ioexp(&akitaioexp_device.dev, AKITA_IOEXP_IR_ON); |
464 | pxa2xx_transceiver_mode(dev, mode); | ||
462 | } | 465 | } |
463 | #endif | 466 | #endif |
464 | 467 | ||
@@ -529,11 +532,7 @@ static struct platform_device *devices[] __initdata = { | |||
529 | 532 | ||
530 | static void spitz_poweroff(void) | 533 | static void spitz_poweroff(void) |
531 | { | 534 | { |
532 | pxa_gpio_mode(SPITZ_GPIO_ON_RESET | GPIO_OUT); | 535 | arm_machine_restart('g'); |
533 | GPSR(SPITZ_GPIO_ON_RESET) = GPIO_bit(SPITZ_GPIO_ON_RESET); | ||
534 | |||
535 | mdelay(1000); | ||
536 | arm_machine_restart('h'); | ||
537 | } | 536 | } |
538 | 537 | ||
539 | static void spitz_restart(char mode) | 538 | static void spitz_restart(char mode) |
@@ -547,6 +546,7 @@ static void spitz_restart(char mode) | |||
547 | 546 | ||
548 | static void __init common_init(void) | 547 | static void __init common_init(void) |
549 | { | 548 | { |
549 | init_gpio_reset(SPITZ_GPIO_ON_RESET); | ||
550 | pm_power_off = spitz_poweroff; | 550 | pm_power_off = spitz_poweroff; |
551 | arm_pm_restart = spitz_restart; | 551 | arm_pm_restart = spitz_restart; |
552 | 552 | ||
diff --git a/arch/arm/mach-pxa/spitz_pm.c b/arch/arm/mach-pxa/spitz_pm.c index 23f050feb208..360354084ae4 100644 --- a/arch/arm/mach-pxa/spitz_pm.c +++ b/arch/arm/mach-pxa/spitz_pm.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <asm/arch/sharpsl.h> | 26 | #include <asm/arch/sharpsl.h> |
27 | #include <asm/arch/spitz.h> | 27 | #include <asm/arch/spitz.h> |
28 | #include <asm/arch/pxa-regs.h> | 28 | #include <asm/arch/pxa-regs.h> |
29 | #include <asm/arch/pxa2xx-regs.h> | ||
29 | #include <asm/arch/pxa2xx-gpio.h> | 30 | #include <asm/arch/pxa2xx-gpio.h> |
30 | #include "sharpsl.h" | 31 | #include "sharpsl.h" |
31 | 32 | ||
@@ -207,7 +208,9 @@ struct sharpsl_charger_machinfo spitz_pm_machinfo = { | |||
207 | .read_devdata = spitzpm_read_devdata, | 208 | .read_devdata = spitzpm_read_devdata, |
208 | .charger_wakeup = spitz_charger_wakeup, | 209 | .charger_wakeup = spitz_charger_wakeup, |
209 | .should_wakeup = spitz_should_wakeup, | 210 | .should_wakeup = spitz_should_wakeup, |
211 | #ifdef CONFIG_BACKLIGHT_CORGI | ||
210 | .backlight_limit = corgibl_limit_intensity, | 212 | .backlight_limit = corgibl_limit_intensity, |
213 | #endif | ||
211 | .charge_on_volt = SHARPSL_CHARGE_ON_VOLT, | 214 | .charge_on_volt = SHARPSL_CHARGE_ON_VOLT, |
212 | .charge_on_temp = SHARPSL_CHARGE_ON_TEMP, | 215 | .charge_on_temp = SHARPSL_CHARGE_ON_TEMP, |
213 | .charge_acin_high = SHARPSL_CHARGE_ON_ACIN_HIGH, | 216 | .charge_acin_high = SHARPSL_CHARGE_ON_ACIN_HIGH, |
@@ -229,6 +232,10 @@ static int __devinit spitzpm_init(void) | |||
229 | { | 232 | { |
230 | int ret; | 233 | int ret; |
231 | 234 | ||
235 | if (!machine_is_spitz() && !machine_is_akita() | ||
236 | && !machine_is_borzoi()) | ||
237 | return -ENODEV; | ||
238 | |||
232 | spitzpm_device = platform_device_alloc("sharpsl-pm", -1); | 239 | spitzpm_device = platform_device_alloc("sharpsl-pm", -1); |
233 | if (!spitzpm_device) | 240 | if (!spitzpm_device) |
234 | return -ENOMEM; | 241 | return -ENOMEM; |
diff --git a/arch/arm/mach-pxa/ssp.c b/arch/arm/mach-pxa/ssp.c index 0bb31982fb6f..89f38683787e 100644 --- a/arch/arm/mach-pxa/ssp.c +++ b/arch/arm/mach-pxa/ssp.c | |||
@@ -14,13 +14,6 @@ | |||
14 | * IO-based SSP applications and allows easy port setup for DMA access. | 14 | * IO-based SSP applications and allows easy port setup for DMA access. |
15 | * | 15 | * |
16 | * Author: Liam Girdwood <liam.girdwood@wolfsonmicro.com> | 16 | * Author: Liam Girdwood <liam.girdwood@wolfsonmicro.com> |
17 | * | ||
18 | * Revision history: | ||
19 | * 22nd Aug 2003 Initial version. | ||
20 | * 20th Dec 2004 Added ssp_config for changing port config without | ||
21 | * closing the port. | ||
22 | * 4th Aug 2005 Added option to disable irq handler registration and | ||
23 | * cleaned up irq and clock detection. | ||
24 | */ | 17 | */ |
25 | 18 | ||
26 | #include <linux/module.h> | 19 | #include <linux/module.h> |
@@ -285,7 +278,7 @@ int ssp_init(struct ssp_dev *dev, u32 port, u32 init_flags) | |||
285 | goto out_region; | 278 | goto out_region; |
286 | dev->irq = ssp->irq; | 279 | dev->irq = ssp->irq; |
287 | } else | 280 | } else |
288 | dev->irq = 0; | 281 | dev->irq = NO_IRQ; |
289 | 282 | ||
290 | /* turn on SSP port clock */ | 283 | /* turn on SSP port clock */ |
291 | clk_enable(ssp->clk); | 284 | clk_enable(ssp->clk); |
@@ -306,7 +299,8 @@ void ssp_exit(struct ssp_dev *dev) | |||
306 | struct ssp_device *ssp = dev->ssp; | 299 | struct ssp_device *ssp = dev->ssp; |
307 | 300 | ||
308 | ssp_disable(dev); | 301 | ssp_disable(dev); |
309 | free_irq(dev->irq, dev); | 302 | if (dev->irq != NO_IRQ) |
303 | free_irq(dev->irq, dev); | ||
310 | clk_disable(ssp->clk); | 304 | clk_disable(ssp->clk); |
311 | ssp_free(ssp); | 305 | ssp_free(ssp); |
312 | } | 306 | } |
@@ -360,6 +354,7 @@ static int __devinit ssp_probe(struct platform_device *pdev, int type) | |||
360 | dev_err(&pdev->dev, "failed to allocate memory"); | 354 | dev_err(&pdev->dev, "failed to allocate memory"); |
361 | return -ENOMEM; | 355 | return -ENOMEM; |
362 | } | 356 | } |
357 | ssp->pdev = pdev; | ||
363 | 358 | ||
364 | ssp->clk = clk_get(&pdev->dev, "SSPCLK"); | 359 | ssp->clk = clk_get(&pdev->dev, "SSPCLK"); |
365 | if (IS_ERR(ssp->clk)) { | 360 | if (IS_ERR(ssp->clk)) { |
diff --git a/arch/arm/mach-pxa/standby.S b/arch/arm/mach-pxa/standby.S index 167412e6bec8..40bb70eff3fe 100644 --- a/arch/arm/mach-pxa/standby.S +++ b/arch/arm/mach-pxa/standby.S | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <asm/hardware.h> | 14 | #include <asm/hardware.h> |
15 | 15 | ||
16 | #include <asm/arch/pxa-regs.h> | 16 | #include <asm/arch/pxa-regs.h> |
17 | #include <asm/arch/pxa2xx-regs.h> | ||
17 | 18 | ||
18 | .text | 19 | .text |
19 | 20 | ||
@@ -35,20 +36,20 @@ ENTRY(pxa_cpu_standby) | |||
35 | 36 | ||
36 | #ifdef CONFIG_PXA3xx | 37 | #ifdef CONFIG_PXA3xx |
37 | 38 | ||
38 | #define MDCNFG 0x0000 | 39 | #define PXA3_MDCNFG 0x0000 |
39 | #define MDCNFG_DMCEN (1 << 30) | 40 | #define PXA3_MDCNFG_DMCEN (1 << 30) |
40 | #define DDR_HCAL 0x0060 | 41 | #define PXA3_DDR_HCAL 0x0060 |
41 | #define DDR_HCAL_HCRNG 0x1f | 42 | #define PXA3_DDR_HCAL_HCRNG 0x1f |
42 | #define DDR_HCAL_HCPROG (1 << 28) | 43 | #define PXA3_DDR_HCAL_HCPROG (1 << 28) |
43 | #define DDR_HCAL_HCEN (1 << 31) | 44 | #define PXA3_DDR_HCAL_HCEN (1 << 31) |
44 | #define DMCIER 0x0070 | 45 | #define PXA3_DMCIER 0x0070 |
45 | #define DMCIER_EDLP (1 << 29) | 46 | #define PXA3_DMCIER_EDLP (1 << 29) |
46 | #define DMCISR 0x0078 | 47 | #define PXA3_DMCISR 0x0078 |
47 | #define RCOMP 0x0100 | 48 | #define PXA3_RCOMP 0x0100 |
48 | #define RCOMP_SWEVAL (1 << 31) | 49 | #define PXA3_RCOMP_SWEVAL (1 << 31) |
49 | 50 | ||
50 | ENTRY(pm_enter_standby_start) | 51 | ENTRY(pm_enter_standby_start) |
51 | mov r1, #0xf6000000 @ DMEMC_REG_BASE (MDCNFG) | 52 | mov r1, #0xf6000000 @ DMEMC_REG_BASE (PXA3_MDCNFG) |
52 | add r1, r1, #0x00100000 | 53 | add r1, r1, #0x00100000 |
53 | 54 | ||
54 | /* | 55 | /* |
@@ -59,54 +60,54 @@ ENTRY(pm_enter_standby_start) | |||
59 | * This also means that only the dynamic memory controller | 60 | * This also means that only the dynamic memory controller |
60 | * can be reliably accessed in the code following standby. | 61 | * can be reliably accessed in the code following standby. |
61 | */ | 62 | */ |
62 | ldr r2, [r1] @ Dummy read MDCNFG | 63 | ldr r2, [r1] @ Dummy read PXA3_MDCNFG |
63 | 64 | ||
64 | mcr p14, 0, r0, c7, c0, 0 | 65 | mcr p14, 0, r0, c7, c0, 0 |
65 | .rept 8 | 66 | .rept 8 |
66 | nop | 67 | nop |
67 | .endr | 68 | .endr |
68 | 69 | ||
69 | ldr r0, [r1, #DDR_HCAL] @ Clear (and wait for) HCEN | 70 | ldr r0, [r1, #PXA3_DDR_HCAL] @ Clear (and wait for) HCEN |
70 | bic r0, r0, #DDR_HCAL_HCEN | 71 | bic r0, r0, #PXA3_DDR_HCAL_HCEN |
71 | str r0, [r1, #DDR_HCAL] | 72 | str r0, [r1, #PXA3_DDR_HCAL] |
72 | 1: ldr r0, [r1, #DDR_HCAL] | 73 | 1: ldr r0, [r1, #PXA3_DDR_HCAL] |
73 | tst r0, #DDR_HCAL_HCEN | 74 | tst r0, #PXA3_DDR_HCAL_HCEN |
74 | bne 1b | 75 | bne 1b |
75 | 76 | ||
76 | ldr r0, [r1, #RCOMP] @ Initiate RCOMP | 77 | ldr r0, [r1, #PXA3_RCOMP] @ Initiate RCOMP |
77 | orr r0, r0, #RCOMP_SWEVAL | 78 | orr r0, r0, #PXA3_RCOMP_SWEVAL |
78 | str r0, [r1, #RCOMP] | 79 | str r0, [r1, #PXA3_RCOMP] |
79 | 80 | ||
80 | mov r0, #~0 @ Clear interrupts | 81 | mov r0, #~0 @ Clear interrupts |
81 | str r0, [r1, #DMCISR] | 82 | str r0, [r1, #PXA3_DMCISR] |
82 | 83 | ||
83 | ldr r0, [r1, #DMCIER] @ set DMIER[EDLP] | 84 | ldr r0, [r1, #PXA3_DMCIER] @ set DMIER[EDLP] |
84 | orr r0, r0, #DMCIER_EDLP | 85 | orr r0, r0, #PXA3_DMCIER_EDLP |
85 | str r0, [r1, #DMCIER] | 86 | str r0, [r1, #PXA3_DMCIER] |
86 | 87 | ||
87 | ldr r0, [r1, #DDR_HCAL] @ clear HCRNG, set HCPROG, HCEN | 88 | ldr r0, [r1, #PXA3_DDR_HCAL] @ clear HCRNG, set HCPROG, HCEN |
88 | bic r0, r0, #DDR_HCAL_HCRNG | 89 | bic r0, r0, #PXA3_DDR_HCAL_HCRNG |
89 | orr r0, r0, #DDR_HCAL_HCEN | DDR_HCAL_HCPROG | 90 | orr r0, r0, #PXA3_DDR_HCAL_HCEN | PXA3_DDR_HCAL_HCPROG |
90 | str r0, [r1, #DDR_HCAL] | 91 | str r0, [r1, #PXA3_DDR_HCAL] |
91 | 92 | ||
92 | 1: ldr r0, [r1, #DMCISR] | 93 | 1: ldr r0, [r1, #PXA3_DMCISR] |
93 | tst r0, #DMCIER_EDLP | 94 | tst r0, #PXA3_DMCIER_EDLP |
94 | beq 1b | 95 | beq 1b |
95 | 96 | ||
96 | ldr r0, [r1, #MDCNFG] @ set MDCNFG[DMCEN] | 97 | ldr r0, [r1, #PXA3_MDCNFG] @ set PXA3_MDCNFG[DMCEN] |
97 | orr r0, r0, #MDCNFG_DMCEN | 98 | orr r0, r0, #PXA3_MDCNFG_DMCEN |
98 | str r0, [r1, #MDCNFG] | 99 | str r0, [r1, #PXA3_MDCNFG] |
99 | 1: ldr r0, [r1, #MDCNFG] | 100 | 1: ldr r0, [r1, #PXA3_MDCNFG] |
100 | tst r0, #MDCNFG_DMCEN | 101 | tst r0, #PXA3_MDCNFG_DMCEN |
101 | beq 1b | 102 | beq 1b |
102 | 103 | ||
103 | ldr r0, [r1, #DDR_HCAL] @ set DDR_HCAL[HCRNG] | 104 | ldr r0, [r1, #PXA3_DDR_HCAL] @ set PXA3_DDR_HCAL[HCRNG] |
104 | orr r0, r0, #2 @ HCRNG | 105 | orr r0, r0, #2 @ HCRNG |
105 | str r0, [r1, #DDR_HCAL] | 106 | str r0, [r1, #PXA3_DDR_HCAL] |
106 | 107 | ||
107 | ldr r0, [r1, #DMCIER] @ Clear the interrupt | 108 | ldr r0, [r1, #PXA3_DMCIER] @ Clear the interrupt |
108 | bic r0, r0, #0x20000000 | 109 | bic r0, r0, #0x20000000 |
109 | str r0, [r1, #DMCIER] | 110 | str r0, [r1, #PXA3_DMCIER] |
110 | 111 | ||
111 | mov pc, lr | 112 | mov pc, lr |
112 | ENTRY(pm_enter_standby_end) | 113 | ENTRY(pm_enter_standby_end) |
diff --git a/arch/arm/mach-pxa/tavorevb.c b/arch/arm/mach-pxa/tavorevb.c new file mode 100644 index 000000000000..ac283507e423 --- /dev/null +++ b/arch/arm/mach-pxa/tavorevb.c | |||
@@ -0,0 +1,84 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pxa/tavorevb.c | ||
3 | * | ||
4 | * Support for the Marvell PXA930 Evaluation Board | ||
5 | * | ||
6 | * Copyright (C) 2007-2008 Marvell International Ltd. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * publishhed by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/module.h> | ||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/interrupt.h> | ||
16 | #include <linux/init.h> | ||
17 | #include <linux/platform_device.h> | ||
18 | #include <linux/clk.h> | ||
19 | #include <linux/gpio.h> | ||
20 | #include <linux/smc91x.h> | ||
21 | |||
22 | #include <asm/mach-types.h> | ||
23 | #include <asm/mach/arch.h> | ||
24 | #include <asm/hardware.h> | ||
25 | #include <asm/arch/pxa3xx-regs.h> | ||
26 | #include <asm/arch/mfp-pxa930.h> | ||
27 | |||
28 | #include "devices.h" | ||
29 | #include "generic.h" | ||
30 | |||
31 | /* Tavor EVB MFP configurations */ | ||
32 | static mfp_cfg_t tavorevb_mfp_cfg[] __initdata = { | ||
33 | /* Ethernet */ | ||
34 | DF_nCS1_nCS3, | ||
35 | GPIO47_GPIO, | ||
36 | }; | ||
37 | |||
38 | #define TAVOREVB_ETH_PHYS (0x14000000) | ||
39 | |||
40 | static struct resource smc91x_resources[] = { | ||
41 | [0] = { | ||
42 | .start = (TAVOREVB_ETH_PHYS + 0x300), | ||
43 | .end = (TAVOREVB_ETH_PHYS + 0xfffff), | ||
44 | .flags = IORESOURCE_MEM, | ||
45 | }, | ||
46 | [1] = { | ||
47 | .start = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO47)), | ||
48 | .end = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO47)), | ||
49 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE, | ||
50 | } | ||
51 | }; | ||
52 | |||
53 | static struct smc91x_platdata tavorevb_smc91x_info = { | ||
54 | .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT | SMC91X_USE_DMA, | ||
55 | }; | ||
56 | |||
57 | static struct platform_device smc91x_device = { | ||
58 | .name = "smc91x", | ||
59 | .id = 0, | ||
60 | .num_resources = ARRAY_SIZE(smc91x_resources), | ||
61 | .resource = smc91x_resources, | ||
62 | .dev = { | ||
63 | .platform_data = &tavorevb_smc91x_info, | ||
64 | }, | ||
65 | }; | ||
66 | |||
67 | static void __init tavorevb_init(void) | ||
68 | { | ||
69 | /* initialize MFP configurations */ | ||
70 | pxa3xx_mfp_config(ARRAY_AND_SIZE(tavorevb_mfp_cfg)); | ||
71 | |||
72 | platform_device_register(&smc91x_device); | ||
73 | } | ||
74 | |||
75 | MACHINE_START(TAVOREVB, "PXA930 Evaluation Board (aka TavorEVB)") | ||
76 | /* Maintainer: Eric Miao <eric.miao@marvell.com> */ | ||
77 | .phys_io = 0x40000000, | ||
78 | .boot_params = 0xa0000100, | ||
79 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | ||
80 | .map_io = pxa_map_io, | ||
81 | .init_irq = pxa3xx_init_irq, | ||
82 | .timer = &pxa_timer, | ||
83 | .init_machine = tavorevb_init, | ||
84 | MACHINE_END | ||
diff --git a/arch/arm/mach-pxa/tosa-bt.c b/arch/arm/mach-pxa/tosa-bt.c new file mode 100644 index 000000000000..7d8505466e54 --- /dev/null +++ b/arch/arm/mach-pxa/tosa-bt.c | |||
@@ -0,0 +1,150 @@ | |||
1 | /* | ||
2 | * Bluetooth built-in chip control | ||
3 | * | ||
4 | * Copyright (c) 2008 Dmitry Baryshkov | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | * | ||
10 | */ | ||
11 | |||
12 | #include <linux/kernel.h> | ||
13 | #include <linux/module.h> | ||
14 | #include <linux/platform_device.h> | ||
15 | #include <linux/gpio.h> | ||
16 | #include <linux/delay.h> | ||
17 | #include <linux/rfkill.h> | ||
18 | |||
19 | #include <asm/arch/tosa_bt.h> | ||
20 | |||
21 | static void tosa_bt_on(struct tosa_bt_data *data) | ||
22 | { | ||
23 | gpio_set_value(data->gpio_reset, 0); | ||
24 | gpio_set_value(data->gpio_pwr, 1); | ||
25 | gpio_set_value(data->gpio_reset, 1); | ||
26 | mdelay(20); | ||
27 | gpio_set_value(data->gpio_reset, 0); | ||
28 | } | ||
29 | |||
30 | static void tosa_bt_off(struct tosa_bt_data *data) | ||
31 | { | ||
32 | gpio_set_value(data->gpio_reset, 1); | ||
33 | mdelay(10); | ||
34 | gpio_set_value(data->gpio_pwr, 0); | ||
35 | gpio_set_value(data->gpio_reset, 0); | ||
36 | } | ||
37 | |||
38 | static int tosa_bt_toggle_radio(void *data, enum rfkill_state state) | ||
39 | { | ||
40 | pr_info("BT_RADIO going: %s\n", | ||
41 | state == RFKILL_STATE_ON ? "on" : "off"); | ||
42 | |||
43 | if (state == RFKILL_STATE_ON) { | ||
44 | pr_info("TOSA_BT: going ON\n"); | ||
45 | tosa_bt_on(data); | ||
46 | } else { | ||
47 | pr_info("TOSA_BT: going OFF\n"); | ||
48 | tosa_bt_off(data); | ||
49 | } | ||
50 | return 0; | ||
51 | } | ||
52 | |||
53 | static int tosa_bt_probe(struct platform_device *dev) | ||
54 | { | ||
55 | int rc; | ||
56 | struct rfkill *rfk; | ||
57 | |||
58 | struct tosa_bt_data *data = dev->dev.platform_data; | ||
59 | |||
60 | rc = gpio_request(data->gpio_reset, "Bluetooth reset"); | ||
61 | if (rc) | ||
62 | goto err_reset; | ||
63 | rc = gpio_direction_output(data->gpio_reset, 0); | ||
64 | if (rc) | ||
65 | goto err_reset_dir; | ||
66 | rc = gpio_request(data->gpio_pwr, "Bluetooth power"); | ||
67 | if (rc) | ||
68 | goto err_pwr; | ||
69 | rc = gpio_direction_output(data->gpio_pwr, 0); | ||
70 | if (rc) | ||
71 | goto err_pwr_dir; | ||
72 | |||
73 | rfk = rfkill_allocate(&dev->dev, RFKILL_TYPE_BLUETOOTH); | ||
74 | if (!rfk) { | ||
75 | rc = -ENOMEM; | ||
76 | goto err_rfk_alloc; | ||
77 | } | ||
78 | |||
79 | rfk->name = "tosa-bt"; | ||
80 | rfk->toggle_radio = tosa_bt_toggle_radio; | ||
81 | rfk->data = data; | ||
82 | #ifdef CONFIG_RFKILL_LEDS | ||
83 | rfk->led_trigger.name = "tosa-bt"; | ||
84 | #endif | ||
85 | |||
86 | rc = rfkill_register(rfk); | ||
87 | if (rc) | ||
88 | goto err_rfkill; | ||
89 | |||
90 | platform_set_drvdata(dev, rfk); | ||
91 | |||
92 | return 0; | ||
93 | |||
94 | err_rfkill: | ||
95 | if (rfk) | ||
96 | rfkill_free(rfk); | ||
97 | rfk = NULL; | ||
98 | err_rfk_alloc: | ||
99 | tosa_bt_off(data); | ||
100 | err_pwr_dir: | ||
101 | gpio_free(data->gpio_pwr); | ||
102 | err_pwr: | ||
103 | err_reset_dir: | ||
104 | gpio_free(data->gpio_reset); | ||
105 | err_reset: | ||
106 | return rc; | ||
107 | } | ||
108 | |||
109 | static int __devexit tosa_bt_remove(struct platform_device *dev) | ||
110 | { | ||
111 | struct tosa_bt_data *data = dev->dev.platform_data; | ||
112 | struct rfkill *rfk = platform_get_drvdata(dev); | ||
113 | |||
114 | platform_set_drvdata(dev, NULL); | ||
115 | |||
116 | if (rfk) | ||
117 | rfkill_unregister(rfk); | ||
118 | rfk = NULL; | ||
119 | |||
120 | tosa_bt_off(data); | ||
121 | |||
122 | gpio_free(data->gpio_pwr); | ||
123 | gpio_free(data->gpio_reset); | ||
124 | |||
125 | return 0; | ||
126 | } | ||
127 | |||
128 | static struct platform_driver tosa_bt_driver = { | ||
129 | .probe = tosa_bt_probe, | ||
130 | .remove = __devexit_p(tosa_bt_remove), | ||
131 | |||
132 | .driver = { | ||
133 | .name = "tosa-bt", | ||
134 | .owner = THIS_MODULE, | ||
135 | }, | ||
136 | }; | ||
137 | |||
138 | |||
139 | static int __init tosa_bt_init(void) | ||
140 | { | ||
141 | return platform_driver_register(&tosa_bt_driver); | ||
142 | } | ||
143 | |||
144 | static void __exit tosa_bt_exit(void) | ||
145 | { | ||
146 | platform_driver_unregister(&tosa_bt_driver); | ||
147 | } | ||
148 | |||
149 | module_init(tosa_bt_init); | ||
150 | module_exit(tosa_bt_exit); | ||
diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index ab4a9f579913..fea17ce6b55f 100644 --- a/arch/arm/mach-pxa/tosa.c +++ b/arch/arm/mach-pxa/tosa.c | |||
@@ -18,30 +18,31 @@ | |||
18 | #include <linux/major.h> | 18 | #include <linux/major.h> |
19 | #include <linux/fs.h> | 19 | #include <linux/fs.h> |
20 | #include <linux/interrupt.h> | 20 | #include <linux/interrupt.h> |
21 | #include <linux/delay.h> | ||
22 | #include <linux/fb.h> | ||
21 | #include <linux/mmc/host.h> | 23 | #include <linux/mmc/host.h> |
24 | #include <linux/mfd/tc6393xb.h> | ||
25 | #include <linux/mfd/tmio.h> | ||
26 | #include <linux/mtd/nand.h> | ||
27 | #include <linux/mtd/partitions.h> | ||
22 | #include <linux/pm.h> | 28 | #include <linux/pm.h> |
23 | #include <linux/delay.h> | ||
24 | #include <linux/gpio_keys.h> | 29 | #include <linux/gpio_keys.h> |
25 | #include <linux/input.h> | 30 | #include <linux/input.h> |
26 | #include <linux/gpio.h> | 31 | #include <linux/gpio.h> |
32 | #include <linux/pda_power.h> | ||
33 | #include <linux/rfkill.h> | ||
27 | 34 | ||
28 | #include <asm/setup.h> | 35 | #include <asm/setup.h> |
29 | #include <asm/memory.h> | ||
30 | #include <asm/mach-types.h> | 36 | #include <asm/mach-types.h> |
31 | #include <asm/hardware.h> | ||
32 | #include <asm/irq.h> | ||
33 | #include <asm/system.h> | ||
34 | #include <asm/arch/pxa-regs.h> | ||
35 | #include <asm/arch/pxa2xx-regs.h> | 37 | #include <asm/arch/pxa2xx-regs.h> |
36 | #include <asm/arch/mfp-pxa25x.h> | 38 | #include <asm/arch/mfp-pxa25x.h> |
37 | #include <asm/arch/irda.h> | 39 | #include <asm/arch/irda.h> |
38 | #include <asm/arch/i2c.h> | 40 | #include <asm/arch/i2c.h> |
39 | #include <asm/arch/mmc.h> | 41 | #include <asm/arch/mmc.h> |
40 | #include <asm/arch/udc.h> | 42 | #include <asm/arch/udc.h> |
43 | #include <asm/arch/tosa_bt.h> | ||
41 | 44 | ||
42 | #include <asm/mach/arch.h> | 45 | #include <asm/mach/arch.h> |
43 | #include <asm/mach/map.h> | ||
44 | #include <asm/mach/irq.h> | ||
45 | #include <asm/arch/tosa.h> | 46 | #include <asm/arch/tosa.h> |
46 | 47 | ||
47 | #include <asm/hardware/scoop.h> | 48 | #include <asm/hardware/scoop.h> |
@@ -86,7 +87,7 @@ static unsigned long tosa_pin_config[] = { | |||
86 | GPIO6_MMC_CLK, | 87 | GPIO6_MMC_CLK, |
87 | GPIO8_MMC_CS0, | 88 | GPIO8_MMC_CS0, |
88 | GPIO9_GPIO, /* Detect */ | 89 | GPIO9_GPIO, /* Detect */ |
89 | // GPIO10 nSD_INT | 90 | GPIO10_GPIO, /* nSD_INT */ |
90 | 91 | ||
91 | /* CF */ | 92 | /* CF */ |
92 | GPIO13_GPIO, /* CD_IRQ */ | 93 | GPIO13_GPIO, /* CD_IRQ */ |
@@ -124,34 +125,34 @@ static unsigned long tosa_pin_config[] = { | |||
124 | GPIO44_BTUART_CTS, | 125 | GPIO44_BTUART_CTS, |
125 | GPIO45_BTUART_RTS, | 126 | GPIO45_BTUART_RTS, |
126 | 127 | ||
127 | /* IrDA */ | ||
128 | GPIO46_STUART_RXD, | ||
129 | GPIO47_STUART_TXD, | ||
130 | |||
131 | /* Keybd */ | 128 | /* Keybd */ |
132 | GPIO58_GPIO, | 129 | GPIO58_GPIO | MFP_LPM_DRIVE_LOW, |
133 | GPIO59_GPIO, | 130 | GPIO59_GPIO | MFP_LPM_DRIVE_LOW, |
134 | GPIO60_GPIO, | 131 | GPIO60_GPIO | MFP_LPM_DRIVE_LOW, |
135 | GPIO61_GPIO, | 132 | GPIO61_GPIO | MFP_LPM_DRIVE_LOW, |
136 | GPIO62_GPIO, | 133 | GPIO62_GPIO | MFP_LPM_DRIVE_LOW, |
137 | GPIO63_GPIO, | 134 | GPIO63_GPIO | MFP_LPM_DRIVE_LOW, |
138 | GPIO64_GPIO, | 135 | GPIO64_GPIO | MFP_LPM_DRIVE_LOW, |
139 | GPIO65_GPIO, | 136 | GPIO65_GPIO | MFP_LPM_DRIVE_LOW, |
140 | GPIO66_GPIO, | 137 | GPIO66_GPIO | MFP_LPM_DRIVE_LOW, |
141 | GPIO67_GPIO, | 138 | GPIO67_GPIO | MFP_LPM_DRIVE_LOW, |
142 | GPIO68_GPIO, | 139 | GPIO68_GPIO | MFP_LPM_DRIVE_LOW, |
143 | GPIO69_GPIO, | 140 | GPIO69_GPIO | MFP_LPM_DRIVE_LOW, |
144 | GPIO70_GPIO, | 141 | GPIO70_GPIO | MFP_LPM_DRIVE_LOW, |
145 | GPIO71_GPIO, | 142 | GPIO71_GPIO | MFP_LPM_DRIVE_LOW, |
146 | GPIO72_GPIO, | 143 | GPIO72_GPIO | MFP_LPM_DRIVE_LOW, |
147 | GPIO73_GPIO, | 144 | GPIO73_GPIO | MFP_LPM_DRIVE_LOW, |
148 | GPIO74_GPIO, | 145 | GPIO74_GPIO | MFP_LPM_DRIVE_LOW, |
149 | GPIO75_GPIO, | 146 | GPIO75_GPIO | MFP_LPM_DRIVE_LOW, |
150 | 147 | ||
151 | /* SPI */ | 148 | /* SPI */ |
152 | GPIO81_SSP2_CLK_OUT, | 149 | GPIO81_SSP2_CLK_OUT, |
153 | GPIO82_SSP2_FRM_OUT, | 150 | GPIO82_SSP2_FRM_OUT, |
154 | GPIO83_SSP2_TXD, | 151 | GPIO83_SSP2_TXD, |
152 | |||
153 | /* IrDA is managed in other way */ | ||
154 | GPIO46_GPIO, | ||
155 | GPIO47_GPIO, | ||
155 | }; | 156 | }; |
156 | 157 | ||
157 | /* | 158 | /* |
@@ -249,6 +250,15 @@ static int tosa_mci_init(struct device *dev, irq_handler_t tosa_detect_int, void | |||
249 | 250 | ||
250 | tosa_mci_platform_data.detect_delay = msecs_to_jiffies(250); | 251 | tosa_mci_platform_data.detect_delay = msecs_to_jiffies(250); |
251 | 252 | ||
253 | err = gpio_request(TOSA_GPIO_nSD_DETECT, "MMC/SD card detect"); | ||
254 | if (err) { | ||
255 | printk(KERN_ERR "tosa_mci_init: can't request nSD_DETECT gpio\n"); | ||
256 | goto err_gpio_detect; | ||
257 | } | ||
258 | err = gpio_direction_input(TOSA_GPIO_nSD_DETECT); | ||
259 | if (err) | ||
260 | goto err_gpio_detect_dir; | ||
261 | |||
252 | err = request_irq(TOSA_IRQ_GPIO_nSD_DETECT, tosa_detect_int, | 262 | err = request_irq(TOSA_IRQ_GPIO_nSD_DETECT, tosa_detect_int, |
253 | IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, | 263 | IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, |
254 | "MMC/SD card detect", data); | 264 | "MMC/SD card detect", data); |
@@ -257,7 +267,7 @@ static int tosa_mci_init(struct device *dev, irq_handler_t tosa_detect_int, void | |||
257 | goto err_irq; | 267 | goto err_irq; |
258 | } | 268 | } |
259 | 269 | ||
260 | err = gpio_request(TOSA_GPIO_SD_WP, "sd_wp"); | 270 | err = gpio_request(TOSA_GPIO_SD_WP, "SD Write Protect"); |
261 | if (err) { | 271 | if (err) { |
262 | printk(KERN_ERR "tosa_mci_init: can't request SD_WP gpio\n"); | 272 | printk(KERN_ERR "tosa_mci_init: can't request SD_WP gpio\n"); |
263 | goto err_gpio_wp; | 273 | goto err_gpio_wp; |
@@ -266,7 +276,7 @@ static int tosa_mci_init(struct device *dev, irq_handler_t tosa_detect_int, void | |||
266 | if (err) | 276 | if (err) |
267 | goto err_gpio_wp_dir; | 277 | goto err_gpio_wp_dir; |
268 | 278 | ||
269 | err = gpio_request(TOSA_GPIO_PWR_ON, "sd_pwr"); | 279 | err = gpio_request(TOSA_GPIO_PWR_ON, "SD Power"); |
270 | if (err) { | 280 | if (err) { |
271 | printk(KERN_ERR "tosa_mci_init: can't request SD_PWR gpio\n"); | 281 | printk(KERN_ERR "tosa_mci_init: can't request SD_PWR gpio\n"); |
272 | goto err_gpio_pwr; | 282 | goto err_gpio_pwr; |
@@ -275,8 +285,20 @@ static int tosa_mci_init(struct device *dev, irq_handler_t tosa_detect_int, void | |||
275 | if (err) | 285 | if (err) |
276 | goto err_gpio_pwr_dir; | 286 | goto err_gpio_pwr_dir; |
277 | 287 | ||
288 | err = gpio_request(TOSA_GPIO_nSD_INT, "SD Int"); | ||
289 | if (err) { | ||
290 | printk(KERN_ERR "tosa_mci_init: can't request SD_PWR gpio\n"); | ||
291 | goto err_gpio_int; | ||
292 | } | ||
293 | err = gpio_direction_input(TOSA_GPIO_nSD_INT); | ||
294 | if (err) | ||
295 | goto err_gpio_int_dir; | ||
296 | |||
278 | return 0; | 297 | return 0; |
279 | 298 | ||
299 | err_gpio_int_dir: | ||
300 | gpio_free(TOSA_GPIO_nSD_INT); | ||
301 | err_gpio_int: | ||
280 | err_gpio_pwr_dir: | 302 | err_gpio_pwr_dir: |
281 | gpio_free(TOSA_GPIO_PWR_ON); | 303 | gpio_free(TOSA_GPIO_PWR_ON); |
282 | err_gpio_pwr: | 304 | err_gpio_pwr: |
@@ -285,6 +307,9 @@ err_gpio_wp_dir: | |||
285 | err_gpio_wp: | 307 | err_gpio_wp: |
286 | free_irq(TOSA_IRQ_GPIO_nSD_DETECT, data); | 308 | free_irq(TOSA_IRQ_GPIO_nSD_DETECT, data); |
287 | err_irq: | 309 | err_irq: |
310 | err_gpio_detect_dir: | ||
311 | gpio_free(TOSA_GPIO_nSD_DETECT); | ||
312 | err_gpio_detect: | ||
288 | return err; | 313 | return err; |
289 | } | 314 | } |
290 | 315 | ||
@@ -306,9 +331,11 @@ static int tosa_mci_get_ro(struct device *dev) | |||
306 | 331 | ||
307 | static void tosa_mci_exit(struct device *dev, void *data) | 332 | static void tosa_mci_exit(struct device *dev, void *data) |
308 | { | 333 | { |
334 | gpio_free(TOSA_GPIO_nSD_INT); | ||
309 | gpio_free(TOSA_GPIO_PWR_ON); | 335 | gpio_free(TOSA_GPIO_PWR_ON); |
310 | gpio_free(TOSA_GPIO_SD_WP); | 336 | gpio_free(TOSA_GPIO_SD_WP); |
311 | free_irq(TOSA_IRQ_GPIO_nSD_DETECT, data); | 337 | free_irq(TOSA_IRQ_GPIO_nSD_DETECT, data); |
338 | gpio_free(TOSA_GPIO_nSD_DETECT); | ||
312 | } | 339 | } |
313 | 340 | ||
314 | static struct pxamci_platform_data tosa_mci_platform_data = { | 341 | static struct pxamci_platform_data tosa_mci_platform_data = { |
@@ -322,29 +349,55 @@ static struct pxamci_platform_data tosa_mci_platform_data = { | |||
322 | /* | 349 | /* |
323 | * Irda | 350 | * Irda |
324 | */ | 351 | */ |
352 | static void tosa_irda_transceiver_mode(struct device *dev, int mode) | ||
353 | { | ||
354 | if (mode & IR_OFF) { | ||
355 | gpio_set_value(TOSA_GPIO_IR_POWERDWN, 0); | ||
356 | pxa2xx_transceiver_mode(dev, mode); | ||
357 | gpio_direction_output(TOSA_GPIO_IRDA_TX, 0); | ||
358 | } else { | ||
359 | pxa2xx_transceiver_mode(dev, mode); | ||
360 | gpio_set_value(TOSA_GPIO_IR_POWERDWN, 1); | ||
361 | } | ||
362 | } | ||
363 | |||
325 | static int tosa_irda_startup(struct device *dev) | 364 | static int tosa_irda_startup(struct device *dev) |
326 | { | 365 | { |
327 | int ret; | 366 | int ret; |
328 | 367 | ||
368 | ret = gpio_request(TOSA_GPIO_IRDA_TX, "IrDA TX"); | ||
369 | if (ret) | ||
370 | goto err_tx; | ||
371 | ret = gpio_direction_output(TOSA_GPIO_IRDA_TX, 0); | ||
372 | if (ret) | ||
373 | goto err_tx_dir; | ||
374 | |||
329 | ret = gpio_request(TOSA_GPIO_IR_POWERDWN, "IrDA powerdown"); | 375 | ret = gpio_request(TOSA_GPIO_IR_POWERDWN, "IrDA powerdown"); |
330 | if (ret) | 376 | if (ret) |
331 | return ret; | 377 | goto err_pwr; |
332 | 378 | ||
333 | ret = gpio_direction_output(TOSA_GPIO_IR_POWERDWN, 0); | 379 | ret = gpio_direction_output(TOSA_GPIO_IR_POWERDWN, 0); |
334 | if (ret) | 380 | if (ret) |
335 | gpio_free(TOSA_GPIO_IR_POWERDWN); | 381 | goto err_pwr_dir; |
336 | 382 | ||
337 | return ret; | 383 | tosa_irda_transceiver_mode(dev, IR_SIRMODE | IR_OFF); |
338 | } | ||
339 | 384 | ||
340 | static void tosa_irda_shutdown(struct device *dev) | 385 | return 0; |
341 | { | 386 | |
387 | err_pwr_dir: | ||
342 | gpio_free(TOSA_GPIO_IR_POWERDWN); | 388 | gpio_free(TOSA_GPIO_IR_POWERDWN); |
389 | err_pwr: | ||
390 | err_tx_dir: | ||
391 | gpio_free(TOSA_GPIO_IRDA_TX); | ||
392 | err_tx: | ||
393 | return ret; | ||
343 | } | 394 | } |
344 | 395 | ||
345 | static void tosa_irda_transceiver_mode(struct device *dev, int mode) | 396 | static void tosa_irda_shutdown(struct device *dev) |
346 | { | 397 | { |
347 | gpio_set_value(TOSA_GPIO_IR_POWERDWN, !(mode & IR_OFF)); | 398 | tosa_irda_transceiver_mode(dev, IR_SIRMODE | IR_OFF); |
399 | gpio_free(TOSA_GPIO_IR_POWERDWN); | ||
400 | gpio_free(TOSA_GPIO_IRDA_TX); | ||
348 | } | 401 | } |
349 | 402 | ||
350 | static struct pxaficp_platform_data tosa_ficp_platform_data = { | 403 | static struct pxaficp_platform_data tosa_ficp_platform_data = { |
@@ -355,6 +408,70 @@ static struct pxaficp_platform_data tosa_ficp_platform_data = { | |||
355 | }; | 408 | }; |
356 | 409 | ||
357 | /* | 410 | /* |
411 | * Tosa AC IN | ||
412 | */ | ||
413 | static int tosa_power_init(struct device *dev) | ||
414 | { | ||
415 | int ret = gpio_request(TOSA_GPIO_AC_IN, "ac in"); | ||
416 | if (ret) | ||
417 | goto err_gpio_req; | ||
418 | |||
419 | ret = gpio_direction_input(TOSA_GPIO_AC_IN); | ||
420 | if (ret) | ||
421 | goto err_gpio_in; | ||
422 | |||
423 | return 0; | ||
424 | |||
425 | err_gpio_in: | ||
426 | gpio_free(TOSA_GPIO_AC_IN); | ||
427 | err_gpio_req: | ||
428 | return ret; | ||
429 | } | ||
430 | |||
431 | static void tosa_power_exit(struct device *dev) | ||
432 | { | ||
433 | gpio_free(TOSA_GPIO_AC_IN); | ||
434 | } | ||
435 | |||
436 | static int tosa_power_ac_online(void) | ||
437 | { | ||
438 | return gpio_get_value(TOSA_GPIO_AC_IN) == 0; | ||
439 | } | ||
440 | |||
441 | static char *tosa_ac_supplied_to[] = { | ||
442 | "main-battery", | ||
443 | "backup-battery", | ||
444 | "jacket-battery", | ||
445 | }; | ||
446 | |||
447 | static struct pda_power_pdata tosa_power_data = { | ||
448 | .init = tosa_power_init, | ||
449 | .is_ac_online = tosa_power_ac_online, | ||
450 | .exit = tosa_power_exit, | ||
451 | .supplied_to = tosa_ac_supplied_to, | ||
452 | .num_supplicants = ARRAY_SIZE(tosa_ac_supplied_to), | ||
453 | }; | ||
454 | |||
455 | static struct resource tosa_power_resource[] = { | ||
456 | { | ||
457 | .name = "ac", | ||
458 | .start = gpio_to_irq(TOSA_GPIO_AC_IN), | ||
459 | .end = gpio_to_irq(TOSA_GPIO_AC_IN), | ||
460 | .flags = IORESOURCE_IRQ | | ||
461 | IORESOURCE_IRQ_HIGHEDGE | | ||
462 | IORESOURCE_IRQ_LOWEDGE, | ||
463 | }, | ||
464 | }; | ||
465 | |||
466 | static struct platform_device tosa_power_device = { | ||
467 | .name = "pda-power", | ||
468 | .id = -1, | ||
469 | .dev.platform_data = &tosa_power_data, | ||
470 | .resource = tosa_power_resource, | ||
471 | .num_resources = ARRAY_SIZE(tosa_power_resource), | ||
472 | }; | ||
473 | |||
474 | /* | ||
358 | * Tosa Keyboard | 475 | * Tosa Keyboard |
359 | */ | 476 | */ |
360 | static struct platform_device tosakbd_device = { | 477 | static struct platform_device tosakbd_device = { |
@@ -439,7 +556,7 @@ static struct gpio_led tosa_gpio_leds[] = { | |||
439 | }, | 556 | }, |
440 | { | 557 | { |
441 | .name = "tosa:blue:bluetooth", | 558 | .name = "tosa:blue:bluetooth", |
442 | .default_trigger = "none", | 559 | .default_trigger = "tosa-bt", |
443 | .gpio = TOSA_GPIO_BT_LED, | 560 | .gpio = TOSA_GPIO_BT_LED, |
444 | }, | 561 | }, |
445 | }; | 562 | }; |
@@ -457,21 +574,184 @@ static struct platform_device tosaled_device = { | |||
457 | }, | 574 | }, |
458 | }; | 575 | }; |
459 | 576 | ||
577 | /* | ||
578 | * Toshiba Mobile IO Controller | ||
579 | */ | ||
580 | static struct resource tc6393xb_resources[] = { | ||
581 | [0] = { | ||
582 | .start = TOSA_LCDC_PHYS, | ||
583 | .end = TOSA_LCDC_PHYS + 0x3ffffff, | ||
584 | .flags = IORESOURCE_MEM, | ||
585 | }, | ||
586 | |||
587 | [1] = { | ||
588 | .start = TOSA_IRQ_GPIO_TC6393XB_INT, | ||
589 | .end = TOSA_IRQ_GPIO_TC6393XB_INT, | ||
590 | .flags = IORESOURCE_IRQ, | ||
591 | }, | ||
592 | }; | ||
593 | |||
594 | |||
595 | static int tosa_tc6393xb_enable(struct platform_device *dev) | ||
596 | { | ||
597 | int rc; | ||
598 | |||
599 | rc = gpio_request(TOSA_GPIO_TC6393XB_REST_IN, "tc6393xb #pclr"); | ||
600 | if (rc) | ||
601 | goto err_req_pclr; | ||
602 | rc = gpio_request(TOSA_GPIO_TC6393XB_SUSPEND, "tc6393xb #suspend"); | ||
603 | if (rc) | ||
604 | goto err_req_suspend; | ||
605 | rc = gpio_request(TOSA_GPIO_TC6393XB_L3V_ON, "l3v"); | ||
606 | if (rc) | ||
607 | goto err_req_l3v; | ||
608 | rc = gpio_direction_output(TOSA_GPIO_TC6393XB_L3V_ON, 0); | ||
609 | if (rc) | ||
610 | goto err_dir_l3v; | ||
611 | rc = gpio_direction_output(TOSA_GPIO_TC6393XB_SUSPEND, 0); | ||
612 | if (rc) | ||
613 | goto err_dir_suspend; | ||
614 | rc = gpio_direction_output(TOSA_GPIO_TC6393XB_REST_IN, 0); | ||
615 | if (rc) | ||
616 | goto err_dir_pclr; | ||
617 | |||
618 | mdelay(1); | ||
619 | |||
620 | gpio_set_value(TOSA_GPIO_TC6393XB_SUSPEND, 1); | ||
621 | |||
622 | mdelay(10); | ||
623 | |||
624 | gpio_set_value(TOSA_GPIO_TC6393XB_REST_IN, 1); | ||
625 | gpio_set_value(TOSA_GPIO_TC6393XB_L3V_ON, 1); | ||
626 | |||
627 | return 0; | ||
628 | err_dir_pclr: | ||
629 | err_dir_suspend: | ||
630 | err_dir_l3v: | ||
631 | gpio_free(TOSA_GPIO_TC6393XB_L3V_ON); | ||
632 | err_req_l3v: | ||
633 | gpio_free(TOSA_GPIO_TC6393XB_SUSPEND); | ||
634 | err_req_suspend: | ||
635 | gpio_free(TOSA_GPIO_TC6393XB_REST_IN); | ||
636 | err_req_pclr: | ||
637 | return rc; | ||
638 | } | ||
639 | |||
640 | static int tosa_tc6393xb_disable(struct platform_device *dev) | ||
641 | { | ||
642 | gpio_free(TOSA_GPIO_TC6393XB_L3V_ON); | ||
643 | gpio_free(TOSA_GPIO_TC6393XB_SUSPEND); | ||
644 | gpio_free(TOSA_GPIO_TC6393XB_REST_IN); | ||
645 | |||
646 | return 0; | ||
647 | } | ||
648 | |||
649 | static int tosa_tc6393xb_resume(struct platform_device *dev) | ||
650 | { | ||
651 | gpio_set_value(TOSA_GPIO_TC6393XB_SUSPEND, 1); | ||
652 | mdelay(10); | ||
653 | gpio_set_value(TOSA_GPIO_TC6393XB_L3V_ON, 1); | ||
654 | mdelay(10); | ||
655 | |||
656 | return 0; | ||
657 | } | ||
658 | |||
659 | static int tosa_tc6393xb_suspend(struct platform_device *dev) | ||
660 | { | ||
661 | gpio_set_value(TOSA_GPIO_TC6393XB_L3V_ON, 0); | ||
662 | gpio_set_value(TOSA_GPIO_TC6393XB_SUSPEND, 0); | ||
663 | return 0; | ||
664 | } | ||
665 | |||
666 | static struct mtd_partition tosa_nand_partition[] = { | ||
667 | { | ||
668 | .name = "smf", | ||
669 | .offset = 0, | ||
670 | .size = 7 * 1024 * 1024, | ||
671 | }, | ||
672 | { | ||
673 | .name = "root", | ||
674 | .offset = MTDPART_OFS_APPEND, | ||
675 | .size = 28 * 1024 * 1024, | ||
676 | }, | ||
677 | { | ||
678 | .name = "home", | ||
679 | .offset = MTDPART_OFS_APPEND, | ||
680 | .size = MTDPART_SIZ_FULL, | ||
681 | }, | ||
682 | }; | ||
683 | |||
684 | static uint8_t scan_ff_pattern[] = { 0xff, 0xff }; | ||
685 | |||
686 | static struct nand_bbt_descr tosa_tc6393xb_nand_bbt = { | ||
687 | .options = 0, | ||
688 | .offs = 4, | ||
689 | .len = 2, | ||
690 | .pattern = scan_ff_pattern | ||
691 | }; | ||
692 | |||
693 | static struct tmio_nand_data tosa_tc6393xb_nand_config = { | ||
694 | .num_partitions = ARRAY_SIZE(tosa_nand_partition), | ||
695 | .partition = tosa_nand_partition, | ||
696 | .badblock_pattern = &tosa_tc6393xb_nand_bbt, | ||
697 | }; | ||
698 | |||
699 | static struct tc6393xb_platform_data tosa_tc6393xb_setup = { | ||
700 | .scr_pll2cr = 0x0cc1, | ||
701 | .scr_gper = 0x3300, | ||
702 | .scr_gpo_dsr = | ||
703 | TOSA_TC6393XB_GPIO_BIT(TOSA_GPIO_CARD_VCC_ON), | ||
704 | .scr_gpo_doecr = | ||
705 | TOSA_TC6393XB_GPIO_BIT(TOSA_GPIO_CARD_VCC_ON), | ||
706 | |||
707 | .irq_base = IRQ_BOARD_START, | ||
708 | .gpio_base = TOSA_TC6393XB_GPIO_BASE, | ||
709 | |||
710 | .enable = tosa_tc6393xb_enable, | ||
711 | .disable = tosa_tc6393xb_disable, | ||
712 | .suspend = tosa_tc6393xb_suspend, | ||
713 | .resume = tosa_tc6393xb_resume, | ||
714 | |||
715 | .nand_data = &tosa_tc6393xb_nand_config, | ||
716 | }; | ||
717 | |||
718 | |||
719 | static struct platform_device tc6393xb_device = { | ||
720 | .name = "tc6393xb", | ||
721 | .id = -1, | ||
722 | .dev = { | ||
723 | .platform_data = &tosa_tc6393xb_setup, | ||
724 | }, | ||
725 | .num_resources = ARRAY_SIZE(tc6393xb_resources), | ||
726 | .resource = tc6393xb_resources, | ||
727 | }; | ||
728 | |||
729 | static struct tosa_bt_data tosa_bt_data = { | ||
730 | .gpio_pwr = TOSA_GPIO_BT_PWR_EN, | ||
731 | .gpio_reset = TOSA_GPIO_BT_RESET, | ||
732 | }; | ||
733 | |||
734 | static struct platform_device tosa_bt_device = { | ||
735 | .name = "tosa-bt", | ||
736 | .id = -1, | ||
737 | .dev.platform_data = &tosa_bt_data, | ||
738 | }; | ||
739 | |||
740 | |||
460 | static struct platform_device *devices[] __initdata = { | 741 | static struct platform_device *devices[] __initdata = { |
461 | &tosascoop_device, | 742 | &tosascoop_device, |
462 | &tosascoop_jc_device, | 743 | &tosascoop_jc_device, |
744 | &tc6393xb_device, | ||
745 | &tosa_power_device, | ||
463 | &tosakbd_device, | 746 | &tosakbd_device, |
464 | &tosa_gpio_keys_device, | 747 | &tosa_gpio_keys_device, |
465 | &tosaled_device, | 748 | &tosaled_device, |
749 | &tosa_bt_device, | ||
466 | }; | 750 | }; |
467 | 751 | ||
468 | static void tosa_poweroff(void) | 752 | static void tosa_poweroff(void) |
469 | { | 753 | { |
470 | gpio_direction_output(TOSA_GPIO_ON_RESET, 0); | 754 | arm_machine_restart('g'); |
471 | gpio_set_value(TOSA_GPIO_ON_RESET, 1); | ||
472 | |||
473 | mdelay(1000); | ||
474 | arm_machine_restart('h'); | ||
475 | } | 755 | } |
476 | 756 | ||
477 | static void tosa_restart(char mode) | 757 | static void tosa_restart(char mode) |
@@ -485,10 +765,14 @@ static void tosa_restart(char mode) | |||
485 | 765 | ||
486 | static void __init tosa_init(void) | 766 | static void __init tosa_init(void) |
487 | { | 767 | { |
768 | int dummy; | ||
769 | |||
488 | pxa2xx_mfp_config(ARRAY_AND_SIZE(tosa_pin_config)); | 770 | pxa2xx_mfp_config(ARRAY_AND_SIZE(tosa_pin_config)); |
489 | gpio_set_wake(MFP_PIN_GPIO1, 1); | 771 | gpio_set_wake(MFP_PIN_GPIO1, 1); |
490 | /* We can't pass to gpio-keys since it will drop the Reset altfunc */ | 772 | /* We can't pass to gpio-keys since it will drop the Reset altfunc */ |
491 | 773 | ||
774 | init_gpio_reset(TOSA_GPIO_ON_RESET); | ||
775 | |||
492 | pm_power_off = tosa_poweroff; | 776 | pm_power_off = tosa_poweroff; |
493 | arm_pm_restart = tosa_restart; | 777 | arm_pm_restart = tosa_restart; |
494 | 778 | ||
@@ -497,6 +781,10 @@ static void __init tosa_init(void) | |||
497 | /* enable batt_fault */ | 781 | /* enable batt_fault */ |
498 | PMCR = 0x01; | 782 | PMCR = 0x01; |
499 | 783 | ||
784 | dummy = gpiochip_reserve(TOSA_SCOOP_GPIO_BASE, 12); | ||
785 | dummy = gpiochip_reserve(TOSA_SCOOP_JC_GPIO_BASE, 12); | ||
786 | dummy = gpiochip_reserve(TOSA_TC6393XB_GPIO_BASE, 16); | ||
787 | |||
500 | pxa_set_mci_info(&tosa_mci_platform_data); | 788 | pxa_set_mci_info(&tosa_mci_platform_data); |
501 | pxa_set_udc_info(&udc_info); | 789 | pxa_set_udc_info(&udc_info); |
502 | pxa_set_ficp_info(&tosa_ficp_platform_data); | 790 | pxa_set_ficp_info(&tosa_ficp_platform_data); |
diff --git a/arch/arm/mach-pxa/trizeps4.c b/arch/arm/mach-pxa/trizeps4.c index 931885d86b91..dee7bf36f013 100644 --- a/arch/arm/mach-pxa/trizeps4.c +++ b/arch/arm/mach-pxa/trizeps4.c | |||
@@ -41,6 +41,7 @@ | |||
41 | #include <asm/mach/flash.h> | 41 | #include <asm/mach/flash.h> |
42 | 42 | ||
43 | #include <asm/arch/pxa-regs.h> | 43 | #include <asm/arch/pxa-regs.h> |
44 | #include <asm/arch/pxa2xx-regs.h> | ||
44 | #include <asm/arch/pxa2xx-gpio.h> | 45 | #include <asm/arch/pxa2xx-gpio.h> |
45 | #include <asm/arch/trizeps4.h> | 46 | #include <asm/arch/trizeps4.h> |
46 | #include <asm/arch/audio.h> | 47 | #include <asm/arch/audio.h> |
@@ -175,19 +176,10 @@ static struct platform_device uart_devices = { | |||
175 | .resource = NULL, | 176 | .resource = NULL, |
176 | }; | 177 | }; |
177 | 178 | ||
178 | /******************************************************************************************** | ||
179 | * PXA270 ac97 sound codec | ||
180 | ********************************************************************************************/ | ||
181 | static struct platform_device ac97_audio_device = { | ||
182 | .name = "pxa2xx-ac97", | ||
183 | .id = -1, | ||
184 | }; | ||
185 | |||
186 | static struct platform_device * trizeps4_devices[] __initdata = { | 179 | static struct platform_device * trizeps4_devices[] __initdata = { |
187 | &flash_device, | 180 | &flash_device, |
188 | &uart_devices, | 181 | &uart_devices, |
189 | &dm9000_device, | 182 | &dm9000_device, |
190 | &ac97_audio_device, | ||
191 | }; | 183 | }; |
192 | 184 | ||
193 | #ifdef CONFIG_MACH_TRIZEPS4_CONXS | 185 | #ifdef CONFIG_MACH_TRIZEPS4_CONXS |
@@ -262,6 +254,7 @@ static void board_irda_mode(struct device *dev, int mode) | |||
262 | /* Fast mode */ | 254 | /* Fast mode */ |
263 | trizeps_conxs_ircr |= ConXS_IRCR_MODE; | 255 | trizeps_conxs_ircr |= ConXS_IRCR_MODE; |
264 | } | 256 | } |
257 | pxa2xx_transceiver_mode(dev, mode); | ||
265 | if (mode & IR_OFF) { | 258 | if (mode & IR_OFF) { |
266 | trizeps_conxs_ircr |= ConXS_IRCR_SD; | 259 | trizeps_conxs_ircr |= ConXS_IRCR_SD; |
267 | } else { | 260 | } else { |
@@ -438,6 +431,7 @@ static void __init trizeps4_init(void) | |||
438 | pxa_set_mci_info(&trizeps4_mci_platform_data); | 431 | pxa_set_mci_info(&trizeps4_mci_platform_data); |
439 | pxa_set_ficp_info(&trizeps4_ficp_platform_data); | 432 | pxa_set_ficp_info(&trizeps4_ficp_platform_data); |
440 | pxa_set_ohci_info(&trizeps4_ohci_platform_data); | 433 | pxa_set_ohci_info(&trizeps4_ohci_platform_data); |
434 | pxa_set_ac97_info(NULL); | ||
441 | } | 435 | } |
442 | 436 | ||
443 | static void __init trizeps4_map_io(void) | 437 | static void __init trizeps4_map_io(void) |
@@ -487,6 +481,7 @@ static void __init trizeps4_map_io(void) | |||
487 | ConXS_BCR = trizeps_conxs_bcr; | 481 | ConXS_BCR = trizeps_conxs_bcr; |
488 | #endif | 482 | #endif |
489 | 483 | ||
484 | #warning FIXME - accessing PM registers directly is deprecated | ||
490 | PWER = 0x00000002; | 485 | PWER = 0x00000002; |
491 | PFER = 0x00000000; | 486 | PFER = 0x00000000; |
492 | PRER = 0x00000002; | 487 | PRER = 0x00000002; |
diff --git a/arch/arm/mach-pxa/zylonite.c b/arch/arm/mach-pxa/zylonite.c index 4a0028087ea6..8fca6d890b7d 100644 --- a/arch/arm/mach-pxa/zylonite.c +++ b/arch/arm/mach-pxa/zylonite.c | |||
@@ -18,23 +18,29 @@ | |||
18 | #include <linux/interrupt.h> | 18 | #include <linux/interrupt.h> |
19 | #include <linux/init.h> | 19 | #include <linux/init.h> |
20 | #include <linux/platform_device.h> | 20 | #include <linux/platform_device.h> |
21 | #include <linux/pwm_backlight.h> | ||
22 | #include <linux/smc91x.h> | ||
21 | 23 | ||
22 | #include <asm/mach-types.h> | 24 | #include <asm/mach-types.h> |
23 | #include <asm/mach/arch.h> | 25 | #include <asm/mach/arch.h> |
24 | #include <asm/hardware.h> | 26 | #include <asm/hardware.h> |
27 | #include <asm/arch/audio.h> | ||
25 | #include <asm/arch/gpio.h> | 28 | #include <asm/arch/gpio.h> |
26 | #include <asm/arch/pxafb.h> | 29 | #include <asm/arch/pxafb.h> |
27 | #include <asm/arch/zylonite.h> | 30 | #include <asm/arch/zylonite.h> |
28 | #include <asm/arch/mmc.h> | 31 | #include <asm/arch/mmc.h> |
29 | #include <asm/arch/pxa27x_keypad.h> | 32 | #include <asm/arch/pxa27x_keypad.h> |
33 | #include <asm/arch/pxa3xx_nand.h> | ||
30 | 34 | ||
35 | #include "devices.h" | ||
31 | #include "generic.h" | 36 | #include "generic.h" |
32 | 37 | ||
33 | #define MAX_SLOTS 3 | 38 | #define MAX_SLOTS 3 |
34 | struct platform_mmc_slot zylonite_mmc_slot[MAX_SLOTS]; | 39 | struct platform_mmc_slot zylonite_mmc_slot[MAX_SLOTS]; |
35 | 40 | ||
36 | int gpio_backlight; | ||
37 | int gpio_eth_irq; | 41 | int gpio_eth_irq; |
42 | int gpio_debug_led1; | ||
43 | int gpio_debug_led2; | ||
38 | 44 | ||
39 | int wm9713_irq; | 45 | int wm9713_irq; |
40 | 46 | ||
@@ -54,18 +60,72 @@ static struct resource smc91x_resources[] = { | |||
54 | } | 60 | } |
55 | }; | 61 | }; |
56 | 62 | ||
63 | static struct smc91x_platdata zylonite_smc91x_info = { | ||
64 | .flags = SMC91X_USE_8BIT | SMC91X_USE_16BIT | | ||
65 | SMC91X_NOWAIT | SMC91X_USE_DMA, | ||
66 | }; | ||
67 | |||
57 | static struct platform_device smc91x_device = { | 68 | static struct platform_device smc91x_device = { |
58 | .name = "smc91x", | 69 | .name = "smc91x", |
59 | .id = 0, | 70 | .id = 0, |
60 | .num_resources = ARRAY_SIZE(smc91x_resources), | 71 | .num_resources = ARRAY_SIZE(smc91x_resources), |
61 | .resource = smc91x_resources, | 72 | .resource = smc91x_resources, |
73 | .dev = { | ||
74 | .platform_data = &zylonite_smc91x_info, | ||
75 | }, | ||
62 | }; | 76 | }; |
63 | 77 | ||
64 | #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE) | 78 | #if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE) |
65 | static void zylonite_backlight_power(int on) | 79 | static struct gpio_led zylonite_debug_leds[] = { |
80 | [0] = { | ||
81 | .name = "zylonite:yellow:1", | ||
82 | .default_trigger = "heartbeat", | ||
83 | }, | ||
84 | [1] = { | ||
85 | .name = "zylonite:yellow:2", | ||
86 | .default_trigger = "default-on", | ||
87 | }, | ||
88 | }; | ||
89 | |||
90 | static struct gpio_led_platform_data zylonite_debug_leds_info = { | ||
91 | .leds = zylonite_debug_leds, | ||
92 | .num_leds = ARRAY_SIZE(zylonite_debug_leds), | ||
93 | }; | ||
94 | |||
95 | static struct platform_device zylonite_device_leds = { | ||
96 | .name = "leds-gpio", | ||
97 | .id = -1, | ||
98 | .dev = { | ||
99 | .platform_data = &zylonite_debug_leds_info, | ||
100 | } | ||
101 | }; | ||
102 | |||
103 | static void __init zylonite_init_leds(void) | ||
66 | { | 104 | { |
67 | gpio_set_value(gpio_backlight, on); | 105 | zylonite_debug_leds[0].gpio = gpio_debug_led1; |
106 | zylonite_debug_leds[1].gpio = gpio_debug_led2; | ||
107 | |||
108 | platform_device_register(&zylonite_device_leds); | ||
68 | } | 109 | } |
110 | #else | ||
111 | static inline void zylonite_init_leds(void) {} | ||
112 | #endif | ||
113 | |||
114 | #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE) | ||
115 | static struct platform_pwm_backlight_data zylonite_backlight_data = { | ||
116 | .pwm_id = 3, | ||
117 | .max_brightness = 100, | ||
118 | .dft_brightness = 100, | ||
119 | .pwm_period_ns = 10000, | ||
120 | }; | ||
121 | |||
122 | static struct platform_device zylonite_backlight_device = { | ||
123 | .name = "pwm-backlight", | ||
124 | .dev = { | ||
125 | .parent = &pxa27x_device_pwm1.dev, | ||
126 | .platform_data = &zylonite_backlight_data, | ||
127 | }, | ||
128 | }; | ||
69 | 129 | ||
70 | static struct pxafb_mode_info toshiba_ltm035a776c_mode = { | 130 | static struct pxafb_mode_info toshiba_ltm035a776c_mode = { |
71 | .pixclock = 110000, | 131 | .pixclock = 110000, |
@@ -98,7 +158,6 @@ static struct pxafb_mode_info toshiba_ltm04c380k_mode = { | |||
98 | static struct pxafb_mach_info zylonite_toshiba_lcd_info = { | 158 | static struct pxafb_mach_info zylonite_toshiba_lcd_info = { |
99 | .num_modes = 1, | 159 | .num_modes = 1, |
100 | .lcd_conn = LCD_COLOR_TFT_16BPP | LCD_PCLK_EDGE_FALL, | 160 | .lcd_conn = LCD_COLOR_TFT_16BPP | LCD_PCLK_EDGE_FALL, |
101 | .pxafb_backlight_power = zylonite_backlight_power, | ||
102 | }; | 161 | }; |
103 | 162 | ||
104 | static struct pxafb_mode_info sharp_ls037_modes[] = { | 163 | static struct pxafb_mode_info sharp_ls037_modes[] = { |
@@ -134,13 +193,11 @@ static struct pxafb_mach_info zylonite_sharp_lcd_info = { | |||
134 | .modes = sharp_ls037_modes, | 193 | .modes = sharp_ls037_modes, |
135 | .num_modes = 2, | 194 | .num_modes = 2, |
136 | .lcd_conn = LCD_COLOR_TFT_16BPP | LCD_PCLK_EDGE_FALL, | 195 | .lcd_conn = LCD_COLOR_TFT_16BPP | LCD_PCLK_EDGE_FALL, |
137 | .pxafb_backlight_power = zylonite_backlight_power, | ||
138 | }; | 196 | }; |
139 | 197 | ||
140 | static void __init zylonite_init_lcd(void) | 198 | static void __init zylonite_init_lcd(void) |
141 | { | 199 | { |
142 | /* backlight GPIO: output, default on */ | 200 | platform_device_register(&zylonite_backlight_device); |
143 | gpio_direction_output(gpio_backlight, 1); | ||
144 | 201 | ||
145 | if (lcd_id & 0x20) { | 202 | if (lcd_id & 0x20) { |
146 | set_pxa_fb_info(&zylonite_sharp_lcd_info); | 203 | set_pxa_fb_info(&zylonite_sharp_lcd_info); |
@@ -250,7 +307,7 @@ static void __init zylonite_init_mmc(void) | |||
250 | static inline void zylonite_init_mmc(void) {} | 307 | static inline void zylonite_init_mmc(void) {} |
251 | #endif | 308 | #endif |
252 | 309 | ||
253 | #if defined(CONFIG_KEYBOARD_PXA27x) || defined(CONFIG_KEYBOARD_PXA27x_MODULES) | 310 | #if defined(CONFIG_KEYBOARD_PXA27x) || defined(CONFIG_KEYBOARD_PXA27x_MODULE) |
254 | static unsigned int zylonite_matrix_key_map[] = { | 311 | static unsigned int zylonite_matrix_key_map[] = { |
255 | /* KEY(row, col, key_code) */ | 312 | /* KEY(row, col, key_code) */ |
256 | KEY(0, 0, KEY_A), KEY(0, 1, KEY_B), KEY(0, 2, KEY_C), KEY(0, 5, KEY_D), | 313 | KEY(0, 0, KEY_A), KEY(0, 1, KEY_B), KEY(0, 2, KEY_C), KEY(0, 5, KEY_D), |
@@ -315,6 +372,57 @@ static void __init zylonite_init_keypad(void) | |||
315 | static inline void zylonite_init_keypad(void) {} | 372 | static inline void zylonite_init_keypad(void) {} |
316 | #endif | 373 | #endif |
317 | 374 | ||
375 | #if defined(CONFIG_MTD_NAND_PXA3xx) || defined(CONFIG_MTD_NAND_PXA3xx_MODULE) | ||
376 | static struct mtd_partition zylonite_nand_partitions[] = { | ||
377 | [0] = { | ||
378 | .name = "Bootloader", | ||
379 | .offset = 0, | ||
380 | .size = 0x060000, | ||
381 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
382 | }, | ||
383 | [1] = { | ||
384 | .name = "Kernel", | ||
385 | .offset = 0x060000, | ||
386 | .size = 0x200000, | ||
387 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
388 | }, | ||
389 | [2] = { | ||
390 | .name = "Filesystem", | ||
391 | .offset = 0x0260000, | ||
392 | .size = 0x3000000, /* 48M - rootfs */ | ||
393 | }, | ||
394 | [3] = { | ||
395 | .name = "MassStorage", | ||
396 | .offset = 0x3260000, | ||
397 | .size = 0x3d40000, | ||
398 | }, | ||
399 | [4] = { | ||
400 | .name = "BBT", | ||
401 | .offset = 0x6FA0000, | ||
402 | .size = 0x80000, | ||
403 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
404 | }, | ||
405 | /* NOTE: we reserve some blocks at the end of the NAND flash for | ||
406 | * bad block management, and the max number of relocation blocks | ||
407 | * differs on different platforms. Please take care with it when | ||
408 | * defining the partition table. | ||
409 | */ | ||
410 | }; | ||
411 | |||
412 | static struct pxa3xx_nand_platform_data zylonite_nand_info = { | ||
413 | .enable_arbiter = 1, | ||
414 | .parts = zylonite_nand_partitions, | ||
415 | .nr_parts = ARRAY_SIZE(zylonite_nand_partitions), | ||
416 | }; | ||
417 | |||
418 | static void __init zylonite_init_nand(void) | ||
419 | { | ||
420 | pxa3xx_set_nand_info(&zylonite_nand_info); | ||
421 | } | ||
422 | #else | ||
423 | static inline void zylonite_init_nand(void) {} | ||
424 | #endif /* CONFIG_MTD_NAND_PXA3xx || CONFIG_MTD_NAND_PXA3xx_MODULE */ | ||
425 | |||
318 | static void __init zylonite_init(void) | 426 | static void __init zylonite_init(void) |
319 | { | 427 | { |
320 | /* board-processor specific initialization */ | 428 | /* board-processor specific initialization */ |
@@ -329,9 +437,12 @@ static void __init zylonite_init(void) | |||
329 | smc91x_resources[1].end = gpio_to_irq(gpio_eth_irq); | 437 | smc91x_resources[1].end = gpio_to_irq(gpio_eth_irq); |
330 | platform_device_register(&smc91x_device); | 438 | platform_device_register(&smc91x_device); |
331 | 439 | ||
440 | pxa_set_ac97_info(NULL); | ||
332 | zylonite_init_lcd(); | 441 | zylonite_init_lcd(); |
333 | zylonite_init_mmc(); | 442 | zylonite_init_mmc(); |
334 | zylonite_init_keypad(); | 443 | zylonite_init_keypad(); |
444 | zylonite_init_nand(); | ||
445 | zylonite_init_leds(); | ||
335 | } | 446 | } |
336 | 447 | ||
337 | MACHINE_START(ZYLONITE, "PXA3xx Platform Development Kit (aka Zylonite)") | 448 | MACHINE_START(ZYLONITE, "PXA3xx Platform Development Kit (aka Zylonite)") |
diff --git a/arch/arm/mach-pxa/zylonite_pxa300.c b/arch/arm/mach-pxa/zylonite_pxa300.c index 324fb9daae28..b28d46e081d3 100644 --- a/arch/arm/mach-pxa/zylonite_pxa300.c +++ b/arch/arm/mach-pxa/zylonite_pxa300.c | |||
@@ -16,9 +16,12 @@ | |||
16 | #include <linux/module.h> | 16 | #include <linux/module.h> |
17 | #include <linux/kernel.h> | 17 | #include <linux/kernel.h> |
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <linux/i2c.h> | ||
20 | #include <linux/i2c/pca953x.h> | ||
19 | 21 | ||
20 | #include <asm/gpio.h> | 22 | #include <asm/gpio.h> |
21 | #include <asm/arch/mfp-pxa300.h> | 23 | #include <asm/arch/mfp-pxa300.h> |
24 | #include <asm/arch/i2c.h> | ||
22 | #include <asm/arch/zylonite.h> | 25 | #include <asm/arch/zylonite.h> |
23 | 26 | ||
24 | #include "generic.h" | 27 | #include "generic.h" |
@@ -50,6 +53,7 @@ static mfp_cfg_t common_mfp_cfg[] __initdata = { | |||
50 | GPIO75_LCD_BIAS, | 53 | GPIO75_LCD_BIAS, |
51 | GPIO76_LCD_VSYNC, | 54 | GPIO76_LCD_VSYNC, |
52 | GPIO127_LCD_CS_N, | 55 | GPIO127_LCD_CS_N, |
56 | GPIO20_PWM3_OUT, /* backlight */ | ||
53 | 57 | ||
54 | /* BTUART */ | 58 | /* BTUART */ |
55 | GPIO111_UART2_RTS, | 59 | GPIO111_UART2_RTS, |
@@ -108,6 +112,10 @@ static mfp_cfg_t common_mfp_cfg[] __initdata = { | |||
108 | GPIO12_MMC2_DAT3, | 112 | GPIO12_MMC2_DAT3, |
109 | GPIO13_MMC2_CLK, | 113 | GPIO13_MMC2_CLK, |
110 | GPIO14_MMC2_CMD, | 114 | GPIO14_MMC2_CMD, |
115 | |||
116 | /* Standard I2C */ | ||
117 | GPIO21_I2C_SCL, | ||
118 | GPIO22_I2C_SDA, | ||
111 | }; | 119 | }; |
112 | 120 | ||
113 | static mfp_cfg_t pxa300_mfp_cfg[] __initdata = { | 121 | static mfp_cfg_t pxa300_mfp_cfg[] __initdata = { |
@@ -191,6 +199,39 @@ static void __init zylonite_detect_lcd_panel(void) | |||
191 | pxa3xx_mfp_write(lcd_detect_pins[i], mfpr_save[i]); | 199 | pxa3xx_mfp_write(lcd_detect_pins[i], mfpr_save[i]); |
192 | } | 200 | } |
193 | 201 | ||
202 | #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) | ||
203 | static struct pca953x_platform_data gpio_exp[] = { | ||
204 | [0] = { | ||
205 | .gpio_base = 128, | ||
206 | }, | ||
207 | [1] = { | ||
208 | .gpio_base = 144, | ||
209 | }, | ||
210 | }; | ||
211 | |||
212 | struct i2c_board_info zylonite_i2c_board_info[] = { | ||
213 | { | ||
214 | .type = "pca9539", | ||
215 | .addr = 0x74, | ||
216 | .platform_data = &gpio_exp[0], | ||
217 | .irq = IRQ_GPIO(18), | ||
218 | }, { | ||
219 | .type = "pca9539", | ||
220 | .addr = 0x75, | ||
221 | .platform_data = &gpio_exp[1], | ||
222 | .irq = IRQ_GPIO(19), | ||
223 | }, | ||
224 | }; | ||
225 | |||
226 | static void __init zylonite_init_i2c(void) | ||
227 | { | ||
228 | pxa_set_i2c_info(NULL); | ||
229 | i2c_register_board_info(0, ARRAY_AND_SIZE(zylonite_i2c_board_info)); | ||
230 | } | ||
231 | #else | ||
232 | static inline void zylonite_init_i2c(void) {} | ||
233 | #endif | ||
234 | |||
194 | void __init zylonite_pxa300_init(void) | 235 | void __init zylonite_pxa300_init(void) |
195 | { | 236 | { |
196 | if (cpu_is_pxa300() || cpu_is_pxa310()) { | 237 | if (cpu_is_pxa300() || cpu_is_pxa310()) { |
@@ -200,15 +241,14 @@ void __init zylonite_pxa300_init(void) | |||
200 | /* detect LCD panel */ | 241 | /* detect LCD panel */ |
201 | zylonite_detect_lcd_panel(); | 242 | zylonite_detect_lcd_panel(); |
202 | 243 | ||
203 | /* GPIO pin assignment */ | ||
204 | gpio_backlight = mfp_to_gpio(MFP_PIN_GPIO20); | ||
205 | |||
206 | /* MMC card detect & write protect for controller 0 */ | 244 | /* MMC card detect & write protect for controller 0 */ |
207 | zylonite_mmc_slot[0].gpio_cd = EXT_GPIO(0); | 245 | zylonite_mmc_slot[0].gpio_cd = EXT_GPIO(0); |
208 | zylonite_mmc_slot[0].gpio_wp = EXT_GPIO(2); | 246 | zylonite_mmc_slot[0].gpio_wp = EXT_GPIO(2); |
209 | 247 | ||
210 | /* WM9713 IRQ */ | 248 | /* WM9713 IRQ */ |
211 | wm9713_irq = mfp_to_gpio(MFP_PIN_GPIO26); | 249 | wm9713_irq = mfp_to_gpio(MFP_PIN_GPIO26); |
250 | |||
251 | zylonite_init_i2c(); | ||
212 | } | 252 | } |
213 | 253 | ||
214 | if (cpu_is_pxa300()) { | 254 | if (cpu_is_pxa300()) { |
@@ -224,4 +264,8 @@ void __init zylonite_pxa300_init(void) | |||
224 | zylonite_mmc_slot[2].gpio_cd = EXT_GPIO(30); | 264 | zylonite_mmc_slot[2].gpio_cd = EXT_GPIO(30); |
225 | zylonite_mmc_slot[2].gpio_wp = EXT_GPIO(31); | 265 | zylonite_mmc_slot[2].gpio_wp = EXT_GPIO(31); |
226 | } | 266 | } |
267 | |||
268 | /* GPIOs for Debug LEDs */ | ||
269 | gpio_debug_led1 = EXT_GPIO(25); | ||
270 | gpio_debug_led2 = EXT_GPIO(26); | ||
227 | } | 271 | } |
diff --git a/arch/arm/mach-pxa/zylonite_pxa320.c b/arch/arm/mach-pxa/zylonite_pxa320.c index 193d07903b06..2b7fba7a2921 100644 --- a/arch/arm/mach-pxa/zylonite_pxa320.c +++ b/arch/arm/mach-pxa/zylonite_pxa320.c | |||
@@ -49,6 +49,7 @@ static mfp_cfg_t mfp_cfg[] __initdata = { | |||
49 | GPIO15_2_LCD_LCLK, | 49 | GPIO15_2_LCD_LCLK, |
50 | GPIO16_2_LCD_PCLK, | 50 | GPIO16_2_LCD_PCLK, |
51 | GPIO17_2_LCD_BIAS, | 51 | GPIO17_2_LCD_BIAS, |
52 | GPIO14_PWM3_OUT, /* backlight */ | ||
52 | 53 | ||
53 | /* FFUART */ | 54 | /* FFUART */ |
54 | GPIO41_UART1_RXD | MFP_LPM_EDGE_FALL, | 55 | GPIO41_UART1_RXD | MFP_LPM_EDGE_FALL, |
@@ -115,6 +116,10 @@ static mfp_cfg_t mfp_cfg[] __initdata = { | |||
115 | GPIO27_MMC2_DAT3, | 116 | GPIO27_MMC2_DAT3, |
116 | GPIO28_MMC2_CLK, | 117 | GPIO28_MMC2_CLK, |
117 | GPIO29_MMC2_CMD, | 118 | GPIO29_MMC2_CMD, |
119 | |||
120 | /* Debug LEDs */ | ||
121 | GPIO1_2_GPIO | MFP_LPM_DRIVE_HIGH, | ||
122 | GPIO4_2_GPIO | MFP_LPM_DRIVE_HIGH, | ||
118 | }; | 123 | }; |
119 | 124 | ||
120 | #define NUM_LCD_DETECT_PINS 7 | 125 | #define NUM_LCD_DETECT_PINS 7 |
@@ -187,8 +192,9 @@ void __init zylonite_pxa320_init(void) | |||
187 | zylonite_detect_lcd_panel(); | 192 | zylonite_detect_lcd_panel(); |
188 | 193 | ||
189 | /* GPIO pin assignment */ | 194 | /* GPIO pin assignment */ |
190 | gpio_backlight = mfp_to_gpio(MFP_PIN_GPIO14); | ||
191 | gpio_eth_irq = mfp_to_gpio(MFP_PIN_GPIO9); | 195 | gpio_eth_irq = mfp_to_gpio(MFP_PIN_GPIO9); |
196 | gpio_debug_led1 = mfp_to_gpio(MFP_PIN_GPIO1_2); | ||
197 | gpio_debug_led2 = mfp_to_gpio(MFP_PIN_GPIO4_2); | ||
192 | 198 | ||
193 | /* MMC card detect & write protect for controller 0 */ | 199 | /* MMC card detect & write protect for controller 0 */ |
194 | zylonite_mmc_slot[0].gpio_cd = mfp_to_gpio(MFP_PIN_GPIO1); | 200 | zylonite_mmc_slot[0].gpio_cd = mfp_to_gpio(MFP_PIN_GPIO1); |
diff --git a/arch/arm/mach-sa1100/clock.c b/arch/arm/mach-sa1100/clock.c index fc97fe57ee6f..b5809c51d13f 100644 --- a/arch/arm/mach-sa1100/clock.c +++ b/arch/arm/mach-sa1100/clock.c | |||
@@ -103,7 +103,7 @@ static void clk_gpio27_disable(void) | |||
103 | } | 103 | } |
104 | 104 | ||
105 | static struct clk clk_gpio27 = { | 105 | static struct clk clk_gpio27 = { |
106 | .name = "GPIO27_CLK", | 106 | .name = "SA1111_CLK", |
107 | .rate = 3686400, | 107 | .rate = 3686400, |
108 | .enable = clk_gpio27_enable, | 108 | .enable = clk_gpio27_enable, |
109 | .disable = clk_gpio27_disable, | 109 | .disable = clk_gpio27_disable, |
diff --git a/arch/arm/mm/Makefile b/arch/arm/mm/Makefile index f64b92557b11..2e27a8c8372b 100644 --- a/arch/arm/mm/Makefile +++ b/arch/arm/mm/Makefile | |||
@@ -76,3 +76,5 @@ obj-$(CONFIG_CPU_V7) += proc-v7.o | |||
76 | 76 | ||
77 | obj-$(CONFIG_CACHE_FEROCEON_L2) += cache-feroceon-l2.o | 77 | obj-$(CONFIG_CACHE_FEROCEON_L2) += cache-feroceon-l2.o |
78 | obj-$(CONFIG_CACHE_L2X0) += cache-l2x0.o | 78 | obj-$(CONFIG_CACHE_L2X0) += cache-l2x0.o |
79 | obj-$(CONFIG_CACHE_XSC3L2) += cache-xsc3l2.o | ||
80 | |||
diff --git a/arch/arm/tools/mach-types b/arch/arm/tools/mach-types index 0be5630ff568..8b8f564c3aa2 100644 --- a/arch/arm/tools/mach-types +++ b/arch/arm/tools/mach-types | |||
@@ -12,7 +12,7 @@ | |||
12 | # | 12 | # |
13 | # http://www.arm.linux.org.uk/developer/machines/?action=new | 13 | # http://www.arm.linux.org.uk/developer/machines/?action=new |
14 | # | 14 | # |
15 | # Last update: Mon Jul 7 16:25:39 2008 | 15 | # Last update: Sun Jul 13 12:04:05 2008 |
16 | # | 16 | # |
17 | # machine_is_xxx CONFIG_xxxx MACH_TYPE_xxx number | 17 | # machine_is_xxx CONFIG_xxxx MACH_TYPE_xxx number |
18 | # | 18 | # |
@@ -1812,3 +1812,11 @@ jade MACH_JADE JADE 1821 | |||
1812 | ks8695_softplc MACH_KS8695_SOFTPLC KS8695_SOFTPLC 1822 | 1812 | ks8695_softplc MACH_KS8695_SOFTPLC KS8695_SOFTPLC 1822 |
1813 | gprisc4 MACH_GPRISC4 GPRISC4 1823 | 1813 | gprisc4 MACH_GPRISC4 GPRISC4 1823 |
1814 | stamp9260 MACH_STAMP9260 STAMP9260 1824 | 1814 | stamp9260 MACH_STAMP9260 STAMP9260 1824 |
1815 | smdk6430 MACH_SMDK6430 SMDK6430 1825 | ||
1816 | smdkc100 MACH_SMDKC100 SMDKC100 1826 | ||
1817 | tavorevb MACH_TAVOREVB TAVOREVB 1827 | ||
1818 | saar MACH_SAAR SAAR 1828 | ||
1819 | deister_eyecam MACH_DEISTER_EYECAM DEISTER_EYECAM 1829 | ||
1820 | at91sam9m10ek MACH_AT91SAM9M10EK AT91SAM9M10EK 1830 | ||
1821 | linkstation_produo MACH_LINKSTATION_PRODUO LINKSTATION_PRODUO 1831 | ||
1822 | hit_b0 MACH_HIT_B0 HIT_B0 1832 | ||
diff --git a/arch/sh/boards/renesas/migor/setup.c b/arch/sh/boards/renesas/migor/setup.c index 01af44245b57..963c99322095 100644 --- a/arch/sh/boards/renesas/migor/setup.c +++ b/arch/sh/boards/renesas/migor/setup.c | |||
@@ -30,7 +30,6 @@ | |||
30 | 30 | ||
31 | static struct smc91x_platdata smc91x_info = { | 31 | static struct smc91x_platdata smc91x_info = { |
32 | .flags = SMC91X_USE_16BIT, | 32 | .flags = SMC91X_USE_16BIT, |
33 | .irq_flags = IRQF_TRIGGER_HIGH, | ||
34 | }; | 33 | }; |
35 | 34 | ||
36 | static struct resource smc91x_eth_resources[] = { | 35 | static struct resource smc91x_eth_resources[] = { |
@@ -42,7 +41,7 @@ static struct resource smc91x_eth_resources[] = { | |||
42 | }, | 41 | }, |
43 | [1] = { | 42 | [1] = { |
44 | .start = 32, /* IRQ0 */ | 43 | .start = 32, /* IRQ0 */ |
45 | .flags = IORESOURCE_IRQ, | 44 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL, |
46 | }, | 45 | }, |
47 | }; | 46 | }; |
48 | 47 | ||
diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c index eb69fbadc9cb..dde6ce963a19 100644 --- a/drivers/i2c/busses/i2c-pxa.c +++ b/drivers/i2c/busses/i2c-pxa.c | |||
@@ -39,7 +39,6 @@ | |||
39 | #include <asm/io.h> | 39 | #include <asm/io.h> |
40 | #include <asm/arch/i2c.h> | 40 | #include <asm/arch/i2c.h> |
41 | #include <asm/arch/pxa-regs.h> | 41 | #include <asm/arch/pxa-regs.h> |
42 | #include <asm/arch/pxa2xx-gpio.h> | ||
43 | 42 | ||
44 | struct pxa_i2c { | 43 | struct pxa_i2c { |
45 | spinlock_t lock; | 44 | spinlock_t lock; |
@@ -945,32 +944,6 @@ static const struct i2c_algorithm i2c_pxa_pio_algorithm = { | |||
945 | .functionality = i2c_pxa_functionality, | 944 | .functionality = i2c_pxa_functionality, |
946 | }; | 945 | }; |
947 | 946 | ||
948 | static void i2c_pxa_enable(struct platform_device *dev) | ||
949 | { | ||
950 | if (cpu_is_pxa27x()) { | ||
951 | switch (dev->id) { | ||
952 | case 0: | ||
953 | pxa_gpio_mode(GPIO117_I2CSCL_MD); | ||
954 | pxa_gpio_mode(GPIO118_I2CSDA_MD); | ||
955 | break; | ||
956 | case 1: | ||
957 | local_irq_disable(); | ||
958 | PCFR |= PCFR_PI2CEN; | ||
959 | local_irq_enable(); | ||
960 | break; | ||
961 | } | ||
962 | } | ||
963 | } | ||
964 | |||
965 | static void i2c_pxa_disable(struct platform_device *dev) | ||
966 | { | ||
967 | if (cpu_is_pxa27x() && dev->id == 1) { | ||
968 | local_irq_disable(); | ||
969 | PCFR &= ~PCFR_PI2CEN; | ||
970 | local_irq_enable(); | ||
971 | } | ||
972 | } | ||
973 | |||
974 | #define res_len(r) ((r)->end - (r)->start + 1) | 947 | #define res_len(r) ((r)->end - (r)->start + 1) |
975 | static int i2c_pxa_probe(struct platform_device *dev) | 948 | static int i2c_pxa_probe(struct platform_device *dev) |
976 | { | 949 | { |
@@ -1036,7 +1009,6 @@ static int i2c_pxa_probe(struct platform_device *dev) | |||
1036 | #endif | 1009 | #endif |
1037 | 1010 | ||
1038 | clk_enable(i2c->clk); | 1011 | clk_enable(i2c->clk); |
1039 | i2c_pxa_enable(dev); | ||
1040 | 1012 | ||
1041 | if (plat) { | 1013 | if (plat) { |
1042 | i2c->adap.class = plat->class; | 1014 | i2c->adap.class = plat->class; |
@@ -1080,7 +1052,6 @@ eadapt: | |||
1080 | free_irq(irq, i2c); | 1052 | free_irq(irq, i2c); |
1081 | ereqirq: | 1053 | ereqirq: |
1082 | clk_disable(i2c->clk); | 1054 | clk_disable(i2c->clk); |
1083 | i2c_pxa_disable(dev); | ||
1084 | iounmap(i2c->reg_base); | 1055 | iounmap(i2c->reg_base); |
1085 | eremap: | 1056 | eremap: |
1086 | clk_put(i2c->clk); | 1057 | clk_put(i2c->clk); |
@@ -1103,7 +1074,6 @@ static int __exit i2c_pxa_remove(struct platform_device *dev) | |||
1103 | 1074 | ||
1104 | clk_disable(i2c->clk); | 1075 | clk_disable(i2c->clk); |
1105 | clk_put(i2c->clk); | 1076 | clk_put(i2c->clk); |
1106 | i2c_pxa_disable(dev); | ||
1107 | 1077 | ||
1108 | iounmap(i2c->reg_base); | 1078 | iounmap(i2c->reg_base); |
1109 | release_mem_region(i2c->iobase, i2c->iosize); | 1079 | release_mem_region(i2c->iobase, i2c->iosize); |
diff --git a/drivers/input/keyboard/tosakbd.c b/drivers/input/keyboard/tosakbd.c index 94e444b4ee15..b12b7ee4b6aa 100644 --- a/drivers/input/keyboard/tosakbd.c +++ b/drivers/input/keyboard/tosakbd.c | |||
@@ -215,8 +215,6 @@ static int tosakbd_suspend(struct platform_device *dev, pm_message_t state) | |||
215 | unsigned long flags; | 215 | unsigned long flags; |
216 | 216 | ||
217 | spin_lock_irqsave(&tosakbd->lock, flags); | 217 | spin_lock_irqsave(&tosakbd->lock, flags); |
218 | PGSR1 = (PGSR1 & ~TOSA_GPIO_LOW_STROBE_BIT); | ||
219 | PGSR2 = (PGSR2 & ~TOSA_GPIO_HIGH_STROBE_BIT); | ||
220 | tosakbd->suspended = 1; | 218 | tosakbd->suspended = 1; |
221 | spin_unlock_irqrestore(&tosakbd->lock, flags); | 219 | spin_unlock_irqrestore(&tosakbd->lock, flags); |
222 | 220 | ||
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index ae96bd6242f2..0f6a885a6c19 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig | |||
@@ -5,6 +5,10 @@ | |||
5 | menu "Multifunction device drivers" | 5 | menu "Multifunction device drivers" |
6 | depends on HAS_IOMEM | 6 | depends on HAS_IOMEM |
7 | 7 | ||
8 | config MFD_CORE | ||
9 | tristate | ||
10 | default n | ||
11 | |||
8 | config MFD_SM501 | 12 | config MFD_SM501 |
9 | tristate "Support for Silicon Motion SM501" | 13 | tristate "Support for Silicon Motion SM501" |
10 | ---help--- | 14 | ---help--- |
@@ -38,6 +42,13 @@ config HTC_PASIC3 | |||
38 | HTC Magician devices, respectively. Actual functionality is | 42 | HTC Magician devices, respectively. Actual functionality is |
39 | handled by the leds-pasic3 and ds1wm drivers. | 43 | handled by the leds-pasic3 and ds1wm drivers. |
40 | 44 | ||
45 | config MFD_TC6393XB | ||
46 | bool "Support Toshiba TC6393XB" | ||
47 | depends on HAVE_GPIO_LIB | ||
48 | select MFD_CORE | ||
49 | help | ||
50 | Support for Toshiba Mobile IO Controller TC6393XB | ||
51 | |||
41 | endmenu | 52 | endmenu |
42 | 53 | ||
43 | menu "Multimedia Capabilities Port drivers" | 54 | menu "Multimedia Capabilities Port drivers" |
diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile index eef4e26807df..33daa2f45dd8 100644 --- a/drivers/mfd/Makefile +++ b/drivers/mfd/Makefile | |||
@@ -8,6 +8,10 @@ obj-$(CONFIG_MFD_ASIC3) += asic3.o | |||
8 | obj-$(CONFIG_HTC_EGPIO) += htc-egpio.o | 8 | obj-$(CONFIG_HTC_EGPIO) += htc-egpio.o |
9 | obj-$(CONFIG_HTC_PASIC3) += htc-pasic3.o | 9 | obj-$(CONFIG_HTC_PASIC3) += htc-pasic3.o |
10 | 10 | ||
11 | obj-$(CONFIG_MFD_TC6393XB) += tc6393xb.o | ||
12 | |||
13 | obj-$(CONFIG_MFD_CORE) += mfd-core.o | ||
14 | |||
11 | obj-$(CONFIG_MCP) += mcp-core.o | 15 | obj-$(CONFIG_MCP) += mcp-core.o |
12 | obj-$(CONFIG_MCP_SA11X0) += mcp-sa11x0.o | 16 | obj-$(CONFIG_MCP_SA11X0) += mcp-sa11x0.o |
13 | obj-$(CONFIG_MCP_UCB1200) += ucb1x00-core.o | 17 | obj-$(CONFIG_MCP_UCB1200) += ucb1x00-core.o |
diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c new file mode 100644 index 000000000000..d7d88ce053a6 --- /dev/null +++ b/drivers/mfd/mfd-core.c | |||
@@ -0,0 +1,114 @@ | |||
1 | /* | ||
2 | * drivers/mfd/mfd-core.c | ||
3 | * | ||
4 | * core MFD support | ||
5 | * Copyright (c) 2006 Ian Molton | ||
6 | * Copyright (c) 2007,2008 Dmitry Baryshkov | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | * | ||
12 | */ | ||
13 | |||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/platform_device.h> | ||
16 | #include <linux/mfd/core.h> | ||
17 | |||
18 | static int mfd_add_device(struct platform_device *parent, | ||
19 | const struct mfd_cell *cell, | ||
20 | struct resource *mem_base, | ||
21 | int irq_base) | ||
22 | { | ||
23 | struct resource res[cell->num_resources]; | ||
24 | struct platform_device *pdev; | ||
25 | int ret = -ENOMEM; | ||
26 | int r; | ||
27 | |||
28 | pdev = platform_device_alloc(cell->name, parent->id); | ||
29 | if (!pdev) | ||
30 | goto fail_alloc; | ||
31 | |||
32 | pdev->dev.parent = &parent->dev; | ||
33 | |||
34 | ret = platform_device_add_data(pdev, | ||
35 | cell, sizeof(struct mfd_cell)); | ||
36 | if (ret) | ||
37 | goto fail_device; | ||
38 | |||
39 | memzero(res, sizeof(res)); | ||
40 | for (r = 0; r < cell->num_resources; r++) { | ||
41 | res[r].name = cell->resources[r].name; | ||
42 | res[r].flags = cell->resources[r].flags; | ||
43 | |||
44 | /* Find out base to use */ | ||
45 | if (cell->resources[r].flags & IORESOURCE_MEM) { | ||
46 | res[r].parent = mem_base; | ||
47 | res[r].start = mem_base->start + | ||
48 | cell->resources[r].start; | ||
49 | res[r].end = mem_base->start + | ||
50 | cell->resources[r].end; | ||
51 | } else if (cell->resources[r].flags & IORESOURCE_IRQ) { | ||
52 | res[r].start = irq_base + | ||
53 | cell->resources[r].start; | ||
54 | res[r].end = irq_base + | ||
55 | cell->resources[r].end; | ||
56 | } else { | ||
57 | res[r].parent = cell->resources[r].parent; | ||
58 | res[r].start = cell->resources[r].start; | ||
59 | res[r].end = cell->resources[r].end; | ||
60 | } | ||
61 | } | ||
62 | |||
63 | platform_device_add_resources(pdev, res, cell->num_resources); | ||
64 | |||
65 | ret = platform_device_add(pdev); | ||
66 | if (ret) | ||
67 | goto fail_device; | ||
68 | |||
69 | return 0; | ||
70 | |||
71 | /* platform_device_del(pdev); */ | ||
72 | fail_device: | ||
73 | platform_device_put(pdev); | ||
74 | fail_alloc: | ||
75 | return ret; | ||
76 | } | ||
77 | |||
78 | int mfd_add_devices( | ||
79 | struct platform_device *parent, | ||
80 | const struct mfd_cell *cells, int n_devs, | ||
81 | struct resource *mem_base, | ||
82 | int irq_base) | ||
83 | { | ||
84 | int i; | ||
85 | int ret = 0; | ||
86 | |||
87 | for (i = 0; i < n_devs; i++) { | ||
88 | ret = mfd_add_device(parent, cells + i, mem_base, irq_base); | ||
89 | if (ret) | ||
90 | break; | ||
91 | } | ||
92 | |||
93 | if (ret) | ||
94 | mfd_remove_devices(parent); | ||
95 | |||
96 | return ret; | ||
97 | } | ||
98 | EXPORT_SYMBOL(mfd_add_devices); | ||
99 | |||
100 | static int mfd_remove_devices_fn(struct device *dev, void *unused) | ||
101 | { | ||
102 | platform_device_unregister( | ||
103 | container_of(dev, struct platform_device, dev)); | ||
104 | return 0; | ||
105 | } | ||
106 | |||
107 | void mfd_remove_devices(struct platform_device *parent) | ||
108 | { | ||
109 | device_for_each_child(&parent->dev, NULL, mfd_remove_devices_fn); | ||
110 | } | ||
111 | EXPORT_SYMBOL(mfd_remove_devices); | ||
112 | |||
113 | MODULE_LICENSE("GPL"); | ||
114 | MODULE_AUTHOR("Ian Molton, Dmitry Baryshkov"); | ||
diff --git a/drivers/mfd/tc6393xb.c b/drivers/mfd/tc6393xb.c new file mode 100644 index 000000000000..2d87501b6fd4 --- /dev/null +++ b/drivers/mfd/tc6393xb.c | |||
@@ -0,0 +1,600 @@ | |||
1 | /* | ||
2 | * Toshiba TC6393XB SoC support | ||
3 | * | ||
4 | * Copyright(c) 2005-2006 Chris Humbert | ||
5 | * Copyright(c) 2005 Dirk Opfer | ||
6 | * Copyright(c) 2005 Ian Molton <spyro@f2s.com> | ||
7 | * Copyright(c) 2007 Dmitry Baryshkov | ||
8 | * | ||
9 | * Based on code written by Sharp/Lineo for 2.4 kernels | ||
10 | * Based on locomo.c | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or modify | ||
13 | * it under the terms of the GNU General Public License version 2 as | ||
14 | * published by the Free Software Foundation. | ||
15 | */ | ||
16 | |||
17 | #include <linux/kernel.h> | ||
18 | #include <linux/module.h> | ||
19 | #include <linux/io.h> | ||
20 | #include <linux/irq.h> | ||
21 | #include <linux/platform_device.h> | ||
22 | #include <linux/fb.h> | ||
23 | #include <linux/clk.h> | ||
24 | #include <linux/mfd/core.h> | ||
25 | #include <linux/mfd/tmio.h> | ||
26 | #include <linux/mfd/tc6393xb.h> | ||
27 | #include <linux/gpio.h> | ||
28 | |||
29 | #define SCR_REVID 0x08 /* b Revision ID */ | ||
30 | #define SCR_ISR 0x50 /* b Interrupt Status */ | ||
31 | #define SCR_IMR 0x52 /* b Interrupt Mask */ | ||
32 | #define SCR_IRR 0x54 /* b Interrupt Routing */ | ||
33 | #define SCR_GPER 0x60 /* w GP Enable */ | ||
34 | #define SCR_GPI_SR(i) (0x64 + (i)) /* b3 GPI Status */ | ||
35 | #define SCR_GPI_IMR(i) (0x68 + (i)) /* b3 GPI INT Mask */ | ||
36 | #define SCR_GPI_EDER(i) (0x6c + (i)) /* b3 GPI Edge Detect Enable */ | ||
37 | #define SCR_GPI_LIR(i) (0x70 + (i)) /* b3 GPI Level Invert */ | ||
38 | #define SCR_GPO_DSR(i) (0x78 + (i)) /* b3 GPO Data Set */ | ||
39 | #define SCR_GPO_DOECR(i) (0x7c + (i)) /* b3 GPO Data OE Control */ | ||
40 | #define SCR_GP_IARCR(i) (0x80 + (i)) /* b3 GP Internal Active Register Control */ | ||
41 | #define SCR_GP_IARLCR(i) (0x84 + (i)) /* b3 GP INTERNAL Active Register Level Control */ | ||
42 | #define SCR_GPI_BCR(i) (0x88 + (i)) /* b3 GPI Buffer Control */ | ||
43 | #define SCR_GPA_IARCR 0x8c /* w GPa Internal Active Register Control */ | ||
44 | #define SCR_GPA_IARLCR 0x90 /* w GPa Internal Active Register Level Control */ | ||
45 | #define SCR_GPA_BCR 0x94 /* w GPa Buffer Control */ | ||
46 | #define SCR_CCR 0x98 /* w Clock Control */ | ||
47 | #define SCR_PLL2CR 0x9a /* w PLL2 Control */ | ||
48 | #define SCR_PLL1CR 0x9c /* l PLL1 Control */ | ||
49 | #define SCR_DIARCR 0xa0 /* b Device Internal Active Register Control */ | ||
50 | #define SCR_DBOCR 0xa1 /* b Device Buffer Off Control */ | ||
51 | #define SCR_FER 0xe0 /* b Function Enable */ | ||
52 | #define SCR_MCR 0xe4 /* w Mode Control */ | ||
53 | #define SCR_CONFIG 0xfc /* b Configuration Control */ | ||
54 | #define SCR_DEBUG 0xff /* b Debug */ | ||
55 | |||
56 | #define SCR_CCR_CK32K BIT(0) | ||
57 | #define SCR_CCR_USBCK BIT(1) | ||
58 | #define SCR_CCR_UNK1 BIT(4) | ||
59 | #define SCR_CCR_MCLK_MASK (7 << 8) | ||
60 | #define SCR_CCR_MCLK_OFF (0 << 8) | ||
61 | #define SCR_CCR_MCLK_12 (1 << 8) | ||
62 | #define SCR_CCR_MCLK_24 (2 << 8) | ||
63 | #define SCR_CCR_MCLK_48 (3 << 8) | ||
64 | #define SCR_CCR_HCLK_MASK (3 << 12) | ||
65 | #define SCR_CCR_HCLK_24 (0 << 12) | ||
66 | #define SCR_CCR_HCLK_48 (1 << 12) | ||
67 | |||
68 | #define SCR_FER_USBEN BIT(0) /* USB host enable */ | ||
69 | #define SCR_FER_LCDCVEN BIT(1) /* polysilicon TFT enable */ | ||
70 | #define SCR_FER_SLCDEN BIT(2) /* SLCD enable */ | ||
71 | |||
72 | #define SCR_MCR_RDY_MASK (3 << 0) | ||
73 | #define SCR_MCR_RDY_OPENDRAIN (0 << 0) | ||
74 | #define SCR_MCR_RDY_TRISTATE (1 << 0) | ||
75 | #define SCR_MCR_RDY_PUSHPULL (2 << 0) | ||
76 | #define SCR_MCR_RDY_UNK BIT(2) | ||
77 | #define SCR_MCR_RDY_EN BIT(3) | ||
78 | #define SCR_MCR_INT_MASK (3 << 4) | ||
79 | #define SCR_MCR_INT_OPENDRAIN (0 << 4) | ||
80 | #define SCR_MCR_INT_TRISTATE (1 << 4) | ||
81 | #define SCR_MCR_INT_PUSHPULL (2 << 4) | ||
82 | #define SCR_MCR_INT_UNK BIT(6) | ||
83 | #define SCR_MCR_INT_EN BIT(7) | ||
84 | /* bits 8 - 16 are unknown */ | ||
85 | |||
86 | #define TC_GPIO_BIT(i) (1 << (i & 0x7)) | ||
87 | |||
88 | /*--------------------------------------------------------------------------*/ | ||
89 | |||
90 | struct tc6393xb { | ||
91 | void __iomem *scr; | ||
92 | |||
93 | struct gpio_chip gpio; | ||
94 | |||
95 | struct clk *clk; /* 3,6 Mhz */ | ||
96 | |||
97 | spinlock_t lock; /* protects RMW cycles */ | ||
98 | |||
99 | struct { | ||
100 | u8 fer; | ||
101 | u16 ccr; | ||
102 | u8 gpi_bcr[3]; | ||
103 | u8 gpo_dsr[3]; | ||
104 | u8 gpo_doecr[3]; | ||
105 | } suspend_state; | ||
106 | |||
107 | struct resource rscr; | ||
108 | struct resource *iomem; | ||
109 | int irq; | ||
110 | int irq_base; | ||
111 | }; | ||
112 | |||
113 | enum { | ||
114 | TC6393XB_CELL_NAND, | ||
115 | }; | ||
116 | |||
117 | /*--------------------------------------------------------------------------*/ | ||
118 | |||
119 | static int tc6393xb_nand_enable(struct platform_device *nand) | ||
120 | { | ||
121 | struct platform_device *dev = to_platform_device(nand->dev.parent); | ||
122 | struct tc6393xb *tc6393xb = platform_get_drvdata(dev); | ||
123 | unsigned long flags; | ||
124 | |||
125 | spin_lock_irqsave(&tc6393xb->lock, flags); | ||
126 | |||
127 | /* SMD buffer on */ | ||
128 | dev_dbg(&dev->dev, "SMD buffer on\n"); | ||
129 | iowrite8(0xff, tc6393xb->scr + SCR_GPI_BCR(1)); | ||
130 | |||
131 | spin_unlock_irqrestore(&tc6393xb->lock, flags); | ||
132 | |||
133 | return 0; | ||
134 | } | ||
135 | |||
136 | static struct resource __devinitdata tc6393xb_nand_resources[] = { | ||
137 | { | ||
138 | .name = TMIO_NAND_CONFIG, | ||
139 | .start = 0x0100, | ||
140 | .end = 0x01ff, | ||
141 | .flags = IORESOURCE_MEM, | ||
142 | }, | ||
143 | { | ||
144 | .name = TMIO_NAND_CONTROL, | ||
145 | .start = 0x1000, | ||
146 | .end = 0x1007, | ||
147 | .flags = IORESOURCE_MEM, | ||
148 | }, | ||
149 | { | ||
150 | .name = TMIO_NAND_IRQ, | ||
151 | .start = IRQ_TC6393_NAND, | ||
152 | .end = IRQ_TC6393_NAND, | ||
153 | .flags = IORESOURCE_IRQ, | ||
154 | }, | ||
155 | }; | ||
156 | |||
157 | static struct mfd_cell __devinitdata tc6393xb_cells[] = { | ||
158 | [TC6393XB_CELL_NAND] = { | ||
159 | .name = "tmio-nand", | ||
160 | .enable = tc6393xb_nand_enable, | ||
161 | .num_resources = ARRAY_SIZE(tc6393xb_nand_resources), | ||
162 | .resources = tc6393xb_nand_resources, | ||
163 | }, | ||
164 | }; | ||
165 | |||
166 | /*--------------------------------------------------------------------------*/ | ||
167 | |||
168 | static int tc6393xb_gpio_get(struct gpio_chip *chip, | ||
169 | unsigned offset) | ||
170 | { | ||
171 | struct tc6393xb *tc6393xb = container_of(chip, struct tc6393xb, gpio); | ||
172 | |||
173 | /* XXX: does dsr also represent inputs? */ | ||
174 | return ioread8(tc6393xb->scr + SCR_GPO_DSR(offset / 8)) | ||
175 | & TC_GPIO_BIT(offset); | ||
176 | } | ||
177 | |||
178 | static void __tc6393xb_gpio_set(struct gpio_chip *chip, | ||
179 | unsigned offset, int value) | ||
180 | { | ||
181 | struct tc6393xb *tc6393xb = container_of(chip, struct tc6393xb, gpio); | ||
182 | u8 dsr; | ||
183 | |||
184 | dsr = ioread8(tc6393xb->scr + SCR_GPO_DSR(offset / 8)); | ||
185 | if (value) | ||
186 | dsr |= TC_GPIO_BIT(offset); | ||
187 | else | ||
188 | dsr &= ~TC_GPIO_BIT(offset); | ||
189 | |||
190 | iowrite8(dsr, tc6393xb->scr + SCR_GPO_DSR(offset / 8)); | ||
191 | } | ||
192 | |||
193 | static void tc6393xb_gpio_set(struct gpio_chip *chip, | ||
194 | unsigned offset, int value) | ||
195 | { | ||
196 | struct tc6393xb *tc6393xb = container_of(chip, struct tc6393xb, gpio); | ||
197 | unsigned long flags; | ||
198 | |||
199 | spin_lock_irqsave(&tc6393xb->lock, flags); | ||
200 | |||
201 | __tc6393xb_gpio_set(chip, offset, value); | ||
202 | |||
203 | spin_unlock_irqrestore(&tc6393xb->lock, flags); | ||
204 | } | ||
205 | |||
206 | static int tc6393xb_gpio_direction_input(struct gpio_chip *chip, | ||
207 | unsigned offset) | ||
208 | { | ||
209 | struct tc6393xb *tc6393xb = container_of(chip, struct tc6393xb, gpio); | ||
210 | unsigned long flags; | ||
211 | u8 doecr; | ||
212 | |||
213 | spin_lock_irqsave(&tc6393xb->lock, flags); | ||
214 | |||
215 | doecr = ioread8(tc6393xb->scr + SCR_GPO_DOECR(offset / 8)); | ||
216 | doecr &= ~TC_GPIO_BIT(offset); | ||
217 | iowrite8(doecr, tc6393xb->scr + SCR_GPO_DOECR(offset / 8)); | ||
218 | |||
219 | spin_unlock_irqrestore(&tc6393xb->lock, flags); | ||
220 | |||
221 | return 0; | ||
222 | } | ||
223 | |||
224 | static int tc6393xb_gpio_direction_output(struct gpio_chip *chip, | ||
225 | unsigned offset, int value) | ||
226 | { | ||
227 | struct tc6393xb *tc6393xb = container_of(chip, struct tc6393xb, gpio); | ||
228 | unsigned long flags; | ||
229 | u8 doecr; | ||
230 | |||
231 | spin_lock_irqsave(&tc6393xb->lock, flags); | ||
232 | |||
233 | __tc6393xb_gpio_set(chip, offset, value); | ||
234 | |||
235 | doecr = ioread8(tc6393xb->scr + SCR_GPO_DOECR(offset / 8)); | ||
236 | doecr |= TC_GPIO_BIT(offset); | ||
237 | iowrite8(doecr, tc6393xb->scr + SCR_GPO_DOECR(offset / 8)); | ||
238 | |||
239 | spin_unlock_irqrestore(&tc6393xb->lock, flags); | ||
240 | |||
241 | return 0; | ||
242 | } | ||
243 | |||
244 | static int tc6393xb_register_gpio(struct tc6393xb *tc6393xb, int gpio_base) | ||
245 | { | ||
246 | tc6393xb->gpio.label = "tc6393xb"; | ||
247 | tc6393xb->gpio.base = gpio_base; | ||
248 | tc6393xb->gpio.ngpio = 16; | ||
249 | tc6393xb->gpio.set = tc6393xb_gpio_set; | ||
250 | tc6393xb->gpio.get = tc6393xb_gpio_get; | ||
251 | tc6393xb->gpio.direction_input = tc6393xb_gpio_direction_input; | ||
252 | tc6393xb->gpio.direction_output = tc6393xb_gpio_direction_output; | ||
253 | |||
254 | return gpiochip_add(&tc6393xb->gpio); | ||
255 | } | ||
256 | |||
257 | /*--------------------------------------------------------------------------*/ | ||
258 | |||
259 | static void | ||
260 | tc6393xb_irq(unsigned int irq, struct irq_desc *desc) | ||
261 | { | ||
262 | struct tc6393xb *tc6393xb = get_irq_data(irq); | ||
263 | unsigned int isr; | ||
264 | unsigned int i, irq_base; | ||
265 | |||
266 | irq_base = tc6393xb->irq_base; | ||
267 | |||
268 | while ((isr = ioread8(tc6393xb->scr + SCR_ISR) & | ||
269 | ~ioread8(tc6393xb->scr + SCR_IMR))) | ||
270 | for (i = 0; i < TC6393XB_NR_IRQS; i++) { | ||
271 | if (isr & (1 << i)) | ||
272 | generic_handle_irq(irq_base + i); | ||
273 | } | ||
274 | } | ||
275 | |||
276 | static void tc6393xb_irq_ack(unsigned int irq) | ||
277 | { | ||
278 | } | ||
279 | |||
280 | static void tc6393xb_irq_mask(unsigned int irq) | ||
281 | { | ||
282 | struct tc6393xb *tc6393xb = get_irq_chip_data(irq); | ||
283 | unsigned long flags; | ||
284 | u8 imr; | ||
285 | |||
286 | spin_lock_irqsave(&tc6393xb->lock, flags); | ||
287 | imr = ioread8(tc6393xb->scr + SCR_IMR); | ||
288 | imr |= 1 << (irq - tc6393xb->irq_base); | ||
289 | iowrite8(imr, tc6393xb->scr + SCR_IMR); | ||
290 | spin_unlock_irqrestore(&tc6393xb->lock, flags); | ||
291 | } | ||
292 | |||
293 | static void tc6393xb_irq_unmask(unsigned int irq) | ||
294 | { | ||
295 | struct tc6393xb *tc6393xb = get_irq_chip_data(irq); | ||
296 | unsigned long flags; | ||
297 | u8 imr; | ||
298 | |||
299 | spin_lock_irqsave(&tc6393xb->lock, flags); | ||
300 | imr = ioread8(tc6393xb->scr + SCR_IMR); | ||
301 | imr &= ~(1 << (irq - tc6393xb->irq_base)); | ||
302 | iowrite8(imr, tc6393xb->scr + SCR_IMR); | ||
303 | spin_unlock_irqrestore(&tc6393xb->lock, flags); | ||
304 | } | ||
305 | |||
306 | static struct irq_chip tc6393xb_chip = { | ||
307 | .name = "tc6393xb", | ||
308 | .ack = tc6393xb_irq_ack, | ||
309 | .mask = tc6393xb_irq_mask, | ||
310 | .unmask = tc6393xb_irq_unmask, | ||
311 | }; | ||
312 | |||
313 | static void tc6393xb_attach_irq(struct platform_device *dev) | ||
314 | { | ||
315 | struct tc6393xb *tc6393xb = platform_get_drvdata(dev); | ||
316 | unsigned int irq, irq_base; | ||
317 | |||
318 | irq_base = tc6393xb->irq_base; | ||
319 | |||
320 | for (irq = irq_base; irq < irq_base + TC6393XB_NR_IRQS; irq++) { | ||
321 | set_irq_chip(irq, &tc6393xb_chip); | ||
322 | set_irq_chip_data(irq, tc6393xb); | ||
323 | set_irq_handler(irq, handle_edge_irq); | ||
324 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | ||
325 | } | ||
326 | |||
327 | set_irq_type(tc6393xb->irq, IRQT_FALLING); | ||
328 | set_irq_data(tc6393xb->irq, tc6393xb); | ||
329 | set_irq_chained_handler(tc6393xb->irq, tc6393xb_irq); | ||
330 | } | ||
331 | |||
332 | static void tc6393xb_detach_irq(struct platform_device *dev) | ||
333 | { | ||
334 | struct tc6393xb *tc6393xb = platform_get_drvdata(dev); | ||
335 | unsigned int irq, irq_base; | ||
336 | |||
337 | set_irq_chained_handler(tc6393xb->irq, NULL); | ||
338 | set_irq_data(tc6393xb->irq, NULL); | ||
339 | |||
340 | irq_base = tc6393xb->irq_base; | ||
341 | |||
342 | for (irq = irq_base; irq < irq_base + TC6393XB_NR_IRQS; irq++) { | ||
343 | set_irq_flags(irq, 0); | ||
344 | set_irq_chip(irq, NULL); | ||
345 | set_irq_chip_data(irq, NULL); | ||
346 | } | ||
347 | } | ||
348 | |||
349 | /*--------------------------------------------------------------------------*/ | ||
350 | |||
351 | static int tc6393xb_hw_init(struct platform_device *dev) | ||
352 | { | ||
353 | struct tc6393xb_platform_data *tcpd = dev->dev.platform_data; | ||
354 | struct tc6393xb *tc6393xb = platform_get_drvdata(dev); | ||
355 | int i; | ||
356 | |||
357 | iowrite8(tc6393xb->suspend_state.fer, tc6393xb->scr + SCR_FER); | ||
358 | iowrite16(tcpd->scr_pll2cr, tc6393xb->scr + SCR_PLL2CR); | ||
359 | iowrite16(tc6393xb->suspend_state.ccr, tc6393xb->scr + SCR_CCR); | ||
360 | iowrite16(SCR_MCR_RDY_OPENDRAIN | SCR_MCR_RDY_UNK | SCR_MCR_RDY_EN | | ||
361 | SCR_MCR_INT_OPENDRAIN | SCR_MCR_INT_UNK | SCR_MCR_INT_EN | | ||
362 | BIT(15), tc6393xb->scr + SCR_MCR); | ||
363 | iowrite16(tcpd->scr_gper, tc6393xb->scr + SCR_GPER); | ||
364 | iowrite8(0, tc6393xb->scr + SCR_IRR); | ||
365 | iowrite8(0xbf, tc6393xb->scr + SCR_IMR); | ||
366 | |||
367 | for (i = 0; i < 3; i++) { | ||
368 | iowrite8(tc6393xb->suspend_state.gpo_dsr[i], | ||
369 | tc6393xb->scr + SCR_GPO_DSR(i)); | ||
370 | iowrite8(tc6393xb->suspend_state.gpo_doecr[i], | ||
371 | tc6393xb->scr + SCR_GPO_DOECR(i)); | ||
372 | iowrite8(tc6393xb->suspend_state.gpi_bcr[i], | ||
373 | tc6393xb->scr + SCR_GPI_BCR(i)); | ||
374 | } | ||
375 | |||
376 | return 0; | ||
377 | } | ||
378 | |||
379 | static int __devinit tc6393xb_probe(struct platform_device *dev) | ||
380 | { | ||
381 | struct tc6393xb_platform_data *tcpd = dev->dev.platform_data; | ||
382 | struct tc6393xb *tc6393xb; | ||
383 | struct resource *iomem; | ||
384 | struct resource *rscr; | ||
385 | int retval, temp; | ||
386 | int i; | ||
387 | |||
388 | iomem = platform_get_resource(dev, IORESOURCE_MEM, 0); | ||
389 | if (!iomem) | ||
390 | return -EINVAL; | ||
391 | |||
392 | tc6393xb = kzalloc(sizeof *tc6393xb, GFP_KERNEL); | ||
393 | if (!tc6393xb) { | ||
394 | retval = -ENOMEM; | ||
395 | goto err_kzalloc; | ||
396 | } | ||
397 | |||
398 | spin_lock_init(&tc6393xb->lock); | ||
399 | |||
400 | platform_set_drvdata(dev, tc6393xb); | ||
401 | tc6393xb->iomem = iomem; | ||
402 | tc6393xb->irq = platform_get_irq(dev, 0); | ||
403 | tc6393xb->irq_base = tcpd->irq_base; | ||
404 | |||
405 | tc6393xb->clk = clk_get(&dev->dev, "GPIO27_CLK" /* "CK3P6MI" */); | ||
406 | if (IS_ERR(tc6393xb->clk)) { | ||
407 | retval = PTR_ERR(tc6393xb->clk); | ||
408 | goto err_clk_get; | ||
409 | } | ||
410 | |||
411 | rscr = &tc6393xb->rscr; | ||
412 | rscr->name = "tc6393xb-core"; | ||
413 | rscr->start = iomem->start; | ||
414 | rscr->end = iomem->start + 0xff; | ||
415 | rscr->flags = IORESOURCE_MEM; | ||
416 | |||
417 | retval = request_resource(iomem, rscr); | ||
418 | if (retval) | ||
419 | goto err_request_scr; | ||
420 | |||
421 | tc6393xb->scr = ioremap(rscr->start, rscr->end - rscr->start + 1); | ||
422 | if (!tc6393xb->scr) { | ||
423 | retval = -ENOMEM; | ||
424 | goto err_ioremap; | ||
425 | } | ||
426 | |||
427 | retval = clk_enable(tc6393xb->clk); | ||
428 | if (retval) | ||
429 | goto err_clk_enable; | ||
430 | |||
431 | retval = tcpd->enable(dev); | ||
432 | if (retval) | ||
433 | goto err_enable; | ||
434 | |||
435 | tc6393xb->suspend_state.fer = 0; | ||
436 | for (i = 0; i < 3; i++) { | ||
437 | tc6393xb->suspend_state.gpo_dsr[i] = | ||
438 | (tcpd->scr_gpo_dsr >> (8 * i)) & 0xff; | ||
439 | tc6393xb->suspend_state.gpo_doecr[i] = | ||
440 | (tcpd->scr_gpo_doecr >> (8 * i)) & 0xff; | ||
441 | } | ||
442 | /* | ||
443 | * It may be necessary to change this back to | ||
444 | * platform-dependant code | ||
445 | */ | ||
446 | tc6393xb->suspend_state.ccr = SCR_CCR_UNK1 | | ||
447 | SCR_CCR_HCLK_48; | ||
448 | |||
449 | retval = tc6393xb_hw_init(dev); | ||
450 | if (retval) | ||
451 | goto err_hw_init; | ||
452 | |||
453 | printk(KERN_INFO "Toshiba tc6393xb revision %d at 0x%08lx, irq %d\n", | ||
454 | ioread8(tc6393xb->scr + SCR_REVID), | ||
455 | (unsigned long) iomem->start, tc6393xb->irq); | ||
456 | |||
457 | tc6393xb->gpio.base = -1; | ||
458 | |||
459 | if (tcpd->gpio_base >= 0) { | ||
460 | retval = tc6393xb_register_gpio(tc6393xb, tcpd->gpio_base); | ||
461 | if (retval) | ||
462 | goto err_gpio_add; | ||
463 | } | ||
464 | |||
465 | if (tc6393xb->irq) | ||
466 | tc6393xb_attach_irq(dev); | ||
467 | |||
468 | tc6393xb_cells[TC6393XB_CELL_NAND].driver_data = tcpd->nand_data; | ||
469 | |||
470 | retval = mfd_add_devices(dev, | ||
471 | tc6393xb_cells, ARRAY_SIZE(tc6393xb_cells), | ||
472 | iomem, tcpd->irq_base); | ||
473 | |||
474 | return 0; | ||
475 | |||
476 | if (tc6393xb->irq) | ||
477 | tc6393xb_detach_irq(dev); | ||
478 | |||
479 | err_gpio_add: | ||
480 | if (tc6393xb->gpio.base != -1) | ||
481 | temp = gpiochip_remove(&tc6393xb->gpio); | ||
482 | err_hw_init: | ||
483 | tcpd->disable(dev); | ||
484 | err_clk_enable: | ||
485 | clk_disable(tc6393xb->clk); | ||
486 | err_enable: | ||
487 | iounmap(tc6393xb->scr); | ||
488 | err_ioremap: | ||
489 | release_resource(&tc6393xb->rscr); | ||
490 | err_request_scr: | ||
491 | clk_put(tc6393xb->clk); | ||
492 | err_clk_get: | ||
493 | kfree(tc6393xb); | ||
494 | err_kzalloc: | ||
495 | return retval; | ||
496 | } | ||
497 | |||
498 | static int __devexit tc6393xb_remove(struct platform_device *dev) | ||
499 | { | ||
500 | struct tc6393xb_platform_data *tcpd = dev->dev.platform_data; | ||
501 | struct tc6393xb *tc6393xb = platform_get_drvdata(dev); | ||
502 | int ret; | ||
503 | |||
504 | mfd_remove_devices(dev); | ||
505 | |||
506 | if (tc6393xb->irq) | ||
507 | tc6393xb_detach_irq(dev); | ||
508 | |||
509 | if (tc6393xb->gpio.base != -1) { | ||
510 | ret = gpiochip_remove(&tc6393xb->gpio); | ||
511 | if (ret) { | ||
512 | dev_err(&dev->dev, "Can't remove gpio chip: %d\n", ret); | ||
513 | return ret; | ||
514 | } | ||
515 | } | ||
516 | |||
517 | ret = tcpd->disable(dev); | ||
518 | |||
519 | clk_disable(tc6393xb->clk); | ||
520 | |||
521 | iounmap(tc6393xb->scr); | ||
522 | |||
523 | release_resource(&tc6393xb->rscr); | ||
524 | |||
525 | platform_set_drvdata(dev, NULL); | ||
526 | |||
527 | clk_put(tc6393xb->clk); | ||
528 | |||
529 | kfree(tc6393xb); | ||
530 | |||
531 | return ret; | ||
532 | } | ||
533 | |||
534 | #ifdef CONFIG_PM | ||
535 | static int tc6393xb_suspend(struct platform_device *dev, pm_message_t state) | ||
536 | { | ||
537 | struct tc6393xb_platform_data *tcpd = dev->dev.platform_data; | ||
538 | struct tc6393xb *tc6393xb = platform_get_drvdata(dev); | ||
539 | int i; | ||
540 | |||
541 | |||
542 | tc6393xb->suspend_state.ccr = ioread16(tc6393xb->scr + SCR_CCR); | ||
543 | tc6393xb->suspend_state.fer = ioread8(tc6393xb->scr + SCR_FER); | ||
544 | |||
545 | for (i = 0; i < 3; i++) { | ||
546 | tc6393xb->suspend_state.gpo_dsr[i] = | ||
547 | ioread8(tc6393xb->scr + SCR_GPO_DSR(i)); | ||
548 | tc6393xb->suspend_state.gpo_doecr[i] = | ||
549 | ioread8(tc6393xb->scr + SCR_GPO_DOECR(i)); | ||
550 | tc6393xb->suspend_state.gpi_bcr[i] = | ||
551 | ioread8(tc6393xb->scr + SCR_GPI_BCR(i)); | ||
552 | } | ||
553 | |||
554 | return tcpd->suspend(dev); | ||
555 | } | ||
556 | |||
557 | static int tc6393xb_resume(struct platform_device *dev) | ||
558 | { | ||
559 | struct tc6393xb_platform_data *tcpd = dev->dev.platform_data; | ||
560 | int ret = tcpd->resume(dev); | ||
561 | |||
562 | if (ret) | ||
563 | return ret; | ||
564 | |||
565 | return tc6393xb_hw_init(dev); | ||
566 | } | ||
567 | #else | ||
568 | #define tc6393xb_suspend NULL | ||
569 | #define tc6393xb_resume NULL | ||
570 | #endif | ||
571 | |||
572 | static struct platform_driver tc6393xb_driver = { | ||
573 | .probe = tc6393xb_probe, | ||
574 | .remove = __devexit_p(tc6393xb_remove), | ||
575 | .suspend = tc6393xb_suspend, | ||
576 | .resume = tc6393xb_resume, | ||
577 | |||
578 | .driver = { | ||
579 | .name = "tc6393xb", | ||
580 | .owner = THIS_MODULE, | ||
581 | }, | ||
582 | }; | ||
583 | |||
584 | static int __init tc6393xb_init(void) | ||
585 | { | ||
586 | return platform_driver_register(&tc6393xb_driver); | ||
587 | } | ||
588 | |||
589 | static void __exit tc6393xb_exit(void) | ||
590 | { | ||
591 | platform_driver_unregister(&tc6393xb_driver); | ||
592 | } | ||
593 | |||
594 | subsys_initcall(tc6393xb_init); | ||
595 | module_exit(tc6393xb_exit); | ||
596 | |||
597 | MODULE_LICENSE("GPL"); | ||
598 | MODULE_AUTHOR("Ian Molton, Dmitry Baryshkov and Dirk Opfer"); | ||
599 | MODULE_DESCRIPTION("tc6393xb Toshiba Mobile IO Controller"); | ||
600 | MODULE_ALIAS("platform:tc6393xb"); | ||
diff --git a/drivers/mtd/nand/cmx270_nand.c b/drivers/mtd/nand/cmx270_nand.c index cb663ef245d5..fc8529bedfdf 100644 --- a/drivers/mtd/nand/cmx270_nand.c +++ b/drivers/mtd/nand/cmx270_nand.c | |||
@@ -20,9 +20,11 @@ | |||
20 | 20 | ||
21 | #include <linux/mtd/nand.h> | 21 | #include <linux/mtd/nand.h> |
22 | #include <linux/mtd/partitions.h> | 22 | #include <linux/mtd/partitions.h> |
23 | #include <linux/gpio.h> | ||
23 | 24 | ||
24 | #include <asm/io.h> | 25 | #include <asm/io.h> |
25 | #include <asm/irq.h> | 26 | #include <asm/irq.h> |
27 | #include <asm/mach-types.h> | ||
26 | 28 | ||
27 | #include <asm/arch/hardware.h> | 29 | #include <asm/arch/hardware.h> |
28 | #include <asm/arch/pxa-regs.h> | 30 | #include <asm/arch/pxa-regs.h> |
@@ -30,20 +32,6 @@ | |||
30 | #define GPIO_NAND_CS (11) | 32 | #define GPIO_NAND_CS (11) |
31 | #define GPIO_NAND_RB (89) | 33 | #define GPIO_NAND_RB (89) |
32 | 34 | ||
33 | /* This macro needed to ensure in-order operation of GPIO and local | ||
34 | * bus. Without both asm command and dummy uncached read there're | ||
35 | * states when NAND access is broken. I've looked for such macro(s) in | ||
36 | * include/asm-arm but found nothing approptiate. | ||
37 | * dmac_clean_range is close, but is makes cache invalidation | ||
38 | * unnecessary here and it cannot be used in module | ||
39 | */ | ||
40 | #define DRAIN_WB() \ | ||
41 | do { \ | ||
42 | unsigned char dummy; \ | ||
43 | asm volatile ("mcr p15, 0, r0, c7, c10, 4":::"r0"); \ | ||
44 | dummy=*((unsigned char*)UNCACHED_ADDR); \ | ||
45 | } while(0) | ||
46 | |||
47 | /* MTD structure for CM-X270 board */ | 35 | /* MTD structure for CM-X270 board */ |
48 | static struct mtd_info *cmx270_nand_mtd; | 36 | static struct mtd_info *cmx270_nand_mtd; |
49 | 37 | ||
@@ -103,14 +91,14 @@ static int cmx270_verify_buf(struct mtd_info *mtd, const u_char *buf, int len) | |||
103 | 91 | ||
104 | static inline void nand_cs_on(void) | 92 | static inline void nand_cs_on(void) |
105 | { | 93 | { |
106 | GPCR(GPIO_NAND_CS) = GPIO_bit(GPIO_NAND_CS); | 94 | gpio_set_value(GPIO_NAND_CS, 0); |
107 | } | 95 | } |
108 | 96 | ||
109 | static void nand_cs_off(void) | 97 | static void nand_cs_off(void) |
110 | { | 98 | { |
111 | DRAIN_WB(); | 99 | dsb(); |
112 | 100 | ||
113 | GPSR(GPIO_NAND_CS) = GPIO_bit(GPIO_NAND_CS); | 101 | gpio_set_value(GPIO_NAND_CS, 1); |
114 | } | 102 | } |
115 | 103 | ||
116 | /* | 104 | /* |
@@ -122,7 +110,7 @@ static void cmx270_hwcontrol(struct mtd_info *mtd, int dat, | |||
122 | struct nand_chip* this = mtd->priv; | 110 | struct nand_chip* this = mtd->priv; |
123 | unsigned int nandaddr = (unsigned int)this->IO_ADDR_W; | 111 | unsigned int nandaddr = (unsigned int)this->IO_ADDR_W; |
124 | 112 | ||
125 | DRAIN_WB(); | 113 | dsb(); |
126 | 114 | ||
127 | if (ctrl & NAND_CTRL_CHANGE) { | 115 | if (ctrl & NAND_CTRL_CHANGE) { |
128 | if ( ctrl & NAND_ALE ) | 116 | if ( ctrl & NAND_ALE ) |
@@ -139,12 +127,12 @@ static void cmx270_hwcontrol(struct mtd_info *mtd, int dat, | |||
139 | nand_cs_off(); | 127 | nand_cs_off(); |
140 | } | 128 | } |
141 | 129 | ||
142 | DRAIN_WB(); | 130 | dsb(); |
143 | this->IO_ADDR_W = (void __iomem*)nandaddr; | 131 | this->IO_ADDR_W = (void __iomem*)nandaddr; |
144 | if (dat != NAND_CMD_NONE) | 132 | if (dat != NAND_CMD_NONE) |
145 | writel((dat << 16), this->IO_ADDR_W); | 133 | writel((dat << 16), this->IO_ADDR_W); |
146 | 134 | ||
147 | DRAIN_WB(); | 135 | dsb(); |
148 | } | 136 | } |
149 | 137 | ||
150 | /* | 138 | /* |
@@ -152,9 +140,9 @@ static void cmx270_hwcontrol(struct mtd_info *mtd, int dat, | |||
152 | */ | 140 | */ |
153 | static int cmx270_device_ready(struct mtd_info *mtd) | 141 | static int cmx270_device_ready(struct mtd_info *mtd) |
154 | { | 142 | { |
155 | DRAIN_WB(); | 143 | dsb(); |
156 | 144 | ||
157 | return (GPLR(GPIO_NAND_RB) & GPIO_bit(GPIO_NAND_RB)); | 145 | return (gpio_get_value(GPIO_NAND_RB)); |
158 | } | 146 | } |
159 | 147 | ||
160 | /* | 148 | /* |
@@ -168,20 +156,40 @@ static int cmx270_init(void) | |||
168 | int mtd_parts_nb = 0; | 156 | int mtd_parts_nb = 0; |
169 | int ret; | 157 | int ret; |
170 | 158 | ||
159 | if (!machine_is_armcore()) | ||
160 | return -ENODEV; | ||
161 | |||
162 | ret = gpio_request(GPIO_NAND_CS, "NAND CS"); | ||
163 | if (ret) { | ||
164 | pr_warning("CM-X270: failed to request NAND CS gpio\n"); | ||
165 | return ret; | ||
166 | } | ||
167 | |||
168 | gpio_direction_output(GPIO_NAND_CS, 1); | ||
169 | |||
170 | ret = gpio_request(GPIO_NAND_RB, "NAND R/B"); | ||
171 | if (ret) { | ||
172 | pr_warning("CM-X270: failed to request NAND R/B gpio\n"); | ||
173 | goto err_gpio_request; | ||
174 | } | ||
175 | |||
176 | gpio_direction_input(GPIO_NAND_RB); | ||
177 | |||
171 | /* Allocate memory for MTD device structure and private data */ | 178 | /* Allocate memory for MTD device structure and private data */ |
172 | cmx270_nand_mtd = kzalloc(sizeof(struct mtd_info) + | 179 | cmx270_nand_mtd = kzalloc(sizeof(struct mtd_info) + |
173 | sizeof(struct nand_chip), | 180 | sizeof(struct nand_chip), |
174 | GFP_KERNEL); | 181 | GFP_KERNEL); |
175 | if (!cmx270_nand_mtd) { | 182 | if (!cmx270_nand_mtd) { |
176 | printk("Unable to allocate CM-X270 NAND MTD device structure.\n"); | 183 | pr_debug("Unable to allocate CM-X270 NAND MTD device structure.\n"); |
177 | return -ENOMEM; | 184 | ret = -ENOMEM; |
185 | goto err_kzalloc; | ||
178 | } | 186 | } |
179 | 187 | ||
180 | cmx270_nand_io = ioremap(PXA_CS1_PHYS, 12); | 188 | cmx270_nand_io = ioremap(PXA_CS1_PHYS, 12); |
181 | if (!cmx270_nand_io) { | 189 | if (!cmx270_nand_io) { |
182 | printk("Unable to ioremap NAND device\n"); | 190 | pr_debug("Unable to ioremap NAND device\n"); |
183 | ret = -EINVAL; | 191 | ret = -EINVAL; |
184 | goto err1; | 192 | goto err_ioremap; |
185 | } | 193 | } |
186 | 194 | ||
187 | /* Get pointer to private data */ | 195 | /* Get pointer to private data */ |
@@ -209,9 +217,9 @@ static int cmx270_init(void) | |||
209 | 217 | ||
210 | /* Scan to find existence of the device */ | 218 | /* Scan to find existence of the device */ |
211 | if (nand_scan (cmx270_nand_mtd, 1)) { | 219 | if (nand_scan (cmx270_nand_mtd, 1)) { |
212 | printk(KERN_NOTICE "No NAND device\n"); | 220 | pr_notice("No NAND device\n"); |
213 | ret = -ENXIO; | 221 | ret = -ENXIO; |
214 | goto err2; | 222 | goto err_scan; |
215 | } | 223 | } |
216 | 224 | ||
217 | #ifdef CONFIG_MTD_CMDLINE_PARTS | 225 | #ifdef CONFIG_MTD_CMDLINE_PARTS |
@@ -229,18 +237,22 @@ static int cmx270_init(void) | |||
229 | } | 237 | } |
230 | 238 | ||
231 | /* Register the partitions */ | 239 | /* Register the partitions */ |
232 | printk(KERN_NOTICE "Using %s partition definition\n", part_type); | 240 | pr_notice("Using %s partition definition\n", part_type); |
233 | ret = add_mtd_partitions(cmx270_nand_mtd, mtd_parts, mtd_parts_nb); | 241 | ret = add_mtd_partitions(cmx270_nand_mtd, mtd_parts, mtd_parts_nb); |
234 | if (ret) | 242 | if (ret) |
235 | goto err2; | 243 | goto err_scan; |
236 | 244 | ||
237 | /* Return happy */ | 245 | /* Return happy */ |
238 | return 0; | 246 | return 0; |
239 | 247 | ||
240 | err2: | 248 | err_scan: |
241 | iounmap(cmx270_nand_io); | 249 | iounmap(cmx270_nand_io); |
242 | err1: | 250 | err_ioremap: |
243 | kfree(cmx270_nand_mtd); | 251 | kfree(cmx270_nand_mtd); |
252 | err_kzalloc: | ||
253 | gpio_free(GPIO_NAND_RB); | ||
254 | err_gpio_request: | ||
255 | gpio_free(GPIO_NAND_CS); | ||
244 | 256 | ||
245 | return ret; | 257 | return ret; |
246 | 258 | ||
@@ -255,6 +267,9 @@ static void cmx270_cleanup(void) | |||
255 | /* Release resources, unregister device */ | 267 | /* Release resources, unregister device */ |
256 | nand_release(cmx270_nand_mtd); | 268 | nand_release(cmx270_nand_mtd); |
257 | 269 | ||
270 | gpio_free(GPIO_NAND_RB); | ||
271 | gpio_free(GPIO_NAND_CS); | ||
272 | |||
258 | iounmap(cmx270_nand_io); | 273 | iounmap(cmx270_nand_io); |
259 | 274 | ||
260 | /* Free the MTD device structure */ | 275 | /* Free the MTD device structure */ |
diff --git a/drivers/net/irda/pxaficp_ir.c b/drivers/net/irda/pxaficp_ir.c index d5c2d27f3ea4..f76b0b6c277d 100644 --- a/drivers/net/irda/pxaficp_ir.c +++ b/drivers/net/irda/pxaficp_ir.c | |||
@@ -13,16 +13,8 @@ | |||
13 | * | 13 | * |
14 | */ | 14 | */ |
15 | #include <linux/module.h> | 15 | #include <linux/module.h> |
16 | #include <linux/types.h> | ||
17 | #include <linux/init.h> | ||
18 | #include <linux/errno.h> | ||
19 | #include <linux/netdevice.h> | 16 | #include <linux/netdevice.h> |
20 | #include <linux/slab.h> | ||
21 | #include <linux/rtnetlink.h> | ||
22 | #include <linux/interrupt.h> | ||
23 | #include <linux/dma-mapping.h> | ||
24 | #include <linux/platform_device.h> | 17 | #include <linux/platform_device.h> |
25 | #include <linux/pm.h> | ||
26 | #include <linux/clk.h> | 18 | #include <linux/clk.h> |
27 | 19 | ||
28 | #include <net/irda/irda.h> | 20 | #include <net/irda/irda.h> |
@@ -30,17 +22,9 @@ | |||
30 | #include <net/irda/wrapper.h> | 22 | #include <net/irda/wrapper.h> |
31 | #include <net/irda/irda_device.h> | 23 | #include <net/irda/irda_device.h> |
32 | 24 | ||
33 | #include <asm/irq.h> | ||
34 | #include <asm/dma.h> | 25 | #include <asm/dma.h> |
35 | #include <asm/delay.h> | ||
36 | #include <asm/hardware.h> | ||
37 | #include <asm/arch/irda.h> | 26 | #include <asm/arch/irda.h> |
38 | #include <asm/arch/pxa-regs.h> | 27 | #include <asm/arch/pxa-regs.h> |
39 | #include <asm/arch/pxa2xx-gpio.h> | ||
40 | |||
41 | #ifdef CONFIG_MACH_MAINSTONE | ||
42 | #include <asm/arch/mainstone.h> | ||
43 | #endif | ||
44 | 28 | ||
45 | #define IrSR_RXPL_NEG_IS_ZERO (1<<4) | 29 | #define IrSR_RXPL_NEG_IS_ZERO (1<<4) |
46 | #define IrSR_RXPL_POS_IS_ZERO 0x0 | 30 | #define IrSR_RXPL_POS_IS_ZERO 0x0 |
@@ -163,10 +147,6 @@ static int pxa_irda_set_speed(struct pxa_irda *si, int speed) | |||
163 | /* set board transceiver to SIR mode */ | 147 | /* set board transceiver to SIR mode */ |
164 | si->pdata->transceiver_mode(si->dev, IR_SIRMODE); | 148 | si->pdata->transceiver_mode(si->dev, IR_SIRMODE); |
165 | 149 | ||
166 | /* configure GPIO46/47 */ | ||
167 | pxa_gpio_mode(GPIO46_STRXD_MD); | ||
168 | pxa_gpio_mode(GPIO47_STTXD_MD); | ||
169 | |||
170 | /* enable the STUART clock */ | 150 | /* enable the STUART clock */ |
171 | pxa_irda_enable_sirclk(si); | 151 | pxa_irda_enable_sirclk(si); |
172 | } | 152 | } |
@@ -201,10 +181,6 @@ static int pxa_irda_set_speed(struct pxa_irda *si, int speed) | |||
201 | /* set board transceiver to FIR mode */ | 181 | /* set board transceiver to FIR mode */ |
202 | si->pdata->transceiver_mode(si->dev, IR_FIRMODE); | 182 | si->pdata->transceiver_mode(si->dev, IR_FIRMODE); |
203 | 183 | ||
204 | /* configure GPIO46/47 */ | ||
205 | pxa_gpio_mode(GPIO46_ICPRXD_MD); | ||
206 | pxa_gpio_mode(GPIO47_ICPTXD_MD); | ||
207 | |||
208 | /* enable the FICP clock */ | 184 | /* enable the FICP clock */ |
209 | pxa_irda_enable_firclk(si); | 185 | pxa_irda_enable_firclk(si); |
210 | 186 | ||
diff --git a/drivers/net/smc91x.c b/drivers/net/smc91x.c index f2051b209da2..2040965d7724 100644 --- a/drivers/net/smc91x.c +++ b/drivers/net/smc91x.c | |||
@@ -308,7 +308,7 @@ static void smc_reset(struct net_device *dev) | |||
308 | * can't handle it then there will be no recovery except for | 308 | * can't handle it then there will be no recovery except for |
309 | * a hard reset or power cycle | 309 | * a hard reset or power cycle |
310 | */ | 310 | */ |
311 | if (nowait) | 311 | if (lp->cfg.flags & SMC91X_NOWAIT) |
312 | cfg |= CONFIG_NO_WAIT; | 312 | cfg |= CONFIG_NO_WAIT; |
313 | 313 | ||
314 | /* | 314 | /* |
@@ -1939,8 +1939,11 @@ static int __init smc_probe(struct net_device *dev, void __iomem *ioaddr, | |||
1939 | if (retval) | 1939 | if (retval) |
1940 | goto err_out; | 1940 | goto err_out; |
1941 | 1941 | ||
1942 | #ifdef SMC_USE_PXA_DMA | 1942 | #ifdef CONFIG_ARCH_PXA |
1943 | { | 1943 | # ifdef SMC_USE_PXA_DMA |
1944 | lp->cfg.flags |= SMC91X_USE_DMA; | ||
1945 | # endif | ||
1946 | if (lp->cfg.flags & SMC91X_USE_DMA) { | ||
1944 | int dma = pxa_request_dma(dev->name, DMA_PRIO_LOW, | 1947 | int dma = pxa_request_dma(dev->name, DMA_PRIO_LOW, |
1945 | smc_pxa_dma_irq, NULL); | 1948 | smc_pxa_dma_irq, NULL); |
1946 | if (dma >= 0) | 1949 | if (dma >= 0) |
@@ -1980,7 +1983,7 @@ static int __init smc_probe(struct net_device *dev, void __iomem *ioaddr, | |||
1980 | } | 1983 | } |
1981 | 1984 | ||
1982 | err_out: | 1985 | err_out: |
1983 | #ifdef SMC_USE_PXA_DMA | 1986 | #ifdef CONFIG_ARCH_PXA |
1984 | if (retval && dev->dma != (unsigned char)-1) | 1987 | if (retval && dev->dma != (unsigned char)-1) |
1985 | pxa_free_dma(dev->dma); | 1988 | pxa_free_dma(dev->dma); |
1986 | #endif | 1989 | #endif |
@@ -2050,9 +2053,11 @@ static int smc_enable_device(struct platform_device *pdev) | |||
2050 | return 0; | 2053 | return 0; |
2051 | } | 2054 | } |
2052 | 2055 | ||
2053 | static int smc_request_attrib(struct platform_device *pdev) | 2056 | static int smc_request_attrib(struct platform_device *pdev, |
2057 | struct net_device *ndev) | ||
2054 | { | 2058 | { |
2055 | struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib"); | 2059 | struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib"); |
2060 | struct smc_local *lp = netdev_priv(ndev); | ||
2056 | 2061 | ||
2057 | if (!res) | 2062 | if (!res) |
2058 | return 0; | 2063 | return 0; |
@@ -2063,9 +2068,11 @@ static int smc_request_attrib(struct platform_device *pdev) | |||
2063 | return 0; | 2068 | return 0; |
2064 | } | 2069 | } |
2065 | 2070 | ||
2066 | static void smc_release_attrib(struct platform_device *pdev) | 2071 | static void smc_release_attrib(struct platform_device *pdev, |
2072 | struct net_device *ndev) | ||
2067 | { | 2073 | { |
2068 | struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib"); | 2074 | struct resource * res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-attrib"); |
2075 | struct smc_local *lp = netdev_priv(ndev); | ||
2069 | 2076 | ||
2070 | if (res) | 2077 | if (res) |
2071 | release_mem_region(res->start, ATTRIB_SIZE); | 2078 | release_mem_region(res->start, ATTRIB_SIZE); |
@@ -2123,27 +2130,14 @@ static int smc_drv_probe(struct platform_device *pdev) | |||
2123 | struct net_device *ndev; | 2130 | struct net_device *ndev; |
2124 | struct resource *res, *ires; | 2131 | struct resource *res, *ires; |
2125 | unsigned int __iomem *addr; | 2132 | unsigned int __iomem *addr; |
2133 | unsigned long irq_flags = SMC_IRQ_FLAGS; | ||
2126 | int ret; | 2134 | int ret; |
2127 | 2135 | ||
2128 | res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-regs"); | ||
2129 | if (!res) | ||
2130 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | ||
2131 | if (!res) { | ||
2132 | ret = -ENODEV; | ||
2133 | goto out; | ||
2134 | } | ||
2135 | |||
2136 | |||
2137 | if (!request_mem_region(res->start, SMC_IO_EXTENT, CARDNAME)) { | ||
2138 | ret = -EBUSY; | ||
2139 | goto out; | ||
2140 | } | ||
2141 | |||
2142 | ndev = alloc_etherdev(sizeof(struct smc_local)); | 2136 | ndev = alloc_etherdev(sizeof(struct smc_local)); |
2143 | if (!ndev) { | 2137 | if (!ndev) { |
2144 | printk("%s: could not allocate device.\n", CARDNAME); | 2138 | printk("%s: could not allocate device.\n", CARDNAME); |
2145 | ret = -ENOMEM; | 2139 | ret = -ENOMEM; |
2146 | goto out_release_io; | 2140 | goto out; |
2147 | } | 2141 | } |
2148 | SET_NETDEV_DEV(ndev, &pdev->dev); | 2142 | SET_NETDEV_DEV(ndev, &pdev->dev); |
2149 | 2143 | ||
@@ -2152,37 +2146,47 @@ static int smc_drv_probe(struct platform_device *pdev) | |||
2152 | */ | 2146 | */ |
2153 | 2147 | ||
2154 | lp = netdev_priv(ndev); | 2148 | lp = netdev_priv(ndev); |
2155 | lp->cfg.irq_flags = SMC_IRQ_FLAGS; | ||
2156 | 2149 | ||
2157 | #ifdef SMC_DYNAMIC_BUS_CONFIG | 2150 | if (pd) { |
2158 | if (pd) | ||
2159 | memcpy(&lp->cfg, pd, sizeof(lp->cfg)); | 2151 | memcpy(&lp->cfg, pd, sizeof(lp->cfg)); |
2160 | else { | 2152 | lp->io_shift = SMC91X_IO_SHIFT(lp->cfg.flags); |
2161 | lp->cfg.flags = SMC91X_USE_8BIT; | 2153 | } else { |
2162 | lp->cfg.flags |= SMC91X_USE_16BIT; | 2154 | lp->cfg.flags |= (SMC_CAN_USE_8BIT) ? SMC91X_USE_8BIT : 0; |
2163 | lp->cfg.flags |= SMC91X_USE_32BIT; | 2155 | lp->cfg.flags |= (SMC_CAN_USE_16BIT) ? SMC91X_USE_16BIT : 0; |
2156 | lp->cfg.flags |= (SMC_CAN_USE_32BIT) ? SMC91X_USE_32BIT : 0; | ||
2157 | lp->cfg.flags |= (nowait) ? SMC91X_NOWAIT : 0; | ||
2164 | } | 2158 | } |
2165 | 2159 | ||
2166 | lp->cfg.flags &= ~(SMC_CAN_USE_8BIT ? 0 : SMC91X_USE_8BIT); | ||
2167 | lp->cfg.flags &= ~(SMC_CAN_USE_16BIT ? 0 : SMC91X_USE_16BIT); | ||
2168 | lp->cfg.flags &= ~(SMC_CAN_USE_32BIT ? 0 : SMC91X_USE_32BIT); | ||
2169 | #endif | ||
2170 | |||
2171 | ndev->dma = (unsigned char)-1; | 2160 | ndev->dma = (unsigned char)-1; |
2172 | 2161 | ||
2162 | res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-regs"); | ||
2163 | if (!res) | ||
2164 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | ||
2165 | if (!res) { | ||
2166 | ret = -ENODEV; | ||
2167 | goto out_free_netdev; | ||
2168 | } | ||
2169 | |||
2170 | |||
2171 | if (!request_mem_region(res->start, SMC_IO_EXTENT, CARDNAME)) { | ||
2172 | ret = -EBUSY; | ||
2173 | goto out_free_netdev; | ||
2174 | } | ||
2175 | |||
2173 | ires = platform_get_resource(pdev, IORESOURCE_IRQ, 0); | 2176 | ires = platform_get_resource(pdev, IORESOURCE_IRQ, 0); |
2174 | if (!ires) { | 2177 | if (!ires) { |
2175 | ret = -ENODEV; | 2178 | ret = -ENODEV; |
2176 | goto out_free_netdev; | 2179 | goto out_release_io; |
2177 | } | 2180 | } |
2178 | 2181 | ||
2179 | ndev->irq = ires->start; | 2182 | ndev->irq = ires->start; |
2180 | if (SMC_IRQ_FLAGS == -1) | ||
2181 | lp->cfg.irq_flags = ires->flags & IRQF_TRIGGER_MASK; | ||
2182 | 2183 | ||
2183 | ret = smc_request_attrib(pdev); | 2184 | if (ires->flags & IRQF_TRIGGER_MASK) |
2185 | irq_flags = ires->flags & IRQF_TRIGGER_MASK; | ||
2186 | |||
2187 | ret = smc_request_attrib(pdev, ndev); | ||
2184 | if (ret) | 2188 | if (ret) |
2185 | goto out_free_netdev; | 2189 | goto out_release_io; |
2186 | #if defined(CONFIG_SA1100_ASSABET) | 2190 | #if defined(CONFIG_SA1100_ASSABET) |
2187 | NCR_0 |= NCR_ENET_OSC_EN; | 2191 | NCR_0 |= NCR_ENET_OSC_EN; |
2188 | #endif | 2192 | #endif |
@@ -2197,7 +2201,7 @@ static int smc_drv_probe(struct platform_device *pdev) | |||
2197 | goto out_release_attrib; | 2201 | goto out_release_attrib; |
2198 | } | 2202 | } |
2199 | 2203 | ||
2200 | #ifdef SMC_USE_PXA_DMA | 2204 | #ifdef CONFIG_ARCH_PXA |
2201 | { | 2205 | { |
2202 | struct smc_local *lp = netdev_priv(ndev); | 2206 | struct smc_local *lp = netdev_priv(ndev); |
2203 | lp->device = &pdev->dev; | 2207 | lp->device = &pdev->dev; |
@@ -2205,7 +2209,7 @@ static int smc_drv_probe(struct platform_device *pdev) | |||
2205 | } | 2209 | } |
2206 | #endif | 2210 | #endif |
2207 | 2211 | ||
2208 | ret = smc_probe(ndev, addr, lp->cfg.irq_flags); | 2212 | ret = smc_probe(ndev, addr, irq_flags); |
2209 | if (ret != 0) | 2213 | if (ret != 0) |
2210 | goto out_iounmap; | 2214 | goto out_iounmap; |
2211 | 2215 | ||
@@ -2217,11 +2221,11 @@ static int smc_drv_probe(struct platform_device *pdev) | |||
2217 | platform_set_drvdata(pdev, NULL); | 2221 | platform_set_drvdata(pdev, NULL); |
2218 | iounmap(addr); | 2222 | iounmap(addr); |
2219 | out_release_attrib: | 2223 | out_release_attrib: |
2220 | smc_release_attrib(pdev); | 2224 | smc_release_attrib(pdev, ndev); |
2221 | out_free_netdev: | ||
2222 | free_netdev(ndev); | ||
2223 | out_release_io: | 2225 | out_release_io: |
2224 | release_mem_region(res->start, SMC_IO_EXTENT); | 2226 | release_mem_region(res->start, SMC_IO_EXTENT); |
2227 | out_free_netdev: | ||
2228 | free_netdev(ndev); | ||
2225 | out: | 2229 | out: |
2226 | printk("%s: not found (%d).\n", CARDNAME, ret); | 2230 | printk("%s: not found (%d).\n", CARDNAME, ret); |
2227 | 2231 | ||
@@ -2240,14 +2244,14 @@ static int smc_drv_remove(struct platform_device *pdev) | |||
2240 | 2244 | ||
2241 | free_irq(ndev->irq, ndev); | 2245 | free_irq(ndev->irq, ndev); |
2242 | 2246 | ||
2243 | #ifdef SMC_USE_PXA_DMA | 2247 | #ifdef CONFIG_ARCH_PXA |
2244 | if (ndev->dma != (unsigned char)-1) | 2248 | if (ndev->dma != (unsigned char)-1) |
2245 | pxa_free_dma(ndev->dma); | 2249 | pxa_free_dma(ndev->dma); |
2246 | #endif | 2250 | #endif |
2247 | iounmap(lp->base); | 2251 | iounmap(lp->base); |
2248 | 2252 | ||
2249 | smc_release_datacs(pdev,ndev); | 2253 | smc_release_datacs(pdev,ndev); |
2250 | smc_release_attrib(pdev); | 2254 | smc_release_attrib(pdev,ndev); |
2251 | 2255 | ||
2252 | res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-regs"); | 2256 | res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-regs"); |
2253 | if (!res) | 2257 | if (!res) |
diff --git a/drivers/net/smc91x.h b/drivers/net/smc91x.h index 8606818653f8..22209b6f1405 100644 --- a/drivers/net/smc91x.h +++ b/drivers/net/smc91x.h | |||
@@ -40,23 +40,46 @@ | |||
40 | * Define your architecture specific bus configuration parameters here. | 40 | * Define your architecture specific bus configuration parameters here. |
41 | */ | 41 | */ |
42 | 42 | ||
43 | #if defined(CONFIG_ARCH_LUBBOCK) | 43 | #if defined(CONFIG_ARCH_LUBBOCK) ||\ |
44 | defined(CONFIG_MACH_MAINSTONE) ||\ | ||
45 | defined(CONFIG_MACH_ZYLONITE) ||\ | ||
46 | defined(CONFIG_MACH_LITTLETON) | ||
44 | 47 | ||
45 | /* We can only do 16-bit reads and writes in the static memory space. */ | 48 | #include <asm/mach-types.h> |
46 | #define SMC_CAN_USE_8BIT 0 | 49 | |
50 | /* Now the bus width is specified in the platform data | ||
51 | * pretend here to support all I/O access types | ||
52 | */ | ||
53 | #define SMC_CAN_USE_8BIT 1 | ||
47 | #define SMC_CAN_USE_16BIT 1 | 54 | #define SMC_CAN_USE_16BIT 1 |
48 | #define SMC_CAN_USE_32BIT 0 | 55 | #define SMC_CAN_USE_32BIT 1 |
49 | #define SMC_NOWAIT 1 | 56 | #define SMC_NOWAIT 1 |
50 | 57 | ||
51 | /* The first two address lines aren't connected... */ | 58 | #define SMC_IO_SHIFT (lp->io_shift) |
52 | #define SMC_IO_SHIFT 2 | ||
53 | 59 | ||
60 | #define SMC_inb(a, r) readb((a) + (r)) | ||
54 | #define SMC_inw(a, r) readw((a) + (r)) | 61 | #define SMC_inw(a, r) readw((a) + (r)) |
55 | #define SMC_outw(v, a, r) writew(v, (a) + (r)) | 62 | #define SMC_inl(a, r) readl((a) + (r)) |
63 | #define SMC_outb(v, a, r) writeb(v, (a) + (r)) | ||
64 | #define SMC_outl(v, a, r) writel(v, (a) + (r)) | ||
56 | #define SMC_insw(a, r, p, l) readsw((a) + (r), p, l) | 65 | #define SMC_insw(a, r, p, l) readsw((a) + (r), p, l) |
57 | #define SMC_outsw(a, r, p, l) writesw((a) + (r), p, l) | 66 | #define SMC_outsw(a, r, p, l) writesw((a) + (r), p, l) |
67 | #define SMC_insl(a, r, p, l) readsl((a) + (r), p, l) | ||
68 | #define SMC_outsl(a, r, p, l) writesl((a) + (r), p, l) | ||
58 | #define SMC_IRQ_FLAGS (-1) /* from resource */ | 69 | #define SMC_IRQ_FLAGS (-1) /* from resource */ |
59 | 70 | ||
71 | /* We actually can't write halfwords properly if not word aligned */ | ||
72 | static inline void SMC_outw(u16 val, void __iomem *ioaddr, int reg) | ||
73 | { | ||
74 | if (machine_is_mainstone() && reg & 2) { | ||
75 | unsigned int v = val << 16; | ||
76 | v |= readl(ioaddr + (reg & ~2)) & 0xffff; | ||
77 | writel(v, ioaddr + (reg & ~2)); | ||
78 | } else { | ||
79 | writew(val, ioaddr + reg); | ||
80 | } | ||
81 | } | ||
82 | |||
60 | #elif defined(CONFIG_BLACKFIN) | 83 | #elif defined(CONFIG_BLACKFIN) |
61 | 84 | ||
62 | #define SMC_IRQ_FLAGS IRQF_TRIGGER_HIGH | 85 | #define SMC_IRQ_FLAGS IRQF_TRIGGER_HIGH |
@@ -195,7 +218,6 @@ | |||
195 | #define SMC_outsw(a, r, p, l) writesw((a) + (r), p, l) | 218 | #define SMC_outsw(a, r, p, l) writesw((a) + (r), p, l) |
196 | 219 | ||
197 | #elif defined(CONFIG_ARCH_INNOKOM) || \ | 220 | #elif defined(CONFIG_ARCH_INNOKOM) || \ |
198 | defined(CONFIG_MACH_MAINSTONE) || \ | ||
199 | defined(CONFIG_ARCH_PXA_IDP) || \ | 221 | defined(CONFIG_ARCH_PXA_IDP) || \ |
200 | defined(CONFIG_ARCH_RAMSES) || \ | 222 | defined(CONFIG_ARCH_RAMSES) || \ |
201 | defined(CONFIG_ARCH_PCM027) | 223 | defined(CONFIG_ARCH_PCM027) |
@@ -229,22 +251,6 @@ SMC_outw(u16 val, void __iomem *ioaddr, int reg) | |||
229 | } | 251 | } |
230 | } | 252 | } |
231 | 253 | ||
232 | #elif defined(CONFIG_MACH_ZYLONITE) | ||
233 | |||
234 | #define SMC_CAN_USE_8BIT 1 | ||
235 | #define SMC_CAN_USE_16BIT 1 | ||
236 | #define SMC_CAN_USE_32BIT 0 | ||
237 | #define SMC_IO_SHIFT 0 | ||
238 | #define SMC_NOWAIT 1 | ||
239 | #define SMC_USE_PXA_DMA 1 | ||
240 | #define SMC_inb(a, r) readb((a) + (r)) | ||
241 | #define SMC_inw(a, r) readw((a) + (r)) | ||
242 | #define SMC_insw(a, r, p, l) insw((a) + (r), p, l) | ||
243 | #define SMC_outsw(a, r, p, l) outsw((a) + (r), p, l) | ||
244 | #define SMC_outb(v, a, r) writeb(v, (a) + (r)) | ||
245 | #define SMC_outw(v, a, r) writew(v, (a) + (r)) | ||
246 | #define SMC_IRQ_FLAGS (-1) /* from resource */ | ||
247 | |||
248 | #elif defined(CONFIG_ARCH_OMAP) | 254 | #elif defined(CONFIG_ARCH_OMAP) |
249 | 255 | ||
250 | /* We can only do 16-bit reads and writes in the static memory space. */ | 256 | /* We can only do 16-bit reads and writes in the static memory space. */ |
@@ -454,7 +460,6 @@ static inline void LPD7_SMC_outsw (unsigned char* a, int r, | |||
454 | #define RPC_LSA_DEFAULT RPC_LED_100_10 | 460 | #define RPC_LSA_DEFAULT RPC_LED_100_10 |
455 | #define RPC_LSB_DEFAULT RPC_LED_TX_RX | 461 | #define RPC_LSB_DEFAULT RPC_LED_TX_RX |
456 | 462 | ||
457 | #define SMC_DYNAMIC_BUS_CONFIG | ||
458 | #endif | 463 | #endif |
459 | 464 | ||
460 | 465 | ||
@@ -493,7 +498,7 @@ struct smc_local { | |||
493 | 498 | ||
494 | spinlock_t lock; | 499 | spinlock_t lock; |
495 | 500 | ||
496 | #ifdef SMC_USE_PXA_DMA | 501 | #ifdef CONFIG_ARCH_PXA |
497 | /* DMA needs the physical address of the chip */ | 502 | /* DMA needs the physical address of the chip */ |
498 | u_long physaddr; | 503 | u_long physaddr; |
499 | struct device *device; | 504 | struct device *device; |
@@ -501,20 +506,17 @@ struct smc_local { | |||
501 | void __iomem *base; | 506 | void __iomem *base; |
502 | void __iomem *datacs; | 507 | void __iomem *datacs; |
503 | 508 | ||
509 | /* the low address lines on some platforms aren't connected... */ | ||
510 | int io_shift; | ||
511 | |||
504 | struct smc91x_platdata cfg; | 512 | struct smc91x_platdata cfg; |
505 | }; | 513 | }; |
506 | 514 | ||
507 | #ifdef SMC_DYNAMIC_BUS_CONFIG | 515 | #define SMC_8BIT(p) ((p)->cfg.flags & SMC91X_USE_8BIT) |
508 | #define SMC_8BIT(p) (((p)->cfg.flags & SMC91X_USE_8BIT) && SMC_CAN_USE_8BIT) | 516 | #define SMC_16BIT(p) ((p)->cfg.flags & SMC91X_USE_16BIT) |
509 | #define SMC_16BIT(p) (((p)->cfg.flags & SMC91X_USE_16BIT) && SMC_CAN_USE_16BIT) | 517 | #define SMC_32BIT(p) ((p)->cfg.flags & SMC91X_USE_32BIT) |
510 | #define SMC_32BIT(p) (((p)->cfg.flags & SMC91X_USE_32BIT) && SMC_CAN_USE_32BIT) | ||
511 | #else | ||
512 | #define SMC_8BIT(p) SMC_CAN_USE_8BIT | ||
513 | #define SMC_16BIT(p) SMC_CAN_USE_16BIT | ||
514 | #define SMC_32BIT(p) SMC_CAN_USE_32BIT | ||
515 | #endif | ||
516 | 518 | ||
517 | #ifdef SMC_USE_PXA_DMA | 519 | #ifdef CONFIG_ARCH_PXA |
518 | /* | 520 | /* |
519 | * Let's use the DMA engine on the XScale PXA2xx for RX packets. This is | 521 | * Let's use the DMA engine on the XScale PXA2xx for RX packets. This is |
520 | * always happening in irq context so no need to worry about races. TX is | 522 | * always happening in irq context so no need to worry about races. TX is |
@@ -608,7 +610,7 @@ smc_pxa_dma_irq(int dma, void *dummy) | |||
608 | { | 610 | { |
609 | DCSR(dma) = 0; | 611 | DCSR(dma) = 0; |
610 | } | 612 | } |
611 | #endif /* SMC_USE_PXA_DMA */ | 613 | #endif /* CONFIG_ARCH_PXA */ |
612 | 614 | ||
613 | 615 | ||
614 | /* | 616 | /* |
diff --git a/drivers/pcmcia/Kconfig b/drivers/pcmcia/Kconfig index 1b0eb5aaf650..86dd324c8ce0 100644 --- a/drivers/pcmcia/Kconfig +++ b/drivers/pcmcia/Kconfig | |||
@@ -219,7 +219,8 @@ config PCMCIA_SA1111 | |||
219 | config PCMCIA_PXA2XX | 219 | config PCMCIA_PXA2XX |
220 | tristate "PXA2xx support" | 220 | tristate "PXA2xx support" |
221 | depends on ARM && ARCH_PXA && PCMCIA | 221 | depends on ARM && ARCH_PXA && PCMCIA |
222 | depends on ARCH_LUBBOCK || MACH_MAINSTONE || PXA_SHARPSL || MACH_ARMCORE | 222 | depends on (ARCH_LUBBOCK || MACH_MAINSTONE || PXA_SHARPSL \ |
223 | || MACH_ARMCORE || ARCH_PXA_PALM) | ||
223 | help | 224 | help |
224 | Say Y here to include support for the PXA2xx PCMCIA controller | 225 | Say Y here to include support for the PXA2xx PCMCIA controller |
225 | 226 | ||
diff --git a/drivers/pcmcia/Makefile b/drivers/pcmcia/Makefile index 6f6478ba7174..8e6dd22e9300 100644 --- a/drivers/pcmcia/Makefile +++ b/drivers/pcmcia/Makefile | |||
@@ -71,4 +71,5 @@ pxa2xx_cs-$(CONFIG_ARCH_LUBBOCK) += pxa2xx_lubbock.o sa1111_generic.o | |||
71 | pxa2xx_cs-$(CONFIG_MACH_MAINSTONE) += pxa2xx_mainstone.o | 71 | pxa2xx_cs-$(CONFIG_MACH_MAINSTONE) += pxa2xx_mainstone.o |
72 | pxa2xx_cs-$(CONFIG_PXA_SHARPSL) += pxa2xx_sharpsl.o | 72 | pxa2xx_cs-$(CONFIG_PXA_SHARPSL) += pxa2xx_sharpsl.o |
73 | pxa2xx_cs-$(CONFIG_MACH_ARMCORE) += pxa2xx_cm_x270.o | 73 | pxa2xx_cs-$(CONFIG_MACH_ARMCORE) += pxa2xx_cm_x270.o |
74 | pxa2xx_cs-$(CONFIG_MACH_PALMTX) += pxa2xx_palmtx.o | ||
74 | 75 | ||
diff --git a/drivers/pcmcia/pxa2xx_cm_x270.c b/drivers/pcmcia/pxa2xx_cm_x270.c index e7ab060ff118..bb95db7d2b76 100644 --- a/drivers/pcmcia/pxa2xx_cm_x270.c +++ b/drivers/pcmcia/pxa2xx_cm_x270.c | |||
@@ -5,82 +5,60 @@ | |||
5 | * it under the terms of the GNU General Public License version 2 as | 5 | * it under the terms of the GNU General Public License version 2 as |
6 | * published by the Free Software Foundation. | 6 | * published by the Free Software Foundation. |
7 | * | 7 | * |
8 | * Compulab Ltd., 2003, 2007 | 8 | * Compulab Ltd., 2003, 2007, 2008 |
9 | * Mike Rapoport <mike@compulab.co.il> | 9 | * Mike Rapoport <mike@compulab.co.il> |
10 | * | 10 | * |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/sched.h> | ||
15 | #include <linux/platform_device.h> | 13 | #include <linux/platform_device.h> |
16 | #include <linux/irq.h> | 14 | #include <linux/irq.h> |
17 | #include <linux/delay.h> | 15 | #include <linux/delay.h> |
16 | #include <linux/gpio.h> | ||
18 | 17 | ||
19 | #include <pcmcia/ss.h> | 18 | #include <asm/mach-types.h> |
20 | #include <asm/hardware.h> | ||
21 | |||
22 | #include <asm/arch/pxa-regs.h> | 19 | #include <asm/arch/pxa-regs.h> |
23 | #include <asm/arch/pxa2xx-gpio.h> | ||
24 | #include <asm/arch/cm-x270.h> | ||
25 | 20 | ||
26 | #include "soc_common.h" | 21 | #include "soc_common.h" |
27 | 22 | ||
23 | #define GPIO_PCMCIA_S0_CD_VALID (84) | ||
24 | #define GPIO_PCMCIA_S0_RDYINT (82) | ||
25 | #define GPIO_PCMCIA_RESET (53) | ||
26 | |||
27 | #define PCMCIA_S0_CD_VALID IRQ_GPIO(GPIO_PCMCIA_S0_CD_VALID) | ||
28 | #define PCMCIA_S0_RDYINT IRQ_GPIO(GPIO_PCMCIA_S0_RDYINT) | ||
29 | |||
30 | |||
28 | static struct pcmcia_irqs irqs[] = { | 31 | static struct pcmcia_irqs irqs[] = { |
29 | { 0, PCMCIA_S0_CD_VALID, "PCMCIA0 CD" }, | 32 | { 0, PCMCIA_S0_CD_VALID, "PCMCIA0 CD" }, |
30 | { 1, PCMCIA_S1_CD_VALID, "PCMCIA1 CD" }, | ||
31 | }; | 33 | }; |
32 | 34 | ||
33 | static int cmx270_pcmcia_hw_init(struct soc_pcmcia_socket *skt) | 35 | static int cmx270_pcmcia_hw_init(struct soc_pcmcia_socket *skt) |
34 | { | 36 | { |
35 | GPSR(GPIO48_nPOE) = GPIO_bit(GPIO48_nPOE) | | 37 | int ret = gpio_request(GPIO_PCMCIA_RESET, "PCCard reset"); |
36 | GPIO_bit(GPIO49_nPWE) | | 38 | if (ret) |
37 | GPIO_bit(GPIO50_nPIOR) | | 39 | return ret; |
38 | GPIO_bit(GPIO51_nPIOW) | | 40 | gpio_direction_output(GPIO_PCMCIA_RESET, 0); |
39 | GPIO_bit(GPIO85_nPCE_1) | | 41 | |
40 | GPIO_bit(GPIO54_nPCE_2); | 42 | skt->irq = PCMCIA_S0_RDYINT; |
41 | 43 | ret = soc_pcmcia_request_irqs(skt, irqs, ARRAY_SIZE(irqs)); | |
42 | pxa_gpio_mode(GPIO48_nPOE_MD); | 44 | if (!ret) |
43 | pxa_gpio_mode(GPIO49_nPWE_MD); | 45 | gpio_free(GPIO_PCMCIA_RESET); |
44 | pxa_gpio_mode(GPIO50_nPIOR_MD); | 46 | |
45 | pxa_gpio_mode(GPIO51_nPIOW_MD); | 47 | return ret; |
46 | pxa_gpio_mode(GPIO85_nPCE_1_MD); | ||
47 | pxa_gpio_mode(GPIO54_nPCE_2_MD); | ||
48 | pxa_gpio_mode(GPIO55_nPREG_MD); | ||
49 | pxa_gpio_mode(GPIO56_nPWAIT_MD); | ||
50 | pxa_gpio_mode(GPIO57_nIOIS16_MD); | ||
51 | |||
52 | /* Reset signal */ | ||
53 | pxa_gpio_mode(GPIO53_nPCE_2 | GPIO_OUT); | ||
54 | GPCR(GPIO53_nPCE_2) = GPIO_bit(GPIO53_nPCE_2); | ||
55 | |||
56 | set_irq_type(PCMCIA_S0_CD_VALID, IRQ_TYPE_EDGE_BOTH); | ||
57 | set_irq_type(PCMCIA_S1_CD_VALID, IRQ_TYPE_EDGE_BOTH); | ||
58 | |||
59 | /* irq's for slots: */ | ||
60 | set_irq_type(PCMCIA_S0_RDYINT, IRQ_TYPE_EDGE_FALLING); | ||
61 | set_irq_type(PCMCIA_S1_RDYINT, IRQ_TYPE_EDGE_FALLING); | ||
62 | |||
63 | skt->irq = (skt->nr == 0) ? PCMCIA_S0_RDYINT : PCMCIA_S1_RDYINT; | ||
64 | return soc_pcmcia_request_irqs(skt, irqs, ARRAY_SIZE(irqs)); | ||
65 | } | 48 | } |
66 | 49 | ||
67 | static void cmx270_pcmcia_shutdown(struct soc_pcmcia_socket *skt) | 50 | static void cmx270_pcmcia_shutdown(struct soc_pcmcia_socket *skt) |
68 | { | 51 | { |
69 | soc_pcmcia_free_irqs(skt, irqs, ARRAY_SIZE(irqs)); | 52 | soc_pcmcia_free_irqs(skt, irqs, ARRAY_SIZE(irqs)); |
70 | 53 | gpio_free(GPIO_PCMCIA_RESET); | |
71 | set_irq_type(IRQ_TO_GPIO(PCMCIA_S0_CD_VALID), IRQ_TYPE_NONE); | ||
72 | set_irq_type(IRQ_TO_GPIO(PCMCIA_S1_CD_VALID), IRQ_TYPE_NONE); | ||
73 | |||
74 | set_irq_type(IRQ_TO_GPIO(PCMCIA_S0_RDYINT), IRQ_TYPE_NONE); | ||
75 | set_irq_type(IRQ_TO_GPIO(PCMCIA_S1_RDYINT), IRQ_TYPE_NONE); | ||
76 | } | 54 | } |
77 | 55 | ||
78 | 56 | ||
79 | static void cmx270_pcmcia_socket_state(struct soc_pcmcia_socket *skt, | 57 | static void cmx270_pcmcia_socket_state(struct soc_pcmcia_socket *skt, |
80 | struct pcmcia_state *state) | 58 | struct pcmcia_state *state) |
81 | { | 59 | { |
82 | state->detect = (PCC_DETECT(skt->nr) == 0) ? 1 : 0; | 60 | state->detect = (gpio_get_value(GPIO_PCMCIA_S0_CD_VALID) == 0) ? 1 : 0; |
83 | state->ready = (PCC_READY(skt->nr) == 0) ? 0 : 1; | 61 | state->ready = (gpio_get_value(GPIO_PCMCIA_S0_RDYINT) == 0) ? 0 : 1; |
84 | state->bvd1 = 1; | 62 | state->bvd1 = 1; |
85 | state->bvd2 = 1; | 63 | state->bvd2 = 1; |
86 | state->vs_3v = 0; | 64 | state->vs_3v = 0; |
@@ -92,32 +70,16 @@ static void cmx270_pcmcia_socket_state(struct soc_pcmcia_socket *skt, | |||
92 | static int cmx270_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, | 70 | static int cmx270_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, |
93 | const socket_state_t *state) | 71 | const socket_state_t *state) |
94 | { | 72 | { |
95 | GPSR(GPIO49_nPWE) = GPIO_bit(GPIO49_nPWE); | ||
96 | pxa_gpio_mode(GPIO49_nPWE | GPIO_OUT); | ||
97 | |||
98 | switch (skt->nr) { | 73 | switch (skt->nr) { |
99 | case 0: | 74 | case 0: |
100 | if (state->flags & SS_RESET) { | 75 | if (state->flags & SS_RESET) { |
101 | GPCR(GPIO49_nPWE) = GPIO_bit(GPIO49_nPWE); | 76 | gpio_set_value(GPIO_PCMCIA_RESET, 1); |
102 | GPSR(GPIO53_nPCE_2) = GPIO_bit(GPIO53_nPCE_2); | ||
103 | udelay(10); | 77 | udelay(10); |
104 | GPCR(GPIO53_nPCE_2) = GPIO_bit(GPIO53_nPCE_2); | 78 | gpio_set_value(GPIO_PCMCIA_RESET, 0); |
105 | GPSR(GPIO49_nPWE) = GPIO_bit(GPIO49_nPWE); | ||
106 | } | ||
107 | break; | ||
108 | case 1: | ||
109 | if (state->flags & SS_RESET) { | ||
110 | GPCR(GPIO49_nPWE) = GPIO_bit(GPIO49_nPWE); | ||
111 | GPSR(GPIO53_nPCE_2) = GPIO_bit(GPIO53_nPCE_2); | ||
112 | udelay(10); | ||
113 | GPCR(GPIO53_nPCE_2) = GPIO_bit(GPIO53_nPCE_2); | ||
114 | GPSR(GPIO49_nPWE) = GPIO_bit(GPIO49_nPWE); | ||
115 | } | 79 | } |
116 | break; | 80 | break; |
117 | } | 81 | } |
118 | 82 | ||
119 | pxa_gpio_mode(GPIO49_nPWE_MD); | ||
120 | |||
121 | return 0; | 83 | return 0; |
122 | } | 84 | } |
123 | 85 | ||
@@ -130,7 +92,7 @@ static void cmx270_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt) | |||
130 | } | 92 | } |
131 | 93 | ||
132 | 94 | ||
133 | static struct pcmcia_low_level cmx270_pcmcia_ops = { | 95 | static struct pcmcia_low_level cmx270_pcmcia_ops __initdata = { |
134 | .owner = THIS_MODULE, | 96 | .owner = THIS_MODULE, |
135 | .hw_init = cmx270_pcmcia_hw_init, | 97 | .hw_init = cmx270_pcmcia_hw_init, |
136 | .hw_shutdown = cmx270_pcmcia_shutdown, | 98 | .hw_shutdown = cmx270_pcmcia_shutdown, |
@@ -138,7 +100,7 @@ static struct pcmcia_low_level cmx270_pcmcia_ops = { | |||
138 | .configure_socket = cmx270_pcmcia_configure_socket, | 100 | .configure_socket = cmx270_pcmcia_configure_socket, |
139 | .socket_init = cmx270_pcmcia_socket_init, | 101 | .socket_init = cmx270_pcmcia_socket_init, |
140 | .socket_suspend = cmx270_pcmcia_socket_suspend, | 102 | .socket_suspend = cmx270_pcmcia_socket_suspend, |
141 | .nr = 2, | 103 | .nr = 1, |
142 | }; | 104 | }; |
143 | 105 | ||
144 | static struct platform_device *cmx270_pcmcia_device; | 106 | static struct platform_device *cmx270_pcmcia_device; |
@@ -147,15 +109,21 @@ static int __init cmx270_pcmcia_init(void) | |||
147 | { | 109 | { |
148 | int ret; | 110 | int ret; |
149 | 111 | ||
112 | if (!machine_is_armcore()) | ||
113 | return -ENODEV; | ||
114 | |||
150 | cmx270_pcmcia_device = platform_device_alloc("pxa2xx-pcmcia", -1); | 115 | cmx270_pcmcia_device = platform_device_alloc("pxa2xx-pcmcia", -1); |
151 | 116 | ||
152 | if (!cmx270_pcmcia_device) | 117 | if (!cmx270_pcmcia_device) |
153 | return -ENOMEM; | 118 | return -ENOMEM; |
154 | 119 | ||
155 | cmx270_pcmcia_device->dev.platform_data = &cmx270_pcmcia_ops; | 120 | ret = platform_device_add_data(cmx270_pcmcia_device, &cmx270_pcmcia_ops, |
121 | sizeof(cmx270_pcmcia_ops)); | ||
156 | 122 | ||
157 | printk(KERN_INFO "Registering cm-x270 PCMCIA interface.\n"); | 123 | if (ret == 0) { |
158 | ret = platform_device_add(cmx270_pcmcia_device); | 124 | printk(KERN_INFO "Registering cm-x270 PCMCIA interface.\n"); |
125 | ret = platform_device_add(cmx270_pcmcia_device); | ||
126 | } | ||
159 | 127 | ||
160 | if (ret) | 128 | if (ret) |
161 | platform_device_put(cmx270_pcmcia_device); | 129 | platform_device_put(cmx270_pcmcia_device); |
diff --git a/drivers/pcmcia/pxa2xx_mainstone.c b/drivers/pcmcia/pxa2xx_mainstone.c index 145b85e0f02c..92d1cc33808c 100644 --- a/drivers/pcmcia/pxa2xx_mainstone.c +++ b/drivers/pcmcia/pxa2xx_mainstone.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <pcmcia/ss.h> | 22 | #include <pcmcia/ss.h> |
23 | 23 | ||
24 | #include <asm/hardware.h> | 24 | #include <asm/hardware.h> |
25 | #include <asm/mach-types.h> | ||
25 | #include <asm/irq.h> | 26 | #include <asm/irq.h> |
26 | 27 | ||
27 | #include <asm/arch/pxa-regs.h> | 28 | #include <asm/arch/pxa-regs.h> |
@@ -136,7 +137,7 @@ static void mst_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt) | |||
136 | { | 137 | { |
137 | } | 138 | } |
138 | 139 | ||
139 | static struct pcmcia_low_level mst_pcmcia_ops = { | 140 | static struct pcmcia_low_level mst_pcmcia_ops __initdata = { |
140 | .owner = THIS_MODULE, | 141 | .owner = THIS_MODULE, |
141 | .hw_init = mst_pcmcia_hw_init, | 142 | .hw_init = mst_pcmcia_hw_init, |
142 | .hw_shutdown = mst_pcmcia_hw_shutdown, | 143 | .hw_shutdown = mst_pcmcia_hw_shutdown, |
@@ -153,13 +154,17 @@ static int __init mst_pcmcia_init(void) | |||
153 | { | 154 | { |
154 | int ret; | 155 | int ret; |
155 | 156 | ||
157 | if (!machine_is_mainstone()) | ||
158 | return -ENODEV; | ||
159 | |||
156 | mst_pcmcia_device = platform_device_alloc("pxa2xx-pcmcia", -1); | 160 | mst_pcmcia_device = platform_device_alloc("pxa2xx-pcmcia", -1); |
157 | if (!mst_pcmcia_device) | 161 | if (!mst_pcmcia_device) |
158 | return -ENOMEM; | 162 | return -ENOMEM; |
159 | 163 | ||
160 | mst_pcmcia_device->dev.platform_data = &mst_pcmcia_ops; | 164 | ret = platform_device_add_data(mst_pcmcia_device, &mst_pcmcia_ops, |
161 | 165 | sizeof(mst_pcmcia_ops)); | |
162 | ret = platform_device_add(mst_pcmcia_device); | 166 | if (ret == 0) |
167 | ret = platform_device_add(mst_pcmcia_device); | ||
163 | 168 | ||
164 | if (ret) | 169 | if (ret) |
165 | platform_device_put(mst_pcmcia_device); | 170 | platform_device_put(mst_pcmcia_device); |
diff --git a/drivers/pcmcia/pxa2xx_palmtx.c b/drivers/pcmcia/pxa2xx_palmtx.c new file mode 100644 index 000000000000..4abde190c1f5 --- /dev/null +++ b/drivers/pcmcia/pxa2xx_palmtx.c | |||
@@ -0,0 +1,118 @@ | |||
1 | /* | ||
2 | * linux/drivers/pcmcia/pxa2xx_palmtx.c | ||
3 | * | ||
4 | * Driver for Palm T|X PCMCIA | ||
5 | * | ||
6 | * Copyright (C) 2007-2008 Marek Vasut <marek.vasut@gmail.com> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | * | ||
12 | */ | ||
13 | |||
14 | #include <linux/module.h> | ||
15 | #include <linux/platform_device.h> | ||
16 | |||
17 | #include <asm/mach-types.h> | ||
18 | |||
19 | #include <asm/arch/gpio.h> | ||
20 | #include <asm/arch/palmtx.h> | ||
21 | |||
22 | #include "soc_common.h" | ||
23 | |||
24 | static int palmtx_pcmcia_hw_init(struct soc_pcmcia_socket *skt) | ||
25 | { | ||
26 | skt->irq = IRQ_GPIO(GPIO_NR_PALMTX_PCMCIA_READY); | ||
27 | return 0; | ||
28 | } | ||
29 | |||
30 | static void palmtx_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt) | ||
31 | { | ||
32 | } | ||
33 | |||
34 | static void palmtx_pcmcia_socket_state(struct soc_pcmcia_socket *skt, | ||
35 | struct pcmcia_state *state) | ||
36 | { | ||
37 | state->detect = 1; /* always inserted */ | ||
38 | state->ready = !!gpio_get_value(GPIO_NR_PALMTX_PCMCIA_READY); | ||
39 | state->bvd1 = 1; | ||
40 | state->bvd2 = 1; | ||
41 | state->wrprot = 0; | ||
42 | state->vs_3v = 1; | ||
43 | state->vs_Xv = 0; | ||
44 | } | ||
45 | |||
46 | static int | ||
47 | palmtx_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, | ||
48 | const socket_state_t *state) | ||
49 | { | ||
50 | gpio_set_value(GPIO_NR_PALMTX_PCMCIA_POWER1, 1); | ||
51 | gpio_set_value(GPIO_NR_PALMTX_PCMCIA_POWER2, 1); | ||
52 | gpio_set_value(GPIO_NR_PALMTX_PCMCIA_RESET, | ||
53 | !!(state->flags & SS_RESET)); | ||
54 | |||
55 | return 0; | ||
56 | } | ||
57 | |||
58 | static void palmtx_pcmcia_socket_init(struct soc_pcmcia_socket *skt) | ||
59 | { | ||
60 | } | ||
61 | |||
62 | static void palmtx_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt) | ||
63 | { | ||
64 | } | ||
65 | |||
66 | static struct pcmcia_low_level palmtx_pcmcia_ops = { | ||
67 | .owner = THIS_MODULE, | ||
68 | |||
69 | .first = 0, | ||
70 | .nr = 1, | ||
71 | |||
72 | .hw_init = palmtx_pcmcia_hw_init, | ||
73 | .hw_shutdown = palmtx_pcmcia_hw_shutdown, | ||
74 | |||
75 | .socket_state = palmtx_pcmcia_socket_state, | ||
76 | .configure_socket = palmtx_pcmcia_configure_socket, | ||
77 | |||
78 | .socket_init = palmtx_pcmcia_socket_init, | ||
79 | .socket_suspend = palmtx_pcmcia_socket_suspend, | ||
80 | }; | ||
81 | |||
82 | static struct platform_device *palmtx_pcmcia_device; | ||
83 | |||
84 | static int __init palmtx_pcmcia_init(void) | ||
85 | { | ||
86 | int ret; | ||
87 | |||
88 | if (!machine_is_palmtx()) | ||
89 | return -ENODEV; | ||
90 | |||
91 | palmtx_pcmcia_device = platform_device_alloc("pxa2xx-pcmcia", -1); | ||
92 | if (!palmtx_pcmcia_device) | ||
93 | return -ENOMEM; | ||
94 | |||
95 | ret = platform_device_add_data(palmtx_pcmcia_device, &palmtx_pcmcia_ops, | ||
96 | sizeof(palmtx_pcmcia_ops)); | ||
97 | |||
98 | if (!ret) | ||
99 | ret = platform_device_add(palmtx_pcmcia_device); | ||
100 | |||
101 | if (ret) | ||
102 | platform_device_put(palmtx_pcmcia_device); | ||
103 | |||
104 | return ret; | ||
105 | } | ||
106 | |||
107 | static void __exit palmtx_pcmcia_exit(void) | ||
108 | { | ||
109 | platform_device_unregister(palmtx_pcmcia_device); | ||
110 | } | ||
111 | |||
112 | fs_initcall(palmtx_pcmcia_init); | ||
113 | module_exit(palmtx_pcmcia_exit); | ||
114 | |||
115 | MODULE_AUTHOR("Marek Vasut <marek.vasut@gmail.com>"); | ||
116 | MODULE_DESCRIPTION("PCMCIA support for Palm T|X"); | ||
117 | MODULE_ALIAS("platform:pxa2xx-pcmcia"); | ||
118 | MODULE_LICENSE("GPL"); | ||
diff --git a/drivers/pcmcia/pxa2xx_sharpsl.c b/drivers/pcmcia/pxa2xx_sharpsl.c index d5c33bd78d68..d71f93d45833 100644 --- a/drivers/pcmcia/pxa2xx_sharpsl.c +++ b/drivers/pcmcia/pxa2xx_sharpsl.c | |||
@@ -222,7 +222,7 @@ static void sharpsl_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt) | |||
222 | sharpsl_pcmcia_init_reset(skt); | 222 | sharpsl_pcmcia_init_reset(skt); |
223 | } | 223 | } |
224 | 224 | ||
225 | static struct pcmcia_low_level sharpsl_pcmcia_ops = { | 225 | static struct pcmcia_low_level sharpsl_pcmcia_ops __initdata = { |
226 | .owner = THIS_MODULE, | 226 | .owner = THIS_MODULE, |
227 | .hw_init = sharpsl_pcmcia_hw_init, | 227 | .hw_init = sharpsl_pcmcia_hw_init, |
228 | .hw_shutdown = sharpsl_pcmcia_hw_shutdown, | 228 | .hw_shutdown = sharpsl_pcmcia_hw_shutdown, |
@@ -261,10 +261,12 @@ static int __init sharpsl_pcmcia_init(void) | |||
261 | if (!sharpsl_pcmcia_device) | 261 | if (!sharpsl_pcmcia_device) |
262 | return -ENOMEM; | 262 | return -ENOMEM; |
263 | 263 | ||
264 | sharpsl_pcmcia_device->dev.platform_data = &sharpsl_pcmcia_ops; | 264 | ret = platform_device_add_data(sharpsl_pcmcia_device, |
265 | sharpsl_pcmcia_device->dev.parent = platform_scoop_config->devs[0].dev; | 265 | &sharpsl_pcmcia_ops, sizeof(sharpsl_pcmcia_ops)); |
266 | 266 | if (ret == 0) { | |
267 | ret = platform_device_add(sharpsl_pcmcia_device); | 267 | sharpsl_pcmcia_device->dev.parent = platform_scoop_config->devs[0].dev; |
268 | ret = platform_device_add(sharpsl_pcmcia_device); | ||
269 | } | ||
268 | 270 | ||
269 | if (ret) | 271 | if (ret) |
270 | platform_device_put(sharpsl_pcmcia_device); | 272 | platform_device_put(sharpsl_pcmcia_device); |
diff --git a/drivers/power/Kconfig b/drivers/power/Kconfig index 58c806e9c58a..4d17d384578d 100644 --- a/drivers/power/Kconfig +++ b/drivers/power/Kconfig | |||
@@ -49,4 +49,10 @@ config BATTERY_OLPC | |||
49 | help | 49 | help |
50 | Say Y to enable support for the battery on the OLPC laptop. | 50 | Say Y to enable support for the battery on the OLPC laptop. |
51 | 51 | ||
52 | config BATTERY_PALMTX | ||
53 | tristate "Palm T|X battery" | ||
54 | depends on MACH_PALMTX | ||
55 | help | ||
56 | Say Y to enable support for the battery in Palm T|X. | ||
57 | |||
52 | endif # POWER_SUPPLY | 58 | endif # POWER_SUPPLY |
diff --git a/drivers/power/Makefile b/drivers/power/Makefile index 6413ded5fe5f..6f43a54ee420 100644 --- a/drivers/power/Makefile +++ b/drivers/power/Makefile | |||
@@ -20,3 +20,4 @@ obj-$(CONFIG_APM_POWER) += apm_power.o | |||
20 | obj-$(CONFIG_BATTERY_DS2760) += ds2760_battery.o | 20 | obj-$(CONFIG_BATTERY_DS2760) += ds2760_battery.o |
21 | obj-$(CONFIG_BATTERY_PMU) += pmu_battery.o | 21 | obj-$(CONFIG_BATTERY_PMU) += pmu_battery.o |
22 | obj-$(CONFIG_BATTERY_OLPC) += olpc_battery.o | 22 | obj-$(CONFIG_BATTERY_OLPC) += olpc_battery.o |
23 | obj-$(CONFIG_BATTERY_PALMTX) += palmtx_battery.o | ||
diff --git a/drivers/power/palmtx_battery.c b/drivers/power/palmtx_battery.c new file mode 100644 index 000000000000..244bb273a637 --- /dev/null +++ b/drivers/power/palmtx_battery.c | |||
@@ -0,0 +1,198 @@ | |||
1 | /* | ||
2 | * linux/drivers/power/palmtx_battery.c | ||
3 | * | ||
4 | * Battery measurement code for Palm T|X Handheld computer | ||
5 | * | ||
6 | * based on tosa_battery.c | ||
7 | * | ||
8 | * Copyright (C) 2008 Marek Vasut <marek.vasut@gmail.com> | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License version 2 as | ||
12 | * published by the Free Software Foundation. | ||
13 | * | ||
14 | */ | ||
15 | #include <linux/kernel.h> | ||
16 | #include <linux/module.h> | ||
17 | #include <linux/power_supply.h> | ||
18 | #include <linux/wm97xx.h> | ||
19 | #include <linux/delay.h> | ||
20 | #include <linux/spinlock.h> | ||
21 | #include <linux/interrupt.h> | ||
22 | #include <linux/gpio.h> | ||
23 | |||
24 | #include <asm/mach-types.h> | ||
25 | #include <asm/arch/palmtx.h> | ||
26 | |||
27 | static DEFINE_MUTEX(bat_lock); | ||
28 | static struct work_struct bat_work; | ||
29 | struct mutex work_lock; | ||
30 | int bat_status = POWER_SUPPLY_STATUS_DISCHARGING; | ||
31 | |||
32 | static unsigned long palmtx_read_bat(struct power_supply *bat_ps) | ||
33 | { | ||
34 | return wm97xx_read_aux_adc(bat_ps->dev->parent->driver_data, | ||
35 | WM97XX_AUX_ID3) * 1000 / 414; | ||
36 | } | ||
37 | |||
38 | static unsigned long palmtx_read_temp(struct power_supply *bat_ps) | ||
39 | { | ||
40 | return wm97xx_read_aux_adc(bat_ps->dev->parent->driver_data, | ||
41 | WM97XX_AUX_ID2); | ||
42 | } | ||
43 | |||
44 | static int palmtx_bat_get_property(struct power_supply *bat_ps, | ||
45 | enum power_supply_property psp, | ||
46 | union power_supply_propval *val) | ||
47 | { | ||
48 | switch (psp) { | ||
49 | case POWER_SUPPLY_PROP_STATUS: | ||
50 | val->intval = bat_status; | ||
51 | break; | ||
52 | case POWER_SUPPLY_PROP_TECHNOLOGY: | ||
53 | val->intval = POWER_SUPPLY_TECHNOLOGY_LIPO; | ||
54 | break; | ||
55 | case POWER_SUPPLY_PROP_VOLTAGE_NOW: | ||
56 | val->intval = palmtx_read_bat(bat_ps); | ||
57 | break; | ||
58 | case POWER_SUPPLY_PROP_VOLTAGE_MAX: | ||
59 | case POWER_SUPPLY_PROP_VOLTAGE_MAX_DESIGN: | ||
60 | val->intval = PALMTX_BAT_MAX_VOLTAGE; | ||
61 | break; | ||
62 | case POWER_SUPPLY_PROP_VOLTAGE_MIN_DESIGN: | ||
63 | val->intval = PALMTX_BAT_MIN_VOLTAGE; | ||
64 | break; | ||
65 | case POWER_SUPPLY_PROP_TEMP: | ||
66 | val->intval = palmtx_read_temp(bat_ps); | ||
67 | break; | ||
68 | case POWER_SUPPLY_PROP_PRESENT: | ||
69 | val->intval = 1; | ||
70 | break; | ||
71 | default: | ||
72 | return -EINVAL; | ||
73 | } | ||
74 | return 0; | ||
75 | } | ||
76 | |||
77 | static void palmtx_bat_external_power_changed(struct power_supply *bat_ps) | ||
78 | { | ||
79 | schedule_work(&bat_work); | ||
80 | } | ||
81 | |||
82 | static char *status_text[] = { | ||
83 | [POWER_SUPPLY_STATUS_UNKNOWN] = "Unknown", | ||
84 | [POWER_SUPPLY_STATUS_CHARGING] = "Charging", | ||
85 | [POWER_SUPPLY_STATUS_DISCHARGING] = "Discharging", | ||
86 | }; | ||
87 | |||
88 | static void palmtx_bat_update(struct power_supply *bat_ps) | ||
89 | { | ||
90 | int old_status = bat_status; | ||
91 | |||
92 | mutex_lock(&work_lock); | ||
93 | |||
94 | bat_status = gpio_get_value(GPIO_NR_PALMTX_POWER_DETECT) ? | ||
95 | POWER_SUPPLY_STATUS_CHARGING : | ||
96 | POWER_SUPPLY_STATUS_DISCHARGING; | ||
97 | |||
98 | if (old_status != bat_status) { | ||
99 | pr_debug("%s %s -> %s\n", bat_ps->name, | ||
100 | status_text[old_status], | ||
101 | status_text[bat_status]); | ||
102 | power_supply_changed(bat_ps); | ||
103 | } | ||
104 | |||
105 | mutex_unlock(&work_lock); | ||
106 | } | ||
107 | |||
108 | static enum power_supply_property palmtx_bat_main_props[] = { | ||
109 | POWER_SUPPLY_PROP_STATUS, | ||
110 | POWER_SUPPLY_PROP_TECHNOLOGY, | ||
111 | POWER_SUPPLY_PROP_VOLTAGE_NOW, | ||
112 | POWER_SUPPLY_PROP_VOLTAGE_MAX, | ||
113 | POWER_SUPPLY_PROP_VOLTAGE_MIN_DESIGN, | ||
114 | POWER_SUPPLY_PROP_TEMP, | ||
115 | POWER_SUPPLY_PROP_PRESENT, | ||
116 | }; | ||
117 | |||
118 | struct power_supply bat_ps = { | ||
119 | .name = "main-battery", | ||
120 | .type = POWER_SUPPLY_TYPE_BATTERY, | ||
121 | .properties = palmtx_bat_main_props, | ||
122 | .num_properties = ARRAY_SIZE(palmtx_bat_main_props), | ||
123 | .get_property = palmtx_bat_get_property, | ||
124 | .external_power_changed = palmtx_bat_external_power_changed, | ||
125 | .use_for_apm = 1, | ||
126 | }; | ||
127 | |||
128 | static void palmtx_bat_work(struct work_struct *work) | ||
129 | { | ||
130 | palmtx_bat_update(&bat_ps); | ||
131 | } | ||
132 | |||
133 | #ifdef CONFIG_PM | ||
134 | static int palmtx_bat_suspend(struct platform_device *dev, pm_message_t state) | ||
135 | { | ||
136 | flush_scheduled_work(); | ||
137 | return 0; | ||
138 | } | ||
139 | |||
140 | static int palmtx_bat_resume(struct platform_device *dev) | ||
141 | { | ||
142 | schedule_work(&bat_work); | ||
143 | return 0; | ||
144 | } | ||
145 | #else | ||
146 | #define palmtx_bat_suspend NULL | ||
147 | #define palmtx_bat_resume NULL | ||
148 | #endif | ||
149 | |||
150 | static int __devinit palmtx_bat_probe(struct platform_device *dev) | ||
151 | { | ||
152 | int ret = 0; | ||
153 | |||
154 | if (!machine_is_palmtx()) | ||
155 | return -ENODEV; | ||
156 | |||
157 | mutex_init(&work_lock); | ||
158 | |||
159 | INIT_WORK(&bat_work, palmtx_bat_work); | ||
160 | |||
161 | ret = power_supply_register(&dev->dev, &bat_ps); | ||
162 | if (!ret) | ||
163 | schedule_work(&bat_work); | ||
164 | |||
165 | return ret; | ||
166 | } | ||
167 | |||
168 | static int __devexit palmtx_bat_remove(struct platform_device *dev) | ||
169 | { | ||
170 | power_supply_unregister(&bat_ps); | ||
171 | return 0; | ||
172 | } | ||
173 | |||
174 | static struct platform_driver palmtx_bat_driver = { | ||
175 | .driver.name = "wm97xx-battery", | ||
176 | .driver.owner = THIS_MODULE, | ||
177 | .probe = palmtx_bat_probe, | ||
178 | .remove = __devexit_p(palmtx_bat_remove), | ||
179 | .suspend = palmtx_bat_suspend, | ||
180 | .resume = palmtx_bat_resume, | ||
181 | }; | ||
182 | |||
183 | static int __init palmtx_bat_init(void) | ||
184 | { | ||
185 | return platform_driver_register(&palmtx_bat_driver); | ||
186 | } | ||
187 | |||
188 | static void __exit palmtx_bat_exit(void) | ||
189 | { | ||
190 | platform_driver_unregister(&palmtx_bat_driver); | ||
191 | } | ||
192 | |||
193 | module_init(palmtx_bat_init); | ||
194 | module_exit(palmtx_bat_exit); | ||
195 | |||
196 | MODULE_LICENSE("GPL"); | ||
197 | MODULE_AUTHOR("Marek Vasut <marek.vasut@gmail.com>"); | ||
198 | MODULE_DESCRIPTION("Palm T|X battery driver"); | ||
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 3565d4352826..d6bab0d5f453 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig | |||
@@ -172,7 +172,7 @@ config USB_NET2280 | |||
172 | default USB_GADGET | 172 | default USB_GADGET |
173 | select USB_GADGET_SELECTED | 173 | select USB_GADGET_SELECTED |
174 | 174 | ||
175 | config USB_GADGET_PXA2XX | 175 | config USB_GADGET_PXA25X |
176 | boolean "PXA 25x or IXP 4xx" | 176 | boolean "PXA 25x or IXP 4xx" |
177 | depends on (ARCH_PXA && PXA25x) || ARCH_IXP4XX | 177 | depends on (ARCH_PXA && PXA25x) || ARCH_IXP4XX |
178 | help | 178 | help |
@@ -184,19 +184,19 @@ config USB_GADGET_PXA2XX | |||
184 | zero (for control transfers). | 184 | zero (for control transfers). |
185 | 185 | ||
186 | Say "y" to link the driver statically, or "m" to build a | 186 | Say "y" to link the driver statically, or "m" to build a |
187 | dynamically linked module called "pxa2xx_udc" and force all | 187 | dynamically linked module called "pxa25x_udc" and force all |
188 | gadget drivers to also be dynamically linked. | 188 | gadget drivers to also be dynamically linked. |
189 | 189 | ||
190 | config USB_PXA2XX | 190 | config USB_PXA25X |
191 | tristate | 191 | tristate |
192 | depends on USB_GADGET_PXA2XX | 192 | depends on USB_GADGET_PXA25X |
193 | default USB_GADGET | 193 | default USB_GADGET |
194 | select USB_GADGET_SELECTED | 194 | select USB_GADGET_SELECTED |
195 | 195 | ||
196 | # if there's only one gadget driver, using only two bulk endpoints, | 196 | # if there's only one gadget driver, using only two bulk endpoints, |
197 | # don't waste memory for the other endpoints | 197 | # don't waste memory for the other endpoints |
198 | config USB_PXA2XX_SMALL | 198 | config USB_PXA25X_SMALL |
199 | depends on USB_GADGET_PXA2XX | 199 | depends on USB_GADGET_PXA25X |
200 | bool | 200 | bool |
201 | default n if USB_ETH_RNDIS | 201 | default n if USB_ETH_RNDIS |
202 | default y if USB_ZERO | 202 | default y if USB_ZERO |
diff --git a/drivers/usb/gadget/Makefile b/drivers/usb/gadget/Makefile index 12357255d740..e258afd25faf 100644 --- a/drivers/usb/gadget/Makefile +++ b/drivers/usb/gadget/Makefile | |||
@@ -8,7 +8,7 @@ endif | |||
8 | obj-$(CONFIG_USB_DUMMY_HCD) += dummy_hcd.o | 8 | obj-$(CONFIG_USB_DUMMY_HCD) += dummy_hcd.o |
9 | obj-$(CONFIG_USB_NET2280) += net2280.o | 9 | obj-$(CONFIG_USB_NET2280) += net2280.o |
10 | obj-$(CONFIG_USB_AMD5536UDC) += amd5536udc.o | 10 | obj-$(CONFIG_USB_AMD5536UDC) += amd5536udc.o |
11 | obj-$(CONFIG_USB_PXA2XX) += pxa2xx_udc.o | 11 | obj-$(CONFIG_USB_PXA25X) += pxa25x_udc.o |
12 | obj-$(CONFIG_USB_PXA27X) += pxa27x_udc.o | 12 | obj-$(CONFIG_USB_PXA27X) += pxa27x_udc.o |
13 | obj-$(CONFIG_USB_GOKU) += goku_udc.o | 13 | obj-$(CONFIG_USB_GOKU) += goku_udc.o |
14 | obj-$(CONFIG_USB_OMAP) += omap_udc.o | 14 | obj-$(CONFIG_USB_OMAP) += omap_udc.o |
diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c index 8d61ea67a817..4ce3950b997f 100644 --- a/drivers/usb/gadget/ether.c +++ b/drivers/usb/gadget/ether.c | |||
@@ -262,7 +262,7 @@ MODULE_PARM_DESC(host_addr, "Host Ethernet Address"); | |||
262 | /* For CDC-incapable hardware, choose the simple cdc subset. | 262 | /* For CDC-incapable hardware, choose the simple cdc subset. |
263 | * Anything that talks bulk (without notable bugs) can do this. | 263 | * Anything that talks bulk (without notable bugs) can do this. |
264 | */ | 264 | */ |
265 | #ifdef CONFIG_USB_GADGET_PXA2XX | 265 | #ifdef CONFIG_USB_GADGET_PXA25X |
266 | #define DEV_CONFIG_SUBSET | 266 | #define DEV_CONFIG_SUBSET |
267 | #endif | 267 | #endif |
268 | 268 | ||
diff --git a/drivers/usb/gadget/gadget_chips.h b/drivers/usb/gadget/gadget_chips.h index f7f159c1002b..ca5149ea7312 100644 --- a/drivers/usb/gadget/gadget_chips.h +++ b/drivers/usb/gadget/gadget_chips.h | |||
@@ -29,8 +29,8 @@ | |||
29 | #define gadget_is_dummy(g) 0 | 29 | #define gadget_is_dummy(g) 0 |
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | #ifdef CONFIG_USB_GADGET_PXA2XX | 32 | #ifdef CONFIG_USB_GADGET_PXA25X |
33 | #define gadget_is_pxa(g) !strcmp("pxa2xx_udc", (g)->name) | 33 | #define gadget_is_pxa(g) !strcmp("pxa25x_udc", (g)->name) |
34 | #else | 34 | #else |
35 | #define gadget_is_pxa(g) 0 | 35 | #define gadget_is_pxa(g) 0 |
36 | #endif | 36 | #endif |
diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c index 69b0a2754f2a..f132a9219e11 100644 --- a/drivers/usb/gadget/inode.c +++ b/drivers/usb/gadget/inode.c | |||
@@ -1501,7 +1501,7 @@ gadgetfs_setup (struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl) | |||
1501 | } | 1501 | } |
1502 | break; | 1502 | break; |
1503 | 1503 | ||
1504 | #ifndef CONFIG_USB_GADGET_PXA2XX | 1504 | #ifndef CONFIG_USB_GADGET_PXA25X |
1505 | /* PXA automagically handles this request too */ | 1505 | /* PXA automagically handles this request too */ |
1506 | case USB_REQ_GET_CONFIGURATION: | 1506 | case USB_REQ_GET_CONFIGURATION: |
1507 | if (ctrl->bRequestType != 0x80) | 1507 | if (ctrl->bRequestType != 0x80) |
diff --git a/drivers/usb/gadget/pxa2xx_udc.c b/drivers/usb/gadget/pxa25x_udc.c index 08f699b1fc57..5d50031938ab 100644 --- a/drivers/usb/gadget/pxa2xx_udc.c +++ b/drivers/usb/gadget/pxa25x_udc.c | |||
@@ -1,5 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * linux/drivers/usb/gadget/pxa2xx_udc.c | ||
3 | * Intel PXA25x and IXP4xx on-chip full speed USB device controllers | 2 | * Intel PXA25x and IXP4xx on-chip full speed USB device controllers |
4 | * | 3 | * |
5 | * Copyright (C) 2002 Intrinsyc, Inc. (Frank Becker) | 4 | * Copyright (C) 2002 Intrinsyc, Inc. (Frank Becker) |
@@ -46,19 +45,25 @@ | |||
46 | #include <linux/err.h> | 45 | #include <linux/err.h> |
47 | #include <linux/seq_file.h> | 46 | #include <linux/seq_file.h> |
48 | #include <linux/debugfs.h> | 47 | #include <linux/debugfs.h> |
48 | #include <linux/io.h> | ||
49 | 49 | ||
50 | #include <asm/byteorder.h> | 50 | #include <asm/byteorder.h> |
51 | #include <asm/dma.h> | 51 | #include <asm/dma.h> |
52 | #include <asm/gpio.h> | 52 | #include <asm/gpio.h> |
53 | #include <asm/io.h> | ||
54 | #include <asm/system.h> | 53 | #include <asm/system.h> |
55 | #include <asm/mach-types.h> | 54 | #include <asm/mach-types.h> |
56 | #include <asm/unaligned.h> | 55 | #include <asm/unaligned.h> |
57 | #include <asm/hardware.h> | ||
58 | 56 | ||
59 | #include <linux/usb/ch9.h> | 57 | #include <linux/usb/ch9.h> |
60 | #include <linux/usb/gadget.h> | 58 | #include <linux/usb/gadget.h> |
61 | 59 | ||
60 | /* | ||
61 | * This driver is PXA25x only. Grab the right register definitions. | ||
62 | */ | ||
63 | #ifdef CONFIG_ARCH_PXA | ||
64 | #include <asm/arch/pxa25x-udc.h> | ||
65 | #endif | ||
66 | |||
62 | #include <asm/mach/udc_pxa2xx.h> | 67 | #include <asm/mach/udc_pxa2xx.h> |
63 | 68 | ||
64 | 69 | ||
@@ -91,7 +96,7 @@ | |||
91 | #define DRIVER_DESC "PXA 25x USB Device Controller driver" | 96 | #define DRIVER_DESC "PXA 25x USB Device Controller driver" |
92 | 97 | ||
93 | 98 | ||
94 | static const char driver_name [] = "pxa2xx_udc"; | 99 | static const char driver_name [] = "pxa25x_udc"; |
95 | 100 | ||
96 | static const char ep0name [] = "ep0"; | 101 | static const char ep0name [] = "ep0"; |
97 | 102 | ||
@@ -111,10 +116,10 @@ static const char ep0name [] = "ep0"; | |||
111 | 116 | ||
112 | #endif | 117 | #endif |
113 | 118 | ||
114 | #include "pxa2xx_udc.h" | 119 | #include "pxa25x_udc.h" |
115 | 120 | ||
116 | 121 | ||
117 | #ifdef CONFIG_USB_PXA2XX_SMALL | 122 | #ifdef CONFIG_USB_PXA25X_SMALL |
118 | #define SIZE_STR " (small)" | 123 | #define SIZE_STR " (small)" |
119 | #else | 124 | #else |
120 | #define SIZE_STR "" | 125 | #define SIZE_STR "" |
@@ -126,8 +131,8 @@ static const char ep0name [] = "ep0"; | |||
126 | * --------------------------------------------------------------------------- | 131 | * --------------------------------------------------------------------------- |
127 | */ | 132 | */ |
128 | 133 | ||
129 | static void pxa2xx_ep_fifo_flush (struct usb_ep *ep); | 134 | static void pxa25x_ep_fifo_flush (struct usb_ep *ep); |
130 | static void nuke (struct pxa2xx_ep *, int status); | 135 | static void nuke (struct pxa25x_ep *, int status); |
131 | 136 | ||
132 | /* one GPIO should be used to detect VBUS from the host */ | 137 | /* one GPIO should be used to detect VBUS from the host */ |
133 | static int is_vbus_present(void) | 138 | static int is_vbus_present(void) |
@@ -147,9 +152,10 @@ static int is_vbus_present(void) | |||
147 | static void pullup_off(void) | 152 | static void pullup_off(void) |
148 | { | 153 | { |
149 | struct pxa2xx_udc_mach_info *mach = the_controller->mach; | 154 | struct pxa2xx_udc_mach_info *mach = the_controller->mach; |
155 | int off_level = mach->gpio_pullup_inverted; | ||
150 | 156 | ||
151 | if (mach->gpio_pullup) | 157 | if (mach->gpio_pullup) |
152 | gpio_set_value(mach->gpio_pullup, 0); | 158 | gpio_set_value(mach->gpio_pullup, off_level); |
153 | else if (mach->udc_command) | 159 | else if (mach->udc_command) |
154 | mach->udc_command(PXA2XX_UDC_CMD_DISCONNECT); | 160 | mach->udc_command(PXA2XX_UDC_CMD_DISCONNECT); |
155 | } | 161 | } |
@@ -157,9 +163,10 @@ static void pullup_off(void) | |||
157 | static void pullup_on(void) | 163 | static void pullup_on(void) |
158 | { | 164 | { |
159 | struct pxa2xx_udc_mach_info *mach = the_controller->mach; | 165 | struct pxa2xx_udc_mach_info *mach = the_controller->mach; |
166 | int on_level = !mach->gpio_pullup_inverted; | ||
160 | 167 | ||
161 | if (mach->gpio_pullup) | 168 | if (mach->gpio_pullup) |
162 | gpio_set_value(mach->gpio_pullup, 1); | 169 | gpio_set_value(mach->gpio_pullup, on_level); |
163 | else if (mach->udc_command) | 170 | else if (mach->udc_command) |
164 | mach->udc_command(PXA2XX_UDC_CMD_CONNECT); | 171 | mach->udc_command(PXA2XX_UDC_CMD_CONNECT); |
165 | } | 172 | } |
@@ -212,24 +219,24 @@ static inline void udc_ack_int_UDCCR(int mask) | |||
212 | /* | 219 | /* |
213 | * endpoint enable/disable | 220 | * endpoint enable/disable |
214 | * | 221 | * |
215 | * we need to verify the descriptors used to enable endpoints. since pxa2xx | 222 | * we need to verify the descriptors used to enable endpoints. since pxa25x |
216 | * endpoint configurations are fixed, and are pretty much always enabled, | 223 | * endpoint configurations are fixed, and are pretty much always enabled, |
217 | * there's not a lot to manage here. | 224 | * there's not a lot to manage here. |
218 | * | 225 | * |
219 | * because pxa2xx can't selectively initialize bulk (or interrupt) endpoints, | 226 | * because pxa25x can't selectively initialize bulk (or interrupt) endpoints, |
220 | * (resetting endpoint halt and toggle), SET_INTERFACE is unusable except | 227 | * (resetting endpoint halt and toggle), SET_INTERFACE is unusable except |
221 | * for a single interface (with only the default altsetting) and for gadget | 228 | * for a single interface (with only the default altsetting) and for gadget |
222 | * drivers that don't halt endpoints (not reset by set_interface). that also | 229 | * drivers that don't halt endpoints (not reset by set_interface). that also |
223 | * means that if you use ISO, you must violate the USB spec rule that all | 230 | * means that if you use ISO, you must violate the USB spec rule that all |
224 | * iso endpoints must be in non-default altsettings. | 231 | * iso endpoints must be in non-default altsettings. |
225 | */ | 232 | */ |
226 | static int pxa2xx_ep_enable (struct usb_ep *_ep, | 233 | static int pxa25x_ep_enable (struct usb_ep *_ep, |
227 | const struct usb_endpoint_descriptor *desc) | 234 | const struct usb_endpoint_descriptor *desc) |
228 | { | 235 | { |
229 | struct pxa2xx_ep *ep; | 236 | struct pxa25x_ep *ep; |
230 | struct pxa2xx_udc *dev; | 237 | struct pxa25x_udc *dev; |
231 | 238 | ||
232 | ep = container_of (_ep, struct pxa2xx_ep, ep); | 239 | ep = container_of (_ep, struct pxa25x_ep, ep); |
233 | if (!_ep || !desc || ep->desc || _ep->name == ep0name | 240 | if (!_ep || !desc || ep->desc || _ep->name == ep0name |
234 | || desc->bDescriptorType != USB_DT_ENDPOINT | 241 | || desc->bDescriptorType != USB_DT_ENDPOINT |
235 | || ep->bEndpointAddress != desc->bEndpointAddress | 242 | || ep->bEndpointAddress != desc->bEndpointAddress |
@@ -268,7 +275,7 @@ static int pxa2xx_ep_enable (struct usb_ep *_ep, | |||
268 | ep->ep.maxpacket = le16_to_cpu (desc->wMaxPacketSize); | 275 | ep->ep.maxpacket = le16_to_cpu (desc->wMaxPacketSize); |
269 | 276 | ||
270 | /* flush fifo (mostly for OUT buffers) */ | 277 | /* flush fifo (mostly for OUT buffers) */ |
271 | pxa2xx_ep_fifo_flush (_ep); | 278 | pxa25x_ep_fifo_flush (_ep); |
272 | 279 | ||
273 | /* ... reset halt state too, if we could ... */ | 280 | /* ... reset halt state too, if we could ... */ |
274 | 281 | ||
@@ -276,12 +283,12 @@ static int pxa2xx_ep_enable (struct usb_ep *_ep, | |||
276 | return 0; | 283 | return 0; |
277 | } | 284 | } |
278 | 285 | ||
279 | static int pxa2xx_ep_disable (struct usb_ep *_ep) | 286 | static int pxa25x_ep_disable (struct usb_ep *_ep) |
280 | { | 287 | { |
281 | struct pxa2xx_ep *ep; | 288 | struct pxa25x_ep *ep; |
282 | unsigned long flags; | 289 | unsigned long flags; |
283 | 290 | ||
284 | ep = container_of (_ep, struct pxa2xx_ep, ep); | 291 | ep = container_of (_ep, struct pxa25x_ep, ep); |
285 | if (!_ep || !ep->desc) { | 292 | if (!_ep || !ep->desc) { |
286 | DMSG("%s, %s not enabled\n", __func__, | 293 | DMSG("%s, %s not enabled\n", __func__, |
287 | _ep ? ep->ep.name : NULL); | 294 | _ep ? ep->ep.name : NULL); |
@@ -292,7 +299,7 @@ static int pxa2xx_ep_disable (struct usb_ep *_ep) | |||
292 | nuke (ep, -ESHUTDOWN); | 299 | nuke (ep, -ESHUTDOWN); |
293 | 300 | ||
294 | /* flush fifo (mostly for IN buffers) */ | 301 | /* flush fifo (mostly for IN buffers) */ |
295 | pxa2xx_ep_fifo_flush (_ep); | 302 | pxa25x_ep_fifo_flush (_ep); |
296 | 303 | ||
297 | ep->desc = NULL; | 304 | ep->desc = NULL; |
298 | ep->stopped = 1; | 305 | ep->stopped = 1; |
@@ -304,18 +311,18 @@ static int pxa2xx_ep_disable (struct usb_ep *_ep) | |||
304 | 311 | ||
305 | /*-------------------------------------------------------------------------*/ | 312 | /*-------------------------------------------------------------------------*/ |
306 | 313 | ||
307 | /* for the pxa2xx, these can just wrap kmalloc/kfree. gadget drivers | 314 | /* for the pxa25x, these can just wrap kmalloc/kfree. gadget drivers |
308 | * must still pass correctly initialized endpoints, since other controller | 315 | * must still pass correctly initialized endpoints, since other controller |
309 | * drivers may care about how it's currently set up (dma issues etc). | 316 | * drivers may care about how it's currently set up (dma issues etc). |
310 | */ | 317 | */ |
311 | 318 | ||
312 | /* | 319 | /* |
313 | * pxa2xx_ep_alloc_request - allocate a request data structure | 320 | * pxa25x_ep_alloc_request - allocate a request data structure |
314 | */ | 321 | */ |
315 | static struct usb_request * | 322 | static struct usb_request * |
316 | pxa2xx_ep_alloc_request (struct usb_ep *_ep, gfp_t gfp_flags) | 323 | pxa25x_ep_alloc_request (struct usb_ep *_ep, gfp_t gfp_flags) |
317 | { | 324 | { |
318 | struct pxa2xx_request *req; | 325 | struct pxa25x_request *req; |
319 | 326 | ||
320 | req = kzalloc(sizeof(*req), gfp_flags); | 327 | req = kzalloc(sizeof(*req), gfp_flags); |
321 | if (!req) | 328 | if (!req) |
@@ -327,14 +334,14 @@ pxa2xx_ep_alloc_request (struct usb_ep *_ep, gfp_t gfp_flags) | |||
327 | 334 | ||
328 | 335 | ||
329 | /* | 336 | /* |
330 | * pxa2xx_ep_free_request - deallocate a request data structure | 337 | * pxa25x_ep_free_request - deallocate a request data structure |
331 | */ | 338 | */ |
332 | static void | 339 | static void |
333 | pxa2xx_ep_free_request (struct usb_ep *_ep, struct usb_request *_req) | 340 | pxa25x_ep_free_request (struct usb_ep *_ep, struct usb_request *_req) |
334 | { | 341 | { |
335 | struct pxa2xx_request *req; | 342 | struct pxa25x_request *req; |
336 | 343 | ||
337 | req = container_of (_req, struct pxa2xx_request, req); | 344 | req = container_of (_req, struct pxa25x_request, req); |
338 | WARN_ON (!list_empty (&req->queue)); | 345 | WARN_ON (!list_empty (&req->queue)); |
339 | kfree(req); | 346 | kfree(req); |
340 | } | 347 | } |
@@ -344,7 +351,7 @@ pxa2xx_ep_free_request (struct usb_ep *_ep, struct usb_request *_req) | |||
344 | /* | 351 | /* |
345 | * done - retire a request; caller blocked irqs | 352 | * done - retire a request; caller blocked irqs |
346 | */ | 353 | */ |
347 | static void done(struct pxa2xx_ep *ep, struct pxa2xx_request *req, int status) | 354 | static void done(struct pxa25x_ep *ep, struct pxa25x_request *req, int status) |
348 | { | 355 | { |
349 | unsigned stopped = ep->stopped; | 356 | unsigned stopped = ep->stopped; |
350 | 357 | ||
@@ -367,13 +374,13 @@ static void done(struct pxa2xx_ep *ep, struct pxa2xx_request *req, int status) | |||
367 | } | 374 | } |
368 | 375 | ||
369 | 376 | ||
370 | static inline void ep0_idle (struct pxa2xx_udc *dev) | 377 | static inline void ep0_idle (struct pxa25x_udc *dev) |
371 | { | 378 | { |
372 | dev->ep0state = EP0_IDLE; | 379 | dev->ep0state = EP0_IDLE; |
373 | } | 380 | } |
374 | 381 | ||
375 | static int | 382 | static int |
376 | write_packet(volatile u32 *uddr, struct pxa2xx_request *req, unsigned max) | 383 | write_packet(volatile u32 *uddr, struct pxa25x_request *req, unsigned max) |
377 | { | 384 | { |
378 | u8 *buf; | 385 | u8 *buf; |
379 | unsigned length, count; | 386 | unsigned length, count; |
@@ -398,7 +405,7 @@ write_packet(volatile u32 *uddr, struct pxa2xx_request *req, unsigned max) | |||
398 | * caller guarantees at least one packet buffer is ready (or a zlp). | 405 | * caller guarantees at least one packet buffer is ready (or a zlp). |
399 | */ | 406 | */ |
400 | static int | 407 | static int |
401 | write_fifo (struct pxa2xx_ep *ep, struct pxa2xx_request *req) | 408 | write_fifo (struct pxa25x_ep *ep, struct pxa25x_request *req) |
402 | { | 409 | { |
403 | unsigned max; | 410 | unsigned max; |
404 | 411 | ||
@@ -455,7 +462,7 @@ write_fifo (struct pxa2xx_ep *ep, struct pxa2xx_request *req) | |||
455 | * ep0 data stage. these chips want very simple state transitions. | 462 | * ep0 data stage. these chips want very simple state transitions. |
456 | */ | 463 | */ |
457 | static inline | 464 | static inline |
458 | void ep0start(struct pxa2xx_udc *dev, u32 flags, const char *tag) | 465 | void ep0start(struct pxa25x_udc *dev, u32 flags, const char *tag) |
459 | { | 466 | { |
460 | UDCCS0 = flags|UDCCS0_SA|UDCCS0_OPR; | 467 | UDCCS0 = flags|UDCCS0_SA|UDCCS0_OPR; |
461 | USIR0 = USIR0_IR0; | 468 | USIR0 = USIR0_IR0; |
@@ -465,7 +472,7 @@ void ep0start(struct pxa2xx_udc *dev, u32 flags, const char *tag) | |||
465 | } | 472 | } |
466 | 473 | ||
467 | static int | 474 | static int |
468 | write_ep0_fifo (struct pxa2xx_ep *ep, struct pxa2xx_request *req) | 475 | write_ep0_fifo (struct pxa25x_ep *ep, struct pxa25x_request *req) |
469 | { | 476 | { |
470 | unsigned count; | 477 | unsigned count; |
471 | int is_short; | 478 | int is_short; |
@@ -525,7 +532,7 @@ write_ep0_fifo (struct pxa2xx_ep *ep, struct pxa2xx_request *req) | |||
525 | * request buffer having filled (and maybe overran till end-of-packet). | 532 | * request buffer having filled (and maybe overran till end-of-packet). |
526 | */ | 533 | */ |
527 | static int | 534 | static int |
528 | read_fifo (struct pxa2xx_ep *ep, struct pxa2xx_request *req) | 535 | read_fifo (struct pxa25x_ep *ep, struct pxa25x_request *req) |
529 | { | 536 | { |
530 | for (;;) { | 537 | for (;;) { |
531 | u32 udccs; | 538 | u32 udccs; |
@@ -602,7 +609,7 @@ read_fifo (struct pxa2xx_ep *ep, struct pxa2xx_request *req) | |||
602 | * protocols do use them. | 609 | * protocols do use them. |
603 | */ | 610 | */ |
604 | static int | 611 | static int |
605 | read_ep0_fifo (struct pxa2xx_ep *ep, struct pxa2xx_request *req) | 612 | read_ep0_fifo (struct pxa25x_ep *ep, struct pxa25x_request *req) |
606 | { | 613 | { |
607 | u8 *buf, byte; | 614 | u8 *buf, byte; |
608 | unsigned bufferspace; | 615 | unsigned bufferspace; |
@@ -641,21 +648,21 @@ read_ep0_fifo (struct pxa2xx_ep *ep, struct pxa2xx_request *req) | |||
641 | /*-------------------------------------------------------------------------*/ | 648 | /*-------------------------------------------------------------------------*/ |
642 | 649 | ||
643 | static int | 650 | static int |
644 | pxa2xx_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) | 651 | pxa25x_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) |
645 | { | 652 | { |
646 | struct pxa2xx_request *req; | 653 | struct pxa25x_request *req; |
647 | struct pxa2xx_ep *ep; | 654 | struct pxa25x_ep *ep; |
648 | struct pxa2xx_udc *dev; | 655 | struct pxa25x_udc *dev; |
649 | unsigned long flags; | 656 | unsigned long flags; |
650 | 657 | ||
651 | req = container_of(_req, struct pxa2xx_request, req); | 658 | req = container_of(_req, struct pxa25x_request, req); |
652 | if (unlikely (!_req || !_req->complete || !_req->buf | 659 | if (unlikely (!_req || !_req->complete || !_req->buf |
653 | || !list_empty(&req->queue))) { | 660 | || !list_empty(&req->queue))) { |
654 | DMSG("%s, bad params\n", __func__); | 661 | DMSG("%s, bad params\n", __func__); |
655 | return -EINVAL; | 662 | return -EINVAL; |
656 | } | 663 | } |
657 | 664 | ||
658 | ep = container_of(_ep, struct pxa2xx_ep, ep); | 665 | ep = container_of(_ep, struct pxa25x_ep, ep); |
659 | if (unlikely (!_ep || (!ep->desc && ep->ep.name != ep0name))) { | 666 | if (unlikely (!_ep || (!ep->desc && ep->ep.name != ep0name))) { |
660 | DMSG("%s, bad ep\n", __func__); | 667 | DMSG("%s, bad ep\n", __func__); |
661 | return -EINVAL; | 668 | return -EINVAL; |
@@ -751,14 +758,14 @@ pxa2xx_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) | |||
751 | /* | 758 | /* |
752 | * nuke - dequeue ALL requests | 759 | * nuke - dequeue ALL requests |
753 | */ | 760 | */ |
754 | static void nuke(struct pxa2xx_ep *ep, int status) | 761 | static void nuke(struct pxa25x_ep *ep, int status) |
755 | { | 762 | { |
756 | struct pxa2xx_request *req; | 763 | struct pxa25x_request *req; |
757 | 764 | ||
758 | /* called with irqs blocked */ | 765 | /* called with irqs blocked */ |
759 | while (!list_empty(&ep->queue)) { | 766 | while (!list_empty(&ep->queue)) { |
760 | req = list_entry(ep->queue.next, | 767 | req = list_entry(ep->queue.next, |
761 | struct pxa2xx_request, | 768 | struct pxa25x_request, |
762 | queue); | 769 | queue); |
763 | done(ep, req, status); | 770 | done(ep, req, status); |
764 | } | 771 | } |
@@ -768,13 +775,13 @@ static void nuke(struct pxa2xx_ep *ep, int status) | |||
768 | 775 | ||
769 | 776 | ||
770 | /* dequeue JUST ONE request */ | 777 | /* dequeue JUST ONE request */ |
771 | static int pxa2xx_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) | 778 | static int pxa25x_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) |
772 | { | 779 | { |
773 | struct pxa2xx_ep *ep; | 780 | struct pxa25x_ep *ep; |
774 | struct pxa2xx_request *req; | 781 | struct pxa25x_request *req; |
775 | unsigned long flags; | 782 | unsigned long flags; |
776 | 783 | ||
777 | ep = container_of(_ep, struct pxa2xx_ep, ep); | 784 | ep = container_of(_ep, struct pxa25x_ep, ep); |
778 | if (!_ep || ep->ep.name == ep0name) | 785 | if (!_ep || ep->ep.name == ep0name) |
779 | return -EINVAL; | 786 | return -EINVAL; |
780 | 787 | ||
@@ -798,12 +805,12 @@ static int pxa2xx_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) | |||
798 | 805 | ||
799 | /*-------------------------------------------------------------------------*/ | 806 | /*-------------------------------------------------------------------------*/ |
800 | 807 | ||
801 | static int pxa2xx_ep_set_halt(struct usb_ep *_ep, int value) | 808 | static int pxa25x_ep_set_halt(struct usb_ep *_ep, int value) |
802 | { | 809 | { |
803 | struct pxa2xx_ep *ep; | 810 | struct pxa25x_ep *ep; |
804 | unsigned long flags; | 811 | unsigned long flags; |
805 | 812 | ||
806 | ep = container_of(_ep, struct pxa2xx_ep, ep); | 813 | ep = container_of(_ep, struct pxa25x_ep, ep); |
807 | if (unlikely (!_ep | 814 | if (unlikely (!_ep |
808 | || (!ep->desc && ep->ep.name != ep0name)) | 815 | || (!ep->desc && ep->ep.name != ep0name)) |
809 | || ep->bmAttributes == USB_ENDPOINT_XFER_ISOC) { | 816 | || ep->bmAttributes == USB_ENDPOINT_XFER_ISOC) { |
@@ -853,11 +860,11 @@ static int pxa2xx_ep_set_halt(struct usb_ep *_ep, int value) | |||
853 | return 0; | 860 | return 0; |
854 | } | 861 | } |
855 | 862 | ||
856 | static int pxa2xx_ep_fifo_status(struct usb_ep *_ep) | 863 | static int pxa25x_ep_fifo_status(struct usb_ep *_ep) |
857 | { | 864 | { |
858 | struct pxa2xx_ep *ep; | 865 | struct pxa25x_ep *ep; |
859 | 866 | ||
860 | ep = container_of(_ep, struct pxa2xx_ep, ep); | 867 | ep = container_of(_ep, struct pxa25x_ep, ep); |
861 | if (!_ep) { | 868 | if (!_ep) { |
862 | DMSG("%s, bad ep\n", __func__); | 869 | DMSG("%s, bad ep\n", __func__); |
863 | return -ENODEV; | 870 | return -ENODEV; |
@@ -872,11 +879,11 @@ static int pxa2xx_ep_fifo_status(struct usb_ep *_ep) | |||
872 | return (*ep->reg_ubcr & 0xfff) + 1; | 879 | return (*ep->reg_ubcr & 0xfff) + 1; |
873 | } | 880 | } |
874 | 881 | ||
875 | static void pxa2xx_ep_fifo_flush(struct usb_ep *_ep) | 882 | static void pxa25x_ep_fifo_flush(struct usb_ep *_ep) |
876 | { | 883 | { |
877 | struct pxa2xx_ep *ep; | 884 | struct pxa25x_ep *ep; |
878 | 885 | ||
879 | ep = container_of(_ep, struct pxa2xx_ep, ep); | 886 | ep = container_of(_ep, struct pxa25x_ep, ep); |
880 | if (!_ep || ep->ep.name == ep0name || !list_empty(&ep->queue)) { | 887 | if (!_ep || ep->ep.name == ep0name || !list_empty(&ep->queue)) { |
881 | DMSG("%s, bad ep\n", __func__); | 888 | DMSG("%s, bad ep\n", __func__); |
882 | return; | 889 | return; |
@@ -898,19 +905,19 @@ static void pxa2xx_ep_fifo_flush(struct usb_ep *_ep) | |||
898 | } | 905 | } |
899 | 906 | ||
900 | 907 | ||
901 | static struct usb_ep_ops pxa2xx_ep_ops = { | 908 | static struct usb_ep_ops pxa25x_ep_ops = { |
902 | .enable = pxa2xx_ep_enable, | 909 | .enable = pxa25x_ep_enable, |
903 | .disable = pxa2xx_ep_disable, | 910 | .disable = pxa25x_ep_disable, |
904 | 911 | ||
905 | .alloc_request = pxa2xx_ep_alloc_request, | 912 | .alloc_request = pxa25x_ep_alloc_request, |
906 | .free_request = pxa2xx_ep_free_request, | 913 | .free_request = pxa25x_ep_free_request, |
907 | 914 | ||
908 | .queue = pxa2xx_ep_queue, | 915 | .queue = pxa25x_ep_queue, |
909 | .dequeue = pxa2xx_ep_dequeue, | 916 | .dequeue = pxa25x_ep_dequeue, |
910 | 917 | ||
911 | .set_halt = pxa2xx_ep_set_halt, | 918 | .set_halt = pxa25x_ep_set_halt, |
912 | .fifo_status = pxa2xx_ep_fifo_status, | 919 | .fifo_status = pxa25x_ep_fifo_status, |
913 | .fifo_flush = pxa2xx_ep_fifo_flush, | 920 | .fifo_flush = pxa25x_ep_fifo_flush, |
914 | }; | 921 | }; |
915 | 922 | ||
916 | 923 | ||
@@ -919,12 +926,12 @@ static struct usb_ep_ops pxa2xx_ep_ops = { | |||
919 | * --------------------------------------------------------------------------- | 926 | * --------------------------------------------------------------------------- |
920 | */ | 927 | */ |
921 | 928 | ||
922 | static int pxa2xx_udc_get_frame(struct usb_gadget *_gadget) | 929 | static int pxa25x_udc_get_frame(struct usb_gadget *_gadget) |
923 | { | 930 | { |
924 | return ((UFNRH & 0x07) << 8) | (UFNRL & 0xff); | 931 | return ((UFNRH & 0x07) << 8) | (UFNRL & 0xff); |
925 | } | 932 | } |
926 | 933 | ||
927 | static int pxa2xx_udc_wakeup(struct usb_gadget *_gadget) | 934 | static int pxa25x_udc_wakeup(struct usb_gadget *_gadget) |
928 | { | 935 | { |
929 | /* host may not have enabled remote wakeup */ | 936 | /* host may not have enabled remote wakeup */ |
930 | if ((UDCCS0 & UDCCS0_DRWF) == 0) | 937 | if ((UDCCS0 & UDCCS0_DRWF) == 0) |
@@ -933,14 +940,14 @@ static int pxa2xx_udc_wakeup(struct usb_gadget *_gadget) | |||
933 | return 0; | 940 | return 0; |
934 | } | 941 | } |
935 | 942 | ||
936 | static void stop_activity(struct pxa2xx_udc *, struct usb_gadget_driver *); | 943 | static void stop_activity(struct pxa25x_udc *, struct usb_gadget_driver *); |
937 | static void udc_enable (struct pxa2xx_udc *); | 944 | static void udc_enable (struct pxa25x_udc *); |
938 | static void udc_disable(struct pxa2xx_udc *); | 945 | static void udc_disable(struct pxa25x_udc *); |
939 | 946 | ||
940 | /* We disable the UDC -- and its 48 MHz clock -- whenever it's not | 947 | /* We disable the UDC -- and its 48 MHz clock -- whenever it's not |
941 | * in active use. | 948 | * in active use. |
942 | */ | 949 | */ |
943 | static int pullup(struct pxa2xx_udc *udc) | 950 | static int pullup(struct pxa25x_udc *udc) |
944 | { | 951 | { |
945 | int is_active = udc->vbus && udc->pullup && !udc->suspended; | 952 | int is_active = udc->vbus && udc->pullup && !udc->suspended; |
946 | DMSG("%s\n", is_active ? "active" : "inactive"); | 953 | DMSG("%s\n", is_active ? "active" : "inactive"); |
@@ -970,11 +977,11 @@ static int pullup(struct pxa2xx_udc *udc) | |||
970 | } | 977 | } |
971 | 978 | ||
972 | /* VBUS reporting logically comes from a transceiver */ | 979 | /* VBUS reporting logically comes from a transceiver */ |
973 | static int pxa2xx_udc_vbus_session(struct usb_gadget *_gadget, int is_active) | 980 | static int pxa25x_udc_vbus_session(struct usb_gadget *_gadget, int is_active) |
974 | { | 981 | { |
975 | struct pxa2xx_udc *udc; | 982 | struct pxa25x_udc *udc; |
976 | 983 | ||
977 | udc = container_of(_gadget, struct pxa2xx_udc, gadget); | 984 | udc = container_of(_gadget, struct pxa25x_udc, gadget); |
978 | udc->vbus = (is_active != 0); | 985 | udc->vbus = (is_active != 0); |
979 | DMSG("vbus %s\n", is_active ? "supplied" : "inactive"); | 986 | DMSG("vbus %s\n", is_active ? "supplied" : "inactive"); |
980 | pullup(udc); | 987 | pullup(udc); |
@@ -982,11 +989,11 @@ static int pxa2xx_udc_vbus_session(struct usb_gadget *_gadget, int is_active) | |||
982 | } | 989 | } |
983 | 990 | ||
984 | /* drivers may have software control over D+ pullup */ | 991 | /* drivers may have software control over D+ pullup */ |
985 | static int pxa2xx_udc_pullup(struct usb_gadget *_gadget, int is_active) | 992 | static int pxa25x_udc_pullup(struct usb_gadget *_gadget, int is_active) |
986 | { | 993 | { |
987 | struct pxa2xx_udc *udc; | 994 | struct pxa25x_udc *udc; |
988 | 995 | ||
989 | udc = container_of(_gadget, struct pxa2xx_udc, gadget); | 996 | udc = container_of(_gadget, struct pxa25x_udc, gadget); |
990 | 997 | ||
991 | /* not all boards support pullup control */ | 998 | /* not all boards support pullup control */ |
992 | if (!udc->mach->gpio_pullup && !udc->mach->udc_command) | 999 | if (!udc->mach->gpio_pullup && !udc->mach->udc_command) |
@@ -997,11 +1004,11 @@ static int pxa2xx_udc_pullup(struct usb_gadget *_gadget, int is_active) | |||
997 | return 0; | 1004 | return 0; |
998 | } | 1005 | } |
999 | 1006 | ||
1000 | static const struct usb_gadget_ops pxa2xx_udc_ops = { | 1007 | static const struct usb_gadget_ops pxa25x_udc_ops = { |
1001 | .get_frame = pxa2xx_udc_get_frame, | 1008 | .get_frame = pxa25x_udc_get_frame, |
1002 | .wakeup = pxa2xx_udc_wakeup, | 1009 | .wakeup = pxa25x_udc_wakeup, |
1003 | .vbus_session = pxa2xx_udc_vbus_session, | 1010 | .vbus_session = pxa25x_udc_vbus_session, |
1004 | .pullup = pxa2xx_udc_pullup, | 1011 | .pullup = pxa25x_udc_pullup, |
1005 | 1012 | ||
1006 | // .vbus_draw ... boards may consume current from VBUS, up to | 1013 | // .vbus_draw ... boards may consume current from VBUS, up to |
1007 | // 100-500mA based on config. the 500uA suspend ceiling means | 1014 | // 100-500mA based on config. the 500uA suspend ceiling means |
@@ -1015,7 +1022,7 @@ static const struct usb_gadget_ops pxa2xx_udc_ops = { | |||
1015 | static int | 1022 | static int |
1016 | udc_seq_show(struct seq_file *m, void *_d) | 1023 | udc_seq_show(struct seq_file *m, void *_d) |
1017 | { | 1024 | { |
1018 | struct pxa2xx_udc *dev = m->private; | 1025 | struct pxa25x_udc *dev = m->private; |
1019 | unsigned long flags; | 1026 | unsigned long flags; |
1020 | int i; | 1027 | int i; |
1021 | u32 tmp; | 1028 | u32 tmp; |
@@ -1076,8 +1083,8 @@ udc_seq_show(struct seq_file *m, void *_d) | |||
1076 | 1083 | ||
1077 | /* dump endpoint queues */ | 1084 | /* dump endpoint queues */ |
1078 | for (i = 0; i < PXA_UDC_NUM_ENDPOINTS; i++) { | 1085 | for (i = 0; i < PXA_UDC_NUM_ENDPOINTS; i++) { |
1079 | struct pxa2xx_ep *ep = &dev->ep [i]; | 1086 | struct pxa25x_ep *ep = &dev->ep [i]; |
1080 | struct pxa2xx_request *req; | 1087 | struct pxa25x_request *req; |
1081 | 1088 | ||
1082 | if (i != 0) { | 1089 | if (i != 0) { |
1083 | const struct usb_endpoint_descriptor *desc; | 1090 | const struct usb_endpoint_descriptor *desc; |
@@ -1150,7 +1157,7 @@ static const struct file_operations debug_fops = { | |||
1150 | /* | 1157 | /* |
1151 | * udc_disable - disable USB device controller | 1158 | * udc_disable - disable USB device controller |
1152 | */ | 1159 | */ |
1153 | static void udc_disable(struct pxa2xx_udc *dev) | 1160 | static void udc_disable(struct pxa25x_udc *dev) |
1154 | { | 1161 | { |
1155 | /* block all irqs */ | 1162 | /* block all irqs */ |
1156 | udc_set_mask_UDCCR(UDCCR_SRM|UDCCR_REM); | 1163 | udc_set_mask_UDCCR(UDCCR_SRM|UDCCR_REM); |
@@ -1170,7 +1177,7 @@ static void udc_disable(struct pxa2xx_udc *dev) | |||
1170 | /* | 1177 | /* |
1171 | * udc_reinit - initialize software state | 1178 | * udc_reinit - initialize software state |
1172 | */ | 1179 | */ |
1173 | static void udc_reinit(struct pxa2xx_udc *dev) | 1180 | static void udc_reinit(struct pxa25x_udc *dev) |
1174 | { | 1181 | { |
1175 | u32 i; | 1182 | u32 i; |
1176 | 1183 | ||
@@ -1181,7 +1188,7 @@ static void udc_reinit(struct pxa2xx_udc *dev) | |||
1181 | 1188 | ||
1182 | /* basic endpoint records init */ | 1189 | /* basic endpoint records init */ |
1183 | for (i = 0; i < PXA_UDC_NUM_ENDPOINTS; i++) { | 1190 | for (i = 0; i < PXA_UDC_NUM_ENDPOINTS; i++) { |
1184 | struct pxa2xx_ep *ep = &dev->ep[i]; | 1191 | struct pxa25x_ep *ep = &dev->ep[i]; |
1185 | 1192 | ||
1186 | if (i != 0) | 1193 | if (i != 0) |
1187 | list_add_tail (&ep->ep.ep_list, &dev->gadget.ep_list); | 1194 | list_add_tail (&ep->ep.ep_list, &dev->gadget.ep_list); |
@@ -1198,7 +1205,7 @@ static void udc_reinit(struct pxa2xx_udc *dev) | |||
1198 | /* until it's enabled, this UDC should be completely invisible | 1205 | /* until it's enabled, this UDC should be completely invisible |
1199 | * to any USB host. | 1206 | * to any USB host. |
1200 | */ | 1207 | */ |
1201 | static void udc_enable (struct pxa2xx_udc *dev) | 1208 | static void udc_enable (struct pxa25x_udc *dev) |
1202 | { | 1209 | { |
1203 | udc_clear_mask_UDCCR(UDCCR_UDE); | 1210 | udc_clear_mask_UDCCR(UDCCR_UDE); |
1204 | 1211 | ||
@@ -1254,7 +1261,7 @@ static void udc_enable (struct pxa2xx_udc *dev) | |||
1254 | */ | 1261 | */ |
1255 | int usb_gadget_register_driver(struct usb_gadget_driver *driver) | 1262 | int usb_gadget_register_driver(struct usb_gadget_driver *driver) |
1256 | { | 1263 | { |
1257 | struct pxa2xx_udc *dev = the_controller; | 1264 | struct pxa25x_udc *dev = the_controller; |
1258 | int retval; | 1265 | int retval; |
1259 | 1266 | ||
1260 | if (!driver | 1267 | if (!driver |
@@ -1299,7 +1306,7 @@ fail: | |||
1299 | EXPORT_SYMBOL(usb_gadget_register_driver); | 1306 | EXPORT_SYMBOL(usb_gadget_register_driver); |
1300 | 1307 | ||
1301 | static void | 1308 | static void |
1302 | stop_activity(struct pxa2xx_udc *dev, struct usb_gadget_driver *driver) | 1309 | stop_activity(struct pxa25x_udc *dev, struct usb_gadget_driver *driver) |
1303 | { | 1310 | { |
1304 | int i; | 1311 | int i; |
1305 | 1312 | ||
@@ -1310,7 +1317,7 @@ stop_activity(struct pxa2xx_udc *dev, struct usb_gadget_driver *driver) | |||
1310 | 1317 | ||
1311 | /* prevent new request submissions, kill any outstanding requests */ | 1318 | /* prevent new request submissions, kill any outstanding requests */ |
1312 | for (i = 0; i < PXA_UDC_NUM_ENDPOINTS; i++) { | 1319 | for (i = 0; i < PXA_UDC_NUM_ENDPOINTS; i++) { |
1313 | struct pxa2xx_ep *ep = &dev->ep[i]; | 1320 | struct pxa25x_ep *ep = &dev->ep[i]; |
1314 | 1321 | ||
1315 | ep->stopped = 1; | 1322 | ep->stopped = 1; |
1316 | nuke(ep, -ESHUTDOWN); | 1323 | nuke(ep, -ESHUTDOWN); |
@@ -1327,7 +1334,7 @@ stop_activity(struct pxa2xx_udc *dev, struct usb_gadget_driver *driver) | |||
1327 | 1334 | ||
1328 | int usb_gadget_unregister_driver(struct usb_gadget_driver *driver) | 1335 | int usb_gadget_unregister_driver(struct usb_gadget_driver *driver) |
1329 | { | 1336 | { |
1330 | struct pxa2xx_udc *dev = the_controller; | 1337 | struct pxa25x_udc *dev = the_controller; |
1331 | 1338 | ||
1332 | if (!dev) | 1339 | if (!dev) |
1333 | return -ENODEV; | 1340 | return -ENODEV; |
@@ -1364,7 +1371,7 @@ EXPORT_SYMBOL(usb_gadget_unregister_driver); | |||
1364 | static irqreturn_t | 1371 | static irqreturn_t |
1365 | lubbock_vbus_irq(int irq, void *_dev) | 1372 | lubbock_vbus_irq(int irq, void *_dev) |
1366 | { | 1373 | { |
1367 | struct pxa2xx_udc *dev = _dev; | 1374 | struct pxa25x_udc *dev = _dev; |
1368 | int vbus; | 1375 | int vbus; |
1369 | 1376 | ||
1370 | dev->stats.irqs++; | 1377 | dev->stats.irqs++; |
@@ -1383,7 +1390,7 @@ lubbock_vbus_irq(int irq, void *_dev) | |||
1383 | return IRQ_NONE; | 1390 | return IRQ_NONE; |
1384 | } | 1391 | } |
1385 | 1392 | ||
1386 | pxa2xx_udc_vbus_session(&dev->gadget, vbus); | 1393 | pxa25x_udc_vbus_session(&dev->gadget, vbus); |
1387 | return IRQ_HANDLED; | 1394 | return IRQ_HANDLED; |
1388 | } | 1395 | } |
1389 | 1396 | ||
@@ -1391,20 +1398,20 @@ lubbock_vbus_irq(int irq, void *_dev) | |||
1391 | 1398 | ||
1392 | static irqreturn_t udc_vbus_irq(int irq, void *_dev) | 1399 | static irqreturn_t udc_vbus_irq(int irq, void *_dev) |
1393 | { | 1400 | { |
1394 | struct pxa2xx_udc *dev = _dev; | 1401 | struct pxa25x_udc *dev = _dev; |
1395 | int vbus = gpio_get_value(dev->mach->gpio_vbus); | 1402 | int vbus = gpio_get_value(dev->mach->gpio_vbus); |
1396 | 1403 | ||
1397 | if (dev->mach->gpio_vbus_inverted) | 1404 | if (dev->mach->gpio_vbus_inverted) |
1398 | vbus = !vbus; | 1405 | vbus = !vbus; |
1399 | 1406 | ||
1400 | pxa2xx_udc_vbus_session(&dev->gadget, vbus); | 1407 | pxa25x_udc_vbus_session(&dev->gadget, vbus); |
1401 | return IRQ_HANDLED; | 1408 | return IRQ_HANDLED; |
1402 | } | 1409 | } |
1403 | 1410 | ||
1404 | 1411 | ||
1405 | /*-------------------------------------------------------------------------*/ | 1412 | /*-------------------------------------------------------------------------*/ |
1406 | 1413 | ||
1407 | static inline void clear_ep_state (struct pxa2xx_udc *dev) | 1414 | static inline void clear_ep_state (struct pxa25x_udc *dev) |
1408 | { | 1415 | { |
1409 | unsigned i; | 1416 | unsigned i; |
1410 | 1417 | ||
@@ -1417,7 +1424,7 @@ static inline void clear_ep_state (struct pxa2xx_udc *dev) | |||
1417 | 1424 | ||
1418 | static void udc_watchdog(unsigned long _dev) | 1425 | static void udc_watchdog(unsigned long _dev) |
1419 | { | 1426 | { |
1420 | struct pxa2xx_udc *dev = (void *)_dev; | 1427 | struct pxa25x_udc *dev = (void *)_dev; |
1421 | 1428 | ||
1422 | local_irq_disable(); | 1429 | local_irq_disable(); |
1423 | if (dev->ep0state == EP0_STALL | 1430 | if (dev->ep0state == EP0_STALL |
@@ -1430,11 +1437,11 @@ static void udc_watchdog(unsigned long _dev) | |||
1430 | local_irq_enable(); | 1437 | local_irq_enable(); |
1431 | } | 1438 | } |
1432 | 1439 | ||
1433 | static void handle_ep0 (struct pxa2xx_udc *dev) | 1440 | static void handle_ep0 (struct pxa25x_udc *dev) |
1434 | { | 1441 | { |
1435 | u32 udccs0 = UDCCS0; | 1442 | u32 udccs0 = UDCCS0; |
1436 | struct pxa2xx_ep *ep = &dev->ep [0]; | 1443 | struct pxa25x_ep *ep = &dev->ep [0]; |
1437 | struct pxa2xx_request *req; | 1444 | struct pxa25x_request *req; |
1438 | union { | 1445 | union { |
1439 | struct usb_ctrlrequest r; | 1446 | struct usb_ctrlrequest r; |
1440 | u8 raw [8]; | 1447 | u8 raw [8]; |
@@ -1444,7 +1451,7 @@ static void handle_ep0 (struct pxa2xx_udc *dev) | |||
1444 | if (list_empty(&ep->queue)) | 1451 | if (list_empty(&ep->queue)) |
1445 | req = NULL; | 1452 | req = NULL; |
1446 | else | 1453 | else |
1447 | req = list_entry(ep->queue.next, struct pxa2xx_request, queue); | 1454 | req = list_entry(ep->queue.next, struct pxa25x_request, queue); |
1448 | 1455 | ||
1449 | /* clear stall status */ | 1456 | /* clear stall status */ |
1450 | if (udccs0 & UDCCS0_SST) { | 1457 | if (udccs0 & UDCCS0_SST) { |
@@ -1654,9 +1661,9 @@ stall: | |||
1654 | USIR0 = USIR0_IR0; | 1661 | USIR0 = USIR0_IR0; |
1655 | } | 1662 | } |
1656 | 1663 | ||
1657 | static void handle_ep(struct pxa2xx_ep *ep) | 1664 | static void handle_ep(struct pxa25x_ep *ep) |
1658 | { | 1665 | { |
1659 | struct pxa2xx_request *req; | 1666 | struct pxa25x_request *req; |
1660 | int is_in = ep->bEndpointAddress & USB_DIR_IN; | 1667 | int is_in = ep->bEndpointAddress & USB_DIR_IN; |
1661 | int completed; | 1668 | int completed; |
1662 | u32 udccs, tmp; | 1669 | u32 udccs, tmp; |
@@ -1665,7 +1672,7 @@ static void handle_ep(struct pxa2xx_ep *ep) | |||
1665 | completed = 0; | 1672 | completed = 0; |
1666 | if (likely (!list_empty(&ep->queue))) | 1673 | if (likely (!list_empty(&ep->queue))) |
1667 | req = list_entry(ep->queue.next, | 1674 | req = list_entry(ep->queue.next, |
1668 | struct pxa2xx_request, queue); | 1675 | struct pxa25x_request, queue); |
1669 | else | 1676 | else |
1670 | req = NULL; | 1677 | req = NULL; |
1671 | 1678 | ||
@@ -1702,16 +1709,16 @@ static void handle_ep(struct pxa2xx_ep *ep) | |||
1702 | } | 1709 | } |
1703 | 1710 | ||
1704 | /* | 1711 | /* |
1705 | * pxa2xx_udc_irq - interrupt handler | 1712 | * pxa25x_udc_irq - interrupt handler |
1706 | * | 1713 | * |
1707 | * avoid delays in ep0 processing. the control handshaking isn't always | 1714 | * avoid delays in ep0 processing. the control handshaking isn't always |
1708 | * under software control (pxa250c0 and the pxa255 are better), and delays | 1715 | * under software control (pxa250c0 and the pxa255 are better), and delays |
1709 | * could cause usb protocol errors. | 1716 | * could cause usb protocol errors. |
1710 | */ | 1717 | */ |
1711 | static irqreturn_t | 1718 | static irqreturn_t |
1712 | pxa2xx_udc_irq(int irq, void *_dev) | 1719 | pxa25x_udc_irq(int irq, void *_dev) |
1713 | { | 1720 | { |
1714 | struct pxa2xx_udc *dev = _dev; | 1721 | struct pxa25x_udc *dev = _dev; |
1715 | int handled; | 1722 | int handled; |
1716 | 1723 | ||
1717 | dev->stats.irqs++; | 1724 | dev->stats.irqs++; |
@@ -1820,9 +1827,9 @@ static void nop_release (struct device *dev) | |||
1820 | * doing it at run-time) to save code, eliminate fault paths, and | 1827 | * doing it at run-time) to save code, eliminate fault paths, and |
1821 | * be more obviously correct. | 1828 | * be more obviously correct. |
1822 | */ | 1829 | */ |
1823 | static struct pxa2xx_udc memory = { | 1830 | static struct pxa25x_udc memory = { |
1824 | .gadget = { | 1831 | .gadget = { |
1825 | .ops = &pxa2xx_udc_ops, | 1832 | .ops = &pxa25x_udc_ops, |
1826 | .ep0 = &memory.ep[0].ep, | 1833 | .ep0 = &memory.ep[0].ep, |
1827 | .name = driver_name, | 1834 | .name = driver_name, |
1828 | .dev = { | 1835 | .dev = { |
@@ -1835,7 +1842,7 @@ static struct pxa2xx_udc memory = { | |||
1835 | .ep[0] = { | 1842 | .ep[0] = { |
1836 | .ep = { | 1843 | .ep = { |
1837 | .name = ep0name, | 1844 | .name = ep0name, |
1838 | .ops = &pxa2xx_ep_ops, | 1845 | .ops = &pxa25x_ep_ops, |
1839 | .maxpacket = EP0_FIFO_SIZE, | 1846 | .maxpacket = EP0_FIFO_SIZE, |
1840 | }, | 1847 | }, |
1841 | .dev = &memory, | 1848 | .dev = &memory, |
@@ -1847,7 +1854,7 @@ static struct pxa2xx_udc memory = { | |||
1847 | .ep[1] = { | 1854 | .ep[1] = { |
1848 | .ep = { | 1855 | .ep = { |
1849 | .name = "ep1in-bulk", | 1856 | .name = "ep1in-bulk", |
1850 | .ops = &pxa2xx_ep_ops, | 1857 | .ops = &pxa25x_ep_ops, |
1851 | .maxpacket = BULK_FIFO_SIZE, | 1858 | .maxpacket = BULK_FIFO_SIZE, |
1852 | }, | 1859 | }, |
1853 | .dev = &memory, | 1860 | .dev = &memory, |
@@ -1860,7 +1867,7 @@ static struct pxa2xx_udc memory = { | |||
1860 | .ep[2] = { | 1867 | .ep[2] = { |
1861 | .ep = { | 1868 | .ep = { |
1862 | .name = "ep2out-bulk", | 1869 | .name = "ep2out-bulk", |
1863 | .ops = &pxa2xx_ep_ops, | 1870 | .ops = &pxa25x_ep_ops, |
1864 | .maxpacket = BULK_FIFO_SIZE, | 1871 | .maxpacket = BULK_FIFO_SIZE, |
1865 | }, | 1872 | }, |
1866 | .dev = &memory, | 1873 | .dev = &memory, |
@@ -1871,11 +1878,11 @@ static struct pxa2xx_udc memory = { | |||
1871 | .reg_ubcr = &UBCR2, | 1878 | .reg_ubcr = &UBCR2, |
1872 | .reg_uddr = &UDDR2, | 1879 | .reg_uddr = &UDDR2, |
1873 | }, | 1880 | }, |
1874 | #ifndef CONFIG_USB_PXA2XX_SMALL | 1881 | #ifndef CONFIG_USB_PXA25X_SMALL |
1875 | .ep[3] = { | 1882 | .ep[3] = { |
1876 | .ep = { | 1883 | .ep = { |
1877 | .name = "ep3in-iso", | 1884 | .name = "ep3in-iso", |
1878 | .ops = &pxa2xx_ep_ops, | 1885 | .ops = &pxa25x_ep_ops, |
1879 | .maxpacket = ISO_FIFO_SIZE, | 1886 | .maxpacket = ISO_FIFO_SIZE, |
1880 | }, | 1887 | }, |
1881 | .dev = &memory, | 1888 | .dev = &memory, |
@@ -1888,7 +1895,7 @@ static struct pxa2xx_udc memory = { | |||
1888 | .ep[4] = { | 1895 | .ep[4] = { |
1889 | .ep = { | 1896 | .ep = { |
1890 | .name = "ep4out-iso", | 1897 | .name = "ep4out-iso", |
1891 | .ops = &pxa2xx_ep_ops, | 1898 | .ops = &pxa25x_ep_ops, |
1892 | .maxpacket = ISO_FIFO_SIZE, | 1899 | .maxpacket = ISO_FIFO_SIZE, |
1893 | }, | 1900 | }, |
1894 | .dev = &memory, | 1901 | .dev = &memory, |
@@ -1902,7 +1909,7 @@ static struct pxa2xx_udc memory = { | |||
1902 | .ep[5] = { | 1909 | .ep[5] = { |
1903 | .ep = { | 1910 | .ep = { |
1904 | .name = "ep5in-int", | 1911 | .name = "ep5in-int", |
1905 | .ops = &pxa2xx_ep_ops, | 1912 | .ops = &pxa25x_ep_ops, |
1906 | .maxpacket = INT_FIFO_SIZE, | 1913 | .maxpacket = INT_FIFO_SIZE, |
1907 | }, | 1914 | }, |
1908 | .dev = &memory, | 1915 | .dev = &memory, |
@@ -1917,7 +1924,7 @@ static struct pxa2xx_udc memory = { | |||
1917 | .ep[6] = { | 1924 | .ep[6] = { |
1918 | .ep = { | 1925 | .ep = { |
1919 | .name = "ep6in-bulk", | 1926 | .name = "ep6in-bulk", |
1920 | .ops = &pxa2xx_ep_ops, | 1927 | .ops = &pxa25x_ep_ops, |
1921 | .maxpacket = BULK_FIFO_SIZE, | 1928 | .maxpacket = BULK_FIFO_SIZE, |
1922 | }, | 1929 | }, |
1923 | .dev = &memory, | 1930 | .dev = &memory, |
@@ -1930,7 +1937,7 @@ static struct pxa2xx_udc memory = { | |||
1930 | .ep[7] = { | 1937 | .ep[7] = { |
1931 | .ep = { | 1938 | .ep = { |
1932 | .name = "ep7out-bulk", | 1939 | .name = "ep7out-bulk", |
1933 | .ops = &pxa2xx_ep_ops, | 1940 | .ops = &pxa25x_ep_ops, |
1934 | .maxpacket = BULK_FIFO_SIZE, | 1941 | .maxpacket = BULK_FIFO_SIZE, |
1935 | }, | 1942 | }, |
1936 | .dev = &memory, | 1943 | .dev = &memory, |
@@ -1944,7 +1951,7 @@ static struct pxa2xx_udc memory = { | |||
1944 | .ep[8] = { | 1951 | .ep[8] = { |
1945 | .ep = { | 1952 | .ep = { |
1946 | .name = "ep8in-iso", | 1953 | .name = "ep8in-iso", |
1947 | .ops = &pxa2xx_ep_ops, | 1954 | .ops = &pxa25x_ep_ops, |
1948 | .maxpacket = ISO_FIFO_SIZE, | 1955 | .maxpacket = ISO_FIFO_SIZE, |
1949 | }, | 1956 | }, |
1950 | .dev = &memory, | 1957 | .dev = &memory, |
@@ -1957,7 +1964,7 @@ static struct pxa2xx_udc memory = { | |||
1957 | .ep[9] = { | 1964 | .ep[9] = { |
1958 | .ep = { | 1965 | .ep = { |
1959 | .name = "ep9out-iso", | 1966 | .name = "ep9out-iso", |
1960 | .ops = &pxa2xx_ep_ops, | 1967 | .ops = &pxa25x_ep_ops, |
1961 | .maxpacket = ISO_FIFO_SIZE, | 1968 | .maxpacket = ISO_FIFO_SIZE, |
1962 | }, | 1969 | }, |
1963 | .dev = &memory, | 1970 | .dev = &memory, |
@@ -1971,7 +1978,7 @@ static struct pxa2xx_udc memory = { | |||
1971 | .ep[10] = { | 1978 | .ep[10] = { |
1972 | .ep = { | 1979 | .ep = { |
1973 | .name = "ep10in-int", | 1980 | .name = "ep10in-int", |
1974 | .ops = &pxa2xx_ep_ops, | 1981 | .ops = &pxa25x_ep_ops, |
1975 | .maxpacket = INT_FIFO_SIZE, | 1982 | .maxpacket = INT_FIFO_SIZE, |
1976 | }, | 1983 | }, |
1977 | .dev = &memory, | 1984 | .dev = &memory, |
@@ -1986,7 +1993,7 @@ static struct pxa2xx_udc memory = { | |||
1986 | .ep[11] = { | 1993 | .ep[11] = { |
1987 | .ep = { | 1994 | .ep = { |
1988 | .name = "ep11in-bulk", | 1995 | .name = "ep11in-bulk", |
1989 | .ops = &pxa2xx_ep_ops, | 1996 | .ops = &pxa25x_ep_ops, |
1990 | .maxpacket = BULK_FIFO_SIZE, | 1997 | .maxpacket = BULK_FIFO_SIZE, |
1991 | }, | 1998 | }, |
1992 | .dev = &memory, | 1999 | .dev = &memory, |
@@ -1999,7 +2006,7 @@ static struct pxa2xx_udc memory = { | |||
1999 | .ep[12] = { | 2006 | .ep[12] = { |
2000 | .ep = { | 2007 | .ep = { |
2001 | .name = "ep12out-bulk", | 2008 | .name = "ep12out-bulk", |
2002 | .ops = &pxa2xx_ep_ops, | 2009 | .ops = &pxa25x_ep_ops, |
2003 | .maxpacket = BULK_FIFO_SIZE, | 2010 | .maxpacket = BULK_FIFO_SIZE, |
2004 | }, | 2011 | }, |
2005 | .dev = &memory, | 2012 | .dev = &memory, |
@@ -2013,7 +2020,7 @@ static struct pxa2xx_udc memory = { | |||
2013 | .ep[13] = { | 2020 | .ep[13] = { |
2014 | .ep = { | 2021 | .ep = { |
2015 | .name = "ep13in-iso", | 2022 | .name = "ep13in-iso", |
2016 | .ops = &pxa2xx_ep_ops, | 2023 | .ops = &pxa25x_ep_ops, |
2017 | .maxpacket = ISO_FIFO_SIZE, | 2024 | .maxpacket = ISO_FIFO_SIZE, |
2018 | }, | 2025 | }, |
2019 | .dev = &memory, | 2026 | .dev = &memory, |
@@ -2026,7 +2033,7 @@ static struct pxa2xx_udc memory = { | |||
2026 | .ep[14] = { | 2033 | .ep[14] = { |
2027 | .ep = { | 2034 | .ep = { |
2028 | .name = "ep14out-iso", | 2035 | .name = "ep14out-iso", |
2029 | .ops = &pxa2xx_ep_ops, | 2036 | .ops = &pxa25x_ep_ops, |
2030 | .maxpacket = ISO_FIFO_SIZE, | 2037 | .maxpacket = ISO_FIFO_SIZE, |
2031 | }, | 2038 | }, |
2032 | .dev = &memory, | 2039 | .dev = &memory, |
@@ -2040,7 +2047,7 @@ static struct pxa2xx_udc memory = { | |||
2040 | .ep[15] = { | 2047 | .ep[15] = { |
2041 | .ep = { | 2048 | .ep = { |
2042 | .name = "ep15in-int", | 2049 | .name = "ep15in-int", |
2043 | .ops = &pxa2xx_ep_ops, | 2050 | .ops = &pxa25x_ep_ops, |
2044 | .maxpacket = INT_FIFO_SIZE, | 2051 | .maxpacket = INT_FIFO_SIZE, |
2045 | }, | 2052 | }, |
2046 | .dev = &memory, | 2053 | .dev = &memory, |
@@ -2050,7 +2057,7 @@ static struct pxa2xx_udc memory = { | |||
2050 | .reg_udccs = &UDCCS15, | 2057 | .reg_udccs = &UDCCS15, |
2051 | .reg_uddr = &UDDR15, | 2058 | .reg_uddr = &UDDR15, |
2052 | }, | 2059 | }, |
2053 | #endif /* !CONFIG_USB_PXA2XX_SMALL */ | 2060 | #endif /* !CONFIG_USB_PXA25X_SMALL */ |
2054 | }; | 2061 | }; |
2055 | 2062 | ||
2056 | #define CP15R0_VENDOR_MASK 0xffffe000 | 2063 | #define CP15R0_VENDOR_MASK 0xffffe000 |
@@ -2090,9 +2097,9 @@ static struct pxa2xx_udc memory = { | |||
2090 | /* | 2097 | /* |
2091 | * probe - binds to the platform device | 2098 | * probe - binds to the platform device |
2092 | */ | 2099 | */ |
2093 | static int __init pxa2xx_udc_probe(struct platform_device *pdev) | 2100 | static int __init pxa25x_udc_probe(struct platform_device *pdev) |
2094 | { | 2101 | { |
2095 | struct pxa2xx_udc *dev = &memory; | 2102 | struct pxa25x_udc *dev = &memory; |
2096 | int retval, vbus_irq, irq; | 2103 | int retval, vbus_irq, irq; |
2097 | u32 chiprev; | 2104 | u32 chiprev; |
2098 | 2105 | ||
@@ -2155,7 +2162,7 @@ static int __init pxa2xx_udc_probe(struct platform_device *pdev) | |||
2155 | 2162 | ||
2156 | if (dev->mach->gpio_vbus) { | 2163 | if (dev->mach->gpio_vbus) { |
2157 | if ((retval = gpio_request(dev->mach->gpio_vbus, | 2164 | if ((retval = gpio_request(dev->mach->gpio_vbus, |
2158 | "pxa2xx_udc GPIO VBUS"))) { | 2165 | "pxa25x_udc GPIO VBUS"))) { |
2159 | dev_dbg(&pdev->dev, | 2166 | dev_dbg(&pdev->dev, |
2160 | "can't get vbus gpio %d, err: %d\n", | 2167 | "can't get vbus gpio %d, err: %d\n", |
2161 | dev->mach->gpio_vbus, retval); | 2168 | dev->mach->gpio_vbus, retval); |
@@ -2168,7 +2175,7 @@ static int __init pxa2xx_udc_probe(struct platform_device *pdev) | |||
2168 | 2175 | ||
2169 | if (dev->mach->gpio_pullup) { | 2176 | if (dev->mach->gpio_pullup) { |
2170 | if ((retval = gpio_request(dev->mach->gpio_pullup, | 2177 | if ((retval = gpio_request(dev->mach->gpio_pullup, |
2171 | "pca2xx_udc GPIO PULLUP"))) { | 2178 | "pca25x_udc GPIO PULLUP"))) { |
2172 | dev_dbg(&pdev->dev, | 2179 | dev_dbg(&pdev->dev, |
2173 | "can't get pullup gpio %d, err: %d\n", | 2180 | "can't get pullup gpio %d, err: %d\n", |
2174 | dev->mach->gpio_pullup, retval); | 2181 | dev->mach->gpio_pullup, retval); |
@@ -2194,7 +2201,7 @@ static int __init pxa2xx_udc_probe(struct platform_device *pdev) | |||
2194 | dev->vbus = is_vbus_present(); | 2201 | dev->vbus = is_vbus_present(); |
2195 | 2202 | ||
2196 | /* irq setup after old hardware state is cleaned up */ | 2203 | /* irq setup after old hardware state is cleaned up */ |
2197 | retval = request_irq(irq, pxa2xx_udc_irq, | 2204 | retval = request_irq(irq, pxa25x_udc_irq, |
2198 | IRQF_DISABLED, driver_name, dev); | 2205 | IRQF_DISABLED, driver_name, dev); |
2199 | if (retval != 0) { | 2206 | if (retval != 0) { |
2200 | pr_err("%s: can't get irq %d, err %d\n", | 2207 | pr_err("%s: can't get irq %d, err %d\n", |
@@ -2260,14 +2267,14 @@ lubbock_fail0: | |||
2260 | return retval; | 2267 | return retval; |
2261 | } | 2268 | } |
2262 | 2269 | ||
2263 | static void pxa2xx_udc_shutdown(struct platform_device *_dev) | 2270 | static void pxa25x_udc_shutdown(struct platform_device *_dev) |
2264 | { | 2271 | { |
2265 | pullup_off(); | 2272 | pullup_off(); |
2266 | } | 2273 | } |
2267 | 2274 | ||
2268 | static int __exit pxa2xx_udc_remove(struct platform_device *pdev) | 2275 | static int __exit pxa25x_udc_remove(struct platform_device *pdev) |
2269 | { | 2276 | { |
2270 | struct pxa2xx_udc *dev = platform_get_drvdata(pdev); | 2277 | struct pxa25x_udc *dev = platform_get_drvdata(pdev); |
2271 | 2278 | ||
2272 | if (dev->driver) | 2279 | if (dev->driver) |
2273 | return -EBUSY; | 2280 | return -EBUSY; |
@@ -2317,9 +2324,9 @@ static int __exit pxa2xx_udc_remove(struct platform_device *pdev) | |||
2317 | * VBUS IRQs should probably be ignored so that the PXA device just acts | 2324 | * VBUS IRQs should probably be ignored so that the PXA device just acts |
2318 | * "dead" to USB hosts until system resume. | 2325 | * "dead" to USB hosts until system resume. |
2319 | */ | 2326 | */ |
2320 | static int pxa2xx_udc_suspend(struct platform_device *dev, pm_message_t state) | 2327 | static int pxa25x_udc_suspend(struct platform_device *dev, pm_message_t state) |
2321 | { | 2328 | { |
2322 | struct pxa2xx_udc *udc = platform_get_drvdata(dev); | 2329 | struct pxa25x_udc *udc = platform_get_drvdata(dev); |
2323 | unsigned long flags; | 2330 | unsigned long flags; |
2324 | 2331 | ||
2325 | if (!udc->mach->gpio_pullup && !udc->mach->udc_command) | 2332 | if (!udc->mach->gpio_pullup && !udc->mach->udc_command) |
@@ -2333,9 +2340,9 @@ static int pxa2xx_udc_suspend(struct platform_device *dev, pm_message_t state) | |||
2333 | return 0; | 2340 | return 0; |
2334 | } | 2341 | } |
2335 | 2342 | ||
2336 | static int pxa2xx_udc_resume(struct platform_device *dev) | 2343 | static int pxa25x_udc_resume(struct platform_device *dev) |
2337 | { | 2344 | { |
2338 | struct pxa2xx_udc *udc = platform_get_drvdata(dev); | 2345 | struct pxa25x_udc *udc = platform_get_drvdata(dev); |
2339 | unsigned long flags; | 2346 | unsigned long flags; |
2340 | 2347 | ||
2341 | udc->suspended = 0; | 2348 | udc->suspended = 0; |
@@ -2347,27 +2354,27 @@ static int pxa2xx_udc_resume(struct platform_device *dev) | |||
2347 | } | 2354 | } |
2348 | 2355 | ||
2349 | #else | 2356 | #else |
2350 | #define pxa2xx_udc_suspend NULL | 2357 | #define pxa25x_udc_suspend NULL |
2351 | #define pxa2xx_udc_resume NULL | 2358 | #define pxa25x_udc_resume NULL |
2352 | #endif | 2359 | #endif |
2353 | 2360 | ||
2354 | /*-------------------------------------------------------------------------*/ | 2361 | /*-------------------------------------------------------------------------*/ |
2355 | 2362 | ||
2356 | static struct platform_driver udc_driver = { | 2363 | static struct platform_driver udc_driver = { |
2357 | .shutdown = pxa2xx_udc_shutdown, | 2364 | .shutdown = pxa25x_udc_shutdown, |
2358 | .remove = __exit_p(pxa2xx_udc_remove), | 2365 | .remove = __exit_p(pxa25x_udc_remove), |
2359 | .suspend = pxa2xx_udc_suspend, | 2366 | .suspend = pxa25x_udc_suspend, |
2360 | .resume = pxa2xx_udc_resume, | 2367 | .resume = pxa25x_udc_resume, |
2361 | .driver = { | 2368 | .driver = { |
2362 | .owner = THIS_MODULE, | 2369 | .owner = THIS_MODULE, |
2363 | .name = "pxa2xx-udc", | 2370 | .name = "pxa25x-udc", |
2364 | }, | 2371 | }, |
2365 | }; | 2372 | }; |
2366 | 2373 | ||
2367 | static int __init udc_init(void) | 2374 | static int __init udc_init(void) |
2368 | { | 2375 | { |
2369 | pr_info("%s: version %s\n", driver_name, DRIVER_VERSION); | 2376 | pr_info("%s: version %s\n", driver_name, DRIVER_VERSION); |
2370 | return platform_driver_probe(&udc_driver, pxa2xx_udc_probe); | 2377 | return platform_driver_probe(&udc_driver, pxa25x_udc_probe); |
2371 | } | 2378 | } |
2372 | module_init(udc_init); | 2379 | module_init(udc_init); |
2373 | 2380 | ||
@@ -2380,4 +2387,4 @@ module_exit(udc_exit); | |||
2380 | MODULE_DESCRIPTION(DRIVER_DESC); | 2387 | MODULE_DESCRIPTION(DRIVER_DESC); |
2381 | MODULE_AUTHOR("Frank Becker, Robert Schwebel, David Brownell"); | 2388 | MODULE_AUTHOR("Frank Becker, Robert Schwebel, David Brownell"); |
2382 | MODULE_LICENSE("GPL"); | 2389 | MODULE_LICENSE("GPL"); |
2383 | MODULE_ALIAS("platform:pxa2xx-udc"); | 2390 | MODULE_ALIAS("platform:pxa25x-udc"); |
diff --git a/drivers/usb/gadget/pxa2xx_udc.h b/drivers/usb/gadget/pxa25x_udc.h index e2c19e88c875..4d11ece7c95f 100644 --- a/drivers/usb/gadget/pxa2xx_udc.h +++ b/drivers/usb/gadget/pxa25x_udc.h | |||
@@ -1,6 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/drivers/usb/gadget/pxa2xx_udc.h | 2 | * Intel PXA25x on-chip full speed USB device controller |
3 | * Intel PXA2xx on-chip full speed USB device controller | ||
4 | * | 3 | * |
5 | * Copyright (C) 2003 Robert Schwebel <r.schwebel@pengutronix.de>, Pengutronix | 4 | * Copyright (C) 2003 Robert Schwebel <r.schwebel@pengutronix.de>, Pengutronix |
6 | * Copyright (C) 2003 David Brownell | 5 | * Copyright (C) 2003 David Brownell |
@@ -21,14 +20,14 @@ | |||
21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 | */ | 21 | */ |
23 | 22 | ||
24 | #ifndef __LINUX_USB_GADGET_PXA2XX_H | 23 | #ifndef __LINUX_USB_GADGET_PXA25X_H |
25 | #define __LINUX_USB_GADGET_PXA2XX_H | 24 | #define __LINUX_USB_GADGET_PXA25X_H |
26 | 25 | ||
27 | #include <linux/types.h> | 26 | #include <linux/types.h> |
28 | 27 | ||
29 | /*-------------------------------------------------------------------------*/ | 28 | /*-------------------------------------------------------------------------*/ |
30 | 29 | ||
31 | /* pxa2xx has this (move to include/asm-arm/arch-pxa/pxa-regs.h) */ | 30 | /* pxa25x has this (move to include/asm-arm/arch-pxa/pxa-regs.h) */ |
32 | #define UFNRH_SIR (1 << 7) /* SOF interrupt request */ | 31 | #define UFNRH_SIR (1 << 7) /* SOF interrupt request */ |
33 | #define UFNRH_SIM (1 << 6) /* SOF interrupt mask */ | 32 | #define UFNRH_SIM (1 << 6) /* SOF interrupt mask */ |
34 | #define UFNRH_IPE14 (1 << 5) /* ISO packet error, ep14 */ | 33 | #define UFNRH_IPE14 (1 << 5) /* ISO packet error, ep14 */ |
@@ -45,11 +44,11 @@ | |||
45 | 44 | ||
46 | /*-------------------------------------------------------------------------*/ | 45 | /*-------------------------------------------------------------------------*/ |
47 | 46 | ||
48 | struct pxa2xx_udc; | 47 | struct pxa25x_udc; |
49 | 48 | ||
50 | struct pxa2xx_ep { | 49 | struct pxa25x_ep { |
51 | struct usb_ep ep; | 50 | struct usb_ep ep; |
52 | struct pxa2xx_udc *dev; | 51 | struct pxa25x_udc *dev; |
53 | 52 | ||
54 | const struct usb_endpoint_descriptor *desc; | 53 | const struct usb_endpoint_descriptor *desc; |
55 | struct list_head queue; | 54 | struct list_head queue; |
@@ -72,7 +71,7 @@ struct pxa2xx_ep { | |||
72 | volatile u32 *reg_uddr; | 71 | volatile u32 *reg_uddr; |
73 | }; | 72 | }; |
74 | 73 | ||
75 | struct pxa2xx_request { | 74 | struct pxa25x_request { |
76 | struct usb_request req; | 75 | struct usb_request req; |
77 | struct list_head queue; | 76 | struct list_head queue; |
78 | }; | 77 | }; |
@@ -98,7 +97,7 @@ struct udc_stats { | |||
98 | unsigned long irqs; | 97 | unsigned long irqs; |
99 | }; | 98 | }; |
100 | 99 | ||
101 | #ifdef CONFIG_USB_PXA2XX_SMALL | 100 | #ifdef CONFIG_USB_PXA25X_SMALL |
102 | /* when memory's tight, SMALL config saves code+data. */ | 101 | /* when memory's tight, SMALL config saves code+data. */ |
103 | #define PXA_UDC_NUM_ENDPOINTS 3 | 102 | #define PXA_UDC_NUM_ENDPOINTS 3 |
104 | #endif | 103 | #endif |
@@ -107,7 +106,7 @@ struct udc_stats { | |||
107 | #define PXA_UDC_NUM_ENDPOINTS 16 | 106 | #define PXA_UDC_NUM_ENDPOINTS 16 |
108 | #endif | 107 | #endif |
109 | 108 | ||
110 | struct pxa2xx_udc { | 109 | struct pxa25x_udc { |
111 | struct usb_gadget gadget; | 110 | struct usb_gadget gadget; |
112 | struct usb_gadget_driver *driver; | 111 | struct usb_gadget_driver *driver; |
113 | 112 | ||
@@ -130,7 +129,7 @@ struct pxa2xx_udc { | |||
130 | struct clk *clk; | 129 | struct clk *clk; |
131 | struct pxa2xx_udc_mach_info *mach; | 130 | struct pxa2xx_udc_mach_info *mach; |
132 | u64 dma_mask; | 131 | u64 dma_mask; |
133 | struct pxa2xx_ep ep [PXA_UDC_NUM_ENDPOINTS]; | 132 | struct pxa25x_ep ep [PXA_UDC_NUM_ENDPOINTS]; |
134 | 133 | ||
135 | #ifdef CONFIG_USB_GADGET_DEBUG_FS | 134 | #ifdef CONFIG_USB_GADGET_DEBUG_FS |
136 | struct dentry *debugfs_udc; | 135 | struct dentry *debugfs_udc; |
@@ -144,7 +143,7 @@ struct pxa2xx_udc { | |||
144 | /* lubbock can also report usb connect/disconnect irqs */ | 143 | /* lubbock can also report usb connect/disconnect irqs */ |
145 | #endif | 144 | #endif |
146 | 145 | ||
147 | static struct pxa2xx_udc *the_controller; | 146 | static struct pxa25x_udc *the_controller; |
148 | 147 | ||
149 | /*-------------------------------------------------------------------------*/ | 148 | /*-------------------------------------------------------------------------*/ |
150 | 149 | ||
@@ -209,7 +208,7 @@ dump_udccs0(const char *label) | |||
209 | } | 208 | } |
210 | 209 | ||
211 | static void __maybe_unused | 210 | static void __maybe_unused |
212 | dump_state(struct pxa2xx_udc *dev) | 211 | dump_state(struct pxa25x_udc *dev) |
213 | { | 212 | { |
214 | u32 tmp; | 213 | u32 tmp; |
215 | unsigned i; | 214 | unsigned i; |
@@ -264,4 +263,4 @@ dump_state(struct pxa2xx_udc *dev) | |||
264 | #define INFO(stuff...) pr_info("udc: " stuff) | 263 | #define INFO(stuff...) pr_info("udc: " stuff) |
265 | 264 | ||
266 | 265 | ||
267 | #endif /* __LINUX_USB_GADGET_PXA2XX_H */ | 266 | #endif /* __LINUX_USB_GADGET_PXA25X_H */ |
diff --git a/drivers/usb/gadget/pxa27x_udc.c b/drivers/usb/gadget/pxa27x_udc.c index e02bfd4df3a6..9c0e82ec5c43 100644 --- a/drivers/usb/gadget/pxa27x_udc.c +++ b/drivers/usb/gadget/pxa27x_udc.c | |||
@@ -38,7 +38,7 @@ | |||
38 | #include <linux/usb.h> | 38 | #include <linux/usb.h> |
39 | #include <linux/usb/ch9.h> | 39 | #include <linux/usb/ch9.h> |
40 | #include <linux/usb/gadget.h> | 40 | #include <linux/usb/gadget.h> |
41 | 41 | #include <asm/arch/pxa2xx-regs.h> /* FIXME: for PSSR */ | |
42 | #include <asm/arch/udc.h> | 42 | #include <asm/arch/udc.h> |
43 | 43 | ||
44 | #include "pxa27x_udc.h" | 44 | #include "pxa27x_udc.h" |
@@ -2360,18 +2360,19 @@ static int pxa_udc_resume(struct platform_device *_dev) | |||
2360 | * Software must configure the USB OTG pad, UDC, and UHC | 2360 | * Software must configure the USB OTG pad, UDC, and UHC |
2361 | * to the state they were in before entering sleep mode. | 2361 | * to the state they were in before entering sleep mode. |
2362 | */ | 2362 | */ |
2363 | PSSR |= PSSR_OTGPH; | 2363 | if (cpu_is_pxa27x()) |
2364 | PSSR |= PSSR_OTGPH; | ||
2364 | 2365 | ||
2365 | return 0; | 2366 | return 0; |
2366 | } | 2367 | } |
2367 | #endif | 2368 | #endif |
2368 | 2369 | ||
2369 | /* work with hotplug and coldplug */ | 2370 | /* work with hotplug and coldplug */ |
2370 | MODULE_ALIAS("platform:pxa2xx-udc"); | 2371 | MODULE_ALIAS("platform:pxa27x-udc"); |
2371 | 2372 | ||
2372 | static struct platform_driver udc_driver = { | 2373 | static struct platform_driver udc_driver = { |
2373 | .driver = { | 2374 | .driver = { |
2374 | .name = "pxa2xx-udc", | 2375 | .name = "pxa27x-udc", |
2375 | .owner = THIS_MODULE, | 2376 | .owner = THIS_MODULE, |
2376 | }, | 2377 | }, |
2377 | .remove = __exit_p(pxa_udc_remove), | 2378 | .remove = __exit_p(pxa_udc_remove), |
diff --git a/drivers/usb/gadget/pxa27x_udc.h b/drivers/usb/gadget/pxa27x_udc.h index 97453db924ff..1d1b7936ee11 100644 --- a/drivers/usb/gadget/pxa27x_udc.h +++ b/drivers/usb/gadget/pxa27x_udc.h | |||
@@ -484,12 +484,4 @@ static inline struct pxa_udc *to_gadget_udc(struct usb_gadget *gadget) | |||
484 | #define ep_warn(ep, fmt, arg...) \ | 484 | #define ep_warn(ep, fmt, arg...) \ |
485 | dev_warn(ep->dev->dev, "%s:%s:" fmt, EPNAME(ep), __func__, ## arg) | 485 | dev_warn(ep->dev->dev, "%s:%s:" fmt, EPNAME(ep), __func__, ## arg) |
486 | 486 | ||
487 | /* | ||
488 | * Cannot include pxa-regs.h, as register names are similar. | ||
489 | * So PSSR is redefined here. This should be removed once UDC registers will | ||
490 | * be gone from pxa-regs.h. | ||
491 | */ | ||
492 | #define PSSR __REG(0x40F00004) /* Power Manager Sleep Status */ | ||
493 | #define PSSR_OTGPH (1 << 6) /* OTG Peripheral Hold */ | ||
494 | |||
495 | #endif /* __LINUX_USB_GADGET_PXA27X_H */ | 487 | #endif /* __LINUX_USB_GADGET_PXA27X_H */ |
diff --git a/drivers/usb/host/ohci-pxa27x.c b/drivers/usb/host/ohci-pxa27x.c index 70b0d4b459e7..08b27d6bbd43 100644 --- a/drivers/usb/host/ohci-pxa27x.c +++ b/drivers/usb/host/ohci-pxa27x.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <asm/mach-types.h> | 27 | #include <asm/mach-types.h> |
28 | #include <asm/hardware.h> | 28 | #include <asm/hardware.h> |
29 | #include <asm/arch/pxa-regs.h> | 29 | #include <asm/arch/pxa-regs.h> |
30 | #include <asm/arch/pxa2xx-regs.h> /* FIXME: for PSSR */ | ||
30 | #include <asm/arch/ohci.h> | 31 | #include <asm/arch/ohci.h> |
31 | 32 | ||
32 | #define PXA_UHC_MAX_PORTNUM 3 | 33 | #define PXA_UHC_MAX_PORTNUM 3 |
@@ -104,7 +105,7 @@ static int pxa27x_start_hc(struct device *dev) | |||
104 | UHCHIE = (UHCHIE_UPRIE | UHCHIE_RWIE); | 105 | UHCHIE = (UHCHIE_UPRIE | UHCHIE_RWIE); |
105 | 106 | ||
106 | /* Clear any OTG Pin Hold */ | 107 | /* Clear any OTG Pin Hold */ |
107 | if (PSSR & PSSR_OTGPH) | 108 | if (cpu_is_pxa27x() && (PSSR & PSSR_OTGPH)) |
108 | PSSR |= PSSR_OTGPH; | 109 | PSSR |= PSSR_OTGPH; |
109 | 110 | ||
110 | return 0; | 111 | return 0; |
diff --git a/drivers/video/backlight/Kconfig b/drivers/video/backlight/Kconfig index dcd8073c2369..30bf7f2f1635 100644 --- a/drivers/video/backlight/Kconfig +++ b/drivers/video/backlight/Kconfig | |||
@@ -112,3 +112,10 @@ config BACKLIGHT_CARILLO_RANCH | |||
112 | help | 112 | help |
113 | If you have a Intel LE80578 (Carillo Ranch) say Y to enable the | 113 | If you have a Intel LE80578 (Carillo Ranch) say Y to enable the |
114 | backlight driver. | 114 | backlight driver. |
115 | |||
116 | config BACKLIGHT_PWM | ||
117 | tristate "Generic PWM based Backlight Driver" | ||
118 | depends on BACKLIGHT_CLASS_DEVICE && HAVE_PWM | ||
119 | help | ||
120 | If you have a LCD backlight adjustable by PWM, say Y to enable | ||
121 | this driver. | ||
diff --git a/drivers/video/backlight/Makefile b/drivers/video/backlight/Makefile index 33f6c7cecc73..b51a7cd12500 100644 --- a/drivers/video/backlight/Makefile +++ b/drivers/video/backlight/Makefile | |||
@@ -10,3 +10,4 @@ obj-$(CONFIG_BACKLIGHT_LOCOMO) += locomolcd.o | |||
10 | obj-$(CONFIG_BACKLIGHT_OMAP1) += omap1_bl.o | 10 | obj-$(CONFIG_BACKLIGHT_OMAP1) += omap1_bl.o |
11 | obj-$(CONFIG_BACKLIGHT_PROGEAR) += progear_bl.o | 11 | obj-$(CONFIG_BACKLIGHT_PROGEAR) += progear_bl.o |
12 | obj-$(CONFIG_BACKLIGHT_CARILLO_RANCH) += cr_bllcd.o | 12 | obj-$(CONFIG_BACKLIGHT_CARILLO_RANCH) += cr_bllcd.o |
13 | obj-$(CONFIG_BACKLIGHT_PWM) += pwm_bl.o | ||
diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c new file mode 100644 index 000000000000..6338d0e2fe07 --- /dev/null +++ b/drivers/video/backlight/pwm_bl.c | |||
@@ -0,0 +1,185 @@ | |||
1 | /* | ||
2 | * linux/drivers/video/backlight/pwm_bl.c | ||
3 | * | ||
4 | * simple PWM based backlight control, board code has to setup | ||
5 | * 1) pin configuration so PWM waveforms can output | ||
6 | * 2) platform_data casts to the PWM id (0/1/2/3 on PXA) | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/module.h> | ||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/init.h> | ||
16 | #include <linux/platform_device.h> | ||
17 | #include <linux/fb.h> | ||
18 | #include <linux/backlight.h> | ||
19 | #include <linux/err.h> | ||
20 | #include <linux/pwm.h> | ||
21 | #include <linux/pwm_backlight.h> | ||
22 | |||
23 | struct pwm_bl_data { | ||
24 | struct pwm_device *pwm; | ||
25 | unsigned int period; | ||
26 | int (*notify)(int brightness); | ||
27 | }; | ||
28 | |||
29 | static int pwm_backlight_update_status(struct backlight_device *bl) | ||
30 | { | ||
31 | struct pwm_bl_data *pb = dev_get_drvdata(&bl->dev); | ||
32 | int brightness = bl->props.brightness; | ||
33 | int max = bl->props.max_brightness; | ||
34 | |||
35 | if (bl->props.power != FB_BLANK_UNBLANK) | ||
36 | brightness = 0; | ||
37 | |||
38 | if (bl->props.fb_blank != FB_BLANK_UNBLANK) | ||
39 | brightness = 0; | ||
40 | |||
41 | if (pb->notify) | ||
42 | brightness = pb->notify(brightness); | ||
43 | |||
44 | if (brightness == 0) { | ||
45 | pwm_config(pb->pwm, 0, pb->period); | ||
46 | pwm_disable(pb->pwm); | ||
47 | } else { | ||
48 | pwm_config(pb->pwm, brightness * pb->period / max, pb->period); | ||
49 | pwm_enable(pb->pwm); | ||
50 | } | ||
51 | return 0; | ||
52 | } | ||
53 | |||
54 | static int pwm_backlight_get_brightness(struct backlight_device *bl) | ||
55 | { | ||
56 | return bl->props.brightness; | ||
57 | } | ||
58 | |||
59 | static struct backlight_ops pwm_backlight_ops = { | ||
60 | .update_status = pwm_backlight_update_status, | ||
61 | .get_brightness = pwm_backlight_get_brightness, | ||
62 | }; | ||
63 | |||
64 | static int pwm_backlight_probe(struct platform_device *pdev) | ||
65 | { | ||
66 | struct platform_pwm_backlight_data *data = pdev->dev.platform_data; | ||
67 | struct backlight_device *bl; | ||
68 | struct pwm_bl_data *pb; | ||
69 | int ret; | ||
70 | |||
71 | if (!data) | ||
72 | return -EINVAL; | ||
73 | |||
74 | if (data->init) { | ||
75 | ret = data->init(&pdev->dev); | ||
76 | if (ret < 0) | ||
77 | return ret; | ||
78 | } | ||
79 | |||
80 | pb = kzalloc(sizeof(*pb), GFP_KERNEL); | ||
81 | if (!pb) { | ||
82 | ret = -ENOMEM; | ||
83 | goto err_alloc; | ||
84 | } | ||
85 | |||
86 | pb->period = data->pwm_period_ns; | ||
87 | pb->notify = data->notify; | ||
88 | |||
89 | pb->pwm = pwm_request(data->pwm_id, "backlight"); | ||
90 | if (IS_ERR(pb->pwm)) { | ||
91 | dev_err(&pdev->dev, "unable to request PWM for backlight\n"); | ||
92 | ret = PTR_ERR(pb->pwm); | ||
93 | goto err_pwm; | ||
94 | } | ||
95 | |||
96 | bl = backlight_device_register(pdev->name, &pdev->dev, | ||
97 | pb, &pwm_backlight_ops); | ||
98 | if (IS_ERR(bl)) { | ||
99 | dev_err(&pdev->dev, "failed to register backlight\n"); | ||
100 | ret = PTR_ERR(bl); | ||
101 | goto err_bl; | ||
102 | } | ||
103 | |||
104 | bl->props.max_brightness = data->max_brightness; | ||
105 | bl->props.brightness = data->dft_brightness; | ||
106 | backlight_update_status(bl); | ||
107 | |||
108 | platform_set_drvdata(pdev, bl); | ||
109 | return 0; | ||
110 | |||
111 | err_bl: | ||
112 | pwm_free(pb->pwm); | ||
113 | err_pwm: | ||
114 | kfree(pb); | ||
115 | err_alloc: | ||
116 | if (data->exit) | ||
117 | data->exit(&pdev->dev); | ||
118 | return ret; | ||
119 | } | ||
120 | |||
121 | static int pwm_backlight_remove(struct platform_device *pdev) | ||
122 | { | ||
123 | struct platform_pwm_backlight_data *data = pdev->dev.platform_data; | ||
124 | struct backlight_device *bl = platform_get_drvdata(pdev); | ||
125 | struct pwm_bl_data *pb = dev_get_drvdata(&bl->dev); | ||
126 | |||
127 | backlight_device_unregister(bl); | ||
128 | pwm_config(pb->pwm, 0, pb->period); | ||
129 | pwm_disable(pb->pwm); | ||
130 | pwm_free(pb->pwm); | ||
131 | kfree(pb); | ||
132 | if (data->exit) | ||
133 | data->exit(&pdev->dev); | ||
134 | return 0; | ||
135 | } | ||
136 | |||
137 | #ifdef CONFIG_PM | ||
138 | static int pwm_backlight_suspend(struct platform_device *pdev, | ||
139 | pm_message_t state) | ||
140 | { | ||
141 | struct backlight_device *bl = platform_get_drvdata(pdev); | ||
142 | struct pwm_bl_data *pb = dev_get_drvdata(&bl->dev); | ||
143 | |||
144 | pwm_config(pb->pwm, 0, pb->period); | ||
145 | pwm_disable(pb->pwm); | ||
146 | return 0; | ||
147 | } | ||
148 | |||
149 | static int pwm_backlight_resume(struct platform_device *pdev) | ||
150 | { | ||
151 | struct backlight_device *bl = platform_get_drvdata(pdev); | ||
152 | |||
153 | backlight_update_status(bl); | ||
154 | return 0; | ||
155 | } | ||
156 | #else | ||
157 | #define pwm_backlight_suspend NULL | ||
158 | #define pwm_backlight_resume NULL | ||
159 | #endif | ||
160 | |||
161 | static struct platform_driver pwm_backlight_driver = { | ||
162 | .driver = { | ||
163 | .name = "pwm-backlight", | ||
164 | .owner = THIS_MODULE, | ||
165 | }, | ||
166 | .probe = pwm_backlight_probe, | ||
167 | .remove = pwm_backlight_remove, | ||
168 | .suspend = pwm_backlight_suspend, | ||
169 | .resume = pwm_backlight_resume, | ||
170 | }; | ||
171 | |||
172 | static int __init pwm_backlight_init(void) | ||
173 | { | ||
174 | return platform_driver_register(&pwm_backlight_driver); | ||
175 | } | ||
176 | module_init(pwm_backlight_init); | ||
177 | |||
178 | static void __exit pwm_backlight_exit(void) | ||
179 | { | ||
180 | platform_driver_unregister(&pwm_backlight_driver); | ||
181 | } | ||
182 | module_exit(pwm_backlight_exit); | ||
183 | |||
184 | MODULE_DESCRIPTION("PWM based Backlight Driver"); | ||
185 | MODULE_LICENSE("GPL"); | ||
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c index fafe7db20d6d..bb2514369507 100644 --- a/drivers/video/pxafb.c +++ b/drivers/video/pxafb.c | |||
@@ -227,6 +227,22 @@ static int pxafb_bpp_to_lccr3(struct fb_var_screeninfo *var) | |||
227 | case 4: ret = LCCR3_4BPP; break; | 227 | case 4: ret = LCCR3_4BPP; break; |
228 | case 8: ret = LCCR3_8BPP; break; | 228 | case 8: ret = LCCR3_8BPP; break; |
229 | case 16: ret = LCCR3_16BPP; break; | 229 | case 16: ret = LCCR3_16BPP; break; |
230 | case 24: | ||
231 | switch (var->red.length + var->green.length + | ||
232 | var->blue.length + var->transp.length) { | ||
233 | case 18: ret = LCCR3_18BPP_P | LCCR3_PDFOR_3; break; | ||
234 | case 19: ret = LCCR3_19BPP_P; break; | ||
235 | } | ||
236 | break; | ||
237 | case 32: | ||
238 | switch (var->red.length + var->green.length + | ||
239 | var->blue.length + var->transp.length) { | ||
240 | case 18: ret = LCCR3_18BPP | LCCR3_PDFOR_3; break; | ||
241 | case 19: ret = LCCR3_19BPP; break; | ||
242 | case 24: ret = LCCR3_24BPP | LCCR3_PDFOR_3; break; | ||
243 | case 25: ret = LCCR3_25BPP; break; | ||
244 | } | ||
245 | break; | ||
230 | } | 246 | } |
231 | return ret; | 247 | return ret; |
232 | } | 248 | } |
@@ -345,6 +361,41 @@ static int pxafb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) | |||
345 | var->green.offset = 5; var->green.length = 6; | 361 | var->green.offset = 5; var->green.length = 6; |
346 | var->blue.offset = 0; var->blue.length = 5; | 362 | var->blue.offset = 0; var->blue.length = 5; |
347 | var->transp.offset = var->transp.length = 0; | 363 | var->transp.offset = var->transp.length = 0; |
364 | } else if (var->bits_per_pixel > 16) { | ||
365 | struct pxafb_mode_info *mode; | ||
366 | |||
367 | mode = pxafb_getmode(inf, var); | ||
368 | if (!mode) | ||
369 | return -EINVAL; | ||
370 | |||
371 | switch (mode->depth) { | ||
372 | case 18: /* RGB666 */ | ||
373 | var->transp.offset = var->transp.length = 0; | ||
374 | var->red.offset = 12; var->red.length = 6; | ||
375 | var->green.offset = 6; var->green.length = 6; | ||
376 | var->blue.offset = 0; var->blue.length = 6; | ||
377 | break; | ||
378 | case 19: /* RGBT666 */ | ||
379 | var->transp.offset = 18; var->transp.length = 1; | ||
380 | var->red.offset = 12; var->red.length = 6; | ||
381 | var->green.offset = 6; var->green.length = 6; | ||
382 | var->blue.offset = 0; var->blue.length = 6; | ||
383 | break; | ||
384 | case 24: /* RGB888 */ | ||
385 | var->transp.offset = var->transp.length = 0; | ||
386 | var->red.offset = 16; var->red.length = 8; | ||
387 | var->green.offset = 8; var->green.length = 8; | ||
388 | var->blue.offset = 0; var->blue.length = 8; | ||
389 | break; | ||
390 | case 25: /* RGBT888 */ | ||
391 | var->transp.offset = 24; var->transp.length = 1; | ||
392 | var->red.offset = 16; var->red.length = 8; | ||
393 | var->green.offset = 8; var->green.length = 8; | ||
394 | var->blue.offset = 0; var->blue.length = 8; | ||
395 | break; | ||
396 | default: | ||
397 | return -EINVAL; | ||
398 | } | ||
348 | } else { | 399 | } else { |
349 | var->red.offset = var->green.offset = 0; | 400 | var->red.offset = var->green.offset = 0; |
350 | var->blue.offset = var->transp.offset = 0; | 401 | var->blue.offset = var->transp.offset = 0; |
@@ -376,7 +427,7 @@ static int pxafb_set_par(struct fb_info *info) | |||
376 | struct pxafb_info *fbi = (struct pxafb_info *)info; | 427 | struct pxafb_info *fbi = (struct pxafb_info *)info; |
377 | struct fb_var_screeninfo *var = &info->var; | 428 | struct fb_var_screeninfo *var = &info->var; |
378 | 429 | ||
379 | if (var->bits_per_pixel == 16) | 430 | if (var->bits_per_pixel >= 16) |
380 | fbi->fb.fix.visual = FB_VISUAL_TRUECOLOR; | 431 | fbi->fb.fix.visual = FB_VISUAL_TRUECOLOR; |
381 | else if (!fbi->cmap_static) | 432 | else if (!fbi->cmap_static) |
382 | fbi->fb.fix.visual = FB_VISUAL_PSEUDOCOLOR; | 433 | fbi->fb.fix.visual = FB_VISUAL_PSEUDOCOLOR; |
@@ -391,7 +442,7 @@ static int pxafb_set_par(struct fb_info *info) | |||
391 | 442 | ||
392 | fbi->fb.fix.line_length = var->xres_virtual * | 443 | fbi->fb.fix.line_length = var->xres_virtual * |
393 | var->bits_per_pixel / 8; | 444 | var->bits_per_pixel / 8; |
394 | if (var->bits_per_pixel == 16) | 445 | if (var->bits_per_pixel >= 16) |
395 | fbi->palette_size = 0; | 446 | fbi->palette_size = 0; |
396 | else | 447 | else |
397 | fbi->palette_size = var->bits_per_pixel == 1 ? | 448 | fbi->palette_size = var->bits_per_pixel == 1 ? |
@@ -404,7 +455,7 @@ static int pxafb_set_par(struct fb_info *info) | |||
404 | */ | 455 | */ |
405 | pxafb_set_truecolor(fbi->fb.fix.visual == FB_VISUAL_TRUECOLOR); | 456 | pxafb_set_truecolor(fbi->fb.fix.visual == FB_VISUAL_TRUECOLOR); |
406 | 457 | ||
407 | if (fbi->fb.var.bits_per_pixel == 16) | 458 | if (fbi->fb.var.bits_per_pixel >= 16) |
408 | fb_dealloc_cmap(&fbi->fb.cmap); | 459 | fb_dealloc_cmap(&fbi->fb.cmap); |
409 | else | 460 | else |
410 | fb_alloc_cmap(&fbi->fb.cmap, 1<<fbi->fb.var.bits_per_pixel, 0); | 461 | fb_alloc_cmap(&fbi->fb.cmap, 1<<fbi->fb.var.bits_per_pixel, 0); |
@@ -831,6 +882,8 @@ static int pxafb_activate_var(struct fb_var_screeninfo *var, | |||
831 | case 4: | 882 | case 4: |
832 | case 8: | 883 | case 8: |
833 | case 16: | 884 | case 16: |
885 | case 24: | ||
886 | case 32: | ||
834 | break; | 887 | break; |
835 | default: | 888 | default: |
836 | printk(KERN_ERR "%s: invalid bit depth %d\n", | 889 | printk(KERN_ERR "%s: invalid bit depth %d\n", |
@@ -968,6 +1021,11 @@ static void pxafb_setup_gpio(struct pxafb_info *fbi) | |||
968 | 1021 | ||
969 | for (gpio = 58; ldd_bits; gpio++, ldd_bits--) | 1022 | for (gpio = 58; ldd_bits; gpio++, ldd_bits--) |
970 | pxa_gpio_mode(gpio | GPIO_ALT_FN_2_OUT); | 1023 | pxa_gpio_mode(gpio | GPIO_ALT_FN_2_OUT); |
1024 | /* 18 bit interface */ | ||
1025 | if (fbi->fb.var.bits_per_pixel > 16) { | ||
1026 | pxa_gpio_mode(86 | GPIO_ALT_FN_2_OUT); | ||
1027 | pxa_gpio_mode(87 | GPIO_ALT_FN_2_OUT); | ||
1028 | } | ||
971 | pxa_gpio_mode(GPIO74_LCD_FCLK_MD); | 1029 | pxa_gpio_mode(GPIO74_LCD_FCLK_MD); |
972 | pxa_gpio_mode(GPIO75_LCD_LCLK_MD); | 1030 | pxa_gpio_mode(GPIO75_LCD_LCLK_MD); |
973 | pxa_gpio_mode(GPIO76_LCD_PCLK_MD); | 1031 | pxa_gpio_mode(GPIO76_LCD_PCLK_MD); |
@@ -1792,11 +1850,49 @@ failed: | |||
1792 | return ret; | 1850 | return ret; |
1793 | } | 1851 | } |
1794 | 1852 | ||
1853 | static int __devexit pxafb_remove(struct platform_device *dev) | ||
1854 | { | ||
1855 | struct pxafb_info *fbi = platform_get_drvdata(dev); | ||
1856 | struct resource *r; | ||
1857 | int irq; | ||
1858 | struct fb_info *info; | ||
1859 | |||
1860 | if (!fbi) | ||
1861 | return 0; | ||
1862 | |||
1863 | info = &fbi->fb; | ||
1864 | |||
1865 | unregister_framebuffer(info); | ||
1866 | |||
1867 | pxafb_disable_controller(fbi); | ||
1868 | |||
1869 | if (fbi->fb.cmap.len) | ||
1870 | fb_dealloc_cmap(&fbi->fb.cmap); | ||
1871 | |||
1872 | irq = platform_get_irq(dev, 0); | ||
1873 | free_irq(irq, fbi); | ||
1874 | |||
1875 | dma_free_writecombine(&dev->dev, fbi->map_size, | ||
1876 | fbi->map_cpu, fbi->map_dma); | ||
1877 | |||
1878 | iounmap(fbi->mmio_base); | ||
1879 | |||
1880 | r = platform_get_resource(dev, IORESOURCE_MEM, 0); | ||
1881 | release_mem_region(r->start, r->end - r->start + 1); | ||
1882 | |||
1883 | clk_put(fbi->clk); | ||
1884 | kfree(fbi); | ||
1885 | |||
1886 | return 0; | ||
1887 | } | ||
1888 | |||
1795 | static struct platform_driver pxafb_driver = { | 1889 | static struct platform_driver pxafb_driver = { |
1796 | .probe = pxafb_probe, | 1890 | .probe = pxafb_probe, |
1891 | .remove = pxafb_remove, | ||
1797 | .suspend = pxafb_suspend, | 1892 | .suspend = pxafb_suspend, |
1798 | .resume = pxafb_resume, | 1893 | .resume = pxafb_resume, |
1799 | .driver = { | 1894 | .driver = { |
1895 | .owner = THIS_MODULE, | ||
1800 | .name = "pxa2xx-fb", | 1896 | .name = "pxa2xx-fb", |
1801 | }, | 1897 | }, |
1802 | }; | 1898 | }; |
@@ -1809,7 +1905,13 @@ static int __init pxafb_init(void) | |||
1809 | return platform_driver_register(&pxafb_driver); | 1905 | return platform_driver_register(&pxafb_driver); |
1810 | } | 1906 | } |
1811 | 1907 | ||
1908 | static void __exit pxafb_exit(void) | ||
1909 | { | ||
1910 | platform_driver_unregister(&pxafb_driver); | ||
1911 | } | ||
1912 | |||
1812 | module_init(pxafb_init); | 1913 | module_init(pxafb_init); |
1914 | module_exit(pxafb_exit); | ||
1813 | 1915 | ||
1814 | MODULE_DESCRIPTION("loadable framebuffer driver for PXA"); | 1916 | MODULE_DESCRIPTION("loadable framebuffer driver for PXA"); |
1815 | MODULE_LICENSE("GPL"); | 1917 | MODULE_LICENSE("GPL"); |
diff --git a/include/asm-arm/arch-pxa/audio.h b/include/asm-arm/arch-pxa/audio.h index 52bbe3bc25e1..f82f96dd1053 100644 --- a/include/asm-arm/arch-pxa/audio.h +++ b/include/asm-arm/arch-pxa/audio.h | |||
@@ -12,4 +12,6 @@ typedef struct { | |||
12 | void *priv; | 12 | void *priv; |
13 | } pxa2xx_audio_ops_t; | 13 | } pxa2xx_audio_ops_t; |
14 | 14 | ||
15 | extern void pxa_set_ac97_info(pxa2xx_audio_ops_t *ops); | ||
16 | |||
15 | #endif | 17 | #endif |
diff --git a/include/asm-arm/arch-pxa/cm-x270.h b/include/asm-arm/arch-pxa/cm-x270.h deleted file mode 100644 index f8fac9e18009..000000000000 --- a/include/asm-arm/arch-pxa/cm-x270.h +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
1 | /* | ||
2 | * linux/include/asm/arch-pxa/cm-x270.h | ||
3 | * | ||
4 | * Copyright Compulab Ltd., 2003, 2007 | ||
5 | * Mike Rapoport <mike@compulab.co.il> | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | */ | ||
11 | |||
12 | |||
13 | /* CM-x270 device physical addresses */ | ||
14 | #define CMX270_CS1_PHYS (PXA_CS1_PHYS) | ||
15 | #define MARATHON_PHYS (PXA_CS2_PHYS) | ||
16 | #define CMX270_IDE104_PHYS (PXA_CS3_PHYS) | ||
17 | #define CMX270_IT8152_PHYS (PXA_CS4_PHYS) | ||
18 | |||
19 | /* Statically mapped regions */ | ||
20 | #define CMX270_VIRT_BASE (0xe8000000) | ||
21 | #define CMX270_IT8152_VIRT (CMX270_VIRT_BASE) | ||
22 | #define CMX270_IDE104_VIRT (CMX270_IT8152_VIRT + SZ_64M) | ||
23 | |||
24 | /* GPIO related definitions */ | ||
25 | #define GPIO_IT8152_IRQ (22) | ||
26 | |||
27 | #define IRQ_GPIO_IT8152_IRQ IRQ_GPIO(GPIO_IT8152_IRQ) | ||
28 | #define PME_IRQ IRQ_GPIO(0) | ||
29 | #define CMX270_IDE_IRQ IRQ_GPIO(100) | ||
30 | #define CMX270_GPIRQ1 IRQ_GPIO(101) | ||
31 | #define CMX270_TOUCHIRQ IRQ_GPIO(96) | ||
32 | #define CMX270_ETHIRQ IRQ_GPIO(10) | ||
33 | #define CMX270_GFXIRQ IRQ_GPIO(95) | ||
34 | #define CMX270_NANDIRQ IRQ_GPIO(89) | ||
35 | #define CMX270_MMC_IRQ IRQ_GPIO(83) | ||
36 | |||
37 | /* PCMCIA related definitions */ | ||
38 | #define PCC_DETECT(x) (GPLR(84 - (x)) & GPIO_bit(84 - (x))) | ||
39 | #define PCC_READY(x) (GPLR(82 - (x)) & GPIO_bit(82 - (x))) | ||
40 | |||
41 | #define PCMCIA_S0_CD_VALID IRQ_GPIO(84) | ||
42 | #define PCMCIA_S0_CD_VALID_EDGE GPIO_BOTH_EDGES | ||
43 | |||
44 | #define PCMCIA_S1_CD_VALID IRQ_GPIO(83) | ||
45 | #define PCMCIA_S1_CD_VALID_EDGE GPIO_BOTH_EDGES | ||
46 | |||
47 | #define PCMCIA_S0_RDYINT IRQ_GPIO(82) | ||
48 | #define PCMCIA_S1_RDYINT IRQ_GPIO(81) | ||
49 | |||
50 | #define PCMCIA_RESET_GPIO 53 | ||
diff --git a/include/asm-arm/arch-pxa/eseries-gpio.h b/include/asm-arm/arch-pxa/eseries-gpio.h new file mode 100644 index 000000000000..4c90b1310270 --- /dev/null +++ b/include/asm-arm/arch-pxa/eseries-gpio.h | |||
@@ -0,0 +1,50 @@ | |||
1 | /* | ||
2 | * eseries-gpio.h | ||
3 | * | ||
4 | * Copyright (C) Ian Molton <spyro@f2s.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | * | ||
10 | */ | ||
11 | |||
12 | /* e-series power button */ | ||
13 | #define GPIO_ESERIES_POWERBTN 0 | ||
14 | |||
15 | /* UDC GPIO definitions */ | ||
16 | #define GPIO_E7XX_USB_DISC 13 | ||
17 | #define GPIO_E7XX_USB_PULLUP 3 | ||
18 | |||
19 | #define GPIO_E800_USB_DISC 4 | ||
20 | #define GPIO_E800_USB_PULLUP 84 | ||
21 | |||
22 | /* e740 PCMCIA GPIO definitions */ | ||
23 | /* Note: PWR1 seems to be inverted */ | ||
24 | #define GPIO_E740_PCMCIA_CD0 8 | ||
25 | #define GPIO_E740_PCMCIA_CD1 44 | ||
26 | #define GPIO_E740_PCMCIA_RDY0 11 | ||
27 | #define GPIO_E740_PCMCIA_RDY1 6 | ||
28 | #define GPIO_E740_PCMCIA_RST0 27 | ||
29 | #define GPIO_E740_PCMCIA_RST1 24 | ||
30 | #define GPIO_E740_PCMCIA_PWR0 20 | ||
31 | #define GPIO_E740_PCMCIA_PWR1 23 | ||
32 | |||
33 | /* e750 PCMCIA GPIO definitions */ | ||
34 | #define GPIO_E750_PCMCIA_CD0 8 | ||
35 | #define GPIO_E750_PCMCIA_RDY0 12 | ||
36 | #define GPIO_E750_PCMCIA_RST0 27 | ||
37 | #define GPIO_E750_PCMCIA_PWR0 20 | ||
38 | |||
39 | /* e800 PCMCIA GPIO definitions */ | ||
40 | #define GPIO_E800_PCMCIA_RST0 69 | ||
41 | #define GPIO_E800_PCMCIA_RST1 72 | ||
42 | #define GPIO_E800_PCMCIA_PWR0 20 | ||
43 | #define GPIO_E800_PCMCIA_PWR1 73 | ||
44 | |||
45 | /* e7xx IrDA power control */ | ||
46 | #define GPIO_E7XX_IR_ON 38 | ||
47 | |||
48 | /* ASIC related GPIOs */ | ||
49 | #define GPIO_ESERIES_TMIO_IRQ 5 | ||
50 | #define GPIO_E800_ANGELX_IRQ 8 | ||
diff --git a/include/asm-arm/arch-pxa/eseries-irq.h b/include/asm-arm/arch-pxa/eseries-irq.h new file mode 100644 index 000000000000..f2a93d5e31d3 --- /dev/null +++ b/include/asm-arm/arch-pxa/eseries-irq.h | |||
@@ -0,0 +1,27 @@ | |||
1 | /* | ||
2 | * eseries-irq.h | ||
3 | * | ||
4 | * Copyright (C) Ian Molton <spyro@f2s.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | * | ||
10 | */ | ||
11 | |||
12 | #define ANGELX_IRQ_BASE (IRQ_BOARD_START+8) | ||
13 | #define IRQ_ANGELX(n) (ANGELX_IRQ_BASE + (n)) | ||
14 | |||
15 | #define ANGELX_RDY0_IRQ IRQ_ANGELX(0) | ||
16 | #define ANGELX_ST0_IRQ IRQ_ANGELX(1) | ||
17 | #define ANGELX_CD0_IRQ IRQ_ANGELX(2) | ||
18 | #define ANGELX_RDY1_IRQ IRQ_ANGELX(3) | ||
19 | #define ANGELX_ST1_IRQ IRQ_ANGELX(4) | ||
20 | #define ANGELX_CD1_IRQ IRQ_ANGELX(5) | ||
21 | |||
22 | #define TMIO_IRQ_BASE (IRQ_BOARD_START+0) | ||
23 | #define IRQ_TMIO(n) (TMIO_IRQ_BASE + (n)) | ||
24 | |||
25 | #define TMIO_SD_IRQ IRQ_TMIO(1) | ||
26 | #define TMIO_USB_IRQ IRQ_TMIO(2) | ||
27 | |||
diff --git a/include/asm-arm/arch-pxa/hardware.h b/include/asm-arm/arch-pxa/hardware.h index e25558faa5a4..979a45695d7d 100644 --- a/include/asm-arm/arch-pxa/hardware.h +++ b/include/asm-arm/arch-pxa/hardware.h | |||
@@ -69,6 +69,12 @@ | |||
69 | _id == 0x212; \ | 69 | _id == 0x212; \ |
70 | }) | 70 | }) |
71 | 71 | ||
72 | #define __cpu_is_pxa255(id) \ | ||
73 | ({ \ | ||
74 | unsigned int _id = (id) >> 4 & 0xfff; \ | ||
75 | _id == 0x2d0; \ | ||
76 | }) | ||
77 | |||
72 | #define __cpu_is_pxa25x(id) \ | 78 | #define __cpu_is_pxa25x(id) \ |
73 | ({ \ | 79 | ({ \ |
74 | unsigned int _id = (id) >> 4 & 0xfff; \ | 80 | unsigned int _id = (id) >> 4 & 0xfff; \ |
@@ -76,6 +82,7 @@ | |||
76 | }) | 82 | }) |
77 | #else | 83 | #else |
78 | #define __cpu_is_pxa21x(id) (0) | 84 | #define __cpu_is_pxa21x(id) (0) |
85 | #define __cpu_is_pxa255(id) (0) | ||
79 | #define __cpu_is_pxa25x(id) (0) | 86 | #define __cpu_is_pxa25x(id) (0) |
80 | #endif | 87 | #endif |
81 | 88 | ||
@@ -119,11 +126,26 @@ | |||
119 | #define __cpu_is_pxa320(id) (0) | 126 | #define __cpu_is_pxa320(id) (0) |
120 | #endif | 127 | #endif |
121 | 128 | ||
129 | #ifdef CONFIG_CPU_PXA930 | ||
130 | #define __cpu_is_pxa930(id) \ | ||
131 | ({ \ | ||
132 | unsigned int _id = (id) >> 4 & 0xfff; \ | ||
133 | _id == 0x683; \ | ||
134 | }) | ||
135 | #else | ||
136 | #define __cpu_is_pxa930(id) (0) | ||
137 | #endif | ||
138 | |||
122 | #define cpu_is_pxa21x() \ | 139 | #define cpu_is_pxa21x() \ |
123 | ({ \ | 140 | ({ \ |
124 | __cpu_is_pxa21x(read_cpuid_id()); \ | 141 | __cpu_is_pxa21x(read_cpuid_id()); \ |
125 | }) | 142 | }) |
126 | 143 | ||
144 | #define cpu_is_pxa255() \ | ||
145 | ({ \ | ||
146 | __cpu_is_pxa255(read_cpuid_id()); \ | ||
147 | }) | ||
148 | |||
127 | #define cpu_is_pxa25x() \ | 149 | #define cpu_is_pxa25x() \ |
128 | ({ \ | 150 | ({ \ |
129 | __cpu_is_pxa25x(read_cpuid_id()); \ | 151 | __cpu_is_pxa25x(read_cpuid_id()); \ |
@@ -149,6 +171,12 @@ | |||
149 | __cpu_is_pxa320(read_cpuid_id()); \ | 171 | __cpu_is_pxa320(read_cpuid_id()); \ |
150 | }) | 172 | }) |
151 | 173 | ||
174 | #define cpu_is_pxa930() \ | ||
175 | ({ \ | ||
176 | unsigned int id = read_cpuid(CPUID_ID); \ | ||
177 | __cpu_is_pxa930(id); \ | ||
178 | }) | ||
179 | |||
152 | /* | 180 | /* |
153 | * CPUID Core Generation Bit | 181 | * CPUID Core Generation Bit |
154 | * <= 0x2 for pxa21x/pxa25x/pxa26x/pxa27x | 182 | * <= 0x2 for pxa21x/pxa25x/pxa26x/pxa27x |
@@ -192,18 +220,14 @@ extern int pxa_gpio_get_value(unsigned gpio); | |||
192 | extern void pxa_gpio_set_value(unsigned gpio, int value); | 220 | extern void pxa_gpio_set_value(unsigned gpio, int value); |
193 | 221 | ||
194 | /* | 222 | /* |
195 | * Routine to enable or disable CKEN | 223 | * return current memory and LCD clock frequency in units of 10kHz |
196 | */ | 224 | */ |
197 | static inline void __deprecated pxa_set_cken(int clock, int enable) | 225 | extern unsigned int get_memclk_frequency_10khz(void); |
198 | { | ||
199 | extern void __pxa_set_cken(int clock, int enable); | ||
200 | __pxa_set_cken(clock, enable); | ||
201 | } | ||
202 | 226 | ||
203 | /* | 227 | /* |
204 | * return current memory and LCD clock frequency in units of 10kHz | 228 | * register GPIO as reset generator |
205 | */ | 229 | */ |
206 | extern unsigned int get_memclk_frequency_10khz(void); | 230 | extern int init_gpio_reset(int gpio); |
207 | 231 | ||
208 | #endif | 232 | #endif |
209 | 233 | ||
diff --git a/include/asm-arm/arch-pxa/irda.h b/include/asm-arm/arch-pxa/irda.h index 99f4f423a8e1..0a50c3c763df 100644 --- a/include/asm-arm/arch-pxa/irda.h +++ b/include/asm-arm/arch-pxa/irda.h | |||
@@ -16,4 +16,8 @@ struct pxaficp_platform_data { | |||
16 | 16 | ||
17 | extern void pxa_set_ficp_info(struct pxaficp_platform_data *info); | 17 | extern void pxa_set_ficp_info(struct pxaficp_platform_data *info); |
18 | 18 | ||
19 | #if defined(CONFIG_PXA25x) || defined(CONFIG_PXA27x) | ||
20 | void pxa2xx_transceiver_mode(struct device *dev, int mode); | ||
21 | #endif | ||
22 | |||
19 | #endif | 23 | #endif |
diff --git a/include/asm-arm/arch-pxa/irqs.h b/include/asm-arm/arch-pxa/irqs.h index b6c8fe377683..9413121b0ed9 100644 --- a/include/asm-arm/arch-pxa/irqs.h +++ b/include/asm-arm/arch-pxa/irqs.h | |||
@@ -180,10 +180,13 @@ | |||
180 | #define NR_IRQS (IRQ_LOCOMO_SPI_TEND + 1) | 180 | #define NR_IRQS (IRQ_LOCOMO_SPI_TEND + 1) |
181 | #elif defined(CONFIG_ARCH_LUBBOCK) || \ | 181 | #elif defined(CONFIG_ARCH_LUBBOCK) || \ |
182 | defined(CONFIG_MACH_LOGICPD_PXA270) || \ | 182 | defined(CONFIG_MACH_LOGICPD_PXA270) || \ |
183 | defined(CONFIG_MACH_TOSA) || \ | ||
183 | defined(CONFIG_MACH_MAINSTONE) || \ | 184 | defined(CONFIG_MACH_MAINSTONE) || \ |
184 | defined(CONFIG_MACH_PCM027) || \ | 185 | defined(CONFIG_MACH_PCM027) || \ |
185 | defined(CONFIG_MACH_MAGICIAN) | 186 | defined(CONFIG_MACH_MAGICIAN) |
186 | #define NR_IRQS (IRQ_BOARD_END) | 187 | #define NR_IRQS (IRQ_BOARD_END) |
188 | #elif defined(CONFIG_MACH_ZYLONITE) | ||
189 | #define NR_IRQS (IRQ_BOARD_START + 32) | ||
187 | #else | 190 | #else |
188 | #define NR_IRQS (IRQ_BOARD_START) | 191 | #define NR_IRQS (IRQ_BOARD_START) |
189 | #endif | 192 | #endif |
diff --git a/include/asm-arm/arch-pxa/mfp-pxa2xx.h b/include/asm-arm/arch-pxa/mfp-pxa2xx.h index db8d890d237c..8de1c0dae624 100644 --- a/include/asm-arm/arch-pxa/mfp-pxa2xx.h +++ b/include/asm-arm/arch-pxa/mfp-pxa2xx.h | |||
@@ -128,5 +128,6 @@ | |||
128 | #define GPIO84_GPIO MFP_CFG_IN(GPIO84, AF0) | 128 | #define GPIO84_GPIO MFP_CFG_IN(GPIO84, AF0) |
129 | 129 | ||
130 | extern void pxa2xx_mfp_config(unsigned long *mfp_cfgs, int num); | 130 | extern void pxa2xx_mfp_config(unsigned long *mfp_cfgs, int num); |
131 | extern void pxa2xx_mfp_set_lpm(int mfp, unsigned long lpm); | ||
131 | extern int gpio_set_wake(unsigned int gpio, unsigned int on); | 132 | extern int gpio_set_wake(unsigned int gpio, unsigned int on); |
132 | #endif /* __ASM_ARCH_MFP_PXA2XX_H */ | 133 | #endif /* __ASM_ARCH_MFP_PXA2XX_H */ |
diff --git a/include/asm-arm/arch-pxa/mfp-pxa930.h b/include/asm-arm/arch-pxa/mfp-pxa930.h new file mode 100644 index 000000000000..c4e945ab1923 --- /dev/null +++ b/include/asm-arm/arch-pxa/mfp-pxa930.h | |||
@@ -0,0 +1,491 @@ | |||
1 | /* | ||
2 | * linux/include/asm-arm/arch-pxa/mfp-pxa930.h | ||
3 | * | ||
4 | * PXA930 specific MFP configuration definitions | ||
5 | * | ||
6 | * Copyright (C) 2007-2008 Marvell International Ltd. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #ifndef __ASM_ARCH_MFP_PXA9xx_H | ||
14 | #define __ASM_ARCH_MFP_PXA9xx_H | ||
15 | |||
16 | #include <asm/arch/mfp.h> | ||
17 | #include <asm/arch/mfp-pxa3xx.h> | ||
18 | |||
19 | /* GPIO */ | ||
20 | #define GPIO46_GPIO MFP_CFG(GPIO46, AF0) | ||
21 | #define GPIO49_GPIO MFP_CFG(GPIO49, AF0) | ||
22 | #define GPIO50_GPIO MFP_CFG(GPIO50, AF0) | ||
23 | #define GPIO51_GPIO MFP_CFG(GPIO51, AF0) | ||
24 | #define GPIO52_GPIO MFP_CFG(GPIO52, AF0) | ||
25 | #define GPIO56_GPIO MFP_CFG(GPIO56, AF0) | ||
26 | #define GPIO58_GPIO MFP_CFG(GPIO58, AF0) | ||
27 | #define GPIO59_GPIO MFP_CFG(GPIO59, AF0) | ||
28 | #define GPIO60_GPIO MFP_CFG(GPIO60, AF0) | ||
29 | #define GPIO61_GPIO MFP_CFG(GPIO61, AF0) | ||
30 | #define GPIO62_GPIO MFP_CFG(GPIO62, AF0) | ||
31 | |||
32 | #define GSIM_UCLK_GPIO_79 MFP_CFG(GSIM_UCLK, AF0) | ||
33 | #define GSIM_UIO_GPIO_80 MFP_CFG(GSIM_UIO, AF0) | ||
34 | #define GSIM_nURST_GPIO_81 MFP_CFG(GSIM_nURST, AF0) | ||
35 | #define GSIM_UDET_GPIO_82 MFP_CFG(GSIM_UDET, AF0) | ||
36 | |||
37 | #define DF_IO15_GPIO_28 MFP_CFG(DF_IO15, AF0) | ||
38 | #define DF_IO14_GPIO_29 MFP_CFG(DF_IO14, AF0) | ||
39 | #define DF_IO13_GPIO_30 MFP_CFG(DF_IO13, AF0) | ||
40 | #define DF_IO12_GPIO_31 MFP_CFG(DF_IO12, AF0) | ||
41 | #define DF_IO11_GPIO_32 MFP_CFG(DF_IO11, AF0) | ||
42 | #define DF_IO10_GPIO_33 MFP_CFG(DF_IO10, AF0) | ||
43 | #define DF_IO9_GPIO_34 MFP_CFG(DF_IO9, AF0) | ||
44 | #define DF_IO8_GPIO_35 MFP_CFG(DF_IO8, AF0) | ||
45 | #define DF_IO7_GPIO_36 MFP_CFG(DF_IO7, AF0) | ||
46 | #define DF_IO6_GPIO_37 MFP_CFG(DF_IO6, AF0) | ||
47 | #define DF_IO5_GPIO_38 MFP_CFG(DF_IO5, AF0) | ||
48 | #define DF_IO4_GPIO_39 MFP_CFG(DF_IO4, AF0) | ||
49 | #define DF_IO3_GPIO_40 MFP_CFG(DF_IO3, AF0) | ||
50 | #define DF_IO2_GPIO_41 MFP_CFG(DF_IO2, AF0) | ||
51 | #define DF_IO1_GPIO_42 MFP_CFG(DF_IO1, AF0) | ||
52 | #define DF_IO0_GPIO_43 MFP_CFG(DF_IO0, AF0) | ||
53 | #define DF_nCS0_GPIO_44 MFP_CFG(DF_nCS0, AF0) | ||
54 | #define DF_nCS1_GPIO_45 MFP_CFG(DF_nCS1, AF0) | ||
55 | #define DF_nWE_GPIO_46 MFP_CFG(DF_nWE, AF0) | ||
56 | #define DF_nRE_nOE_GPIO_47 MFP_CFG(DF_nRE_nOE, AF0) | ||
57 | #define DF_CLE_nOE_GPIO_48 MFP_CFG(DF_CLE_nOE, AF0) | ||
58 | #define DF_nADV1_ALE_GPIO_49 MFP_CFG(DF_nADV1_ALE, AF0) | ||
59 | #define DF_nADV2_ALE_GPIO_50 MFP_CFG(DF_nADV2_ALE, AF0) | ||
60 | #define DF_INT_RnB_GPIO_51 MFP_CFG(DF_INT_RnB, AF0) | ||
61 | #define DF_SCLK_E_GPIO_52 MFP_CFG(DF_SCLK_E, AF0) | ||
62 | |||
63 | #define DF_ADDR0_GPIO_53 MFP_CFG(DF_ADDR0, AF0) | ||
64 | #define DF_ADDR1_GPIO_54 MFP_CFG(DF_ADDR1, AF0) | ||
65 | #define DF_ADDR2_GPIO_55 MFP_CFG(DF_ADDR2, AF0) | ||
66 | #define DF_ADDR3_GPIO_56 MFP_CFG(DF_ADDR3, AF0) | ||
67 | #define nXCVREN_GPIO_57 MFP_CFG(nXCVREN, AF0) | ||
68 | #define nLUA_GPIO_58 MFP_CFG(nLUA, AF0) | ||
69 | #define nLLA_GPIO_59 MFP_CFG(nLLA, AF0) | ||
70 | #define nBE0_GPIO_60 MFP_CFG(nBE0, AF0) | ||
71 | #define nBE1_GPIO_61 MFP_CFG(nBE1, AF0) | ||
72 | #define RDY_GPIO_62 MFP_CFG(RDY, AF0) | ||
73 | |||
74 | /* Chip Select */ | ||
75 | #define DF_nCS0_nCS2 MFP_CFG_LPM(DF_nCS0, AF3, PULL_HIGH) | ||
76 | #define DF_nCS1_nCS3 MFP_CFG_LPM(DF_nCS1, AF3, PULL_HIGH) | ||
77 | |||
78 | /* AC97 */ | ||
79 | #define GPIO83_BAC97_SYSCLK MFP_CFG(GPIO83, AF3) | ||
80 | #define GPIO84_BAC97_SDATA_IN0 MFP_CFG(GPIO84, AF3) | ||
81 | #define GPIO85_BAC97_BITCLK MFP_CFG(GPIO85, AF3) | ||
82 | #define GPIO86_BAC97_nRESET MFP_CFG(GPIO86, AF3) | ||
83 | #define GPIO87_BAC97_SYNC MFP_CFG(GPIO87, AF3) | ||
84 | #define GPIO88_BAC97_SDATA_OUT MFP_CFG(GPIO88, AF3) | ||
85 | |||
86 | /* I2C */ | ||
87 | #define GPIO39_CI2C_SCL MFP_CFG_LPM(GPIO39, AF3, PULL_HIGH) | ||
88 | #define GPIO40_CI2C_SDA MFP_CFG_LPM(GPIO40, AF3, PULL_HIGH) | ||
89 | |||
90 | #define GPIO51_CI2C_SCL MFP_CFG_LPM(GPIO51, AF3, PULL_HIGH) | ||
91 | #define GPIO52_CI2C_SDA MFP_CFG_LPM(GPIO52, AF3, PULL_HIGH) | ||
92 | |||
93 | #define GPIO63_CI2C_SCL MFP_CFG_LPM(GPIO63, AF4, PULL_HIGH) | ||
94 | #define GPIO64_CI2C_SDA MFP_CFG_LPM(GPIO64, AF4, PULL_HIGH) | ||
95 | |||
96 | #define GPIO77_CI2C_SCL MFP_CFG_LPM(GPIO77, AF2, PULL_HIGH) | ||
97 | #define GPIO78_CI2C_SDA MFP_CFG_LPM(GPIO78, AF2, PULL_HIGH) | ||
98 | |||
99 | #define GPIO89_CI2C_SCL MFP_CFG_LPM(GPIO89, AF1, PULL_HIGH) | ||
100 | #define GPIO90_CI2C_SDA MFP_CFG_LPM(GPIO90, AF1, PULL_HIGH) | ||
101 | |||
102 | #define GPIO95_CI2C_SCL MFP_CFG_LPM(GPIO95, AF1, PULL_HIGH) | ||
103 | #define GPIO96_CI2C_SDA MFP_CFG_LPM(GPIO96, AF1, PULL_HIGH) | ||
104 | |||
105 | #define GPIO97_CI2C_SCL MFP_CFG_LPM(GPIO97, AF3, PULL_HIGH) | ||
106 | #define GPIO98_CI2C_SDA MFP_CFG_LPM(GPIO98, AF3, PULL_HIGH) | ||
107 | |||
108 | /* QCI */ | ||
109 | #define GPIO63_CI_DD_9 MFP_CFG_LPM(GPIO63, AF1, PULL_LOW) | ||
110 | #define GPIO64_CI_DD_8 MFP_CFG_LPM(GPIO64, AF1, PULL_LOW) | ||
111 | #define GPIO65_CI_DD_7 MFP_CFG_LPM(GPIO65, AF1, PULL_LOW) | ||
112 | #define GPIO66_CI_DD_6 MFP_CFG_LPM(GPIO66, AF1, PULL_LOW) | ||
113 | #define GPIO67_CI_DD_5 MFP_CFG_LPM(GPIO67, AF1, PULL_LOW) | ||
114 | #define GPIO68_CI_DD_4 MFP_CFG_LPM(GPIO68, AF1, PULL_LOW) | ||
115 | #define GPIO69_CI_DD_3 MFP_CFG_LPM(GPIO69, AF1, PULL_LOW) | ||
116 | #define GPIO70_CI_DD_2 MFP_CFG_LPM(GPIO70, AF1, PULL_LOW) | ||
117 | #define GPIO71_CI_DD_1 MFP_CFG_LPM(GPIO71, AF1, PULL_LOW) | ||
118 | #define GPIO72_CI_DD_0 MFP_CFG_LPM(GPIO72, AF1, PULL_LOW) | ||
119 | #define GPIO73_CI_HSYNC MFP_CFG_LPM(GPIO73, AF1, PULL_LOW) | ||
120 | #define GPIO74_CI_VSYNC MFP_CFG_LPM(GPIO74, AF1, PULL_LOW) | ||
121 | #define GPIO75_CI_MCLK MFP_CFG_LPM(GPIO75, AF1, PULL_LOW) | ||
122 | #define GPIO76_CI_PCLK MFP_CFG_LPM(GPIO76, AF1, PULL_LOW) | ||
123 | |||
124 | /* KEYPAD */ | ||
125 | #define GPIO4_KP_DKIN_4 MFP_CFG_LPM(GPIO4, AF3, FLOAT) | ||
126 | #define GPIO5_KP_DKIN_5 MFP_CFG_LPM(GPIO5, AF3, FLOAT) | ||
127 | #define GPIO6_KP_DKIN_6 MFP_CFG_LPM(GPIO6, AF3, FLOAT) | ||
128 | #define GPIO7_KP_DKIN_7 MFP_CFG_LPM(GPIO7, AF3, FLOAT) | ||
129 | #define GPIO8_KP_DKIN_4 MFP_CFG_LPM(GPIO8, AF3, FLOAT) | ||
130 | #define GPIO9_KP_DKIN_5 MFP_CFG_LPM(GPIO9, AF3, FLOAT) | ||
131 | #define GPIO10_KP_DKIN_6 MFP_CFG_LPM(GPIO10, AF3, FLOAT) | ||
132 | #define GPIO11_KP_DKIN_7 MFP_CFG_LPM(GPIO11, AF3, FLOAT) | ||
133 | |||
134 | #define GPIO12_KP_DKIN_0 MFP_CFG_LPM(GPIO12, AF2, FLOAT) | ||
135 | #define GPIO13_KP_DKIN_1 MFP_CFG_LPM(GPIO13, AF2, FLOAT) | ||
136 | #define GPIO14_KP_DKIN_2 MFP_CFG_LPM(GPIO14, AF2, FLOAT) | ||
137 | #define GPIO15_KP_DKIN_3 MFP_CFG_LPM(GPIO15, AF2, FLOAT) | ||
138 | |||
139 | #define GPIO41_KP_DKIN_0 MFP_CFG_LPM(GPIO41, AF2, FLOAT) | ||
140 | #define GPIO42_KP_DKIN_1 MFP_CFG_LPM(GPIO42, AF2, FLOAT) | ||
141 | #define GPIO43_KP_DKIN_2 MFP_CFG_LPM(GPIO43, AF2, FLOAT) | ||
142 | #define GPIO44_KP_DKIN_3 MFP_CFG_LPM(GPIO44, AF2, FLOAT) | ||
143 | #define GPIO41_KP_DKIN_4 MFP_CFG_LPM(GPIO41, AF4, FLOAT) | ||
144 | #define GPIO42_KP_DKIN_5 MFP_CFG_LPM(GPIO42, AF4, FLOAT) | ||
145 | |||
146 | #define GPIO0_KP_MKIN_0 MFP_CFG_LPM(GPIO0, AF1, FLOAT) | ||
147 | #define GPIO2_KP_MKIN_1 MFP_CFG_LPM(GPIO2, AF1, FLOAT) | ||
148 | #define GPIO4_KP_MKIN_2 MFP_CFG_LPM(GPIO4, AF1, FLOAT) | ||
149 | #define GPIO6_KP_MKIN_3 MFP_CFG_LPM(GPIO6, AF1, FLOAT) | ||
150 | #define GPIO8_KP_MKIN_4 MFP_CFG_LPM(GPIO8, AF1, FLOAT) | ||
151 | #define GPIO10_KP_MKIN_5 MFP_CFG_LPM(GPIO10, AF1, FLOAT) | ||
152 | #define GPIO12_KP_MKIN_6 MFP_CFG_LPM(GPIO12, AF1, FLOAT) | ||
153 | #define GPIO14_KP_MKIN_7 MFP_CFG(GPIO14, AF1) | ||
154 | #define GPIO35_KP_MKIN_5 MFP_CFG(GPIO35, AF4) | ||
155 | |||
156 | #define GPIO1_KP_MKOUT_0 MFP_CFG_LPM(GPIO1, AF1, DRIVE_HIGH) | ||
157 | #define GPIO3_KP_MKOUT_1 MFP_CFG_LPM(GPIO3, AF1, DRIVE_HIGH) | ||
158 | #define GPIO5_KP_MKOUT_2 MFP_CFG_LPM(GPIO5, AF1, DRIVE_HIGH) | ||
159 | #define GPIO7_KP_MKOUT_3 MFP_CFG_LPM(GPIO7, AF1, DRIVE_HIGH) | ||
160 | #define GPIO9_KP_MKOUT_4 MFP_CFG_LPM(GPIO9, AF1, DRIVE_HIGH) | ||
161 | #define GPIO11_KP_MKOUT_5 MFP_CFG_LPM(GPIO11, AF1, DRIVE_HIGH) | ||
162 | #define GPIO13_KP_MKOUT_6 MFP_CFG_LPM(GPIO13, AF1, DRIVE_HIGH) | ||
163 | #define GPIO15_KP_MKOUT_7 MFP_CFG_LPM(GPIO15, AF1, DRIVE_HIGH) | ||
164 | #define GPIO36_KP_MKOUT_5 MFP_CFG_LPM(GPIO36, AF4, DRIVE_HIGH) | ||
165 | |||
166 | /* LCD */ | ||
167 | #define GPIO17_LCD_FCLK_RD MFP_CFG(GPIO17, AF1) | ||
168 | #define GPIO18_LCD_LCLK_A0 MFP_CFG(GPIO18, AF1) | ||
169 | #define GPIO19_LCD_PCLK_WR MFP_CFG(GPIO19, AF1) | ||
170 | #define GPIO20_LCD_BIAS MFP_CFG(GPIO20, AF1) | ||
171 | #define GPIO21_LCD_CS MFP_CFG(GPIO21, AF1) | ||
172 | #define GPIO22_LCD_CS2 MFP_CFG(GPIO22, AF2) | ||
173 | #define GPIO22_LCD_VSYNC MFP_CFG(GPIO22, AF1) | ||
174 | #define GPIO23_LCD_DD0 MFP_CFG(GPIO23, AF1) | ||
175 | #define GPIO24_LCD_DD1 MFP_CFG(GPIO24, AF1) | ||
176 | #define GPIO25_LCD_DD2 MFP_CFG(GPIO25, AF1) | ||
177 | #define GPIO26_LCD_DD3 MFP_CFG(GPIO26, AF1) | ||
178 | #define GPIO27_LCD_DD4 MFP_CFG(GPIO27, AF1) | ||
179 | #define GPIO28_LCD_DD5 MFP_CFG(GPIO28, AF1) | ||
180 | #define GPIO29_LCD_DD6 MFP_CFG(GPIO29, AF1) | ||
181 | #define GPIO30_LCD_DD7 MFP_CFG(GPIO30, AF1) | ||
182 | #define GPIO31_LCD_DD8 MFP_CFG(GPIO31, AF1) | ||
183 | #define GPIO32_LCD_DD9 MFP_CFG(GPIO32, AF1) | ||
184 | #define GPIO33_LCD_DD10 MFP_CFG(GPIO33, AF1) | ||
185 | #define GPIO34_LCD_DD11 MFP_CFG(GPIO34, AF1) | ||
186 | #define GPIO35_LCD_DD12 MFP_CFG(GPIO35, AF1) | ||
187 | #define GPIO36_LCD_DD13 MFP_CFG(GPIO36, AF1) | ||
188 | #define GPIO37_LCD_DD14 MFP_CFG(GPIO37, AF1) | ||
189 | #define GPIO38_LCD_DD15 MFP_CFG(GPIO38, AF1) | ||
190 | #define GPIO39_LCD_DD16 MFP_CFG(GPIO39, AF1) | ||
191 | #define GPIO40_LCD_DD17 MFP_CFG(GPIO40, AF1) | ||
192 | #define GPIO41_LCD_CS2 MFP_CFG(GPIO41, AF3) | ||
193 | #define GPIO42_LCD_VSYNC2 MFP_CFG(GPIO42, AF3) | ||
194 | #define GPIO44_LCD_DD7 MFP_CFG(GPIO44, AF1) | ||
195 | |||
196 | /* Mini-LCD */ | ||
197 | #define GPIO17_MLCD_FCLK MFP_CFG(GPIO17, AF3) | ||
198 | #define GPIO18_MLCD_LCLK MFP_CFG(GPIO18, AF3) | ||
199 | #define GPIO19_MLCD_PCLK MFP_CFG(GPIO19, AF3) | ||
200 | #define GPIO20_MLCD_BIAS MFP_CFG(GPIO20, AF3) | ||
201 | #define GPIO23_MLCD_DD0 MFP_CFG(GPIO23, AF3) | ||
202 | #define GPIO24_MLCD_DD1 MFP_CFG(GPIO24, AF3) | ||
203 | #define GPIO25_MLCD_DD2 MFP_CFG(GPIO25, AF3) | ||
204 | #define GPIO26_MLCD_DD3 MFP_CFG(GPIO26, AF3) | ||
205 | #define GPIO27_MLCD_DD4 MFP_CFG(GPIO27, AF3) | ||
206 | #define GPIO28_MLCD_DD5 MFP_CFG(GPIO28, AF3) | ||
207 | #define GPIO29_MLCD_DD6 MFP_CFG(GPIO29, AF3) | ||
208 | #define GPIO30_MLCD_DD7 MFP_CFG(GPIO30, AF3) | ||
209 | #define GPIO31_MLCD_DD8 MFP_CFG(GPIO31, AF3) | ||
210 | #define GPIO32_MLCD_DD9 MFP_CFG(GPIO32, AF3) | ||
211 | #define GPIO33_MLCD_DD10 MFP_CFG(GPIO33, AF3) | ||
212 | #define GPIO34_MLCD_DD11 MFP_CFG(GPIO34, AF3) | ||
213 | #define GPIO35_MLCD_DD12 MFP_CFG(GPIO35, AF3) | ||
214 | #define GPIO36_MLCD_DD13 MFP_CFG(GPIO36, AF3) | ||
215 | #define GPIO37_MLCD_DD14 MFP_CFG(GPIO37, AF3) | ||
216 | #define GPIO38_MLCD_DD15 MFP_CFG(GPIO38, AF3) | ||
217 | #define GPIO44_MLCD_DD7 MFP_CFG(GPIO44, AF5) | ||
218 | |||
219 | /* MMC1 */ | ||
220 | #define GPIO10_MMC1_DAT3 MFP_CFG(GPIO10, AF4) | ||
221 | #define GPIO11_MMC1_DAT2 MFP_CFG(GPIO11, AF4) | ||
222 | #define GPIO12_MMC1_DAT1 MFP_CFG(GPIO12, AF4) | ||
223 | #define GPIO13_MMC1_DAT0 MFP_CFG(GPIO13, AF4) | ||
224 | #define GPIO14_MMC1_CMD MFP_CFG(GPIO14, AF4) | ||
225 | #define GPIO15_MMC1_CLK MFP_CFG(GPIO15, AF4) | ||
226 | #define GPIO55_MMC1_CMD MFP_CFG(GPIO55, AF3) | ||
227 | #define GPIO56_MMC1_CLK MFP_CFG(GPIO56, AF3) | ||
228 | #define GPIO57_MMC1_DAT0 MFP_CFG(GPIO57, AF3) | ||
229 | #define GPIO58_MMC1_DAT1 MFP_CFG(GPIO58, AF3) | ||
230 | #define GPIO59_MMC1_DAT2 MFP_CFG(GPIO59, AF3) | ||
231 | #define GPIO60_MMC1_DAT3 MFP_CFG(GPIO60, AF3) | ||
232 | |||
233 | #define DF_ADDR0_MMC1_CLK MFP_CFG(DF_ADDR0, AF2) | ||
234 | #define DF_ADDR1_MMC1_CMD MFP_CFG(DF_ADDR1, AF2) | ||
235 | #define DF_ADDR2_MMC1_DAT0 MFP_CFG(DF_ADDR2, AF2) | ||
236 | #define DF_ADDR3_MMC1_DAT1 MFP_CFG(DF_ADDR3, AF3) | ||
237 | #define nXCVREN_MMC1_DAT2 MFP_CFG(nXCVREN, AF2) | ||
238 | |||
239 | /* MMC2 */ | ||
240 | #define GPIO31_MMC2_CMD MFP_CFG(GPIO31, AF7) | ||
241 | #define GPIO32_MMC2_CLK MFP_CFG(GPIO32, AF7) | ||
242 | #define GPIO33_MMC2_DAT0 MFP_CFG(GPIO33, AF7) | ||
243 | #define GPIO34_MMC2_DAT1 MFP_CFG(GPIO34, AF7) | ||
244 | #define GPIO35_MMC2_DAT2 MFP_CFG(GPIO35, AF7) | ||
245 | #define GPIO36_MMC2_DAT3 MFP_CFG(GPIO36, AF7) | ||
246 | |||
247 | #define GPIO101_MMC2_DAT3 MFP_CFG(GPIO101, AF1) | ||
248 | #define GPIO102_MMC2_DAT2 MFP_CFG(GPIO102, AF1) | ||
249 | #define GPIO103_MMC2_DAT1 MFP_CFG(GPIO103, AF1) | ||
250 | #define GPIO104_MMC2_DAT0 MFP_CFG(GPIO104, AF1) | ||
251 | #define GPIO105_MMC2_CMD MFP_CFG(GPIO105, AF1) | ||
252 | #define GPIO106_MMC2_CLK MFP_CFG(GPIO106, AF1) | ||
253 | |||
254 | #define DF_IO10_MMC2_DAT3 MFP_CFG(DF_IO10, AF3) | ||
255 | #define DF_IO11_MMC2_DAT2 MFP_CFG(DF_IO11, AF3) | ||
256 | #define DF_IO12_MMC2_DAT1 MFP_CFG(DF_IO12, AF3) | ||
257 | #define DF_IO13_MMC2_DAT0 MFP_CFG(DF_IO13, AF3) | ||
258 | #define DF_IO14_MMC2_CLK MFP_CFG(DF_IO14, AF3) | ||
259 | #define DF_IO15_MMC2_CMD MFP_CFG(DF_IO15, AF3) | ||
260 | |||
261 | /* BSSP1 */ | ||
262 | #define GPIO12_BSSP1_CLK MFP_CFG(GPIO12, AF3) | ||
263 | #define GPIO13_BSSP1_FRM MFP_CFG(GPIO13, AF3) | ||
264 | #define GPIO14_BSSP1_RXD MFP_CFG(GPIO14, AF3) | ||
265 | #define GPIO15_BSSP1_TXD MFP_CFG(GPIO15, AF3) | ||
266 | #define GPIO97_BSSP1_CLK MFP_CFG(GPIO97, AF5) | ||
267 | #define GPIO98_BSSP1_FRM MFP_CFG(GPIO98, AF5) | ||
268 | |||
269 | /* BSSP2 */ | ||
270 | #define GPIO84_BSSP2_SDATA_IN MFP_CFG(GPIO84, AF1) | ||
271 | #define GPIO85_BSSP2_BITCLK MFP_CFG(GPIO85, AF1) | ||
272 | #define GPIO86_BSSP2_SYSCLK MFP_CFG(GPIO86, AF1) | ||
273 | #define GPIO87_BSSP2_SYNC MFP_CFG(GPIO87, AF1) | ||
274 | #define GPIO88_BSSP2_DATA_OUT MFP_CFG(GPIO88, AF1) | ||
275 | #define GPIO86_BSSP2_SDATA_IN MFP_CFG(GPIO86, AF4) | ||
276 | |||
277 | /* BSSP3 */ | ||
278 | #define GPIO79_BSSP3_CLK MFP_CFG(GPIO79, AF1) | ||
279 | #define GPIO80_BSSP3_FRM MFP_CFG(GPIO80, AF1) | ||
280 | #define GPIO81_BSSP3_TXD MFP_CFG(GPIO81, AF1) | ||
281 | #define GPIO82_BSSP3_RXD MFP_CFG(GPIO82, AF1) | ||
282 | #define GPIO83_BSSP3_SYSCLK MFP_CFG(GPIO83, AF1) | ||
283 | |||
284 | /* BSSP4 */ | ||
285 | #define GPIO43_BSSP4_CLK MFP_CFG(GPIO43, AF4) | ||
286 | #define GPIO44_BSSP4_FRM MFP_CFG(GPIO44, AF4) | ||
287 | #define GPIO45_BSSP4_TXD MFP_CFG(GPIO45, AF4) | ||
288 | #define GPIO46_BSSP4_RXD MFP_CFG(GPIO46, AF4) | ||
289 | |||
290 | #define GPIO51_BSSP4_CLK MFP_CFG(GPIO51, AF4) | ||
291 | #define GPIO52_BSSP4_FRM MFP_CFG(GPIO52, AF4) | ||
292 | #define GPIO53_BSSP4_TXD MFP_CFG(GPIO53, AF4) | ||
293 | #define GPIO54_BSSP4_RXD MFP_CFG(GPIO54, AF4) | ||
294 | |||
295 | /* GSSP1 */ | ||
296 | #define GPIO79_GSSP1_CLK MFP_CFG(GPIO79, AF2) | ||
297 | #define GPIO80_GSSP1_FRM MFP_CFG(GPIO80, AF2) | ||
298 | #define GPIO81_GSSP1_TXD MFP_CFG(GPIO81, AF2) | ||
299 | #define GPIO82_GSSP1_RXD MFP_CFG(GPIO82, AF2) | ||
300 | #define GPIO83_GSSP1_SYSCLK MFP_CFG(GPIO83, AF2) | ||
301 | |||
302 | #define GPIO93_GSSP1_CLK MFP_CFG(GPIO93, AF4) | ||
303 | #define GPIO94_GSSP1_FRM MFP_CFG(GPIO94, AF4) | ||
304 | #define GPIO95_GSSP1_TXD MFP_CFG(GPIO95, AF4) | ||
305 | #define GPIO96_GSSP1_RXD MFP_CFG(GPIO96, AF4) | ||
306 | |||
307 | /* GSSP2 */ | ||
308 | #define GPIO47_GSSP2_CLK MFP_CFG(GPIO47, AF4) | ||
309 | #define GPIO48_GSSP2_FRM MFP_CFG(GPIO48, AF4) | ||
310 | #define GPIO49_GSSP2_RXD MFP_CFG(GPIO49, AF4) | ||
311 | #define GPIO50_GSSP2_TXD MFP_CFG(GPIO50, AF4) | ||
312 | |||
313 | #define GPIO69_GSSP2_CLK MFP_CFG(GPIO69, AF4) | ||
314 | #define GPIO70_GSSP2_FRM MFP_CFG(GPIO70, AF4) | ||
315 | #define GPIO71_GSSP2_RXD MFP_CFG(GPIO71, AF4) | ||
316 | #define GPIO72_GSSP2_TXD MFP_CFG(GPIO72, AF4) | ||
317 | |||
318 | #define GPIO84_GSSP2_RXD MFP_CFG(GPIO84, AF2) | ||
319 | #define GPIO85_GSSP2_CLK MFP_CFG(GPIO85, AF2) | ||
320 | #define GPIO86_GSSP2_SYSCLK MFP_CFG(GPIO86, AF2) | ||
321 | #define GPIO87_GSSP2_FRM MFP_CFG(GPIO87, AF2) | ||
322 | #define GPIO88_GSSP2_TXD MFP_CFG(GPIO88, AF2) | ||
323 | #define GPIO86_GSSP2_RXD MFP_CFG(GPIO86, AF5) | ||
324 | |||
325 | #define GPIO103_GSSP2_CLK MFP_CFG(GPIO103, AF2) | ||
326 | #define GPIO104_GSSP2_FRM MFP_CFG(GPIO104, AF2) | ||
327 | #define GPIO105_GSSP2_RXD MFP_CFG(GPIO105, AF2) | ||
328 | #define GPIO106_GSSP2_TXD MFP_CFG(GPIO106, AF2) | ||
329 | |||
330 | /* UART1 - FFUART */ | ||
331 | #define GPIO47_UART1_DSR_N MFP_CFG(GPIO47, AF1) | ||
332 | #define GPIO48_UART1_DTR_N MFP_CFG(GPIO48, AF1) | ||
333 | #define GPIO49_UART1_RI MFP_CFG(GPIO49, AF1) | ||
334 | #define GPIO50_UART1_DCD MFP_CFG(GPIO50, AF1) | ||
335 | #define GPIO51_UART1_CTS MFP_CFG(GPIO51, AF1) | ||
336 | #define GPIO52_UART1_RTS MFP_CFG(GPIO52, AF1) | ||
337 | #define GPIO53_UART1_RXD MFP_CFG(GPIO53, AF1) | ||
338 | #define GPIO54_UART1_TXD MFP_CFG(GPIO54, AF1) | ||
339 | |||
340 | #define GPIO63_UART1_TXD MFP_CFG(GPIO63, AF2) | ||
341 | #define GPIO64_UART1_RXD MFP_CFG(GPIO64, AF2) | ||
342 | #define GPIO65_UART1_DSR MFP_CFG(GPIO65, AF2) | ||
343 | #define GPIO66_UART1_DTR MFP_CFG(GPIO66, AF2) | ||
344 | #define GPIO67_UART1_RI MFP_CFG(GPIO67, AF2) | ||
345 | #define GPIO68_UART1_DCD MFP_CFG(GPIO68, AF2) | ||
346 | #define GPIO69_UART1_CTS MFP_CFG(GPIO69, AF2) | ||
347 | #define GPIO70_UART1_RTS MFP_CFG(GPIO70, AF2) | ||
348 | |||
349 | /* UART2 - BTUART */ | ||
350 | #define GPIO91_UART2_RXD MFP_CFG(GPIO91, AF1) | ||
351 | #define GPIO92_UART2_TXD MFP_CFG(GPIO92, AF1) | ||
352 | #define GPIO93_UART2_CTS MFP_CFG(GPIO93, AF1) | ||
353 | #define GPIO94_UART2_RTS MFP_CFG(GPIO94, AF1) | ||
354 | |||
355 | /* UART3 - STUART */ | ||
356 | #define GPIO43_UART3_RTS MFP_CFG(GPIO43, AF3) | ||
357 | #define GPIO44_UART3_CTS MFP_CFG(GPIO44, AF3) | ||
358 | #define GPIO45_UART3_RXD MFP_CFG(GPIO45, AF3) | ||
359 | #define GPIO46_UART3_TXD MFP_CFG(GPIO46, AF3) | ||
360 | |||
361 | #define GPIO75_UART3_RTS MFP_CFG(GPIO75, AF5) | ||
362 | #define GPIO76_UART3_CTS MFP_CFG(GPIO76, AF5) | ||
363 | #define GPIO77_UART3_TXD MFP_CFG(GPIO77, AF5) | ||
364 | #define GPIO78_UART3_RXD MFP_CFG(GPIO78, AF5) | ||
365 | |||
366 | /* DFI */ | ||
367 | #define DF_IO0_DF_IO0 MFP_CFG(DF_IO0, AF2) | ||
368 | #define DF_IO1_DF_IO1 MFP_CFG(DF_IO1, AF2) | ||
369 | #define DF_IO2_DF_IO2 MFP_CFG(DF_IO2, AF2) | ||
370 | #define DF_IO3_DF_IO3 MFP_CFG(DF_IO3, AF2) | ||
371 | #define DF_IO4_DF_IO4 MFP_CFG(DF_IO4, AF2) | ||
372 | #define DF_IO5_DF_IO5 MFP_CFG(DF_IO5, AF2) | ||
373 | #define DF_IO6_DF_IO6 MFP_CFG(DF_IO6, AF2) | ||
374 | #define DF_IO7_DF_IO7 MFP_CFG(DF_IO7, AF2) | ||
375 | #define DF_IO8_DF_IO8 MFP_CFG(DF_IO8, AF2) | ||
376 | #define DF_IO9_DF_IO9 MFP_CFG(DF_IO9, AF2) | ||
377 | #define DF_IO10_DF_IO10 MFP_CFG(DF_IO10, AF2) | ||
378 | #define DF_IO11_DF_IO11 MFP_CFG(DF_IO11, AF2) | ||
379 | #define DF_IO12_DF_IO12 MFP_CFG(DF_IO12, AF2) | ||
380 | #define DF_IO13_DF_IO13 MFP_CFG(DF_IO13, AF2) | ||
381 | #define DF_IO14_DF_IO14 MFP_CFG(DF_IO14, AF2) | ||
382 | #define DF_IO15_DF_IO15 MFP_CFG(DF_IO15, AF2) | ||
383 | #define DF_nADV1_ALE_DF_nADV1 MFP_CFG(DF_nADV1_ALE, AF2) | ||
384 | #define DF_nADV2_ALE_DF_nADV2 MFP_CFG(DF_nADV2_ALE, AF2) | ||
385 | #define DF_nCS0_DF_nCS0 MFP_CFG(DF_nCS0, AF2) | ||
386 | #define DF_nCS1_DF_nCS1 MFP_CFG(DF_nCS1, AF2) | ||
387 | #define DF_nRE_nOE_DF_nOE MFP_CFG(DF_nRE_nOE, AF2) | ||
388 | #define DF_nWE_DF_nWE MFP_CFG(DF_nWE, AF2) | ||
389 | |||
390 | /* DFI - NAND */ | ||
391 | #define DF_CLE_nOE_ND_CLE MFP_CFG_LPM(DF_CLE_nOE, AF1, PULL_HIGH) | ||
392 | #define DF_INT_RnB_ND_INT_RnB MFP_CFG_LPM(DF_INT_RnB, AF1, PULL_LOW) | ||
393 | #define DF_IO0_ND_IO0 MFP_CFG_LPM(DF_IO0, AF1, PULL_LOW) | ||
394 | #define DF_IO1_ND_IO1 MFP_CFG_LPM(DF_IO1, AF1, PULL_LOW) | ||
395 | #define DF_IO2_ND_IO2 MFP_CFG_LPM(DF_IO2, AF1, PULL_LOW) | ||
396 | #define DF_IO3_ND_IO3 MFP_CFG_LPM(DF_IO3, AF1, PULL_LOW) | ||
397 | #define DF_IO4_ND_IO4 MFP_CFG_LPM(DF_IO4, AF1, PULL_LOW) | ||
398 | #define DF_IO5_ND_IO5 MFP_CFG_LPM(DF_IO5, AF1, PULL_LOW) | ||
399 | #define DF_IO6_ND_IO6 MFP_CFG_LPM(DF_IO6, AF1, PULL_LOW) | ||
400 | #define DF_IO7_ND_IO7 MFP_CFG_LPM(DF_IO7, AF1, PULL_LOW) | ||
401 | #define DF_IO8_ND_IO8 MFP_CFG_LPM(DF_IO8, AF1, PULL_LOW) | ||
402 | #define DF_IO9_ND_IO9 MFP_CFG_LPM(DF_IO9, AF1, PULL_LOW) | ||
403 | #define DF_IO10_ND_IO10 MFP_CFG_LPM(DF_IO10, AF1, PULL_LOW) | ||
404 | #define DF_IO11_ND_IO11 MFP_CFG_LPM(DF_IO11, AF1, PULL_LOW) | ||
405 | #define DF_IO12_ND_IO12 MFP_CFG_LPM(DF_IO12, AF1, PULL_LOW) | ||
406 | #define DF_IO13_ND_IO13 MFP_CFG_LPM(DF_IO13, AF1, PULL_LOW) | ||
407 | #define DF_IO14_ND_IO14 MFP_CFG_LPM(DF_IO14, AF1, PULL_LOW) | ||
408 | #define DF_IO15_ND_IO15 MFP_CFG_LPM(DF_IO15, AF1, PULL_LOW) | ||
409 | #define DF_nADV1_ALE_ND_ALE MFP_CFG_LPM(DF_nADV1_ALE, AF1, PULL_HIGH) | ||
410 | #define DF_nADV2_ALE_ND_ALE MFP_CFG_LPM(DF_nADV2_ALE, AF1, PULL_HIGH) | ||
411 | #define DF_nADV2_ALE_nCS3 MFP_CFG_LPM(DF_nADV2_ALE, AF3, PULL_HIGH) | ||
412 | #define DF_nCS0_ND_nCS0 MFP_CFG_LPM(DF_nCS0, AF1, PULL_HIGH) | ||
413 | #define DF_nCS1_ND_nCS1 MFP_CFG_LPM(DF_nCS1, AF1, PULL_HIGH) | ||
414 | #define DF_nRE_nOE_ND_nRE MFP_CFG_LPM(DF_nRE_nOE, AF1, PULL_HIGH) | ||
415 | #define DF_nWE_ND_nWE MFP_CFG_LPM(DF_nWE, AF1, PULL_HIGH) | ||
416 | |||
417 | /* PWM */ | ||
418 | #define GPIO41_PWM0 MFP_CFG_LPM(GPIO41, AF1, PULL_LOW) | ||
419 | #define GPIO42_PWM1 MFP_CFG_LPM(GPIO42, AF1, PULL_LOW) | ||
420 | #define GPIO43_PWM3 MFP_CFG_LPM(GPIO43, AF1, PULL_LOW) | ||
421 | #define GPIO20_PWM0 MFP_CFG_LPM(GPIO20, AF2, PULL_LOW) | ||
422 | #define GPIO21_PWM2 MFP_CFG_LPM(GPIO21, AF3, PULL_LOW) | ||
423 | #define GPIO22_PWM3 MFP_CFG_LPM(GPIO22, AF3, PULL_LOW) | ||
424 | |||
425 | /* CIR */ | ||
426 | #define GPIO46_CIR_OUT MFP_CFG(GPIO46, AF1) | ||
427 | #define GPIO77_CIR_OUT MFP_CFG(GPIO77, AF3) | ||
428 | |||
429 | /* USB P2 */ | ||
430 | #define GPIO0_USB_P2_7 MFP_CFG(GPIO0, AF3) | ||
431 | #define GPIO15_USB_P2_7 MFP_CFG(GPIO15, AF5) | ||
432 | #define GPIO16_USB_P2_7 MFP_CFG(GPIO16, AF2) | ||
433 | #define GPIO48_USB_P2_7 MFP_CFG(GPIO48, AF7) | ||
434 | #define GPIO49_USB_P2_7 MFP_CFG(GPIO49, AF6) | ||
435 | #define DF_IO9_USB_P2_7 MFP_CFG(DF_IO9, AF3) | ||
436 | |||
437 | #define GPIO48_USB_P2_8 MFP_CFG(GPIO48, AF2) | ||
438 | #define GPIO50_USB_P2_7 MFP_CFG_X(GPIO50, AF2, DS02X, FLOAT) | ||
439 | #define GPIO51_USB_P2_5 MFP_CFG(GPIO51, AF2) | ||
440 | #define GPIO47_USB_P2_4 MFP_CFG(GPIO47, AF2) | ||
441 | #define GPIO53_USB_P2_3 MFP_CFG(GPIO53, AF2) | ||
442 | #define GPIO54_USB_P2_6 MFP_CFG(GPIO54, AF2) | ||
443 | #define GPIO49_USB_P2_2 MFP_CFG(GPIO49, AF2) | ||
444 | #define GPIO52_USB_P2_1 MFP_CFG(GPIO52, AF2) | ||
445 | |||
446 | #define GPIO63_USB_P2_8 MFP_CFG(GPIO63, AF3) | ||
447 | #define GPIO64_USB_P2_7 MFP_CFG(GPIO64, AF3) | ||
448 | #define GPIO65_USB_P2_6 MFP_CFG(GPIO65, AF3) | ||
449 | #define GPIO66_USG_P2_5 MFP_CFG(GPIO66, AF3) | ||
450 | #define GPIO67_USB_P2_4 MFP_CFG(GPIO67, AF3) | ||
451 | #define GPIO68_USB_P2_3 MFP_CFG(GPIO68, AF3) | ||
452 | #define GPIO69_USB_P2_2 MFP_CFG(GPIO69, AF3) | ||
453 | #define GPIO70_USB_P2_1 MFP_CFG(GPIO70, AF3) | ||
454 | |||
455 | /* ULPI */ | ||
456 | #define GPIO31_USB_ULPI_D0 MFP_CFG(GPIO31, AF4) | ||
457 | #define GPIO30_USB_ULPI_D1 MFP_CFG(GPIO30, AF7) | ||
458 | #define GPIO33_USB_ULPI_D2 MFP_CFG(GPIO33, AF5) | ||
459 | #define GPIO34_USB_ULPI_D3 MFP_CFG(GPIO34, AF5) | ||
460 | #define GPIO35_USB_ULPI_D4 MFP_CFG(GPIO35, AF5) | ||
461 | #define GPIO36_USB_ULPI_D5 MFP_CFG(GPIO36, AF5) | ||
462 | #define GPIO41_USB_ULPI_D6 MFP_CFG(GPIO41, AF5) | ||
463 | #define GPIO42_USB_ULPI_D7 MFP_CFG(GPIO42, AF5) | ||
464 | #define GPIO37_USB_ULPI_DIR MFP_CFG(GPIO37, AF4) | ||
465 | #define GPIO38_USB_ULPI_CLK MFP_CFG(GPIO38, AF4) | ||
466 | #define GPIO39_USB_ULPI_STP MFP_CFG(GPIO39, AF4) | ||
467 | #define GPIO40_USB_ULPI_NXT MFP_CFG(GPIO40, AF4) | ||
468 | |||
469 | #define GPIO3_CLK26MOUTDMD MFP_CFG(GPIO3, AF3) | ||
470 | #define GPIO40_CLK26MOUTDMD MFP_CFG(GPIO40, AF7) | ||
471 | #define GPIO94_CLK26MOUTDMD MFP_CFG(GPIO94, AF5) | ||
472 | #define GPIO104_CLK26MOUTDMD MFP_CFG(GPIO104, AF4) | ||
473 | #define DF_ADDR1_CLK26MOUTDMD MFP_CFG(DF_ADDR2, AF3) | ||
474 | #define DF_ADDR3_CLK26MOUTDMD MFP_CFG(DF_ADDR3, AF3) | ||
475 | |||
476 | #define GPIO14_CLK26MOUT MFP_CFG(GPIO14, AF5) | ||
477 | #define GPIO38_CLK26MOUT MFP_CFG(GPIO38, AF7) | ||
478 | #define GPIO92_CLK26MOUT MFP_CFG(GPIO92, AF5) | ||
479 | #define GPIO105_CLK26MOUT MFP_CFG(GPIO105, AF4) | ||
480 | |||
481 | #define GPIO2_CLK13MOUTDMD MFP_CFG(GPIO2, AF3) | ||
482 | #define GPIO39_CLK13MOUTDMD MFP_CFG(GPIO39, AF7) | ||
483 | #define GPIO50_CLK13MOUTDMD MFP_CFG(GPIO50, AF3) | ||
484 | #define GPIO93_CLK13MOUTDMD MFP_CFG(GPIO93, AF5) | ||
485 | #define GPIO103_CLK13MOUTDMD MFP_CFG(GPIO103, AF4) | ||
486 | #define DF_ADDR2_CLK13MOUTDMD MFP_CFG(DF_ADDR2, AF3) | ||
487 | |||
488 | /* 1 wire */ | ||
489 | #define GPIO95_OW_DQ_IN MFP_CFG(GPIO95, AF5) | ||
490 | |||
491 | #endif /* __ASM_ARCH_MFP_PXA9xx_H */ | ||
diff --git a/include/asm-arm/arch-pxa/mfp.h b/include/asm-arm/arch-pxa/mfp.h index 02f6157396d3..e7d58798da67 100644 --- a/include/asm-arm/arch-pxa/mfp.h +++ b/include/asm-arm/arch-pxa/mfp.h | |||
@@ -210,6 +210,14 @@ enum { | |||
210 | MFP_PIN_DF_IO14, | 210 | MFP_PIN_DF_IO14, |
211 | MFP_PIN_DF_IO15, | 211 | MFP_PIN_DF_IO15, |
212 | 212 | ||
213 | /* additional pins on PXA930 */ | ||
214 | MFP_PIN_GSIM_UIO, | ||
215 | MFP_PIN_GSIM_UCLK, | ||
216 | MFP_PIN_GSIM_UDET, | ||
217 | MFP_PIN_GSIM_nURST, | ||
218 | MFP_PIN_PMIC_INT, | ||
219 | MFP_PIN_RDY, | ||
220 | |||
213 | MFP_PIN_MAX, | 221 | MFP_PIN_MAX, |
214 | }; | 222 | }; |
215 | 223 | ||
diff --git a/include/asm-arm/arch-pxa/palmtx.h b/include/asm-arm/arch-pxa/palmtx.h new file mode 100644 index 000000000000..1e8bccbda510 --- /dev/null +++ b/include/asm-arm/arch-pxa/palmtx.h | |||
@@ -0,0 +1,106 @@ | |||
1 | /* | ||
2 | * GPIOs and interrupts for Palm T|X Handheld Computer | ||
3 | * | ||
4 | * Based on palmld-gpio.h by Alex Osborne | ||
5 | * | ||
6 | * Authors: Marek Vasut <marek.vasut@gmail.com> | ||
7 | * Cristiano P. <cristianop@users.sourceforge.net> | ||
8 | * Jan Herman <2hp@seznam.cz> | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License version 2 as | ||
12 | * published by the Free Software Foundation. | ||
13 | * | ||
14 | */ | ||
15 | |||
16 | #ifndef _INCLUDE_PALMTX_H_ | ||
17 | #define _INCLUDE_PALMTX_H_ | ||
18 | |||
19 | /** HERE ARE GPIOs **/ | ||
20 | |||
21 | /* GPIOs */ | ||
22 | #define GPIO_NR_PALMTX_GPIO_RESET 1 | ||
23 | |||
24 | #define GPIO_NR_PALMTX_POWER_DETECT 12 /* 90 */ | ||
25 | #define GPIO_NR_PALMTX_HOTSYNC_BUTTON_N 10 | ||
26 | #define GPIO_NR_PALMTX_EARPHONE_DETECT 107 | ||
27 | |||
28 | /* SD/MMC */ | ||
29 | #define GPIO_NR_PALMTX_SD_DETECT_N 14 | ||
30 | #define GPIO_NR_PALMTX_SD_POWER 114 /* probably */ | ||
31 | #define GPIO_NR_PALMTX_SD_READONLY 115 /* probably */ | ||
32 | |||
33 | /* TOUCHSCREEN */ | ||
34 | #define GPIO_NR_PALMTX_WM9712_IRQ 27 | ||
35 | |||
36 | /* IRDA - disable GPIO connected to SD pin of tranceiver (TFBS4710?) ? */ | ||
37 | #define GPIO_NR_PALMTX_IR_DISABLE 40 | ||
38 | |||
39 | /* USB */ | ||
40 | #define GPIO_NR_PALMTX_USB_DETECT_N 13 | ||
41 | #define GPIO_NR_PALMTX_USB_POWER 95 | ||
42 | #define GPIO_NR_PALMTX_USB_PULLUP 93 | ||
43 | |||
44 | /* LCD/BACKLIGHT */ | ||
45 | #define GPIO_NR_PALMTX_BL_POWER 84 | ||
46 | #define GPIO_NR_PALMTX_LCD_POWER 96 | ||
47 | |||
48 | /* LCD BORDER */ | ||
49 | #define GPIO_NR_PALMTX_BORDER_SWITCH 98 | ||
50 | #define GPIO_NR_PALMTX_BORDER_SELECT 22 | ||
51 | |||
52 | /* BLUETOOTH */ | ||
53 | #define GPIO_NR_PALMTX_BT_POWER 17 | ||
54 | #define GPIO_NR_PALMTX_BT_RESET 83 | ||
55 | |||
56 | /* PCMCIA (WiFi) */ | ||
57 | #define GPIO_NR_PALMTX_PCMCIA_POWER1 94 | ||
58 | #define GPIO_NR_PALMTX_PCMCIA_POWER2 108 | ||
59 | #define GPIO_NR_PALMTX_PCMCIA_RESET 79 | ||
60 | #define GPIO_NR_PALMTX_PCMCIA_READY 116 | ||
61 | |||
62 | /* NAND Flash ... this GPIO may be incorrect! */ | ||
63 | #define GPIO_NR_PALMTX_NAND_BUFFER_DIR 79 | ||
64 | |||
65 | /* INTERRUPTS */ | ||
66 | #define IRQ_GPIO_PALMTX_SD_DETECT_N IRQ_GPIO(GPIO_NR_PALMTX_SD_DETECT_N) | ||
67 | #define IRQ_GPIO_PALMTX_WM9712_IRQ IRQ_GPIO(GPIO_NR_PALMTX_WM9712_IRQ) | ||
68 | #define IRQ_GPIO_PALMTX_USB_DETECT IRQ_GPIO(GPIO_NR_PALMTX_USB_DETECT) | ||
69 | #define IRQ_GPIO_PALMTX_GPIO_RESET IRQ_GPIO(GPIO_NR_PALMTX_GPIO_RESET) | ||
70 | |||
71 | /** HERE ARE INIT VALUES **/ | ||
72 | |||
73 | /* Various addresses */ | ||
74 | #define PALMTX_PCMCIA_PHYS 0x28000000 | ||
75 | #define PALMTX_PCMCIA_VIRT 0xf0000000 | ||
76 | #define PALMTX_PCMCIA_SIZE 0x100000 | ||
77 | |||
78 | #define PALMTX_PHYS_RAM_START 0xa0000000 | ||
79 | #define PALMTX_PHYS_IO_START 0x40000000 | ||
80 | |||
81 | #define PALMTX_PHYS_FLASH_START PXA_CS0_PHYS /* ChipSelect 0 */ | ||
82 | #define PALMTX_PHYS_NAND_START PXA_CS1_PHYS /* ChipSelect 1 */ | ||
83 | |||
84 | /* TOUCHSCREEN */ | ||
85 | #define AC97_LINK_FRAME 21 | ||
86 | |||
87 | |||
88 | /* BATTERY */ | ||
89 | #define PALMTX_BAT_MAX_VOLTAGE 4000 /* 4.00v current voltage */ | ||
90 | #define PALMTX_BAT_MIN_VOLTAGE 3550 /* 3.55v critical voltage */ | ||
91 | #define PALMTX_BAT_MAX_CURRENT 0 /* unknokn */ | ||
92 | #define PALMTX_BAT_MIN_CURRENT 0 /* unknown */ | ||
93 | #define PALMTX_BAT_MAX_CHARGE 1 /* unknown */ | ||
94 | #define PALMTX_BAT_MIN_CHARGE 1 /* unknown */ | ||
95 | #define PALMTX_MAX_LIFE_MINS 360 /* on-life in minutes */ | ||
96 | |||
97 | #define PALMTX_BAT_MEASURE_DELAY (HZ * 1) | ||
98 | |||
99 | /* BACKLIGHT */ | ||
100 | #define PALMTX_MAX_INTENSITY 0xFE | ||
101 | #define PALMTX_DEFAULT_INTENSITY 0x7E | ||
102 | #define PALMTX_LIMIT_MASK 0x7F | ||
103 | #define PALMTX_PRESCALER 0x3F | ||
104 | #define PALMTX_PERIOD_NS 3500 | ||
105 | |||
106 | #endif | ||
diff --git a/include/asm-arm/arch-pxa/pxa-regs.h b/include/asm-arm/arch-pxa/pxa-regs.h index 4b2ea1e95c57..dce9308626b7 100644 --- a/include/asm-arm/arch-pxa/pxa-regs.h +++ b/include/asm-arm/arch-pxa/pxa-regs.h | |||
@@ -600,418 +600,6 @@ | |||
600 | 600 | ||
601 | 601 | ||
602 | /* | 602 | /* |
603 | * USB Device Controller | ||
604 | * PXA25x and PXA27x USB device controller registers are different. | ||
605 | */ | ||
606 | #if defined(CONFIG_PXA25x) | ||
607 | |||
608 | #define UDC_RES1 __REG(0x40600004) /* UDC Undocumented - Reserved1 */ | ||
609 | #define UDC_RES2 __REG(0x40600008) /* UDC Undocumented - Reserved2 */ | ||
610 | #define UDC_RES3 __REG(0x4060000C) /* UDC Undocumented - Reserved3 */ | ||
611 | |||
612 | #define UDCCR __REG(0x40600000) /* UDC Control Register */ | ||
613 | #define UDCCR_UDE (1 << 0) /* UDC enable */ | ||
614 | #define UDCCR_UDA (1 << 1) /* UDC active */ | ||
615 | #define UDCCR_RSM (1 << 2) /* Device resume */ | ||
616 | #define UDCCR_RESIR (1 << 3) /* Resume interrupt request */ | ||
617 | #define UDCCR_SUSIR (1 << 4) /* Suspend interrupt request */ | ||
618 | #define UDCCR_SRM (1 << 5) /* Suspend/resume interrupt mask */ | ||
619 | #define UDCCR_RSTIR (1 << 6) /* Reset interrupt request */ | ||
620 | #define UDCCR_REM (1 << 7) /* Reset interrupt mask */ | ||
621 | |||
622 | #define UDCCS0 __REG(0x40600010) /* UDC Endpoint 0 Control/Status Register */ | ||
623 | #define UDCCS0_OPR (1 << 0) /* OUT packet ready */ | ||
624 | #define UDCCS0_IPR (1 << 1) /* IN packet ready */ | ||
625 | #define UDCCS0_FTF (1 << 2) /* Flush Tx FIFO */ | ||
626 | #define UDCCS0_DRWF (1 << 3) /* Device remote wakeup feature */ | ||
627 | #define UDCCS0_SST (1 << 4) /* Sent stall */ | ||
628 | #define UDCCS0_FST (1 << 5) /* Force stall */ | ||
629 | #define UDCCS0_RNE (1 << 6) /* Receive FIFO no empty */ | ||
630 | #define UDCCS0_SA (1 << 7) /* Setup active */ | ||
631 | |||
632 | /* Bulk IN - Endpoint 1,6,11 */ | ||
633 | #define UDCCS1 __REG(0x40600014) /* UDC Endpoint 1 (IN) Control/Status Register */ | ||
634 | #define UDCCS6 __REG(0x40600028) /* UDC Endpoint 6 (IN) Control/Status Register */ | ||
635 | #define UDCCS11 __REG(0x4060003C) /* UDC Endpoint 11 (IN) Control/Status Register */ | ||
636 | |||
637 | #define UDCCS_BI_TFS (1 << 0) /* Transmit FIFO service */ | ||
638 | #define UDCCS_BI_TPC (1 << 1) /* Transmit packet complete */ | ||
639 | #define UDCCS_BI_FTF (1 << 2) /* Flush Tx FIFO */ | ||
640 | #define UDCCS_BI_TUR (1 << 3) /* Transmit FIFO underrun */ | ||
641 | #define UDCCS_BI_SST (1 << 4) /* Sent stall */ | ||
642 | #define UDCCS_BI_FST (1 << 5) /* Force stall */ | ||
643 | #define UDCCS_BI_TSP (1 << 7) /* Transmit short packet */ | ||
644 | |||
645 | /* Bulk OUT - Endpoint 2,7,12 */ | ||
646 | #define UDCCS2 __REG(0x40600018) /* UDC Endpoint 2 (OUT) Control/Status Register */ | ||
647 | #define UDCCS7 __REG(0x4060002C) /* UDC Endpoint 7 (OUT) Control/Status Register */ | ||
648 | #define UDCCS12 __REG(0x40600040) /* UDC Endpoint 12 (OUT) Control/Status Register */ | ||
649 | |||
650 | #define UDCCS_BO_RFS (1 << 0) /* Receive FIFO service */ | ||
651 | #define UDCCS_BO_RPC (1 << 1) /* Receive packet complete */ | ||
652 | #define UDCCS_BO_DME (1 << 3) /* DMA enable */ | ||
653 | #define UDCCS_BO_SST (1 << 4) /* Sent stall */ | ||
654 | #define UDCCS_BO_FST (1 << 5) /* Force stall */ | ||
655 | #define UDCCS_BO_RNE (1 << 6) /* Receive FIFO not empty */ | ||
656 | #define UDCCS_BO_RSP (1 << 7) /* Receive short packet */ | ||
657 | |||
658 | /* Isochronous IN - Endpoint 3,8,13 */ | ||
659 | #define UDCCS3 __REG(0x4060001C) /* UDC Endpoint 3 (IN) Control/Status Register */ | ||
660 | #define UDCCS8 __REG(0x40600030) /* UDC Endpoint 8 (IN) Control/Status Register */ | ||
661 | #define UDCCS13 __REG(0x40600044) /* UDC Endpoint 13 (IN) Control/Status Register */ | ||
662 | |||
663 | #define UDCCS_II_TFS (1 << 0) /* Transmit FIFO service */ | ||
664 | #define UDCCS_II_TPC (1 << 1) /* Transmit packet complete */ | ||
665 | #define UDCCS_II_FTF (1 << 2) /* Flush Tx FIFO */ | ||
666 | #define UDCCS_II_TUR (1 << 3) /* Transmit FIFO underrun */ | ||
667 | #define UDCCS_II_TSP (1 << 7) /* Transmit short packet */ | ||
668 | |||
669 | /* Isochronous OUT - Endpoint 4,9,14 */ | ||
670 | #define UDCCS4 __REG(0x40600020) /* UDC Endpoint 4 (OUT) Control/Status Register */ | ||
671 | #define UDCCS9 __REG(0x40600034) /* UDC Endpoint 9 (OUT) Control/Status Register */ | ||
672 | #define UDCCS14 __REG(0x40600048) /* UDC Endpoint 14 (OUT) Control/Status Register */ | ||
673 | |||
674 | #define UDCCS_IO_RFS (1 << 0) /* Receive FIFO service */ | ||
675 | #define UDCCS_IO_RPC (1 << 1) /* Receive packet complete */ | ||
676 | #define UDCCS_IO_ROF (1 << 2) /* Receive overflow */ | ||
677 | #define UDCCS_IO_DME (1 << 3) /* DMA enable */ | ||
678 | #define UDCCS_IO_RNE (1 << 6) /* Receive FIFO not empty */ | ||
679 | #define UDCCS_IO_RSP (1 << 7) /* Receive short packet */ | ||
680 | |||
681 | /* Interrupt IN - Endpoint 5,10,15 */ | ||
682 | #define UDCCS5 __REG(0x40600024) /* UDC Endpoint 5 (Interrupt) Control/Status Register */ | ||
683 | #define UDCCS10 __REG(0x40600038) /* UDC Endpoint 10 (Interrupt) Control/Status Register */ | ||
684 | #define UDCCS15 __REG(0x4060004C) /* UDC Endpoint 15 (Interrupt) Control/Status Register */ | ||
685 | |||
686 | #define UDCCS_INT_TFS (1 << 0) /* Transmit FIFO service */ | ||
687 | #define UDCCS_INT_TPC (1 << 1) /* Transmit packet complete */ | ||
688 | #define UDCCS_INT_FTF (1 << 2) /* Flush Tx FIFO */ | ||
689 | #define UDCCS_INT_TUR (1 << 3) /* Transmit FIFO underrun */ | ||
690 | #define UDCCS_INT_SST (1 << 4) /* Sent stall */ | ||
691 | #define UDCCS_INT_FST (1 << 5) /* Force stall */ | ||
692 | #define UDCCS_INT_TSP (1 << 7) /* Transmit short packet */ | ||
693 | |||
694 | #define UFNRH __REG(0x40600060) /* UDC Frame Number Register High */ | ||
695 | #define UFNRL __REG(0x40600064) /* UDC Frame Number Register Low */ | ||
696 | #define UBCR2 __REG(0x40600068) /* UDC Byte Count Reg 2 */ | ||
697 | #define UBCR4 __REG(0x4060006c) /* UDC Byte Count Reg 4 */ | ||
698 | #define UBCR7 __REG(0x40600070) /* UDC Byte Count Reg 7 */ | ||
699 | #define UBCR9 __REG(0x40600074) /* UDC Byte Count Reg 9 */ | ||
700 | #define UBCR12 __REG(0x40600078) /* UDC Byte Count Reg 12 */ | ||
701 | #define UBCR14 __REG(0x4060007c) /* UDC Byte Count Reg 14 */ | ||
702 | #define UDDR0 __REG(0x40600080) /* UDC Endpoint 0 Data Register */ | ||
703 | #define UDDR1 __REG(0x40600100) /* UDC Endpoint 1 Data Register */ | ||
704 | #define UDDR2 __REG(0x40600180) /* UDC Endpoint 2 Data Register */ | ||
705 | #define UDDR3 __REG(0x40600200) /* UDC Endpoint 3 Data Register */ | ||
706 | #define UDDR4 __REG(0x40600400) /* UDC Endpoint 4 Data Register */ | ||
707 | #define UDDR5 __REG(0x406000A0) /* UDC Endpoint 5 Data Register */ | ||
708 | #define UDDR6 __REG(0x40600600) /* UDC Endpoint 6 Data Register */ | ||
709 | #define UDDR7 __REG(0x40600680) /* UDC Endpoint 7 Data Register */ | ||
710 | #define UDDR8 __REG(0x40600700) /* UDC Endpoint 8 Data Register */ | ||
711 | #define UDDR9 __REG(0x40600900) /* UDC Endpoint 9 Data Register */ | ||
712 | #define UDDR10 __REG(0x406000C0) /* UDC Endpoint 10 Data Register */ | ||
713 | #define UDDR11 __REG(0x40600B00) /* UDC Endpoint 11 Data Register */ | ||
714 | #define UDDR12 __REG(0x40600B80) /* UDC Endpoint 12 Data Register */ | ||
715 | #define UDDR13 __REG(0x40600C00) /* UDC Endpoint 13 Data Register */ | ||
716 | #define UDDR14 __REG(0x40600E00) /* UDC Endpoint 14 Data Register */ | ||
717 | #define UDDR15 __REG(0x406000E0) /* UDC Endpoint 15 Data Register */ | ||
718 | |||
719 | #define UICR0 __REG(0x40600050) /* UDC Interrupt Control Register 0 */ | ||
720 | |||
721 | #define UICR0_IM0 (1 << 0) /* Interrupt mask ep 0 */ | ||
722 | #define UICR0_IM1 (1 << 1) /* Interrupt mask ep 1 */ | ||
723 | #define UICR0_IM2 (1 << 2) /* Interrupt mask ep 2 */ | ||
724 | #define UICR0_IM3 (1 << 3) /* Interrupt mask ep 3 */ | ||
725 | #define UICR0_IM4 (1 << 4) /* Interrupt mask ep 4 */ | ||
726 | #define UICR0_IM5 (1 << 5) /* Interrupt mask ep 5 */ | ||
727 | #define UICR0_IM6 (1 << 6) /* Interrupt mask ep 6 */ | ||
728 | #define UICR0_IM7 (1 << 7) /* Interrupt mask ep 7 */ | ||
729 | |||
730 | #define UICR1 __REG(0x40600054) /* UDC Interrupt Control Register 1 */ | ||
731 | |||
732 | #define UICR1_IM8 (1 << 0) /* Interrupt mask ep 8 */ | ||
733 | #define UICR1_IM9 (1 << 1) /* Interrupt mask ep 9 */ | ||
734 | #define UICR1_IM10 (1 << 2) /* Interrupt mask ep 10 */ | ||
735 | #define UICR1_IM11 (1 << 3) /* Interrupt mask ep 11 */ | ||
736 | #define UICR1_IM12 (1 << 4) /* Interrupt mask ep 12 */ | ||
737 | #define UICR1_IM13 (1 << 5) /* Interrupt mask ep 13 */ | ||
738 | #define UICR1_IM14 (1 << 6) /* Interrupt mask ep 14 */ | ||
739 | #define UICR1_IM15 (1 << 7) /* Interrupt mask ep 15 */ | ||
740 | |||
741 | #define USIR0 __REG(0x40600058) /* UDC Status Interrupt Register 0 */ | ||
742 | |||
743 | #define USIR0_IR0 (1 << 0) /* Interrupt request ep 0 */ | ||
744 | #define USIR0_IR1 (1 << 1) /* Interrupt request ep 1 */ | ||
745 | #define USIR0_IR2 (1 << 2) /* Interrupt request ep 2 */ | ||
746 | #define USIR0_IR3 (1 << 3) /* Interrupt request ep 3 */ | ||
747 | #define USIR0_IR4 (1 << 4) /* Interrupt request ep 4 */ | ||
748 | #define USIR0_IR5 (1 << 5) /* Interrupt request ep 5 */ | ||
749 | #define USIR0_IR6 (1 << 6) /* Interrupt request ep 6 */ | ||
750 | #define USIR0_IR7 (1 << 7) /* Interrupt request ep 7 */ | ||
751 | |||
752 | #define USIR1 __REG(0x4060005C) /* UDC Status Interrupt Register 1 */ | ||
753 | |||
754 | #define USIR1_IR8 (1 << 0) /* Interrupt request ep 8 */ | ||
755 | #define USIR1_IR9 (1 << 1) /* Interrupt request ep 9 */ | ||
756 | #define USIR1_IR10 (1 << 2) /* Interrupt request ep 10 */ | ||
757 | #define USIR1_IR11 (1 << 3) /* Interrupt request ep 11 */ | ||
758 | #define USIR1_IR12 (1 << 4) /* Interrupt request ep 12 */ | ||
759 | #define USIR1_IR13 (1 << 5) /* Interrupt request ep 13 */ | ||
760 | #define USIR1_IR14 (1 << 6) /* Interrupt request ep 14 */ | ||
761 | #define USIR1_IR15 (1 << 7) /* Interrupt request ep 15 */ | ||
762 | |||
763 | #elif defined(CONFIG_PXA27x) | ||
764 | |||
765 | #define UDCCR __REG(0x40600000) /* UDC Control Register */ | ||
766 | #define UDCCR_OEN (1 << 31) /* On-the-Go Enable */ | ||
767 | #define UDCCR_AALTHNP (1 << 30) /* A-device Alternate Host Negotiation | ||
768 | Protocol Port Support */ | ||
769 | #define UDCCR_AHNP (1 << 29) /* A-device Host Negotiation Protocol | ||
770 | Support */ | ||
771 | #define UDCCR_BHNP (1 << 28) /* B-device Host Negotiation Protocol | ||
772 | Enable */ | ||
773 | #define UDCCR_DWRE (1 << 16) /* Device Remote Wake-up Enable */ | ||
774 | #define UDCCR_ACN (0x03 << 11) /* Active UDC configuration Number */ | ||
775 | #define UDCCR_ACN_S 11 | ||
776 | #define UDCCR_AIN (0x07 << 8) /* Active UDC interface Number */ | ||
777 | #define UDCCR_AIN_S 8 | ||
778 | #define UDCCR_AAISN (0x07 << 5) /* Active UDC Alternate Interface | ||
779 | Setting Number */ | ||
780 | #define UDCCR_AAISN_S 5 | ||
781 | #define UDCCR_SMAC (1 << 4) /* Switch Endpoint Memory to Active | ||
782 | Configuration */ | ||
783 | #define UDCCR_EMCE (1 << 3) /* Endpoint Memory Configuration | ||
784 | Error */ | ||
785 | #define UDCCR_UDR (1 << 2) /* UDC Resume */ | ||
786 | #define UDCCR_UDA (1 << 1) /* UDC Active */ | ||
787 | #define UDCCR_UDE (1 << 0) /* UDC Enable */ | ||
788 | |||
789 | #define UDCICR0 __REG(0x40600004) /* UDC Interrupt Control Register0 */ | ||
790 | #define UDCICR1 __REG(0x40600008) /* UDC Interrupt Control Register1 */ | ||
791 | #define UDCICR_FIFOERR (1 << 1) /* FIFO Error interrupt for EP */ | ||
792 | #define UDCICR_PKTCOMPL (1 << 0) /* Packet Complete interrupt for EP */ | ||
793 | |||
794 | #define UDC_INT_FIFOERROR (0x2) | ||
795 | #define UDC_INT_PACKETCMP (0x1) | ||
796 | |||
797 | #define UDCICR_INT(n,intr) (((intr) & 0x03) << (((n) & 0x0F) * 2)) | ||
798 | #define UDCICR1_IECC (1 << 31) /* IntEn - Configuration Change */ | ||
799 | #define UDCICR1_IESOF (1 << 30) /* IntEn - Start of Frame */ | ||
800 | #define UDCICR1_IERU (1 << 29) /* IntEn - Resume */ | ||
801 | #define UDCICR1_IESU (1 << 28) /* IntEn - Suspend */ | ||
802 | #define UDCICR1_IERS (1 << 27) /* IntEn - Reset */ | ||
803 | |||
804 | #define UDCISR0 __REG(0x4060000C) /* UDC Interrupt Status Register 0 */ | ||
805 | #define UDCISR1 __REG(0x40600010) /* UDC Interrupt Status Register 1 */ | ||
806 | #define UDCISR_INT(n,intr) (((intr) & 0x03) << (((n) & 0x0F) * 2)) | ||
807 | #define UDCISR1_IRCC (1 << 31) /* IntReq - Configuration Change */ | ||
808 | #define UDCISR1_IRSOF (1 << 30) /* IntReq - Start of Frame */ | ||
809 | #define UDCISR1_IRRU (1 << 29) /* IntReq - Resume */ | ||
810 | #define UDCISR1_IRSU (1 << 28) /* IntReq - Suspend */ | ||
811 | #define UDCISR1_IRRS (1 << 27) /* IntReq - Reset */ | ||
812 | |||
813 | #define UDCFNR __REG(0x40600014) /* UDC Frame Number Register */ | ||
814 | #define UDCOTGICR __REG(0x40600018) /* UDC On-The-Go interrupt control */ | ||
815 | #define UDCOTGICR_IESF (1 << 24) /* OTG SET_FEATURE command recvd */ | ||
816 | #define UDCOTGICR_IEXR (1 << 17) /* Extra Transciever Interrupt | ||
817 | Rising Edge Interrupt Enable */ | ||
818 | #define UDCOTGICR_IEXF (1 << 16) /* Extra Transciever Interrupt | ||
819 | Falling Edge Interrupt Enable */ | ||
820 | #define UDCOTGICR_IEVV40R (1 << 9) /* OTG Vbus Valid 4.0V Rising Edge | ||
821 | Interrupt Enable */ | ||
822 | #define UDCOTGICR_IEVV40F (1 << 8) /* OTG Vbus Valid 4.0V Falling Edge | ||
823 | Interrupt Enable */ | ||
824 | #define UDCOTGICR_IEVV44R (1 << 7) /* OTG Vbus Valid 4.4V Rising Edge | ||
825 | Interrupt Enable */ | ||
826 | #define UDCOTGICR_IEVV44F (1 << 6) /* OTG Vbus Valid 4.4V Falling Edge | ||
827 | Interrupt Enable */ | ||
828 | #define UDCOTGICR_IESVR (1 << 5) /* OTG Session Valid Rising Edge | ||
829 | Interrupt Enable */ | ||
830 | #define UDCOTGICR_IESVF (1 << 4) /* OTG Session Valid Falling Edge | ||
831 | Interrupt Enable */ | ||
832 | #define UDCOTGICR_IESDR (1 << 3) /* OTG A-Device SRP Detect Rising | ||
833 | Edge Interrupt Enable */ | ||
834 | #define UDCOTGICR_IESDF (1 << 2) /* OTG A-Device SRP Detect Falling | ||
835 | Edge Interrupt Enable */ | ||
836 | #define UDCOTGICR_IEIDR (1 << 1) /* OTG ID Change Rising Edge | ||
837 | Interrupt Enable */ | ||
838 | #define UDCOTGICR_IEIDF (1 << 0) /* OTG ID Change Falling Edge | ||
839 | Interrupt Enable */ | ||
840 | |||
841 | #define UP2OCR __REG(0x40600020) /* USB Port 2 Output Control register */ | ||
842 | |||
843 | #define UP2OCR_CPVEN (1 << 0) /* Charge Pump Vbus Enable */ | ||
844 | #define UP2OCR_CPVPE (1 << 1) /* Charge Pump Vbus Pulse Enable */ | ||
845 | #define UP2OCR_DPPDE (1 << 2) /* Host Port 2 Transceiver D+ Pull Down Enable */ | ||
846 | #define UP2OCR_DMPDE (1 << 3) /* Host Port 2 Transceiver D- Pull Down Enable */ | ||
847 | #define UP2OCR_DPPUE (1 << 4) /* Host Port 2 Transceiver D+ Pull Up Enable */ | ||
848 | #define UP2OCR_DMPUE (1 << 5) /* Host Port 2 Transceiver D- Pull Up Enable */ | ||
849 | #define UP2OCR_DPPUBE (1 << 6) /* Host Port 2 Transceiver D+ Pull Up Bypass Enable */ | ||
850 | #define UP2OCR_DMPUBE (1 << 7) /* Host Port 2 Transceiver D- Pull Up Bypass Enable */ | ||
851 | #define UP2OCR_EXSP (1 << 8) /* External Transceiver Speed Control */ | ||
852 | #define UP2OCR_EXSUS (1 << 9) /* External Transceiver Speed Enable */ | ||
853 | #define UP2OCR_IDON (1 << 10) /* OTG ID Read Enable */ | ||
854 | #define UP2OCR_HXS (1 << 16) /* Host Port 2 Transceiver Output Select */ | ||
855 | #define UP2OCR_HXOE (1 << 17) /* Host Port 2 Transceiver Output Enable */ | ||
856 | #define UP2OCR_SEOS (1 << 24) /* Single-Ended Output Select */ | ||
857 | |||
858 | #define UDCCSN(x) __REG2(0x40600100, (x) << 2) | ||
859 | #define UDCCSR0 __REG(0x40600100) /* UDC Control/Status register - Endpoint 0 */ | ||
860 | #define UDCCSR0_SA (1 << 7) /* Setup Active */ | ||
861 | #define UDCCSR0_RNE (1 << 6) /* Receive FIFO Not Empty */ | ||
862 | #define UDCCSR0_FST (1 << 5) /* Force Stall */ | ||
863 | #define UDCCSR0_SST (1 << 4) /* Sent Stall */ | ||
864 | #define UDCCSR0_DME (1 << 3) /* DMA Enable */ | ||
865 | #define UDCCSR0_FTF (1 << 2) /* Flush Transmit FIFO */ | ||
866 | #define UDCCSR0_IPR (1 << 1) /* IN Packet Ready */ | ||
867 | #define UDCCSR0_OPC (1 << 0) /* OUT Packet Complete */ | ||
868 | |||
869 | #define UDCCSRA __REG(0x40600104) /* UDC Control/Status register - Endpoint A */ | ||
870 | #define UDCCSRB __REG(0x40600108) /* UDC Control/Status register - Endpoint B */ | ||
871 | #define UDCCSRC __REG(0x4060010C) /* UDC Control/Status register - Endpoint C */ | ||
872 | #define UDCCSRD __REG(0x40600110) /* UDC Control/Status register - Endpoint D */ | ||
873 | #define UDCCSRE __REG(0x40600114) /* UDC Control/Status register - Endpoint E */ | ||
874 | #define UDCCSRF __REG(0x40600118) /* UDC Control/Status register - Endpoint F */ | ||
875 | #define UDCCSRG __REG(0x4060011C) /* UDC Control/Status register - Endpoint G */ | ||
876 | #define UDCCSRH __REG(0x40600120) /* UDC Control/Status register - Endpoint H */ | ||
877 | #define UDCCSRI __REG(0x40600124) /* UDC Control/Status register - Endpoint I */ | ||
878 | #define UDCCSRJ __REG(0x40600128) /* UDC Control/Status register - Endpoint J */ | ||
879 | #define UDCCSRK __REG(0x4060012C) /* UDC Control/Status register - Endpoint K */ | ||
880 | #define UDCCSRL __REG(0x40600130) /* UDC Control/Status register - Endpoint L */ | ||
881 | #define UDCCSRM __REG(0x40600134) /* UDC Control/Status register - Endpoint M */ | ||
882 | #define UDCCSRN __REG(0x40600138) /* UDC Control/Status register - Endpoint N */ | ||
883 | #define UDCCSRP __REG(0x4060013C) /* UDC Control/Status register - Endpoint P */ | ||
884 | #define UDCCSRQ __REG(0x40600140) /* UDC Control/Status register - Endpoint Q */ | ||
885 | #define UDCCSRR __REG(0x40600144) /* UDC Control/Status register - Endpoint R */ | ||
886 | #define UDCCSRS __REG(0x40600148) /* UDC Control/Status register - Endpoint S */ | ||
887 | #define UDCCSRT __REG(0x4060014C) /* UDC Control/Status register - Endpoint T */ | ||
888 | #define UDCCSRU __REG(0x40600150) /* UDC Control/Status register - Endpoint U */ | ||
889 | #define UDCCSRV __REG(0x40600154) /* UDC Control/Status register - Endpoint V */ | ||
890 | #define UDCCSRW __REG(0x40600158) /* UDC Control/Status register - Endpoint W */ | ||
891 | #define UDCCSRX __REG(0x4060015C) /* UDC Control/Status register - Endpoint X */ | ||
892 | |||
893 | #define UDCCSR_DPE (1 << 9) /* Data Packet Error */ | ||
894 | #define UDCCSR_FEF (1 << 8) /* Flush Endpoint FIFO */ | ||
895 | #define UDCCSR_SP (1 << 7) /* Short Packet Control/Status */ | ||
896 | #define UDCCSR_BNE (1 << 6) /* Buffer Not Empty (IN endpoints) */ | ||
897 | #define UDCCSR_BNF (1 << 6) /* Buffer Not Full (OUT endpoints) */ | ||
898 | #define UDCCSR_FST (1 << 5) /* Force STALL */ | ||
899 | #define UDCCSR_SST (1 << 4) /* Sent STALL */ | ||
900 | #define UDCCSR_DME (1 << 3) /* DMA Enable */ | ||
901 | #define UDCCSR_TRN (1 << 2) /* Tx/Rx NAK */ | ||
902 | #define UDCCSR_PC (1 << 1) /* Packet Complete */ | ||
903 | #define UDCCSR_FS (1 << 0) /* FIFO needs service */ | ||
904 | |||
905 | #define UDCBCN(x) __REG2(0x40600200, (x)<<2) | ||
906 | #define UDCBCR0 __REG(0x40600200) /* Byte Count Register - EP0 */ | ||
907 | #define UDCBCRA __REG(0x40600204) /* Byte Count Register - EPA */ | ||
908 | #define UDCBCRB __REG(0x40600208) /* Byte Count Register - EPB */ | ||
909 | #define UDCBCRC __REG(0x4060020C) /* Byte Count Register - EPC */ | ||
910 | #define UDCBCRD __REG(0x40600210) /* Byte Count Register - EPD */ | ||
911 | #define UDCBCRE __REG(0x40600214) /* Byte Count Register - EPE */ | ||
912 | #define UDCBCRF __REG(0x40600218) /* Byte Count Register - EPF */ | ||
913 | #define UDCBCRG __REG(0x4060021C) /* Byte Count Register - EPG */ | ||
914 | #define UDCBCRH __REG(0x40600220) /* Byte Count Register - EPH */ | ||
915 | #define UDCBCRI __REG(0x40600224) /* Byte Count Register - EPI */ | ||
916 | #define UDCBCRJ __REG(0x40600228) /* Byte Count Register - EPJ */ | ||
917 | #define UDCBCRK __REG(0x4060022C) /* Byte Count Register - EPK */ | ||
918 | #define UDCBCRL __REG(0x40600230) /* Byte Count Register - EPL */ | ||
919 | #define UDCBCRM __REG(0x40600234) /* Byte Count Register - EPM */ | ||
920 | #define UDCBCRN __REG(0x40600238) /* Byte Count Register - EPN */ | ||
921 | #define UDCBCRP __REG(0x4060023C) /* Byte Count Register - EPP */ | ||
922 | #define UDCBCRQ __REG(0x40600240) /* Byte Count Register - EPQ */ | ||
923 | #define UDCBCRR __REG(0x40600244) /* Byte Count Register - EPR */ | ||
924 | #define UDCBCRS __REG(0x40600248) /* Byte Count Register - EPS */ | ||
925 | #define UDCBCRT __REG(0x4060024C) /* Byte Count Register - EPT */ | ||
926 | #define UDCBCRU __REG(0x40600250) /* Byte Count Register - EPU */ | ||
927 | #define UDCBCRV __REG(0x40600254) /* Byte Count Register - EPV */ | ||
928 | #define UDCBCRW __REG(0x40600258) /* Byte Count Register - EPW */ | ||
929 | #define UDCBCRX __REG(0x4060025C) /* Byte Count Register - EPX */ | ||
930 | |||
931 | #define UDCDN(x) __REG2(0x40600300, (x)<<2) | ||
932 | #define PHYS_UDCDN(x) (0x40600300 + ((x)<<2)) | ||
933 | #define PUDCDN(x) (volatile u32 *)(io_p2v(PHYS_UDCDN((x)))) | ||
934 | #define UDCDR0 __REG(0x40600300) /* Data Register - EP0 */ | ||
935 | #define UDCDRA __REG(0x40600304) /* Data Register - EPA */ | ||
936 | #define UDCDRB __REG(0x40600308) /* Data Register - EPB */ | ||
937 | #define UDCDRC __REG(0x4060030C) /* Data Register - EPC */ | ||
938 | #define UDCDRD __REG(0x40600310) /* Data Register - EPD */ | ||
939 | #define UDCDRE __REG(0x40600314) /* Data Register - EPE */ | ||
940 | #define UDCDRF __REG(0x40600318) /* Data Register - EPF */ | ||
941 | #define UDCDRG __REG(0x4060031C) /* Data Register - EPG */ | ||
942 | #define UDCDRH __REG(0x40600320) /* Data Register - EPH */ | ||
943 | #define UDCDRI __REG(0x40600324) /* Data Register - EPI */ | ||
944 | #define UDCDRJ __REG(0x40600328) /* Data Register - EPJ */ | ||
945 | #define UDCDRK __REG(0x4060032C) /* Data Register - EPK */ | ||
946 | #define UDCDRL __REG(0x40600330) /* Data Register - EPL */ | ||
947 | #define UDCDRM __REG(0x40600334) /* Data Register - EPM */ | ||
948 | #define UDCDRN __REG(0x40600338) /* Data Register - EPN */ | ||
949 | #define UDCDRP __REG(0x4060033C) /* Data Register - EPP */ | ||
950 | #define UDCDRQ __REG(0x40600340) /* Data Register - EPQ */ | ||
951 | #define UDCDRR __REG(0x40600344) /* Data Register - EPR */ | ||
952 | #define UDCDRS __REG(0x40600348) /* Data Register - EPS */ | ||
953 | #define UDCDRT __REG(0x4060034C) /* Data Register - EPT */ | ||
954 | #define UDCDRU __REG(0x40600350) /* Data Register - EPU */ | ||
955 | #define UDCDRV __REG(0x40600354) /* Data Register - EPV */ | ||
956 | #define UDCDRW __REG(0x40600358) /* Data Register - EPW */ | ||
957 | #define UDCDRX __REG(0x4060035C) /* Data Register - EPX */ | ||
958 | |||
959 | #define UDCCN(x) __REG2(0x40600400, (x)<<2) | ||
960 | #define UDCCRA __REG(0x40600404) /* Configuration register EPA */ | ||
961 | #define UDCCRB __REG(0x40600408) /* Configuration register EPB */ | ||
962 | #define UDCCRC __REG(0x4060040C) /* Configuration register EPC */ | ||
963 | #define UDCCRD __REG(0x40600410) /* Configuration register EPD */ | ||
964 | #define UDCCRE __REG(0x40600414) /* Configuration register EPE */ | ||
965 | #define UDCCRF __REG(0x40600418) /* Configuration register EPF */ | ||
966 | #define UDCCRG __REG(0x4060041C) /* Configuration register EPG */ | ||
967 | #define UDCCRH __REG(0x40600420) /* Configuration register EPH */ | ||
968 | #define UDCCRI __REG(0x40600424) /* Configuration register EPI */ | ||
969 | #define UDCCRJ __REG(0x40600428) /* Configuration register EPJ */ | ||
970 | #define UDCCRK __REG(0x4060042C) /* Configuration register EPK */ | ||
971 | #define UDCCRL __REG(0x40600430) /* Configuration register EPL */ | ||
972 | #define UDCCRM __REG(0x40600434) /* Configuration register EPM */ | ||
973 | #define UDCCRN __REG(0x40600438) /* Configuration register EPN */ | ||
974 | #define UDCCRP __REG(0x4060043C) /* Configuration register EPP */ | ||
975 | #define UDCCRQ __REG(0x40600440) /* Configuration register EPQ */ | ||
976 | #define UDCCRR __REG(0x40600444) /* Configuration register EPR */ | ||
977 | #define UDCCRS __REG(0x40600448) /* Configuration register EPS */ | ||
978 | #define UDCCRT __REG(0x4060044C) /* Configuration register EPT */ | ||
979 | #define UDCCRU __REG(0x40600450) /* Configuration register EPU */ | ||
980 | #define UDCCRV __REG(0x40600454) /* Configuration register EPV */ | ||
981 | #define UDCCRW __REG(0x40600458) /* Configuration register EPW */ | ||
982 | #define UDCCRX __REG(0x4060045C) /* Configuration register EPX */ | ||
983 | |||
984 | #define UDCCONR_CN (0x03 << 25) /* Configuration Number */ | ||
985 | #define UDCCONR_CN_S (25) | ||
986 | #define UDCCONR_IN (0x07 << 22) /* Interface Number */ | ||
987 | #define UDCCONR_IN_S (22) | ||
988 | #define UDCCONR_AISN (0x07 << 19) /* Alternate Interface Number */ | ||
989 | #define UDCCONR_AISN_S (19) | ||
990 | #define UDCCONR_EN (0x0f << 15) /* Endpoint Number */ | ||
991 | #define UDCCONR_EN_S (15) | ||
992 | #define UDCCONR_ET (0x03 << 13) /* Endpoint Type: */ | ||
993 | #define UDCCONR_ET_S (13) | ||
994 | #define UDCCONR_ET_INT (0x03 << 13) /* Interrupt */ | ||
995 | #define UDCCONR_ET_BULK (0x02 << 13) /* Bulk */ | ||
996 | #define UDCCONR_ET_ISO (0x01 << 13) /* Isochronous */ | ||
997 | #define UDCCONR_ET_NU (0x00 << 13) /* Not used */ | ||
998 | #define UDCCONR_ED (1 << 12) /* Endpoint Direction */ | ||
999 | #define UDCCONR_MPS (0x3ff << 2) /* Maximum Packet Size */ | ||
1000 | #define UDCCONR_MPS_S (2) | ||
1001 | #define UDCCONR_DE (1 << 1) /* Double Buffering Enable */ | ||
1002 | #define UDCCONR_EE (1 << 0) /* Endpoint Enable */ | ||
1003 | |||
1004 | |||
1005 | #define UDC_INT_FIFOERROR (0x2) | ||
1006 | #define UDC_INT_PACKETCMP (0x1) | ||
1007 | |||
1008 | #define UDC_FNR_MASK (0x7ff) | ||
1009 | |||
1010 | #define UDCCSR_WR_MASK (UDCCSR_DME|UDCCSR_FST) | ||
1011 | #define UDC_BCR_MASK (0x3ff) | ||
1012 | #endif | ||
1013 | |||
1014 | /* | ||
1015 | * Fast Infrared Communication Port | 603 | * Fast Infrared Communication Port |
1016 | */ | 604 | */ |
1017 | 605 | ||
@@ -1237,120 +825,9 @@ | |||
1237 | #endif | 825 | #endif |
1238 | 826 | ||
1239 | /* | 827 | /* |
1240 | * Power Manager | 828 | * Power Manager - see pxa2xx-regs.h |
1241 | */ | 829 | */ |
1242 | 830 | ||
1243 | #define PMCR __REG(0x40F00000) /* Power Manager Control Register */ | ||
1244 | #define PSSR __REG(0x40F00004) /* Power Manager Sleep Status Register */ | ||
1245 | #define PSPR __REG(0x40F00008) /* Power Manager Scratch Pad Register */ | ||
1246 | #define PWER __REG(0x40F0000C) /* Power Manager Wake-up Enable Register */ | ||
1247 | #define PRER __REG(0x40F00010) /* Power Manager GPIO Rising-Edge Detect Enable Register */ | ||
1248 | #define PFER __REG(0x40F00014) /* Power Manager GPIO Falling-Edge Detect Enable Register */ | ||
1249 | #define PEDR __REG(0x40F00018) /* Power Manager GPIO Edge Detect Status Register */ | ||
1250 | #define PCFR __REG(0x40F0001C) /* Power Manager General Configuration Register */ | ||
1251 | #define PGSR0 __REG(0x40F00020) /* Power Manager GPIO Sleep State Register for GP[31-0] */ | ||
1252 | #define PGSR1 __REG(0x40F00024) /* Power Manager GPIO Sleep State Register for GP[63-32] */ | ||
1253 | #define PGSR2 __REG(0x40F00028) /* Power Manager GPIO Sleep State Register for GP[84-64] */ | ||
1254 | #define PGSR3 __REG(0x40F0002C) /* Power Manager GPIO Sleep State Register for GP[118-96] */ | ||
1255 | #define RCSR __REG(0x40F00030) /* Reset Controller Status Register */ | ||
1256 | |||
1257 | #define PSLR __REG(0x40F00034) /* Power Manager Sleep Config Register */ | ||
1258 | #define PSTR __REG(0x40F00038) /*Power Manager Standby Config Register */ | ||
1259 | #define PSNR __REG(0x40F0003C) /*Power Manager Sense Config Register */ | ||
1260 | #define PVCR __REG(0x40F00040) /*Power Manager VoltageControl Register */ | ||
1261 | #define PKWR __REG(0x40F00050) /* Power Manager KB Wake-up Enable Reg */ | ||
1262 | #define PKSR __REG(0x40F00054) /* Power Manager KB Level-Detect Register */ | ||
1263 | #define PCMD(x) __REG2(0x40F00080, (x)<<2) | ||
1264 | #define PCMD0 __REG(0x40F00080 + 0 * 4) | ||
1265 | #define PCMD1 __REG(0x40F00080 + 1 * 4) | ||
1266 | #define PCMD2 __REG(0x40F00080 + 2 * 4) | ||
1267 | #define PCMD3 __REG(0x40F00080 + 3 * 4) | ||
1268 | #define PCMD4 __REG(0x40F00080 + 4 * 4) | ||
1269 | #define PCMD5 __REG(0x40F00080 + 5 * 4) | ||
1270 | #define PCMD6 __REG(0x40F00080 + 6 * 4) | ||
1271 | #define PCMD7 __REG(0x40F00080 + 7 * 4) | ||
1272 | #define PCMD8 __REG(0x40F00080 + 8 * 4) | ||
1273 | #define PCMD9 __REG(0x40F00080 + 9 * 4) | ||
1274 | #define PCMD10 __REG(0x40F00080 + 10 * 4) | ||
1275 | #define PCMD11 __REG(0x40F00080 + 11 * 4) | ||
1276 | #define PCMD12 __REG(0x40F00080 + 12 * 4) | ||
1277 | #define PCMD13 __REG(0x40F00080 + 13 * 4) | ||
1278 | #define PCMD14 __REG(0x40F00080 + 14 * 4) | ||
1279 | #define PCMD15 __REG(0x40F00080 + 15 * 4) | ||
1280 | #define PCMD16 __REG(0x40F00080 + 16 * 4) | ||
1281 | #define PCMD17 __REG(0x40F00080 + 17 * 4) | ||
1282 | #define PCMD18 __REG(0x40F00080 + 18 * 4) | ||
1283 | #define PCMD19 __REG(0x40F00080 + 19 * 4) | ||
1284 | #define PCMD20 __REG(0x40F00080 + 20 * 4) | ||
1285 | #define PCMD21 __REG(0x40F00080 + 21 * 4) | ||
1286 | #define PCMD22 __REG(0x40F00080 + 22 * 4) | ||
1287 | #define PCMD23 __REG(0x40F00080 + 23 * 4) | ||
1288 | #define PCMD24 __REG(0x40F00080 + 24 * 4) | ||
1289 | #define PCMD25 __REG(0x40F00080 + 25 * 4) | ||
1290 | #define PCMD26 __REG(0x40F00080 + 26 * 4) | ||
1291 | #define PCMD27 __REG(0x40F00080 + 27 * 4) | ||
1292 | #define PCMD28 __REG(0x40F00080 + 28 * 4) | ||
1293 | #define PCMD29 __REG(0x40F00080 + 29 * 4) | ||
1294 | #define PCMD30 __REG(0x40F00080 + 30 * 4) | ||
1295 | #define PCMD31 __REG(0x40F00080 + 31 * 4) | ||
1296 | |||
1297 | #define PCMD_MBC (1<<12) | ||
1298 | #define PCMD_DCE (1<<11) | ||
1299 | #define PCMD_LC (1<<10) | ||
1300 | /* FIXME: PCMD_SQC need be checked. */ | ||
1301 | #define PCMD_SQC (3<<8) /* currently only bit 8 is changeable, | ||
1302 | bit 9 should be 0 all day. */ | ||
1303 | #define PVCR_VCSA (0x1<<14) | ||
1304 | #define PVCR_CommandDelay (0xf80) | ||
1305 | #define PCFR_PI2C_EN (0x1 << 6) | ||
1306 | |||
1307 | #define PSSR_OTGPH (1 << 6) /* OTG Peripheral control Hold */ | ||
1308 | #define PSSR_RDH (1 << 5) /* Read Disable Hold */ | ||
1309 | #define PSSR_PH (1 << 4) /* Peripheral Control Hold */ | ||
1310 | #define PSSR_STS (1 << 3) /* Standby Mode Status */ | ||
1311 | #define PSSR_VFS (1 << 2) /* VDD Fault Status */ | ||
1312 | #define PSSR_BFS (1 << 1) /* Battery Fault Status */ | ||
1313 | #define PSSR_SSS (1 << 0) /* Software Sleep Status */ | ||
1314 | |||
1315 | #define PSLR_SL_ROD (1 << 20) /* Sleep-Mode/Depp-Sleep Mode nRESET_OUT Disable */ | ||
1316 | |||
1317 | #define PCFR_RO (1 << 15) /* RDH Override */ | ||
1318 | #define PCFR_PO (1 << 14) /* PH Override */ | ||
1319 | #define PCFR_GPROD (1 << 12) /* GPIO nRESET_OUT Disable */ | ||
1320 | #define PCFR_L1_EN (1 << 11) /* Sleep Mode L1 converter Enable */ | ||
1321 | #define PCFR_FVC (1 << 10) /* Frequency/Voltage Change */ | ||
1322 | #define PCFR_DC_EN (1 << 7) /* Sleep/deep-sleep DC-DC Converter Enable */ | ||
1323 | #define PCFR_PI2CEN (1 << 6) /* Enable PI2C controller */ | ||
1324 | #define PCFR_GPR_EN (1 << 4) /* nRESET_GPIO Pin Enable */ | ||
1325 | #define PCFR_DS (1 << 3) /* Deep Sleep Mode */ | ||
1326 | #define PCFR_FS (1 << 2) /* Float Static Chip Selects */ | ||
1327 | #define PCFR_FP (1 << 1) /* Float PCMCIA controls */ | ||
1328 | #define PCFR_OPDE (1 << 0) /* 3.6864 MHz oscillator power-down enable */ | ||
1329 | |||
1330 | #define RCSR_GPR (1 << 3) /* GPIO Reset */ | ||
1331 | #define RCSR_SMR (1 << 2) /* Sleep Mode */ | ||
1332 | #define RCSR_WDR (1 << 1) /* Watchdog Reset */ | ||
1333 | #define RCSR_HWR (1 << 0) /* Hardware Reset */ | ||
1334 | |||
1335 | #define PWER_GPIO(Nb) (1 << Nb) /* GPIO [0..15] wake-up enable */ | ||
1336 | #define PWER_GPIO0 PWER_GPIO (0) /* GPIO [0] wake-up enable */ | ||
1337 | #define PWER_GPIO1 PWER_GPIO (1) /* GPIO [1] wake-up enable */ | ||
1338 | #define PWER_GPIO2 PWER_GPIO (2) /* GPIO [2] wake-up enable */ | ||
1339 | #define PWER_GPIO3 PWER_GPIO (3) /* GPIO [3] wake-up enable */ | ||
1340 | #define PWER_GPIO4 PWER_GPIO (4) /* GPIO [4] wake-up enable */ | ||
1341 | #define PWER_GPIO5 PWER_GPIO (5) /* GPIO [5] wake-up enable */ | ||
1342 | #define PWER_GPIO6 PWER_GPIO (6) /* GPIO [6] wake-up enable */ | ||
1343 | #define PWER_GPIO7 PWER_GPIO (7) /* GPIO [7] wake-up enable */ | ||
1344 | #define PWER_GPIO8 PWER_GPIO (8) /* GPIO [8] wake-up enable */ | ||
1345 | #define PWER_GPIO9 PWER_GPIO (9) /* GPIO [9] wake-up enable */ | ||
1346 | #define PWER_GPIO10 PWER_GPIO (10) /* GPIO [10] wake-up enable */ | ||
1347 | #define PWER_GPIO11 PWER_GPIO (11) /* GPIO [11] wake-up enable */ | ||
1348 | #define PWER_GPIO12 PWER_GPIO (12) /* GPIO [12] wake-up enable */ | ||
1349 | #define PWER_GPIO13 PWER_GPIO (13) /* GPIO [13] wake-up enable */ | ||
1350 | #define PWER_GPIO14 PWER_GPIO (14) /* GPIO [14] wake-up enable */ | ||
1351 | #define PWER_GPIO15 PWER_GPIO (15) /* GPIO [15] wake-up enable */ | ||
1352 | #define PWER_RTC 0x80000000 /* RTC alarm wake-up enable */ | ||
1353 | |||
1354 | /* | 831 | /* |
1355 | * SSP Serial Port Registers - see include/asm-arm/arch-pxa/regs-ssp.h | 832 | * SSP Serial Port Registers - see include/asm-arm/arch-pxa/regs-ssp.h |
1356 | */ | 833 | */ |
@@ -1360,52 +837,9 @@ | |||
1360 | */ | 837 | */ |
1361 | 838 | ||
1362 | /* | 839 | /* |
1363 | * Core Clock | 840 | * Core Clock - see include/asm-arm/arch-pxa/pxa2xx-regs.h |
1364 | */ | 841 | */ |
1365 | 842 | ||
1366 | #define CCCR __REG(0x41300000) /* Core Clock Configuration Register */ | ||
1367 | #define CKEN __REG(0x41300004) /* Clock Enable Register */ | ||
1368 | #define OSCC __REG(0x41300008) /* Oscillator Configuration Register */ | ||
1369 | #define CCSR __REG(0x4130000C) /* Core Clock Status Register */ | ||
1370 | |||
1371 | #define CCCR_N_MASK 0x0380 /* Run Mode Frequency to Turbo Mode Frequency Multiplier */ | ||
1372 | #define CCCR_M_MASK 0x0060 /* Memory Frequency to Run Mode Frequency Multiplier */ | ||
1373 | #define CCCR_L_MASK 0x001f /* Crystal Frequency to Memory Frequency Multiplier */ | ||
1374 | |||
1375 | #define CKEN_AC97CONF (31) /* AC97 Controller Configuration */ | ||
1376 | #define CKEN_CAMERA (24) /* Camera Interface Clock Enable */ | ||
1377 | #define CKEN_SSP1 (23) /* SSP1 Unit Clock Enable */ | ||
1378 | #define CKEN_MEMC (22) /* Memory Controller Clock Enable */ | ||
1379 | #define CKEN_MEMSTK (21) /* Memory Stick Host Controller */ | ||
1380 | #define CKEN_IM (20) /* Internal Memory Clock Enable */ | ||
1381 | #define CKEN_KEYPAD (19) /* Keypad Interface Clock Enable */ | ||
1382 | #define CKEN_USIM (18) /* USIM Unit Clock Enable */ | ||
1383 | #define CKEN_MSL (17) /* MSL Unit Clock Enable */ | ||
1384 | #define CKEN_LCD (16) /* LCD Unit Clock Enable */ | ||
1385 | #define CKEN_PWRI2C (15) /* PWR I2C Unit Clock Enable */ | ||
1386 | #define CKEN_I2C (14) /* I2C Unit Clock Enable */ | ||
1387 | #define CKEN_FICP (13) /* FICP Unit Clock Enable */ | ||
1388 | #define CKEN_MMC (12) /* MMC Unit Clock Enable */ | ||
1389 | #define CKEN_USB (11) /* USB Unit Clock Enable */ | ||
1390 | #define CKEN_ASSP (10) /* ASSP (SSP3) Clock Enable */ | ||
1391 | #define CKEN_USBHOST (10) /* USB Host Unit Clock Enable */ | ||
1392 | #define CKEN_OSTIMER (9) /* OS Timer Unit Clock Enable */ | ||
1393 | #define CKEN_NSSP (9) /* NSSP (SSP2) Clock Enable */ | ||
1394 | #define CKEN_I2S (8) /* I2S Unit Clock Enable */ | ||
1395 | #define CKEN_BTUART (7) /* BTUART Unit Clock Enable */ | ||
1396 | #define CKEN_FFUART (6) /* FFUART Unit Clock Enable */ | ||
1397 | #define CKEN_STUART (5) /* STUART Unit Clock Enable */ | ||
1398 | #define CKEN_HWUART (4) /* HWUART Unit Clock Enable */ | ||
1399 | #define CKEN_SSP3 (4) /* SSP3 Unit Clock Enable */ | ||
1400 | #define CKEN_SSP (3) /* SSP Unit Clock Enable */ | ||
1401 | #define CKEN_SSP2 (3) /* SSP2 Unit Clock Enable */ | ||
1402 | #define CKEN_AC97 (2) /* AC97 Unit Clock Enable */ | ||
1403 | #define CKEN_PWM1 (1) /* PWM1 Clock Enable */ | ||
1404 | #define CKEN_PWM0 (0) /* PWM0 Clock Enable */ | ||
1405 | |||
1406 | #define OSCC_OON (1 << 1) /* 32.768kHz OON (write-once only bit) */ | ||
1407 | #define OSCC_OOK (1 << 0) /* 32.768kHz OOK (read-only bit) */ | ||
1408 | |||
1409 | #ifdef CONFIG_PXA27x | 843 | #ifdef CONFIG_PXA27x |
1410 | 844 | ||
1411 | /* Camera Interface */ | 845 | /* Camera Interface */ |
diff --git a/include/asm-arm/arch-pxa/pxa25x-udc.h b/include/asm-arm/arch-pxa/pxa25x-udc.h new file mode 100644 index 000000000000..840305916b6d --- /dev/null +++ b/include/asm-arm/arch-pxa/pxa25x-udc.h | |||
@@ -0,0 +1,163 @@ | |||
1 | #ifndef _ASM_ARCH_PXA25X_UDC_H | ||
2 | #define _ASM_ARCH_PXA25X_UDC_H | ||
3 | |||
4 | #ifdef _ASM_ARCH_PXA27X_UDC_H | ||
5 | #error You can't include both PXA25x and PXA27x UDC support | ||
6 | #endif | ||
7 | |||
8 | #define UDC_RES1 __REG(0x40600004) /* UDC Undocumented - Reserved1 */ | ||
9 | #define UDC_RES2 __REG(0x40600008) /* UDC Undocumented - Reserved2 */ | ||
10 | #define UDC_RES3 __REG(0x4060000C) /* UDC Undocumented - Reserved3 */ | ||
11 | |||
12 | #define UDCCR __REG(0x40600000) /* UDC Control Register */ | ||
13 | #define UDCCR_UDE (1 << 0) /* UDC enable */ | ||
14 | #define UDCCR_UDA (1 << 1) /* UDC active */ | ||
15 | #define UDCCR_RSM (1 << 2) /* Device resume */ | ||
16 | #define UDCCR_RESIR (1 << 3) /* Resume interrupt request */ | ||
17 | #define UDCCR_SUSIR (1 << 4) /* Suspend interrupt request */ | ||
18 | #define UDCCR_SRM (1 << 5) /* Suspend/resume interrupt mask */ | ||
19 | #define UDCCR_RSTIR (1 << 6) /* Reset interrupt request */ | ||
20 | #define UDCCR_REM (1 << 7) /* Reset interrupt mask */ | ||
21 | |||
22 | #define UDCCS0 __REG(0x40600010) /* UDC Endpoint 0 Control/Status Register */ | ||
23 | #define UDCCS0_OPR (1 << 0) /* OUT packet ready */ | ||
24 | #define UDCCS0_IPR (1 << 1) /* IN packet ready */ | ||
25 | #define UDCCS0_FTF (1 << 2) /* Flush Tx FIFO */ | ||
26 | #define UDCCS0_DRWF (1 << 3) /* Device remote wakeup feature */ | ||
27 | #define UDCCS0_SST (1 << 4) /* Sent stall */ | ||
28 | #define UDCCS0_FST (1 << 5) /* Force stall */ | ||
29 | #define UDCCS0_RNE (1 << 6) /* Receive FIFO no empty */ | ||
30 | #define UDCCS0_SA (1 << 7) /* Setup active */ | ||
31 | |||
32 | /* Bulk IN - Endpoint 1,6,11 */ | ||
33 | #define UDCCS1 __REG(0x40600014) /* UDC Endpoint 1 (IN) Control/Status Register */ | ||
34 | #define UDCCS6 __REG(0x40600028) /* UDC Endpoint 6 (IN) Control/Status Register */ | ||
35 | #define UDCCS11 __REG(0x4060003C) /* UDC Endpoint 11 (IN) Control/Status Register */ | ||
36 | |||
37 | #define UDCCS_BI_TFS (1 << 0) /* Transmit FIFO service */ | ||
38 | #define UDCCS_BI_TPC (1 << 1) /* Transmit packet complete */ | ||
39 | #define UDCCS_BI_FTF (1 << 2) /* Flush Tx FIFO */ | ||
40 | #define UDCCS_BI_TUR (1 << 3) /* Transmit FIFO underrun */ | ||
41 | #define UDCCS_BI_SST (1 << 4) /* Sent stall */ | ||
42 | #define UDCCS_BI_FST (1 << 5) /* Force stall */ | ||
43 | #define UDCCS_BI_TSP (1 << 7) /* Transmit short packet */ | ||
44 | |||
45 | /* Bulk OUT - Endpoint 2,7,12 */ | ||
46 | #define UDCCS2 __REG(0x40600018) /* UDC Endpoint 2 (OUT) Control/Status Register */ | ||
47 | #define UDCCS7 __REG(0x4060002C) /* UDC Endpoint 7 (OUT) Control/Status Register */ | ||
48 | #define UDCCS12 __REG(0x40600040) /* UDC Endpoint 12 (OUT) Control/Status Register */ | ||
49 | |||
50 | #define UDCCS_BO_RFS (1 << 0) /* Receive FIFO service */ | ||
51 | #define UDCCS_BO_RPC (1 << 1) /* Receive packet complete */ | ||
52 | #define UDCCS_BO_DME (1 << 3) /* DMA enable */ | ||
53 | #define UDCCS_BO_SST (1 << 4) /* Sent stall */ | ||
54 | #define UDCCS_BO_FST (1 << 5) /* Force stall */ | ||
55 | #define UDCCS_BO_RNE (1 << 6) /* Receive FIFO not empty */ | ||
56 | #define UDCCS_BO_RSP (1 << 7) /* Receive short packet */ | ||
57 | |||
58 | /* Isochronous IN - Endpoint 3,8,13 */ | ||
59 | #define UDCCS3 __REG(0x4060001C) /* UDC Endpoint 3 (IN) Control/Status Register */ | ||
60 | #define UDCCS8 __REG(0x40600030) /* UDC Endpoint 8 (IN) Control/Status Register */ | ||
61 | #define UDCCS13 __REG(0x40600044) /* UDC Endpoint 13 (IN) Control/Status Register */ | ||
62 | |||
63 | #define UDCCS_II_TFS (1 << 0) /* Transmit FIFO service */ | ||
64 | #define UDCCS_II_TPC (1 << 1) /* Transmit packet complete */ | ||
65 | #define UDCCS_II_FTF (1 << 2) /* Flush Tx FIFO */ | ||
66 | #define UDCCS_II_TUR (1 << 3) /* Transmit FIFO underrun */ | ||
67 | #define UDCCS_II_TSP (1 << 7) /* Transmit short packet */ | ||
68 | |||
69 | /* Isochronous OUT - Endpoint 4,9,14 */ | ||
70 | #define UDCCS4 __REG(0x40600020) /* UDC Endpoint 4 (OUT) Control/Status Register */ | ||
71 | #define UDCCS9 __REG(0x40600034) /* UDC Endpoint 9 (OUT) Control/Status Register */ | ||
72 | #define UDCCS14 __REG(0x40600048) /* UDC Endpoint 14 (OUT) Control/Status Register */ | ||
73 | |||
74 | #define UDCCS_IO_RFS (1 << 0) /* Receive FIFO service */ | ||
75 | #define UDCCS_IO_RPC (1 << 1) /* Receive packet complete */ | ||
76 | #define UDCCS_IO_ROF (1 << 2) /* Receive overflow */ | ||
77 | #define UDCCS_IO_DME (1 << 3) /* DMA enable */ | ||
78 | #define UDCCS_IO_RNE (1 << 6) /* Receive FIFO not empty */ | ||
79 | #define UDCCS_IO_RSP (1 << 7) /* Receive short packet */ | ||
80 | |||
81 | /* Interrupt IN - Endpoint 5,10,15 */ | ||
82 | #define UDCCS5 __REG(0x40600024) /* UDC Endpoint 5 (Interrupt) Control/Status Register */ | ||
83 | #define UDCCS10 __REG(0x40600038) /* UDC Endpoint 10 (Interrupt) Control/Status Register */ | ||
84 | #define UDCCS15 __REG(0x4060004C) /* UDC Endpoint 15 (Interrupt) Control/Status Register */ | ||
85 | |||
86 | #define UDCCS_INT_TFS (1 << 0) /* Transmit FIFO service */ | ||
87 | #define UDCCS_INT_TPC (1 << 1) /* Transmit packet complete */ | ||
88 | #define UDCCS_INT_FTF (1 << 2) /* Flush Tx FIFO */ | ||
89 | #define UDCCS_INT_TUR (1 << 3) /* Transmit FIFO underrun */ | ||
90 | #define UDCCS_INT_SST (1 << 4) /* Sent stall */ | ||
91 | #define UDCCS_INT_FST (1 << 5) /* Force stall */ | ||
92 | #define UDCCS_INT_TSP (1 << 7) /* Transmit short packet */ | ||
93 | |||
94 | #define UFNRH __REG(0x40600060) /* UDC Frame Number Register High */ | ||
95 | #define UFNRL __REG(0x40600064) /* UDC Frame Number Register Low */ | ||
96 | #define UBCR2 __REG(0x40600068) /* UDC Byte Count Reg 2 */ | ||
97 | #define UBCR4 __REG(0x4060006c) /* UDC Byte Count Reg 4 */ | ||
98 | #define UBCR7 __REG(0x40600070) /* UDC Byte Count Reg 7 */ | ||
99 | #define UBCR9 __REG(0x40600074) /* UDC Byte Count Reg 9 */ | ||
100 | #define UBCR12 __REG(0x40600078) /* UDC Byte Count Reg 12 */ | ||
101 | #define UBCR14 __REG(0x4060007c) /* UDC Byte Count Reg 14 */ | ||
102 | #define UDDR0 __REG(0x40600080) /* UDC Endpoint 0 Data Register */ | ||
103 | #define UDDR1 __REG(0x40600100) /* UDC Endpoint 1 Data Register */ | ||
104 | #define UDDR2 __REG(0x40600180) /* UDC Endpoint 2 Data Register */ | ||
105 | #define UDDR3 __REG(0x40600200) /* UDC Endpoint 3 Data Register */ | ||
106 | #define UDDR4 __REG(0x40600400) /* UDC Endpoint 4 Data Register */ | ||
107 | #define UDDR5 __REG(0x406000A0) /* UDC Endpoint 5 Data Register */ | ||
108 | #define UDDR6 __REG(0x40600600) /* UDC Endpoint 6 Data Register */ | ||
109 | #define UDDR7 __REG(0x40600680) /* UDC Endpoint 7 Data Register */ | ||
110 | #define UDDR8 __REG(0x40600700) /* UDC Endpoint 8 Data Register */ | ||
111 | #define UDDR9 __REG(0x40600900) /* UDC Endpoint 9 Data Register */ | ||
112 | #define UDDR10 __REG(0x406000C0) /* UDC Endpoint 10 Data Register */ | ||
113 | #define UDDR11 __REG(0x40600B00) /* UDC Endpoint 11 Data Register */ | ||
114 | #define UDDR12 __REG(0x40600B80) /* UDC Endpoint 12 Data Register */ | ||
115 | #define UDDR13 __REG(0x40600C00) /* UDC Endpoint 13 Data Register */ | ||
116 | #define UDDR14 __REG(0x40600E00) /* UDC Endpoint 14 Data Register */ | ||
117 | #define UDDR15 __REG(0x406000E0) /* UDC Endpoint 15 Data Register */ | ||
118 | |||
119 | #define UICR0 __REG(0x40600050) /* UDC Interrupt Control Register 0 */ | ||
120 | |||
121 | #define UICR0_IM0 (1 << 0) /* Interrupt mask ep 0 */ | ||
122 | #define UICR0_IM1 (1 << 1) /* Interrupt mask ep 1 */ | ||
123 | #define UICR0_IM2 (1 << 2) /* Interrupt mask ep 2 */ | ||
124 | #define UICR0_IM3 (1 << 3) /* Interrupt mask ep 3 */ | ||
125 | #define UICR0_IM4 (1 << 4) /* Interrupt mask ep 4 */ | ||
126 | #define UICR0_IM5 (1 << 5) /* Interrupt mask ep 5 */ | ||
127 | #define UICR0_IM6 (1 << 6) /* Interrupt mask ep 6 */ | ||
128 | #define UICR0_IM7 (1 << 7) /* Interrupt mask ep 7 */ | ||
129 | |||
130 | #define UICR1 __REG(0x40600054) /* UDC Interrupt Control Register 1 */ | ||
131 | |||
132 | #define UICR1_IM8 (1 << 0) /* Interrupt mask ep 8 */ | ||
133 | #define UICR1_IM9 (1 << 1) /* Interrupt mask ep 9 */ | ||
134 | #define UICR1_IM10 (1 << 2) /* Interrupt mask ep 10 */ | ||
135 | #define UICR1_IM11 (1 << 3) /* Interrupt mask ep 11 */ | ||
136 | #define UICR1_IM12 (1 << 4) /* Interrupt mask ep 12 */ | ||
137 | #define UICR1_IM13 (1 << 5) /* Interrupt mask ep 13 */ | ||
138 | #define UICR1_IM14 (1 << 6) /* Interrupt mask ep 14 */ | ||
139 | #define UICR1_IM15 (1 << 7) /* Interrupt mask ep 15 */ | ||
140 | |||
141 | #define USIR0 __REG(0x40600058) /* UDC Status Interrupt Register 0 */ | ||
142 | |||
143 | #define USIR0_IR0 (1 << 0) /* Interrupt request ep 0 */ | ||
144 | #define USIR0_IR1 (1 << 1) /* Interrupt request ep 1 */ | ||
145 | #define USIR0_IR2 (1 << 2) /* Interrupt request ep 2 */ | ||
146 | #define USIR0_IR3 (1 << 3) /* Interrupt request ep 3 */ | ||
147 | #define USIR0_IR4 (1 << 4) /* Interrupt request ep 4 */ | ||
148 | #define USIR0_IR5 (1 << 5) /* Interrupt request ep 5 */ | ||
149 | #define USIR0_IR6 (1 << 6) /* Interrupt request ep 6 */ | ||
150 | #define USIR0_IR7 (1 << 7) /* Interrupt request ep 7 */ | ||
151 | |||
152 | #define USIR1 __REG(0x4060005C) /* UDC Status Interrupt Register 1 */ | ||
153 | |||
154 | #define USIR1_IR8 (1 << 0) /* Interrupt request ep 8 */ | ||
155 | #define USIR1_IR9 (1 << 1) /* Interrupt request ep 9 */ | ||
156 | #define USIR1_IR10 (1 << 2) /* Interrupt request ep 10 */ | ||
157 | #define USIR1_IR11 (1 << 3) /* Interrupt request ep 11 */ | ||
158 | #define USIR1_IR12 (1 << 4) /* Interrupt request ep 12 */ | ||
159 | #define USIR1_IR13 (1 << 5) /* Interrupt request ep 13 */ | ||
160 | #define USIR1_IR14 (1 << 6) /* Interrupt request ep 14 */ | ||
161 | #define USIR1_IR15 (1 << 7) /* Interrupt request ep 15 */ | ||
162 | |||
163 | #endif | ||
diff --git a/include/asm-arm/arch-pxa/pxa27x-udc.h b/include/asm-arm/arch-pxa/pxa27x-udc.h new file mode 100644 index 000000000000..ab1443f8bd89 --- /dev/null +++ b/include/asm-arm/arch-pxa/pxa27x-udc.h | |||
@@ -0,0 +1,257 @@ | |||
1 | #ifndef _ASM_ARCH_PXA27X_UDC_H | ||
2 | #define _ASM_ARCH_PXA27X_UDC_H | ||
3 | |||
4 | #ifdef _ASM_ARCH_PXA25X_UDC_H | ||
5 | #error You cannot include both PXA25x and PXA27x UDC support | ||
6 | #endif | ||
7 | |||
8 | #define UDCCR __REG(0x40600000) /* UDC Control Register */ | ||
9 | #define UDCCR_OEN (1 << 31) /* On-the-Go Enable */ | ||
10 | #define UDCCR_AALTHNP (1 << 30) /* A-device Alternate Host Negotiation | ||
11 | Protocol Port Support */ | ||
12 | #define UDCCR_AHNP (1 << 29) /* A-device Host Negotiation Protocol | ||
13 | Support */ | ||
14 | #define UDCCR_BHNP (1 << 28) /* B-device Host Negotiation Protocol | ||
15 | Enable */ | ||
16 | #define UDCCR_DWRE (1 << 16) /* Device Remote Wake-up Enable */ | ||
17 | #define UDCCR_ACN (0x03 << 11) /* Active UDC configuration Number */ | ||
18 | #define UDCCR_ACN_S 11 | ||
19 | #define UDCCR_AIN (0x07 << 8) /* Active UDC interface Number */ | ||
20 | #define UDCCR_AIN_S 8 | ||
21 | #define UDCCR_AAISN (0x07 << 5) /* Active UDC Alternate Interface | ||
22 | Setting Number */ | ||
23 | #define UDCCR_AAISN_S 5 | ||
24 | #define UDCCR_SMAC (1 << 4) /* Switch Endpoint Memory to Active | ||
25 | Configuration */ | ||
26 | #define UDCCR_EMCE (1 << 3) /* Endpoint Memory Configuration | ||
27 | Error */ | ||
28 | #define UDCCR_UDR (1 << 2) /* UDC Resume */ | ||
29 | #define UDCCR_UDA (1 << 1) /* UDC Active */ | ||
30 | #define UDCCR_UDE (1 << 0) /* UDC Enable */ | ||
31 | |||
32 | #define UDCICR0 __REG(0x40600004) /* UDC Interrupt Control Register0 */ | ||
33 | #define UDCICR1 __REG(0x40600008) /* UDC Interrupt Control Register1 */ | ||
34 | #define UDCICR_FIFOERR (1 << 1) /* FIFO Error interrupt for EP */ | ||
35 | #define UDCICR_PKTCOMPL (1 << 0) /* Packet Complete interrupt for EP */ | ||
36 | |||
37 | #define UDC_INT_FIFOERROR (0x2) | ||
38 | #define UDC_INT_PACKETCMP (0x1) | ||
39 | |||
40 | #define UDCICR_INT(n,intr) (((intr) & 0x03) << (((n) & 0x0F) * 2)) | ||
41 | #define UDCICR1_IECC (1 << 31) /* IntEn - Configuration Change */ | ||
42 | #define UDCICR1_IESOF (1 << 30) /* IntEn - Start of Frame */ | ||
43 | #define UDCICR1_IERU (1 << 29) /* IntEn - Resume */ | ||
44 | #define UDCICR1_IESU (1 << 28) /* IntEn - Suspend */ | ||
45 | #define UDCICR1_IERS (1 << 27) /* IntEn - Reset */ | ||
46 | |||
47 | #define UDCISR0 __REG(0x4060000C) /* UDC Interrupt Status Register 0 */ | ||
48 | #define UDCISR1 __REG(0x40600010) /* UDC Interrupt Status Register 1 */ | ||
49 | #define UDCISR_INT(n,intr) (((intr) & 0x03) << (((n) & 0x0F) * 2)) | ||
50 | #define UDCISR1_IRCC (1 << 31) /* IntReq - Configuration Change */ | ||
51 | #define UDCISR1_IRSOF (1 << 30) /* IntReq - Start of Frame */ | ||
52 | #define UDCISR1_IRRU (1 << 29) /* IntReq - Resume */ | ||
53 | #define UDCISR1_IRSU (1 << 28) /* IntReq - Suspend */ | ||
54 | #define UDCISR1_IRRS (1 << 27) /* IntReq - Reset */ | ||
55 | |||
56 | #define UDCFNR __REG(0x40600014) /* UDC Frame Number Register */ | ||
57 | #define UDCOTGICR __REG(0x40600018) /* UDC On-The-Go interrupt control */ | ||
58 | #define UDCOTGICR_IESF (1 << 24) /* OTG SET_FEATURE command recvd */ | ||
59 | #define UDCOTGICR_IEXR (1 << 17) /* Extra Transciever Interrupt | ||
60 | Rising Edge Interrupt Enable */ | ||
61 | #define UDCOTGICR_IEXF (1 << 16) /* Extra Transciever Interrupt | ||
62 | Falling Edge Interrupt Enable */ | ||
63 | #define UDCOTGICR_IEVV40R (1 << 9) /* OTG Vbus Valid 4.0V Rising Edge | ||
64 | Interrupt Enable */ | ||
65 | #define UDCOTGICR_IEVV40F (1 << 8) /* OTG Vbus Valid 4.0V Falling Edge | ||
66 | Interrupt Enable */ | ||
67 | #define UDCOTGICR_IEVV44R (1 << 7) /* OTG Vbus Valid 4.4V Rising Edge | ||
68 | Interrupt Enable */ | ||
69 | #define UDCOTGICR_IEVV44F (1 << 6) /* OTG Vbus Valid 4.4V Falling Edge | ||
70 | Interrupt Enable */ | ||
71 | #define UDCOTGICR_IESVR (1 << 5) /* OTG Session Valid Rising Edge | ||
72 | Interrupt Enable */ | ||
73 | #define UDCOTGICR_IESVF (1 << 4) /* OTG Session Valid Falling Edge | ||
74 | Interrupt Enable */ | ||
75 | #define UDCOTGICR_IESDR (1 << 3) /* OTG A-Device SRP Detect Rising | ||
76 | Edge Interrupt Enable */ | ||
77 | #define UDCOTGICR_IESDF (1 << 2) /* OTG A-Device SRP Detect Falling | ||
78 | Edge Interrupt Enable */ | ||
79 | #define UDCOTGICR_IEIDR (1 << 1) /* OTG ID Change Rising Edge | ||
80 | Interrupt Enable */ | ||
81 | #define UDCOTGICR_IEIDF (1 << 0) /* OTG ID Change Falling Edge | ||
82 | Interrupt Enable */ | ||
83 | |||
84 | #define UP2OCR __REG(0x40600020) /* USB Port 2 Output Control register */ | ||
85 | #define UP3OCR __REG(0x40600024) /* USB Port 2 Output Control register */ | ||
86 | |||
87 | #define UP2OCR_CPVEN (1 << 0) /* Charge Pump Vbus Enable */ | ||
88 | #define UP2OCR_CPVPE (1 << 1) /* Charge Pump Vbus Pulse Enable */ | ||
89 | #define UP2OCR_DPPDE (1 << 2) /* Host Port 2 Transceiver D+ Pull Down Enable */ | ||
90 | #define UP2OCR_DMPDE (1 << 3) /* Host Port 2 Transceiver D- Pull Down Enable */ | ||
91 | #define UP2OCR_DPPUE (1 << 4) /* Host Port 2 Transceiver D+ Pull Up Enable */ | ||
92 | #define UP2OCR_DMPUE (1 << 5) /* Host Port 2 Transceiver D- Pull Up Enable */ | ||
93 | #define UP2OCR_DPPUBE (1 << 6) /* Host Port 2 Transceiver D+ Pull Up Bypass Enable */ | ||
94 | #define UP2OCR_DMPUBE (1 << 7) /* Host Port 2 Transceiver D- Pull Up Bypass Enable */ | ||
95 | #define UP2OCR_EXSP (1 << 8) /* External Transceiver Speed Control */ | ||
96 | #define UP2OCR_EXSUS (1 << 9) /* External Transceiver Speed Enable */ | ||
97 | #define UP2OCR_IDON (1 << 10) /* OTG ID Read Enable */ | ||
98 | #define UP2OCR_HXS (1 << 16) /* Host Port 2 Transceiver Output Select */ | ||
99 | #define UP2OCR_HXOE (1 << 17) /* Host Port 2 Transceiver Output Enable */ | ||
100 | #define UP2OCR_SEOS(x) ((x & 7) << 24) /* Single-Ended Output Select */ | ||
101 | |||
102 | #define UDCCSN(x) __REG2(0x40600100, (x) << 2) | ||
103 | #define UDCCSR0 __REG(0x40600100) /* UDC Control/Status register - Endpoint 0 */ | ||
104 | #define UDCCSR0_SA (1 << 7) /* Setup Active */ | ||
105 | #define UDCCSR0_RNE (1 << 6) /* Receive FIFO Not Empty */ | ||
106 | #define UDCCSR0_FST (1 << 5) /* Force Stall */ | ||
107 | #define UDCCSR0_SST (1 << 4) /* Sent Stall */ | ||
108 | #define UDCCSR0_DME (1 << 3) /* DMA Enable */ | ||
109 | #define UDCCSR0_FTF (1 << 2) /* Flush Transmit FIFO */ | ||
110 | #define UDCCSR0_IPR (1 << 1) /* IN Packet Ready */ | ||
111 | #define UDCCSR0_OPC (1 << 0) /* OUT Packet Complete */ | ||
112 | |||
113 | #define UDCCSRA __REG(0x40600104) /* UDC Control/Status register - Endpoint A */ | ||
114 | #define UDCCSRB __REG(0x40600108) /* UDC Control/Status register - Endpoint B */ | ||
115 | #define UDCCSRC __REG(0x4060010C) /* UDC Control/Status register - Endpoint C */ | ||
116 | #define UDCCSRD __REG(0x40600110) /* UDC Control/Status register - Endpoint D */ | ||
117 | #define UDCCSRE __REG(0x40600114) /* UDC Control/Status register - Endpoint E */ | ||
118 | #define UDCCSRF __REG(0x40600118) /* UDC Control/Status register - Endpoint F */ | ||
119 | #define UDCCSRG __REG(0x4060011C) /* UDC Control/Status register - Endpoint G */ | ||
120 | #define UDCCSRH __REG(0x40600120) /* UDC Control/Status register - Endpoint H */ | ||
121 | #define UDCCSRI __REG(0x40600124) /* UDC Control/Status register - Endpoint I */ | ||
122 | #define UDCCSRJ __REG(0x40600128) /* UDC Control/Status register - Endpoint J */ | ||
123 | #define UDCCSRK __REG(0x4060012C) /* UDC Control/Status register - Endpoint K */ | ||
124 | #define UDCCSRL __REG(0x40600130) /* UDC Control/Status register - Endpoint L */ | ||
125 | #define UDCCSRM __REG(0x40600134) /* UDC Control/Status register - Endpoint M */ | ||
126 | #define UDCCSRN __REG(0x40600138) /* UDC Control/Status register - Endpoint N */ | ||
127 | #define UDCCSRP __REG(0x4060013C) /* UDC Control/Status register - Endpoint P */ | ||
128 | #define UDCCSRQ __REG(0x40600140) /* UDC Control/Status register - Endpoint Q */ | ||
129 | #define UDCCSRR __REG(0x40600144) /* UDC Control/Status register - Endpoint R */ | ||
130 | #define UDCCSRS __REG(0x40600148) /* UDC Control/Status register - Endpoint S */ | ||
131 | #define UDCCSRT __REG(0x4060014C) /* UDC Control/Status register - Endpoint T */ | ||
132 | #define UDCCSRU __REG(0x40600150) /* UDC Control/Status register - Endpoint U */ | ||
133 | #define UDCCSRV __REG(0x40600154) /* UDC Control/Status register - Endpoint V */ | ||
134 | #define UDCCSRW __REG(0x40600158) /* UDC Control/Status register - Endpoint W */ | ||
135 | #define UDCCSRX __REG(0x4060015C) /* UDC Control/Status register - Endpoint X */ | ||
136 | |||
137 | #define UDCCSR_DPE (1 << 9) /* Data Packet Error */ | ||
138 | #define UDCCSR_FEF (1 << 8) /* Flush Endpoint FIFO */ | ||
139 | #define UDCCSR_SP (1 << 7) /* Short Packet Control/Status */ | ||
140 | #define UDCCSR_BNE (1 << 6) /* Buffer Not Empty (IN endpoints) */ | ||
141 | #define UDCCSR_BNF (1 << 6) /* Buffer Not Full (OUT endpoints) */ | ||
142 | #define UDCCSR_FST (1 << 5) /* Force STALL */ | ||
143 | #define UDCCSR_SST (1 << 4) /* Sent STALL */ | ||
144 | #define UDCCSR_DME (1 << 3) /* DMA Enable */ | ||
145 | #define UDCCSR_TRN (1 << 2) /* Tx/Rx NAK */ | ||
146 | #define UDCCSR_PC (1 << 1) /* Packet Complete */ | ||
147 | #define UDCCSR_FS (1 << 0) /* FIFO needs service */ | ||
148 | |||
149 | #define UDCBCN(x) __REG2(0x40600200, (x)<<2) | ||
150 | #define UDCBCR0 __REG(0x40600200) /* Byte Count Register - EP0 */ | ||
151 | #define UDCBCRA __REG(0x40600204) /* Byte Count Register - EPA */ | ||
152 | #define UDCBCRB __REG(0x40600208) /* Byte Count Register - EPB */ | ||
153 | #define UDCBCRC __REG(0x4060020C) /* Byte Count Register - EPC */ | ||
154 | #define UDCBCRD __REG(0x40600210) /* Byte Count Register - EPD */ | ||
155 | #define UDCBCRE __REG(0x40600214) /* Byte Count Register - EPE */ | ||
156 | #define UDCBCRF __REG(0x40600218) /* Byte Count Register - EPF */ | ||
157 | #define UDCBCRG __REG(0x4060021C) /* Byte Count Register - EPG */ | ||
158 | #define UDCBCRH __REG(0x40600220) /* Byte Count Register - EPH */ | ||
159 | #define UDCBCRI __REG(0x40600224) /* Byte Count Register - EPI */ | ||
160 | #define UDCBCRJ __REG(0x40600228) /* Byte Count Register - EPJ */ | ||
161 | #define UDCBCRK __REG(0x4060022C) /* Byte Count Register - EPK */ | ||
162 | #define UDCBCRL __REG(0x40600230) /* Byte Count Register - EPL */ | ||
163 | #define UDCBCRM __REG(0x40600234) /* Byte Count Register - EPM */ | ||
164 | #define UDCBCRN __REG(0x40600238) /* Byte Count Register - EPN */ | ||
165 | #define UDCBCRP __REG(0x4060023C) /* Byte Count Register - EPP */ | ||
166 | #define UDCBCRQ __REG(0x40600240) /* Byte Count Register - EPQ */ | ||
167 | #define UDCBCRR __REG(0x40600244) /* Byte Count Register - EPR */ | ||
168 | #define UDCBCRS __REG(0x40600248) /* Byte Count Register - EPS */ | ||
169 | #define UDCBCRT __REG(0x4060024C) /* Byte Count Register - EPT */ | ||
170 | #define UDCBCRU __REG(0x40600250) /* Byte Count Register - EPU */ | ||
171 | #define UDCBCRV __REG(0x40600254) /* Byte Count Register - EPV */ | ||
172 | #define UDCBCRW __REG(0x40600258) /* Byte Count Register - EPW */ | ||
173 | #define UDCBCRX __REG(0x4060025C) /* Byte Count Register - EPX */ | ||
174 | |||
175 | #define UDCDN(x) __REG2(0x40600300, (x)<<2) | ||
176 | #define PHYS_UDCDN(x) (0x40600300 + ((x)<<2)) | ||
177 | #define PUDCDN(x) (volatile u32 *)(io_p2v(PHYS_UDCDN((x)))) | ||
178 | #define UDCDR0 __REG(0x40600300) /* Data Register - EP0 */ | ||
179 | #define UDCDRA __REG(0x40600304) /* Data Register - EPA */ | ||
180 | #define UDCDRB __REG(0x40600308) /* Data Register - EPB */ | ||
181 | #define UDCDRC __REG(0x4060030C) /* Data Register - EPC */ | ||
182 | #define UDCDRD __REG(0x40600310) /* Data Register - EPD */ | ||
183 | #define UDCDRE __REG(0x40600314) /* Data Register - EPE */ | ||
184 | #define UDCDRF __REG(0x40600318) /* Data Register - EPF */ | ||
185 | #define UDCDRG __REG(0x4060031C) /* Data Register - EPG */ | ||
186 | #define UDCDRH __REG(0x40600320) /* Data Register - EPH */ | ||
187 | #define UDCDRI __REG(0x40600324) /* Data Register - EPI */ | ||
188 | #define UDCDRJ __REG(0x40600328) /* Data Register - EPJ */ | ||
189 | #define UDCDRK __REG(0x4060032C) /* Data Register - EPK */ | ||
190 | #define UDCDRL __REG(0x40600330) /* Data Register - EPL */ | ||
191 | #define UDCDRM __REG(0x40600334) /* Data Register - EPM */ | ||
192 | #define UDCDRN __REG(0x40600338) /* Data Register - EPN */ | ||
193 | #define UDCDRP __REG(0x4060033C) /* Data Register - EPP */ | ||
194 | #define UDCDRQ __REG(0x40600340) /* Data Register - EPQ */ | ||
195 | #define UDCDRR __REG(0x40600344) /* Data Register - EPR */ | ||
196 | #define UDCDRS __REG(0x40600348) /* Data Register - EPS */ | ||
197 | #define UDCDRT __REG(0x4060034C) /* Data Register - EPT */ | ||
198 | #define UDCDRU __REG(0x40600350) /* Data Register - EPU */ | ||
199 | #define UDCDRV __REG(0x40600354) /* Data Register - EPV */ | ||
200 | #define UDCDRW __REG(0x40600358) /* Data Register - EPW */ | ||
201 | #define UDCDRX __REG(0x4060035C) /* Data Register - EPX */ | ||
202 | |||
203 | #define UDCCN(x) __REG2(0x40600400, (x)<<2) | ||
204 | #define UDCCRA __REG(0x40600404) /* Configuration register EPA */ | ||
205 | #define UDCCRB __REG(0x40600408) /* Configuration register EPB */ | ||
206 | #define UDCCRC __REG(0x4060040C) /* Configuration register EPC */ | ||
207 | #define UDCCRD __REG(0x40600410) /* Configuration register EPD */ | ||
208 | #define UDCCRE __REG(0x40600414) /* Configuration register EPE */ | ||
209 | #define UDCCRF __REG(0x40600418) /* Configuration register EPF */ | ||
210 | #define UDCCRG __REG(0x4060041C) /* Configuration register EPG */ | ||
211 | #define UDCCRH __REG(0x40600420) /* Configuration register EPH */ | ||
212 | #define UDCCRI __REG(0x40600424) /* Configuration register EPI */ | ||
213 | #define UDCCRJ __REG(0x40600428) /* Configuration register EPJ */ | ||
214 | #define UDCCRK __REG(0x4060042C) /* Configuration register EPK */ | ||
215 | #define UDCCRL __REG(0x40600430) /* Configuration register EPL */ | ||
216 | #define UDCCRM __REG(0x40600434) /* Configuration register EPM */ | ||
217 | #define UDCCRN __REG(0x40600438) /* Configuration register EPN */ | ||
218 | #define UDCCRP __REG(0x4060043C) /* Configuration register EPP */ | ||
219 | #define UDCCRQ __REG(0x40600440) /* Configuration register EPQ */ | ||
220 | #define UDCCRR __REG(0x40600444) /* Configuration register EPR */ | ||
221 | #define UDCCRS __REG(0x40600448) /* Configuration register EPS */ | ||
222 | #define UDCCRT __REG(0x4060044C) /* Configuration register EPT */ | ||
223 | #define UDCCRU __REG(0x40600450) /* Configuration register EPU */ | ||
224 | #define UDCCRV __REG(0x40600454) /* Configuration register EPV */ | ||
225 | #define UDCCRW __REG(0x40600458) /* Configuration register EPW */ | ||
226 | #define UDCCRX __REG(0x4060045C) /* Configuration register EPX */ | ||
227 | |||
228 | #define UDCCONR_CN (0x03 << 25) /* Configuration Number */ | ||
229 | #define UDCCONR_CN_S (25) | ||
230 | #define UDCCONR_IN (0x07 << 22) /* Interface Number */ | ||
231 | #define UDCCONR_IN_S (22) | ||
232 | #define UDCCONR_AISN (0x07 << 19) /* Alternate Interface Number */ | ||
233 | #define UDCCONR_AISN_S (19) | ||
234 | #define UDCCONR_EN (0x0f << 15) /* Endpoint Number */ | ||
235 | #define UDCCONR_EN_S (15) | ||
236 | #define UDCCONR_ET (0x03 << 13) /* Endpoint Type: */ | ||
237 | #define UDCCONR_ET_S (13) | ||
238 | #define UDCCONR_ET_INT (0x03 << 13) /* Interrupt */ | ||
239 | #define UDCCONR_ET_BULK (0x02 << 13) /* Bulk */ | ||
240 | #define UDCCONR_ET_ISO (0x01 << 13) /* Isochronous */ | ||
241 | #define UDCCONR_ET_NU (0x00 << 13) /* Not used */ | ||
242 | #define UDCCONR_ED (1 << 12) /* Endpoint Direction */ | ||
243 | #define UDCCONR_MPS (0x3ff << 2) /* Maximum Packet Size */ | ||
244 | #define UDCCONR_MPS_S (2) | ||
245 | #define UDCCONR_DE (1 << 1) /* Double Buffering Enable */ | ||
246 | #define UDCCONR_EE (1 << 0) /* Endpoint Enable */ | ||
247 | |||
248 | |||
249 | #define UDC_INT_FIFOERROR (0x2) | ||
250 | #define UDC_INT_PACKETCMP (0x1) | ||
251 | |||
252 | #define UDC_FNR_MASK (0x7ff) | ||
253 | |||
254 | #define UDCCSR_WR_MASK (UDCCSR_DME|UDCCSR_FST) | ||
255 | #define UDC_BCR_MASK (0x3ff) | ||
256 | |||
257 | #endif | ||
diff --git a/include/asm-arm/arch-pxa/pxa2xx-gpio.h b/include/asm-arm/arch-pxa/pxa2xx-gpio.h index b81cd63cb2eb..6ef1dd09970b 100644 --- a/include/asm-arm/arch-pxa/pxa2xx-gpio.h +++ b/include/asm-arm/arch-pxa/pxa2xx-gpio.h | |||
@@ -1,6 +1,8 @@ | |||
1 | #ifndef __ASM_ARCH_PXA2XX_GPIO_H | 1 | #ifndef __ASM_ARCH_PXA2XX_GPIO_H |
2 | #define __ASM_ARCH_PXA2XX_GPIO_H | 2 | #define __ASM_ARCH_PXA2XX_GPIO_H |
3 | 3 | ||
4 | #warning Please use mfp-pxa2[57]x.h instead of pxa2xx-gpio.h | ||
5 | |||
4 | /* GPIO alternate function assignments */ | 6 | /* GPIO alternate function assignments */ |
5 | 7 | ||
6 | #define GPIO1_RST 1 /* reset */ | 8 | #define GPIO1_RST 1 /* reset */ |
diff --git a/include/asm-arm/arch-pxa/pxa2xx-regs.h b/include/asm-arm/arch-pxa/pxa2xx-regs.h index 9553b54fa5bc..73e0a329cf7f 100644 --- a/include/asm-arm/arch-pxa/pxa2xx-regs.h +++ b/include/asm-arm/arch-pxa/pxa2xx-regs.h | |||
@@ -81,4 +81,166 @@ | |||
81 | 81 | ||
82 | #endif | 82 | #endif |
83 | 83 | ||
84 | |||
85 | /* | ||
86 | * Power Manager | ||
87 | */ | ||
88 | |||
89 | #define PMCR __REG(0x40F00000) /* Power Manager Control Register */ | ||
90 | #define PSSR __REG(0x40F00004) /* Power Manager Sleep Status Register */ | ||
91 | #define PSPR __REG(0x40F00008) /* Power Manager Scratch Pad Register */ | ||
92 | #define PWER __REG(0x40F0000C) /* Power Manager Wake-up Enable Register */ | ||
93 | #define PRER __REG(0x40F00010) /* Power Manager GPIO Rising-Edge Detect Enable Register */ | ||
94 | #define PFER __REG(0x40F00014) /* Power Manager GPIO Falling-Edge Detect Enable Register */ | ||
95 | #define PEDR __REG(0x40F00018) /* Power Manager GPIO Edge Detect Status Register */ | ||
96 | #define PCFR __REG(0x40F0001C) /* Power Manager General Configuration Register */ | ||
97 | #define PGSR0 __REG(0x40F00020) /* Power Manager GPIO Sleep State Register for GP[31-0] */ | ||
98 | #define PGSR1 __REG(0x40F00024) /* Power Manager GPIO Sleep State Register for GP[63-32] */ | ||
99 | #define PGSR2 __REG(0x40F00028) /* Power Manager GPIO Sleep State Register for GP[84-64] */ | ||
100 | #define PGSR3 __REG(0x40F0002C) /* Power Manager GPIO Sleep State Register for GP[118-96] */ | ||
101 | #define RCSR __REG(0x40F00030) /* Reset Controller Status Register */ | ||
102 | |||
103 | #define PSLR __REG(0x40F00034) /* Power Manager Sleep Config Register */ | ||
104 | #define PSTR __REG(0x40F00038) /* Power Manager Standby Config Register */ | ||
105 | #define PSNR __REG(0x40F0003C) /* Power Manager Sense Config Register */ | ||
106 | #define PVCR __REG(0x40F00040) /* Power Manager VoltageControl Register */ | ||
107 | #define PKWR __REG(0x40F00050) /* Power Manager KB Wake-up Enable Reg */ | ||
108 | #define PKSR __REG(0x40F00054) /* Power Manager KB Level-Detect Register */ | ||
109 | #define PCMD(x) __REG2(0x40F00080, (x)<<2) | ||
110 | #define PCMD0 __REG(0x40F00080 + 0 * 4) | ||
111 | #define PCMD1 __REG(0x40F00080 + 1 * 4) | ||
112 | #define PCMD2 __REG(0x40F00080 + 2 * 4) | ||
113 | #define PCMD3 __REG(0x40F00080 + 3 * 4) | ||
114 | #define PCMD4 __REG(0x40F00080 + 4 * 4) | ||
115 | #define PCMD5 __REG(0x40F00080 + 5 * 4) | ||
116 | #define PCMD6 __REG(0x40F00080 + 6 * 4) | ||
117 | #define PCMD7 __REG(0x40F00080 + 7 * 4) | ||
118 | #define PCMD8 __REG(0x40F00080 + 8 * 4) | ||
119 | #define PCMD9 __REG(0x40F00080 + 9 * 4) | ||
120 | #define PCMD10 __REG(0x40F00080 + 10 * 4) | ||
121 | #define PCMD11 __REG(0x40F00080 + 11 * 4) | ||
122 | #define PCMD12 __REG(0x40F00080 + 12 * 4) | ||
123 | #define PCMD13 __REG(0x40F00080 + 13 * 4) | ||
124 | #define PCMD14 __REG(0x40F00080 + 14 * 4) | ||
125 | #define PCMD15 __REG(0x40F00080 + 15 * 4) | ||
126 | #define PCMD16 __REG(0x40F00080 + 16 * 4) | ||
127 | #define PCMD17 __REG(0x40F00080 + 17 * 4) | ||
128 | #define PCMD18 __REG(0x40F00080 + 18 * 4) | ||
129 | #define PCMD19 __REG(0x40F00080 + 19 * 4) | ||
130 | #define PCMD20 __REG(0x40F00080 + 20 * 4) | ||
131 | #define PCMD21 __REG(0x40F00080 + 21 * 4) | ||
132 | #define PCMD22 __REG(0x40F00080 + 22 * 4) | ||
133 | #define PCMD23 __REG(0x40F00080 + 23 * 4) | ||
134 | #define PCMD24 __REG(0x40F00080 + 24 * 4) | ||
135 | #define PCMD25 __REG(0x40F00080 + 25 * 4) | ||
136 | #define PCMD26 __REG(0x40F00080 + 26 * 4) | ||
137 | #define PCMD27 __REG(0x40F00080 + 27 * 4) | ||
138 | #define PCMD28 __REG(0x40F00080 + 28 * 4) | ||
139 | #define PCMD29 __REG(0x40F00080 + 29 * 4) | ||
140 | #define PCMD30 __REG(0x40F00080 + 30 * 4) | ||
141 | #define PCMD31 __REG(0x40F00080 + 31 * 4) | ||
142 | |||
143 | #define PCMD_MBC (1<<12) | ||
144 | #define PCMD_DCE (1<<11) | ||
145 | #define PCMD_LC (1<<10) | ||
146 | /* FIXME: PCMD_SQC need be checked. */ | ||
147 | #define PCMD_SQC (3<<8) /* currently only bit 8 is changeable, | ||
148 | bit 9 should be 0 all day. */ | ||
149 | #define PVCR_VCSA (0x1<<14) | ||
150 | #define PVCR_CommandDelay (0xf80) | ||
151 | #define PCFR_PI2C_EN (0x1 << 6) | ||
152 | |||
153 | #define PSSR_OTGPH (1 << 6) /* OTG Peripheral control Hold */ | ||
154 | #define PSSR_RDH (1 << 5) /* Read Disable Hold */ | ||
155 | #define PSSR_PH (1 << 4) /* Peripheral Control Hold */ | ||
156 | #define PSSR_STS (1 << 3) /* Standby Mode Status */ | ||
157 | #define PSSR_VFS (1 << 2) /* VDD Fault Status */ | ||
158 | #define PSSR_BFS (1 << 1) /* Battery Fault Status */ | ||
159 | #define PSSR_SSS (1 << 0) /* Software Sleep Status */ | ||
160 | |||
161 | #define PSLR_SL_ROD (1 << 20) /* Sleep-Mode/Depp-Sleep Mode nRESET_OUT Disable */ | ||
162 | |||
163 | #define PCFR_RO (1 << 15) /* RDH Override */ | ||
164 | #define PCFR_PO (1 << 14) /* PH Override */ | ||
165 | #define PCFR_GPROD (1 << 12) /* GPIO nRESET_OUT Disable */ | ||
166 | #define PCFR_L1_EN (1 << 11) /* Sleep Mode L1 converter Enable */ | ||
167 | #define PCFR_FVC (1 << 10) /* Frequency/Voltage Change */ | ||
168 | #define PCFR_DC_EN (1 << 7) /* Sleep/deep-sleep DC-DC Converter Enable */ | ||
169 | #define PCFR_PI2CEN (1 << 6) /* Enable PI2C controller */ | ||
170 | #define PCFR_GPR_EN (1 << 4) /* nRESET_GPIO Pin Enable */ | ||
171 | #define PCFR_DS (1 << 3) /* Deep Sleep Mode */ | ||
172 | #define PCFR_FS (1 << 2) /* Float Static Chip Selects */ | ||
173 | #define PCFR_FP (1 << 1) /* Float PCMCIA controls */ | ||
174 | #define PCFR_OPDE (1 << 0) /* 3.6864 MHz oscillator power-down enable */ | ||
175 | |||
176 | #define RCSR_GPR (1 << 3) /* GPIO Reset */ | ||
177 | #define RCSR_SMR (1 << 2) /* Sleep Mode */ | ||
178 | #define RCSR_WDR (1 << 1) /* Watchdog Reset */ | ||
179 | #define RCSR_HWR (1 << 0) /* Hardware Reset */ | ||
180 | |||
181 | #define PWER_GPIO(Nb) (1 << Nb) /* GPIO [0..15] wake-up enable */ | ||
182 | #define PWER_GPIO0 PWER_GPIO (0) /* GPIO [0] wake-up enable */ | ||
183 | #define PWER_GPIO1 PWER_GPIO (1) /* GPIO [1] wake-up enable */ | ||
184 | #define PWER_GPIO2 PWER_GPIO (2) /* GPIO [2] wake-up enable */ | ||
185 | #define PWER_GPIO3 PWER_GPIO (3) /* GPIO [3] wake-up enable */ | ||
186 | #define PWER_GPIO4 PWER_GPIO (4) /* GPIO [4] wake-up enable */ | ||
187 | #define PWER_GPIO5 PWER_GPIO (5) /* GPIO [5] wake-up enable */ | ||
188 | #define PWER_GPIO6 PWER_GPIO (6) /* GPIO [6] wake-up enable */ | ||
189 | #define PWER_GPIO7 PWER_GPIO (7) /* GPIO [7] wake-up enable */ | ||
190 | #define PWER_GPIO8 PWER_GPIO (8) /* GPIO [8] wake-up enable */ | ||
191 | #define PWER_GPIO9 PWER_GPIO (9) /* GPIO [9] wake-up enable */ | ||
192 | #define PWER_GPIO10 PWER_GPIO (10) /* GPIO [10] wake-up enable */ | ||
193 | #define PWER_GPIO11 PWER_GPIO (11) /* GPIO [11] wake-up enable */ | ||
194 | #define PWER_GPIO12 PWER_GPIO (12) /* GPIO [12] wake-up enable */ | ||
195 | #define PWER_GPIO13 PWER_GPIO (13) /* GPIO [13] wake-up enable */ | ||
196 | #define PWER_GPIO14 PWER_GPIO (14) /* GPIO [14] wake-up enable */ | ||
197 | #define PWER_GPIO15 PWER_GPIO (15) /* GPIO [15] wake-up enable */ | ||
198 | #define PWER_RTC 0x80000000 /* RTC alarm wake-up enable */ | ||
199 | |||
200 | /* | ||
201 | * PXA2xx specific Core clock definitions | ||
202 | */ | ||
203 | #define CCCR __REG(0x41300000) /* Core Clock Configuration Register */ | ||
204 | #define CCSR __REG(0x4130000C) /* Core Clock Status Register */ | ||
205 | #define CKEN __REG(0x41300004) /* Clock Enable Register */ | ||
206 | #define OSCC __REG(0x41300008) /* Oscillator Configuration Register */ | ||
207 | |||
208 | #define CCCR_N_MASK 0x0380 /* Run Mode Frequency to Turbo Mode Frequency Multiplier */ | ||
209 | #define CCCR_M_MASK 0x0060 /* Memory Frequency to Run Mode Frequency Multiplier */ | ||
210 | #define CCCR_L_MASK 0x001f /* Crystal Frequency to Memory Frequency Multiplier */ | ||
211 | |||
212 | #define CKEN_AC97CONF (31) /* AC97 Controller Configuration */ | ||
213 | #define CKEN_CAMERA (24) /* Camera Interface Clock Enable */ | ||
214 | #define CKEN_SSP1 (23) /* SSP1 Unit Clock Enable */ | ||
215 | #define CKEN_MEMC (22) /* Memory Controller Clock Enable */ | ||
216 | #define CKEN_MEMSTK (21) /* Memory Stick Host Controller */ | ||
217 | #define CKEN_IM (20) /* Internal Memory Clock Enable */ | ||
218 | #define CKEN_KEYPAD (19) /* Keypad Interface Clock Enable */ | ||
219 | #define CKEN_USIM (18) /* USIM Unit Clock Enable */ | ||
220 | #define CKEN_MSL (17) /* MSL Unit Clock Enable */ | ||
221 | #define CKEN_LCD (16) /* LCD Unit Clock Enable */ | ||
222 | #define CKEN_PWRI2C (15) /* PWR I2C Unit Clock Enable */ | ||
223 | #define CKEN_I2C (14) /* I2C Unit Clock Enable */ | ||
224 | #define CKEN_FICP (13) /* FICP Unit Clock Enable */ | ||
225 | #define CKEN_MMC (12) /* MMC Unit Clock Enable */ | ||
226 | #define CKEN_USB (11) /* USB Unit Clock Enable */ | ||
227 | #define CKEN_ASSP (10) /* ASSP (SSP3) Clock Enable */ | ||
228 | #define CKEN_USBHOST (10) /* USB Host Unit Clock Enable */ | ||
229 | #define CKEN_OSTIMER (9) /* OS Timer Unit Clock Enable */ | ||
230 | #define CKEN_NSSP (9) /* NSSP (SSP2) Clock Enable */ | ||
231 | #define CKEN_I2S (8) /* I2S Unit Clock Enable */ | ||
232 | #define CKEN_BTUART (7) /* BTUART Unit Clock Enable */ | ||
233 | #define CKEN_FFUART (6) /* FFUART Unit Clock Enable */ | ||
234 | #define CKEN_STUART (5) /* STUART Unit Clock Enable */ | ||
235 | #define CKEN_HWUART (4) /* HWUART Unit Clock Enable */ | ||
236 | #define CKEN_SSP3 (4) /* SSP3 Unit Clock Enable */ | ||
237 | #define CKEN_SSP (3) /* SSP Unit Clock Enable */ | ||
238 | #define CKEN_SSP2 (3) /* SSP2 Unit Clock Enable */ | ||
239 | #define CKEN_AC97 (2) /* AC97 Unit Clock Enable */ | ||
240 | #define CKEN_PWM1 (1) /* PWM1 Clock Enable */ | ||
241 | #define CKEN_PWM0 (0) /* PWM0 Clock Enable */ | ||
242 | |||
243 | #define OSCC_OON (1 << 1) /* 32.768kHz OON (write-once only bit) */ | ||
244 | #define OSCC_OOK (1 << 0) /* 32.768kHz OOK (read-only bit) */ | ||
245 | |||
84 | #endif | 246 | #endif |
diff --git a/include/asm-arm/arch-pxa/pxa2xx_spi.h b/include/asm-arm/arch-pxa/pxa2xx_spi.h index 3459fb26ce97..2206cb61a9f9 100644 --- a/include/asm-arm/arch-pxa/pxa2xx_spi.h +++ b/include/asm-arm/arch-pxa/pxa2xx_spi.h | |||
@@ -41,4 +41,6 @@ struct pxa2xx_spi_chip { | |||
41 | void (*cs_control)(u32 command); | 41 | void (*cs_control)(u32 command); |
42 | }; | 42 | }; |
43 | 43 | ||
44 | extern void pxa2xx_set_spi_info(unsigned id, struct pxa2xx_spi_master *info); | ||
45 | |||
44 | #endif /*PXA2XX_SPI_H_*/ | 46 | #endif /*PXA2XX_SPI_H_*/ |
diff --git a/include/asm-arm/arch-pxa/pxa3xx_nand.h b/include/asm-arm/arch-pxa/pxa3xx_nand.h index 81a8937486cb..eb4b190b6657 100644 --- a/include/asm-arm/arch-pxa/pxa3xx_nand.h +++ b/include/asm-arm/arch-pxa/pxa3xx_nand.h | |||
@@ -15,4 +15,6 @@ struct pxa3xx_nand_platform_data { | |||
15 | struct mtd_partition *parts; | 15 | struct mtd_partition *parts; |
16 | unsigned int nr_parts; | 16 | unsigned int nr_parts; |
17 | }; | 17 | }; |
18 | |||
19 | extern void pxa3xx_set_nand_info(struct pxa3xx_nand_platform_data *info); | ||
18 | #endif /* __ASM_ARCH_PXA3XX_NAND_H */ | 20 | #endif /* __ASM_ARCH_PXA3XX_NAND_H */ |
diff --git a/include/asm-arm/arch-pxa/pxafb.h b/include/asm-arm/arch-pxa/pxafb.h index bbd22396841a..daf018d0c604 100644 --- a/include/asm-arm/arch-pxa/pxafb.h +++ b/include/asm-arm/arch-pxa/pxafb.h | |||
@@ -71,7 +71,8 @@ struct pxafb_mode_info { | |||
71 | 71 | ||
72 | u_char bpp; | 72 | u_char bpp; |
73 | u_int cmap_greyscale:1, | 73 | u_int cmap_greyscale:1, |
74 | unused:31; | 74 | depth:8, |
75 | unused:23; | ||
75 | 76 | ||
76 | /* Parallel Mode Timing */ | 77 | /* Parallel Mode Timing */ |
77 | u_char hsync_len; | 78 | u_char hsync_len; |
diff --git a/include/asm-arm/arch-pxa/regs-lcd.h b/include/asm-arm/arch-pxa/regs-lcd.h index 3ba464c913a5..820a189684a9 100644 --- a/include/asm-arm/arch-pxa/regs-lcd.h +++ b/include/asm-arm/arch-pxa/regs-lcd.h | |||
@@ -27,6 +27,12 @@ | |||
27 | #define LCCR3_4BPP (2 << 24) | 27 | #define LCCR3_4BPP (2 << 24) |
28 | #define LCCR3_8BPP (3 << 24) | 28 | #define LCCR3_8BPP (3 << 24) |
29 | #define LCCR3_16BPP (4 << 24) | 29 | #define LCCR3_16BPP (4 << 24) |
30 | #define LCCR3_18BPP (5 << 24) | ||
31 | #define LCCR3_18BPP_P (6 << 24) | ||
32 | #define LCCR3_19BPP (7 << 24) | ||
33 | #define LCCR3_19BPP_P (1 << 29) | ||
34 | #define LCCR3_24BPP ((1 << 29) | (1 << 24)) | ||
35 | #define LCCR3_25BPP ((1 << 29) | (2 << 24)) | ||
30 | 36 | ||
31 | #define LCCR3_PDFOR_0 (0 << 30) | 37 | #define LCCR3_PDFOR_0 (0 << 30) |
32 | #define LCCR3_PDFOR_1 (1 << 30) | 38 | #define LCCR3_PDFOR_1 (1 << 30) |
diff --git a/include/asm-arm/arch-pxa/regs-ssp.h b/include/asm-arm/arch-pxa/regs-ssp.h index 0255328c3c18..3c04cde2cf1f 100644 --- a/include/asm-arm/arch-pxa/regs-ssp.h +++ b/include/asm-arm/arch-pxa/regs-ssp.h | |||
@@ -20,6 +20,10 @@ | |||
20 | #define SSTSS (0x38) /* SSP Timeslot Status */ | 20 | #define SSTSS (0x38) /* SSP Timeslot Status */ |
21 | #define SSACD (0x3C) /* SSP Audio Clock Divider */ | 21 | #define SSACD (0x3C) /* SSP Audio Clock Divider */ |
22 | 22 | ||
23 | #if defined(CONFIG_PXA3xx) | ||
24 | #define SSACDD (0x40) /* SSP Audio Clock Dither Divider */ | ||
25 | #endif | ||
26 | |||
23 | /* Common PXA2xx bits first */ | 27 | /* Common PXA2xx bits first */ |
24 | #define SSCR0_DSS (0x0000000f) /* Data Size Select (mask) */ | 28 | #define SSCR0_DSS (0x0000000f) /* Data Size Select (mask) */ |
25 | #define SSCR0_DataSize(x) ((x) - 1) /* Data Size Select [4..16] */ | 29 | #define SSCR0_DataSize(x) ((x) - 1) /* Data Size Select [4..16] */ |
@@ -29,10 +33,12 @@ | |||
29 | #define SSCR0_National (0x2 << 4) /* National Microwire */ | 33 | #define SSCR0_National (0x2 << 4) /* National Microwire */ |
30 | #define SSCR0_ECS (1 << 6) /* External clock select */ | 34 | #define SSCR0_ECS (1 << 6) /* External clock select */ |
31 | #define SSCR0_SSE (1 << 7) /* Synchronous Serial Port Enable */ | 35 | #define SSCR0_SSE (1 << 7) /* Synchronous Serial Port Enable */ |
36 | |||
32 | #if defined(CONFIG_PXA25x) | 37 | #if defined(CONFIG_PXA25x) |
33 | #define SSCR0_SCR (0x0000ff00) /* Serial Clock Rate (mask) */ | 38 | #define SSCR0_SCR (0x0000ff00) /* Serial Clock Rate (mask) */ |
34 | #define SSCR0_SerClkDiv(x) ((((x) - 2)/2) << 8) /* Divisor [2..512] */ | 39 | #define SSCR0_SerClkDiv(x) ((((x) - 2)/2) << 8) /* Divisor [2..512] */ |
35 | #elif defined(CONFIG_PXA27x) | 40 | |
41 | #elif defined(CONFIG_PXA27x) || defined(CONFIG_PXA3xx) | ||
36 | #define SSCR0_SCR (0x000fff00) /* Serial Clock Rate (mask) */ | 42 | #define SSCR0_SCR (0x000fff00) /* Serial Clock Rate (mask) */ |
37 | #define SSCR0_SerClkDiv(x) (((x) - 1) << 8) /* Divisor [1..4096] */ | 43 | #define SSCR0_SerClkDiv(x) (((x) - 1) << 8) /* Divisor [1..4096] */ |
38 | #define SSCR0_EDSS (1 << 20) /* Extended data size select */ | 44 | #define SSCR0_EDSS (1 << 20) /* Extended data size select */ |
@@ -45,6 +51,10 @@ | |||
45 | #define SSCR0_MOD (1 << 31) /* Mode (normal or network) */ | 51 | #define SSCR0_MOD (1 << 31) /* Mode (normal or network) */ |
46 | #endif | 52 | #endif |
47 | 53 | ||
54 | #if defined(CONFIG_PXA3xx) | ||
55 | #define SSCR0_FPCKE (1 << 29) /* FIFO packing enable */ | ||
56 | #endif | ||
57 | |||
48 | #define SSCR1_RIE (1 << 0) /* Receive FIFO Interrupt Enable */ | 58 | #define SSCR1_RIE (1 << 0) /* Receive FIFO Interrupt Enable */ |
49 | #define SSCR1_TIE (1 << 1) /* Transmit FIFO Interrupt Enable */ | 59 | #define SSCR1_TIE (1 << 1) /* Transmit FIFO Interrupt Enable */ |
50 | #define SSCR1_LBM (1 << 2) /* Loop-Back Mode */ | 60 | #define SSCR1_LBM (1 << 2) /* Loop-Back Mode */ |
@@ -109,5 +119,9 @@ | |||
109 | #define SSACD_SCDB (1 << 3) /* SSPSYSCLK Divider Bypass */ | 119 | #define SSACD_SCDB (1 << 3) /* SSPSYSCLK Divider Bypass */ |
110 | #define SSACD_ACPS(x) ((x) << 4) /* Audio clock PLL select */ | 120 | #define SSACD_ACPS(x) ((x) << 4) /* Audio clock PLL select */ |
111 | #define SSACD_ACDS(x) ((x) << 0) /* Audio clock divider select */ | 121 | #define SSACD_ACDS(x) ((x) << 0) /* Audio clock divider select */ |
122 | #if defined(CONFIG_PXA3xx) | ||
123 | #define SSACD_SCDX8 (1 << 7) /* SYSCLK division ratio select */ | ||
124 | #endif | ||
125 | |||
112 | 126 | ||
113 | #endif /* __ASM_ARCH_REGS_SSP_H */ | 127 | #endif /* __ASM_ARCH_REGS_SSP_H */ |
diff --git a/include/asm-arm/arch-pxa/system.h b/include/asm-arm/arch-pxa/system.h index 9aa6c2e939e8..6956fc5235f8 100644 --- a/include/asm-arm/arch-pxa/system.h +++ b/include/asm-arm/arch-pxa/system.h | |||
@@ -12,6 +12,7 @@ | |||
12 | 12 | ||
13 | #include <asm/proc-fns.h> | 13 | #include <asm/proc-fns.h> |
14 | #include "hardware.h" | 14 | #include "hardware.h" |
15 | #include "pxa2xx-regs.h" | ||
15 | #include "pxa-regs.h" | 16 | #include "pxa-regs.h" |
16 | 17 | ||
17 | static inline void arch_idle(void) | 18 | static inline void arch_idle(void) |
@@ -20,19 +21,4 @@ static inline void arch_idle(void) | |||
20 | } | 21 | } |
21 | 22 | ||
22 | 23 | ||
23 | static inline void arch_reset(char mode) | 24 | void arch_reset(char mode); |
24 | { | ||
25 | if (cpu_is_pxa2xx()) | ||
26 | RCSR = RCSR_HWR | RCSR_WDR | RCSR_SMR | RCSR_GPR; | ||
27 | |||
28 | if (mode == 's') { | ||
29 | /* Jump into ROM at address 0 */ | ||
30 | cpu_reset(0); | ||
31 | } else { | ||
32 | /* Initialize the watchdog and let it fire */ | ||
33 | OWER = OWER_WME; | ||
34 | OSSR = OSSR_M3; | ||
35 | OSMR3 = OSCR + 368640; /* ... in 100 ms */ | ||
36 | } | ||
37 | } | ||
38 | |||
diff --git a/include/asm-arm/arch-pxa/tosa.h b/include/asm-arm/arch-pxa/tosa.h index c5b6fde6907c..a72803f0461b 100644 --- a/include/asm-arm/arch-pxa/tosa.h +++ b/include/asm-arm/arch-pxa/tosa.h | |||
@@ -25,21 +25,18 @@ | |||
25 | */ | 25 | */ |
26 | #define TOSA_SCOOP_GPIO_BASE NR_BUILTIN_GPIO | 26 | #define TOSA_SCOOP_GPIO_BASE NR_BUILTIN_GPIO |
27 | #define TOSA_SCOOP_PXA_VCORE1 SCOOP_GPCR_PA11 | 27 | #define TOSA_SCOOP_PXA_VCORE1 SCOOP_GPCR_PA11 |
28 | #define TOSA_SCOOP_TC6393_REST_IN SCOOP_GPCR_PA12 | 28 | #define TOSA_GPIO_TC6393XB_REST_IN (TOSA_SCOOP_GPIO_BASE + 1) |
29 | #define TOSA_GPIO_IR_POWERDWN (TOSA_SCOOP_GPIO_BASE + 2) | 29 | #define TOSA_GPIO_IR_POWERDWN (TOSA_SCOOP_GPIO_BASE + 2) |
30 | #define TOSA_GPIO_SD_WP (TOSA_SCOOP_GPIO_BASE + 3) | 30 | #define TOSA_GPIO_SD_WP (TOSA_SCOOP_GPIO_BASE + 3) |
31 | #define TOSA_GPIO_PWR_ON (TOSA_SCOOP_GPIO_BASE + 4) | 31 | #define TOSA_GPIO_PWR_ON (TOSA_SCOOP_GPIO_BASE + 4) |
32 | #define TOSA_SCOOP_AUD_PWR_ON SCOOP_GPCR_PA16 | 32 | #define TOSA_SCOOP_AUD_PWR_ON SCOOP_GPCR_PA16 |
33 | #define TOSA_SCOOP_BT_RESET SCOOP_GPCR_PA17 | 33 | #define TOSA_GPIO_BT_RESET (TOSA_SCOOP_GPIO_BASE + 6) |
34 | #define TOSA_SCOOP_BT_PWR_EN SCOOP_GPCR_PA18 | 34 | #define TOSA_GPIO_BT_PWR_EN (TOSA_SCOOP_GPIO_BASE + 7) |
35 | #define TOSA_SCOOP_AC_IN_OL SCOOP_GPCR_PA19 | 35 | #define TOSA_SCOOP_AC_IN_OL SCOOP_GPCR_PA19 |
36 | 36 | ||
37 | /* GPIO Direction 1 : output mode / 0:input mode */ | 37 | /* GPIO Direction 1 : output mode / 0:input mode */ |
38 | #define TOSA_SCOOP_IO_DIR ( TOSA_SCOOP_PXA_VCORE1 | TOSA_SCOOP_TC6393_REST_IN | \ | 38 | #define TOSA_SCOOP_IO_DIR (TOSA_SCOOP_PXA_VCORE1 | \ |
39 | TOSA_SCOOP_AUD_PWR_ON |\ | 39 | TOSA_SCOOP_AUD_PWR_ON) |
40 | TOSA_SCOOP_BT_RESET | TOSA_SCOOP_BT_PWR_EN ) | ||
41 | /* GPIO out put level when init 1: Hi */ | ||
42 | #define TOSA_SCOOP_IO_OUT ( TOSA_SCOOP_TC6393_REST_IN ) | ||
43 | 40 | ||
44 | /* | 41 | /* |
45 | * SCOOP2 jacket GPIOs | 42 | * SCOOP2 jacket GPIOs |
@@ -49,16 +46,34 @@ | |||
49 | #define TOSA_GPIO_NOTE_LED (TOSA_SCOOP_JC_GPIO_BASE + 1) | 46 | #define TOSA_GPIO_NOTE_LED (TOSA_SCOOP_JC_GPIO_BASE + 1) |
50 | #define TOSA_GPIO_CHRG_ERR_LED (TOSA_SCOOP_JC_GPIO_BASE + 2) | 47 | #define TOSA_GPIO_CHRG_ERR_LED (TOSA_SCOOP_JC_GPIO_BASE + 2) |
51 | #define TOSA_GPIO_USB_PULLUP (TOSA_SCOOP_JC_GPIO_BASE + 3) | 48 | #define TOSA_GPIO_USB_PULLUP (TOSA_SCOOP_JC_GPIO_BASE + 3) |
52 | #define TOSA_SCOOP_JC_TC6393_SUSPEND SCOOP_GPCR_PA15 | 49 | #define TOSA_GPIO_TC6393XB_SUSPEND (TOSA_SCOOP_JC_GPIO_BASE + 4) |
53 | #define TOSA_SCOOP_JC_TC3693_L3V_ON SCOOP_GPCR_PA16 | 50 | #define TOSA_GPIO_TC6393XB_L3V_ON (TOSA_SCOOP_JC_GPIO_BASE + 5) |
54 | #define TOSA_SCOOP_JC_WLAN_DETECT SCOOP_GPCR_PA17 | 51 | #define TOSA_SCOOP_JC_WLAN_DETECT SCOOP_GPCR_PA17 |
55 | #define TOSA_GPIO_WLAN_LED (TOSA_SCOOP_JC_GPIO_BASE + 7) | 52 | #define TOSA_GPIO_WLAN_LED (TOSA_SCOOP_JC_GPIO_BASE + 7) |
56 | #define TOSA_SCOOP_JC_CARD_LIMIT_SEL SCOOP_GPCR_PA19 | 53 | #define TOSA_SCOOP_JC_CARD_LIMIT_SEL SCOOP_GPCR_PA19 |
57 | 54 | ||
58 | /* GPIO Direction 1 : output mode / 0:input mode */ | 55 | /* GPIO Direction 1 : output mode / 0:input mode */ |
59 | #define TOSA_SCOOP_JC_IO_DIR ( \ | 56 | #define TOSA_SCOOP_JC_IO_DIR (TOSA_SCOOP_JC_CARD_LIMIT_SEL) |
60 | TOSA_SCOOP_JC_TC6393_SUSPEND | TOSA_SCOOP_JC_TC3693_L3V_ON | \ | 57 | |
61 | TOSA_SCOOP_JC_CARD_LIMIT_SEL ) | 58 | /* |
59 | * TC6393XB GPIOs | ||
60 | */ | ||
61 | #define TOSA_TC6393XB_GPIO_BASE (NR_BUILTIN_GPIO + 2 * 12) | ||
62 | #define TOSA_TC6393XB_GPIO(i) (TOSA_TC6393XB_GPIO_BASE + (i)) | ||
63 | #define TOSA_TC6393XB_GPIO_BIT(gpio) (1 << (gpio - TOSA_TC6393XB_GPIO_BASE)) | ||
64 | |||
65 | #define TOSA_GPIO_TG_ON (TOSA_TC6393XB_GPIO_BASE + 0) | ||
66 | #define TOSA_GPIO_L_MUTE (TOSA_TC6393XB_GPIO_BASE + 1) | ||
67 | #define TOSA_GPIO_BL_C20MA (TOSA_TC6393XB_GPIO_BASE + 3) | ||
68 | #define TOSA_GPIO_CARD_VCC_ON (TOSA_TC6393XB_GPIO_BASE + 4) | ||
69 | #define TOSA_GPIO_CHARGE_OFF (TOSA_TC6393XB_GPIO_BASE + 6) | ||
70 | #define TOSA_GPIO_CHARGE_OFF_JC (TOSA_TC6393XB_GPIO_BASE + 7) | ||
71 | #define TOSA_GPIO_BAT0_V_ON (TOSA_TC6393XB_GPIO_BASE + 9) | ||
72 | #define TOSA_GPIO_BAT1_V_ON (TOSA_TC6393XB_GPIO_BASE + 10) | ||
73 | #define TOSA_GPIO_BU_CHRG_ON (TOSA_TC6393XB_GPIO_BASE + 11) | ||
74 | #define TOSA_GPIO_BAT_SW_ON (TOSA_TC6393XB_GPIO_BASE + 12) | ||
75 | #define TOSA_GPIO_BAT0_TH_ON (TOSA_TC6393XB_GPIO_BASE + 14) | ||
76 | #define TOSA_GPIO_BAT1_TH_ON (TOSA_TC6393XB_GPIO_BASE + 15) | ||
62 | 77 | ||
63 | /* | 78 | /* |
64 | * Timing Generator | 79 | * Timing Generator |
@@ -84,13 +99,13 @@ | |||
84 | #define TOSA_GPIO_JACKET_DETECT (7) | 99 | #define TOSA_GPIO_JACKET_DETECT (7) |
85 | #define TOSA_GPIO_nSD_DETECT (9) | 100 | #define TOSA_GPIO_nSD_DETECT (9) |
86 | #define TOSA_GPIO_nSD_INT (10) | 101 | #define TOSA_GPIO_nSD_INT (10) |
87 | #define TOSA_GPIO_TC6393_CLK (11) | 102 | #define TOSA_GPIO_TC6393XB_CLK (11) |
88 | #define TOSA_GPIO_BAT1_CRG (12) | 103 | #define TOSA_GPIO_BAT1_CRG (12) |
89 | #define TOSA_GPIO_CF_CD (13) | 104 | #define TOSA_GPIO_CF_CD (13) |
90 | #define TOSA_GPIO_BAT0_CRG (14) | 105 | #define TOSA_GPIO_BAT0_CRG (14) |
91 | #define TOSA_GPIO_TC6393_INT (15) | 106 | #define TOSA_GPIO_TC6393XB_INT (15) |
92 | #define TOSA_GPIO_BAT0_LOW (17) | 107 | #define TOSA_GPIO_BAT0_LOW (17) |
93 | #define TOSA_GPIO_TC6393_RDY (18) | 108 | #define TOSA_GPIO_TC6393XB_RDY (18) |
94 | #define TOSA_GPIO_ON_RESET (19) | 109 | #define TOSA_GPIO_ON_RESET (19) |
95 | #define TOSA_GPIO_EAR_IN (20) | 110 | #define TOSA_GPIO_EAR_IN (20) |
96 | #define TOSA_GPIO_CF_IRQ (21) /* CF slot0 Ready */ | 111 | #define TOSA_GPIO_CF_IRQ (21) /* CF slot0 Ready */ |
@@ -99,6 +114,7 @@ | |||
99 | #define TOSA_GPIO_TP_INT (32) /* Touch Panel pen down interrupt */ | 114 | #define TOSA_GPIO_TP_INT (32) /* Touch Panel pen down interrupt */ |
100 | #define TOSA_GPIO_JC_CF_IRQ (36) /* CF slot1 Ready */ | 115 | #define TOSA_GPIO_JC_CF_IRQ (36) /* CF slot1 Ready */ |
101 | #define TOSA_GPIO_BAT_LOCKED (38) /* Battery locked */ | 116 | #define TOSA_GPIO_BAT_LOCKED (38) /* Battery locked */ |
117 | #define TOSA_GPIO_IRDA_TX (47) | ||
102 | #define TOSA_GPIO_TG_SPI_SCLK (81) | 118 | #define TOSA_GPIO_TG_SPI_SCLK (81) |
103 | #define TOSA_GPIO_TG_SPI_CS (82) | 119 | #define TOSA_GPIO_TG_SPI_CS (82) |
104 | #define TOSA_GPIO_TG_SPI_MOSI (83) | 120 | #define TOSA_GPIO_TG_SPI_MOSI (83) |
@@ -137,7 +153,7 @@ | |||
137 | #define TOSA_IRQ_GPIO_BAT1_CRG IRQ_GPIO(TOSA_GPIO_BAT1_CRG) | 153 | #define TOSA_IRQ_GPIO_BAT1_CRG IRQ_GPIO(TOSA_GPIO_BAT1_CRG) |
138 | #define TOSA_IRQ_GPIO_CF_CD IRQ_GPIO(TOSA_GPIO_CF_CD) | 154 | #define TOSA_IRQ_GPIO_CF_CD IRQ_GPIO(TOSA_GPIO_CF_CD) |
139 | #define TOSA_IRQ_GPIO_BAT0_CRG IRQ_GPIO(TOSA_GPIO_BAT0_CRG) | 155 | #define TOSA_IRQ_GPIO_BAT0_CRG IRQ_GPIO(TOSA_GPIO_BAT0_CRG) |
140 | #define TOSA_IRQ_GPIO_TC6393_INT IRQ_GPIO(TOSA_GPIO_TC6393_INT) | 156 | #define TOSA_IRQ_GPIO_TC6393XB_INT IRQ_GPIO(TOSA_GPIO_TC6393XB_INT) |
141 | #define TOSA_IRQ_GPIO_BAT0_LOW IRQ_GPIO(TOSA_GPIO_BAT0_LOW) | 157 | #define TOSA_IRQ_GPIO_BAT0_LOW IRQ_GPIO(TOSA_GPIO_BAT0_LOW) |
142 | #define TOSA_IRQ_GPIO_EAR_IN IRQ_GPIO(TOSA_GPIO_EAR_IN) | 158 | #define TOSA_IRQ_GPIO_EAR_IN IRQ_GPIO(TOSA_GPIO_EAR_IN) |
143 | #define TOSA_IRQ_GPIO_CF_IRQ IRQ_GPIO(TOSA_GPIO_CF_IRQ) | 159 | #define TOSA_IRQ_GPIO_CF_IRQ IRQ_GPIO(TOSA_GPIO_CF_IRQ) |
diff --git a/include/asm-arm/arch-pxa/tosa_bt.h b/include/asm-arm/arch-pxa/tosa_bt.h new file mode 100644 index 000000000000..efc3c3d3b75d --- /dev/null +++ b/include/asm-arm/arch-pxa/tosa_bt.h | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | * Tosa bluetooth built-in chip control. | ||
3 | * | ||
4 | * Later it may be shared with some other platforms. | ||
5 | * | ||
6 | * Copyright (c) 2008 Dmitry Baryshkov | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * published by the Free Software Foundation. | ||
11 | * | ||
12 | */ | ||
13 | #ifndef TOSA_BT_H | ||
14 | #define TOSA_BT_H | ||
15 | |||
16 | struct tosa_bt_data { | ||
17 | int gpio_pwr; | ||
18 | int gpio_reset; | ||
19 | }; | ||
20 | |||
21 | #endif | ||
22 | |||
diff --git a/include/asm-arm/arch-pxa/uncompress.h b/include/asm-arm/arch-pxa/uncompress.h index dadf4c20b622..f4551269aaf2 100644 --- a/include/asm-arm/arch-pxa/uncompress.h +++ b/include/asm-arm/arch-pxa/uncompress.h | |||
@@ -11,11 +11,11 @@ | |||
11 | 11 | ||
12 | #include <linux/serial_reg.h> | 12 | #include <linux/serial_reg.h> |
13 | #include <asm/arch/pxa-regs.h> | 13 | #include <asm/arch/pxa-regs.h> |
14 | #include <asm/mach-types.h> | ||
14 | 15 | ||
15 | #define __REG(x) ((volatile unsigned long *)x) | 16 | #define __REG(x) ((volatile unsigned long *)x) |
16 | |||
17 | #define UART FFUART | ||
18 | 17 | ||
18 | static volatile unsigned long *UART = FFUART; | ||
19 | 19 | ||
20 | static inline void putc(char c) | 20 | static inline void putc(char c) |
21 | { | 21 | { |
@@ -33,8 +33,13 @@ static inline void flush(void) | |||
33 | { | 33 | { |
34 | } | 34 | } |
35 | 35 | ||
36 | static inline void arch_decomp_setup(void) | ||
37 | { | ||
38 | if (machine_is_littleton()) | ||
39 | UART = STUART; | ||
40 | } | ||
41 | |||
36 | /* | 42 | /* |
37 | * nothing to do | 43 | * nothing to do |
38 | */ | 44 | */ |
39 | #define arch_decomp_setup() | ||
40 | #define arch_decomp_wdog() | 45 | #define arch_decomp_wdog() |
diff --git a/include/asm-arm/arch-pxa/zylonite.h b/include/asm-arm/arch-pxa/zylonite.h index 4881b80f0f90..0d35ca04731e 100644 --- a/include/asm-arm/arch-pxa/zylonite.h +++ b/include/asm-arm/arch-pxa/zylonite.h | |||
@@ -15,8 +15,9 @@ struct platform_mmc_slot { | |||
15 | 15 | ||
16 | extern struct platform_mmc_slot zylonite_mmc_slot[]; | 16 | extern struct platform_mmc_slot zylonite_mmc_slot[]; |
17 | 17 | ||
18 | extern int gpio_backlight; | ||
19 | extern int gpio_eth_irq; | 18 | extern int gpio_eth_irq; |
19 | extern int gpio_debug_led1; | ||
20 | extern int gpio_debug_led2; | ||
20 | 21 | ||
21 | extern int wm9713_irq; | 22 | extern int wm9713_irq; |
22 | 23 | ||
diff --git a/include/asm-arm/mach/udc_pxa2xx.h b/include/asm-arm/mach/udc_pxa2xx.h index f9f3606986c2..9e5ed7c0f27f 100644 --- a/include/asm-arm/mach/udc_pxa2xx.h +++ b/include/asm-arm/mach/udc_pxa2xx.h | |||
@@ -23,6 +23,7 @@ struct pxa2xx_udc_mach_info { | |||
23 | */ | 23 | */ |
24 | bool gpio_vbus_inverted; | 24 | bool gpio_vbus_inverted; |
25 | u16 gpio_vbus; /* high == vbus present */ | 25 | u16 gpio_vbus; /* high == vbus present */ |
26 | bool gpio_pullup_inverted; | ||
26 | u16 gpio_pullup; /* high == pullup activated */ | 27 | u16 gpio_pullup; /* high == pullup activated */ |
27 | }; | 28 | }; |
28 | 29 | ||
diff --git a/include/linux/mfd/core.h b/include/linux/mfd/core.h new file mode 100644 index 000000000000..bb3dd0545928 --- /dev/null +++ b/include/linux/mfd/core.h | |||
@@ -0,0 +1,55 @@ | |||
1 | #ifndef MFD_CORE_H | ||
2 | #define MFD_CORE_H | ||
3 | /* | ||
4 | * drivers/mfd/mfd-core.h | ||
5 | * | ||
6 | * core MFD support | ||
7 | * Copyright (c) 2006 Ian Molton | ||
8 | * Copyright (c) 2007 Dmitry Baryshkov | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License version 2 as | ||
12 | * published by the Free Software Foundation. | ||
13 | * | ||
14 | */ | ||
15 | |||
16 | #include <linux/platform_device.h> | ||
17 | |||
18 | /* | ||
19 | * This struct describes the MFD part ("cell"). | ||
20 | * After registration the copy of this structure will become the platform data | ||
21 | * of the resulting platform_device | ||
22 | */ | ||
23 | struct mfd_cell { | ||
24 | const char *name; | ||
25 | |||
26 | int (*enable)(struct platform_device *dev); | ||
27 | int (*disable)(struct platform_device *dev); | ||
28 | int (*suspend)(struct platform_device *dev); | ||
29 | int (*resume)(struct platform_device *dev); | ||
30 | |||
31 | void *driver_data; /* driver-specific data */ | ||
32 | |||
33 | /* | ||
34 | * This resources can be specified relatievly to the parent device. | ||
35 | * For accessing device you should use resources from device | ||
36 | */ | ||
37 | int num_resources; | ||
38 | const struct resource *resources; | ||
39 | }; | ||
40 | |||
41 | static inline struct mfd_cell * | ||
42 | mfd_get_cell(struct platform_device *pdev) | ||
43 | { | ||
44 | return (struct mfd_cell *)pdev->dev.platform_data; | ||
45 | } | ||
46 | |||
47 | extern int mfd_add_devices( | ||
48 | struct platform_device *parent, | ||
49 | const struct mfd_cell *cells, int n_devs, | ||
50 | struct resource *mem_base, | ||
51 | int irq_base); | ||
52 | |||
53 | extern void mfd_remove_devices(struct platform_device *parent); | ||
54 | |||
55 | #endif | ||
diff --git a/include/linux/mfd/tc6393xb.h b/include/linux/mfd/tc6393xb.h new file mode 100644 index 000000000000..7cc824a58f7c --- /dev/null +++ b/include/linux/mfd/tc6393xb.h | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | * Toshiba TC6393XB SoC support | ||
3 | * | ||
4 | * Copyright(c) 2005-2006 Chris Humbert | ||
5 | * Copyright(c) 2005 Dirk Opfer | ||
6 | * Copyright(c) 2005 Ian Molton <spyro@f2s.com> | ||
7 | * Copyright(c) 2007 Dmitry Baryshkov | ||
8 | * | ||
9 | * Based on code written by Sharp/Lineo for 2.4 kernels | ||
10 | * Based on locomo.c | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or modify | ||
13 | * it under the terms of the GNU General Public License version 2 as | ||
14 | * published by the Free Software Foundation. | ||
15 | */ | ||
16 | |||
17 | #ifndef TC6393XB_H | ||
18 | #define TC6393XB_H | ||
19 | |||
20 | /* Also one should provide the CK3P6MI clock */ | ||
21 | struct tc6393xb_platform_data { | ||
22 | u16 scr_pll2cr; /* PLL2 Control */ | ||
23 | u16 scr_gper; /* GP Enable */ | ||
24 | u32 scr_gpo_doecr; /* GPO Data OE Control */ | ||
25 | u32 scr_gpo_dsr; /* GPO Data Set */ | ||
26 | |||
27 | int (*enable)(struct platform_device *dev); | ||
28 | int (*disable)(struct platform_device *dev); | ||
29 | int (*suspend)(struct platform_device *dev); | ||
30 | int (*resume)(struct platform_device *dev); | ||
31 | |||
32 | int irq_base; /* a base for cascaded irq */ | ||
33 | int gpio_base; | ||
34 | |||
35 | struct tmio_nand_data *nand_data; | ||
36 | }; | ||
37 | |||
38 | /* | ||
39 | * Relative to irq_base | ||
40 | */ | ||
41 | #define IRQ_TC6393_NAND 0 | ||
42 | #define IRQ_TC6393_MMC 1 | ||
43 | #define IRQ_TC6393_OHCI 2 | ||
44 | #define IRQ_TC6393_SERIAL 3 | ||
45 | #define IRQ_TC6393_FB 4 | ||
46 | |||
47 | #define TC6393XB_NR_IRQS 8 | ||
48 | |||
49 | #endif | ||
diff --git a/include/linux/mfd/tmio.h b/include/linux/mfd/tmio.h new file mode 100644 index 000000000000..9438d8c9ac1c --- /dev/null +++ b/include/linux/mfd/tmio.h | |||
@@ -0,0 +1,17 @@ | |||
1 | #ifndef MFD_TMIO_H | ||
2 | #define MFD_TMIO_H | ||
3 | |||
4 | /* | ||
5 | * data for the NAND controller | ||
6 | */ | ||
7 | struct tmio_nand_data { | ||
8 | struct nand_bbt_descr *badblock_pattern; | ||
9 | struct mtd_partition *partition; | ||
10 | unsigned int num_partitions; | ||
11 | }; | ||
12 | |||
13 | #define TMIO_NAND_CONFIG "tmio-nand-config" | ||
14 | #define TMIO_NAND_CONTROL "tmio-nand-control" | ||
15 | #define TMIO_NAND_IRQ "tmio-nand" | ||
16 | |||
17 | #endif | ||
diff --git a/include/linux/pwm.h b/include/linux/pwm.h new file mode 100644 index 000000000000..3945f803d514 --- /dev/null +++ b/include/linux/pwm.h | |||
@@ -0,0 +1,31 @@ | |||
1 | #ifndef __LINUX_PWM_H | ||
2 | #define __LINUX_PWM_H | ||
3 | |||
4 | struct pwm_device; | ||
5 | |||
6 | /* | ||
7 | * pwm_request - request a PWM device | ||
8 | */ | ||
9 | struct pwm_device *pwm_request(int pwm_id, const char *label); | ||
10 | |||
11 | /* | ||
12 | * pwm_free - free a PWM device | ||
13 | */ | ||
14 | void pwm_free(struct pwm_device *pwm); | ||
15 | |||
16 | /* | ||
17 | * pwm_config - change a PWM device configuration | ||
18 | */ | ||
19 | int pwm_config(struct pwm_device *pwm, int duty_ns, int period_ns); | ||
20 | |||
21 | /* | ||
22 | * pwm_enable - start a PWM output toggling | ||
23 | */ | ||
24 | int pwm_enable(struct pwm_device *pwm); | ||
25 | |||
26 | /* | ||
27 | * pwm_disable - stop a PWM output toggling | ||
28 | */ | ||
29 | void pwm_disable(struct pwm_device *pwm); | ||
30 | |||
31 | #endif /* __ASM_ARCH_PWM_H */ | ||
diff --git a/include/linux/pwm_backlight.h b/include/linux/pwm_backlight.h new file mode 100644 index 000000000000..7a9754c96775 --- /dev/null +++ b/include/linux/pwm_backlight.h | |||
@@ -0,0 +1,17 @@ | |||
1 | /* | ||
2 | * Generic PWM backlight driver data - see drivers/video/backlight/pwm_bl.c | ||
3 | */ | ||
4 | #ifndef __LINUX_PWM_BACKLIGHT_H | ||
5 | #define __LINUX_PWM_BACKLIGHT_H | ||
6 | |||
7 | struct platform_pwm_backlight_data { | ||
8 | int pwm_id; | ||
9 | unsigned int max_brightness; | ||
10 | unsigned int dft_brightness; | ||
11 | unsigned int pwm_period_ns; | ||
12 | int (*init)(struct device *dev); | ||
13 | int (*notify)(int brightness); | ||
14 | void (*exit)(struct device *dev); | ||
15 | }; | ||
16 | |||
17 | #endif | ||
diff --git a/include/linux/smc91x.h b/include/linux/smc91x.h index 8e0556b8781c..3827b922ba1f 100644 --- a/include/linux/smc91x.h +++ b/include/linux/smc91x.h | |||
@@ -5,9 +5,19 @@ | |||
5 | #define SMC91X_USE_16BIT (1 << 1) | 5 | #define SMC91X_USE_16BIT (1 << 1) |
6 | #define SMC91X_USE_32BIT (1 << 2) | 6 | #define SMC91X_USE_32BIT (1 << 2) |
7 | 7 | ||
8 | #define SMC91X_NOWAIT (1 << 3) | ||
9 | |||
10 | /* two bits for IO_SHIFT, let's hope later designs will keep this sane */ | ||
11 | #define SMC91X_IO_SHIFT_0 (0 << 4) | ||
12 | #define SMC91X_IO_SHIFT_1 (1 << 4) | ||
13 | #define SMC91X_IO_SHIFT_2 (2 << 4) | ||
14 | #define SMC91X_IO_SHIFT_3 (3 << 4) | ||
15 | #define SMC91X_IO_SHIFT(x) (((x) >> 4) & 0x3) | ||
16 | |||
17 | #define SMC91X_USE_DMA (1 << 6) | ||
18 | |||
8 | struct smc91x_platdata { | 19 | struct smc91x_platdata { |
9 | unsigned long flags; | 20 | unsigned long flags; |
10 | unsigned long irq_flags; /* IRQF_... */ | ||
11 | }; | 21 | }; |
12 | 22 | ||
13 | #endif /* __SMC91X_H__ */ | 23 | #endif /* __SMC91X_H__ */ |
diff --git a/sound/soc/pxa/Kconfig b/sound/soc/pxa/Kconfig index 484f883459e0..329b33f37ef3 100644 --- a/sound/soc/pxa/Kconfig +++ b/sound/soc/pxa/Kconfig | |||
@@ -48,6 +48,7 @@ config SND_PXA2XX_SOC_POODLE | |||
48 | config SND_PXA2XX_SOC_TOSA | 48 | config SND_PXA2XX_SOC_TOSA |
49 | tristate "SoC AC97 Audio support for Tosa" | 49 | tristate "SoC AC97 Audio support for Tosa" |
50 | depends on SND_PXA2XX_SOC && MACH_TOSA | 50 | depends on SND_PXA2XX_SOC && MACH_TOSA |
51 | depends on MFD_TC6393XB | ||
51 | select SND_PXA2XX_SOC_AC97 | 52 | select SND_PXA2XX_SOC_AC97 |
52 | select SND_SOC_WM9712 | 53 | select SND_SOC_WM9712 |
53 | help | 54 | help |
diff --git a/sound/soc/pxa/pxa2xx-i2s.c b/sound/soc/pxa/pxa2xx-i2s.c index 425071030970..e130346732ba 100644 --- a/sound/soc/pxa/pxa2xx-i2s.c +++ b/sound/soc/pxa/pxa2xx-i2s.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/module.h> | 18 | #include <linux/module.h> |
19 | #include <linux/device.h> | 19 | #include <linux/device.h> |
20 | #include <linux/delay.h> | 20 | #include <linux/delay.h> |
21 | #include <linux/clk.h> | ||
21 | #include <sound/core.h> | 22 | #include <sound/core.h> |
22 | #include <sound/pcm.h> | 23 | #include <sound/pcm.h> |
23 | #include <sound/initval.h> | 24 | #include <sound/initval.h> |
@@ -40,6 +41,7 @@ struct pxa_i2s_port { | |||
40 | u32 fmt; | 41 | u32 fmt; |
41 | }; | 42 | }; |
42 | static struct pxa_i2s_port pxa_i2s; | 43 | static struct pxa_i2s_port pxa_i2s; |
44 | static struct clk *clk_i2s; | ||
43 | 45 | ||
44 | static struct pxa2xx_pcm_dma_params pxa2xx_i2s_pcm_stereo_out = { | 46 | static struct pxa2xx_pcm_dma_params pxa2xx_i2s_pcm_stereo_out = { |
45 | .name = "I2S PCM Stereo out", | 47 | .name = "I2S PCM Stereo out", |
@@ -82,6 +84,10 @@ static int pxa2xx_i2s_startup(struct snd_pcm_substream *substream) | |||
82 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | 84 | struct snd_soc_pcm_runtime *rtd = substream->private_data; |
83 | struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; | 85 | struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; |
84 | 86 | ||
87 | clk_i2s = clk_get(NULL, "I2SCLK"); | ||
88 | if (IS_ERR(clk_i2s)) | ||
89 | return PTR_ERR(clk_i2s); | ||
90 | |||
85 | if (!cpu_dai->active) { | 91 | if (!cpu_dai->active) { |
86 | SACR0 |= SACR0_RST; | 92 | SACR0 |= SACR0_RST; |
87 | SACR0 = 0; | 93 | SACR0 = 0; |
@@ -149,7 +155,7 @@ static int pxa2xx_i2s_hw_params(struct snd_pcm_substream *substream, | |||
149 | pxa_gpio_mode(gpio_bus[pxa_i2s.master].tx); | 155 | pxa_gpio_mode(gpio_bus[pxa_i2s.master].tx); |
150 | pxa_gpio_mode(gpio_bus[pxa_i2s.master].frm); | 156 | pxa_gpio_mode(gpio_bus[pxa_i2s.master].frm); |
151 | pxa_gpio_mode(gpio_bus[pxa_i2s.master].clk); | 157 | pxa_gpio_mode(gpio_bus[pxa_i2s.master].clk); |
152 | pxa_set_cken(CKEN_I2S, 1); | 158 | clk_enable(clk_i2s); |
153 | pxa_i2s_wait(); | 159 | pxa_i2s_wait(); |
154 | 160 | ||
155 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) | 161 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) |
@@ -234,8 +240,10 @@ static void pxa2xx_i2s_shutdown(struct snd_pcm_substream *substream) | |||
234 | if (SACR1 & (SACR1_DREC | SACR1_DRPL)) { | 240 | if (SACR1 & (SACR1_DREC | SACR1_DRPL)) { |
235 | SACR0 &= ~SACR0_ENB; | 241 | SACR0 &= ~SACR0_ENB; |
236 | pxa_i2s_wait(); | 242 | pxa_i2s_wait(); |
237 | pxa_set_cken(CKEN_I2S, 0); | 243 | clk_disable(clk_i2s); |
238 | } | 244 | } |
245 | |||
246 | clk_put(clk_i2s); | ||
239 | } | 247 | } |
240 | 248 | ||
241 | #ifdef CONFIG_PM | 249 | #ifdef CONFIG_PM |
diff --git a/sound/soc/pxa/tosa.c b/sound/soc/pxa/tosa.c index 7346d7e5d066..c1462c4d139b 100644 --- a/sound/soc/pxa/tosa.c +++ b/sound/soc/pxa/tosa.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/module.h> | 24 | #include <linux/module.h> |
25 | #include <linux/moduleparam.h> | 25 | #include <linux/moduleparam.h> |
26 | #include <linux/device.h> | 26 | #include <linux/device.h> |
27 | #include <linux/gpio.h> | ||
27 | 28 | ||
28 | #include <sound/core.h> | 29 | #include <sound/core.h> |
29 | #include <sound/pcm.h> | 30 | #include <sound/pcm.h> |
@@ -31,7 +32,7 @@ | |||
31 | #include <sound/soc-dapm.h> | 32 | #include <sound/soc-dapm.h> |
32 | 33 | ||
33 | #include <asm/mach-types.h> | 34 | #include <asm/mach-types.h> |
34 | #include <asm/hardware/tmio.h> | 35 | #include <asm/arch/tosa.h> |
35 | #include <asm/arch/pxa-regs.h> | 36 | #include <asm/arch/pxa-regs.h> |
36 | #include <asm/arch/hardware.h> | 37 | #include <asm/arch/hardware.h> |
37 | #include <asm/arch/audio.h> | 38 | #include <asm/arch/audio.h> |
@@ -138,10 +139,7 @@ static int tosa_set_spk(struct snd_kcontrol *kcontrol, | |||
138 | static int tosa_hp_event(struct snd_soc_dapm_widget *w, | 139 | static int tosa_hp_event(struct snd_soc_dapm_widget *w, |
139 | struct snd_kcontrol *k, int event) | 140 | struct snd_kcontrol *k, int event) |
140 | { | 141 | { |
141 | if (SND_SOC_DAPM_EVENT_ON(event)) | 142 | gpio_set_value(TOSA_GPIO_L_MUTE, SND_SOC_DAPM_EVENT_ON(event) ? 1 :0); |
142 | set_tc6393_gpio(&tc6393_device.dev,TOSA_TC6393_L_MUTE); | ||
143 | else | ||
144 | reset_tc6393_gpio(&tc6393_device.dev,TOSA_TC6393_L_MUTE); | ||
145 | return 0; | 143 | return 0; |
146 | } | 144 | } |
147 | 145 | ||
@@ -261,16 +259,28 @@ static int __init tosa_init(void) | |||
261 | if (!machine_is_tosa()) | 259 | if (!machine_is_tosa()) |
262 | return -ENODEV; | 260 | return -ENODEV; |
263 | 261 | ||
262 | ret = gpio_request(TOSA_GPIO_L_MUTE, "Headphone Jack"); | ||
263 | if (ret) | ||
264 | return ret; | ||
265 | gpio_direction_output(TOSA_GPIO_L_MUTE, 0); | ||
266 | |||
264 | tosa_snd_device = platform_device_alloc("soc-audio", -1); | 267 | tosa_snd_device = platform_device_alloc("soc-audio", -1); |
265 | if (!tosa_snd_device) | 268 | if (!tosa_snd_device) { |
266 | return -ENOMEM; | 269 | ret = -ENOMEM; |
270 | goto err_alloc; | ||
271 | } | ||
267 | 272 | ||
268 | platform_set_drvdata(tosa_snd_device, &tosa_snd_devdata); | 273 | platform_set_drvdata(tosa_snd_device, &tosa_snd_devdata); |
269 | tosa_snd_devdata.dev = &tosa_snd_device->dev; | 274 | tosa_snd_devdata.dev = &tosa_snd_device->dev; |
270 | ret = platform_device_add(tosa_snd_device); | 275 | ret = platform_device_add(tosa_snd_device); |
271 | 276 | ||
272 | if (ret) | 277 | if (!ret) |
273 | platform_device_put(tosa_snd_device); | 278 | return 0; |
279 | |||
280 | platform_device_put(tosa_snd_device); | ||
281 | |||
282 | err_alloc: | ||
283 | gpio_free(TOSA_GPIO_L_MUTE); | ||
274 | 284 | ||
275 | return ret; | 285 | return ret; |
276 | } | 286 | } |
@@ -278,6 +288,7 @@ static int __init tosa_init(void) | |||
278 | static void __exit tosa_exit(void) | 288 | static void __exit tosa_exit(void) |
279 | { | 289 | { |
280 | platform_device_unregister(tosa_snd_device); | 290 | platform_device_unregister(tosa_snd_device); |
291 | gpio_free(TOSA_GPIO_L_MUTE); | ||
281 | } | 292 | } |
282 | 293 | ||
283 | module_init(tosa_init); | 294 | module_init(tosa_init); |