diff options
-rw-r--r-- | arch/arm/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/configs/msm_defconfig | 895 | ||||
-rw-r--r-- | arch/arm/mach-msm/Kconfig | 18 | ||||
-rw-r--r-- | arch/arm/mach-msm/Makefile | 5 | ||||
-rw-r--r-- | arch/arm/mach-msm/board-halibut.c | 114 | ||||
-rw-r--r-- | arch/arm/mach-msm/common.c | 116 |
6 files changed, 1150 insertions, 0 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 89c3811132c2..ec294995e63c 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -488,6 +488,8 @@ source "arch/arm/mach-davinci/Kconfig" | |||
488 | 488 | ||
489 | source "arch/arm/mach-ks8695/Kconfig" | 489 | source "arch/arm/mach-ks8695/Kconfig" |
490 | 490 | ||
491 | source "arch/arm/mach-msm/Kconfig" | ||
492 | |||
491 | # Definitions to make life easier | 493 | # Definitions to make life easier |
492 | config ARCH_ACORN | 494 | config ARCH_ACORN |
493 | bool | 495 | bool |
diff --git a/arch/arm/configs/msm_defconfig b/arch/arm/configs/msm_defconfig new file mode 100644 index 000000000000..ae4c5e62086a --- /dev/null +++ b/arch/arm/configs/msm_defconfig | |||
@@ -0,0 +1,895 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.23 | ||
4 | # Wed Nov 7 01:36:45 2007 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | ||
8 | # CONFIG_GENERIC_GPIO is not set | ||
9 | CONFIG_GENERIC_TIME=y | ||
10 | CONFIG_GENERIC_CLOCKEVENTS=y | ||
11 | CONFIG_MMU=y | ||
12 | # CONFIG_NO_IOPORT is not set | ||
13 | CONFIG_GENERIC_HARDIRQS=y | ||
14 | CONFIG_GENERIC_GPIOS=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_ZONE_DMA=y | ||
26 | CONFIG_VECTORS_BASE=0xffff0000 | ||
27 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
28 | |||
29 | # | ||
30 | # General setup | ||
31 | # | ||
32 | CONFIG_EXPERIMENTAL=y | ||
33 | CONFIG_BROKEN_ON_SMP=y | ||
34 | CONFIG_LOCK_KERNEL=y | ||
35 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
36 | CONFIG_LOCALVERSION="" | ||
37 | CONFIG_LOCALVERSION_AUTO=y | ||
38 | CONFIG_SWAP=y | ||
39 | # CONFIG_SYSVIPC is not set | ||
40 | # CONFIG_POSIX_MQUEUE is not set | ||
41 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
42 | # CONFIG_TASKSTATS is not set | ||
43 | # CONFIG_USER_NS is not set | ||
44 | # CONFIG_AUDIT is not set | ||
45 | CONFIG_IKCONFIG=y | ||
46 | CONFIG_IKCONFIG_PROC=y | ||
47 | CONFIG_LOG_BUF_SHIFT=17 | ||
48 | CONFIG_SYSFS_DEPRECATED=y | ||
49 | # CONFIG_RELAY is not set | ||
50 | CONFIG_BLK_DEV_INITRD=y | ||
51 | CONFIG_INITRAMFS_SOURCE="" | ||
52 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
53 | CONFIG_SYSCTL=y | ||
54 | CONFIG_PANIC_TIMEOUT=0 | ||
55 | # CONFIG_EMBEDDED is not set | ||
56 | CONFIG_UID16=y | ||
57 | CONFIG_SYSCTL_SYSCALL=y | ||
58 | CONFIG_KALLSYMS=y | ||
59 | # CONFIG_KALLSYMS_ALL is not set | ||
60 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
61 | CONFIG_HOTPLUG=y | ||
62 | CONFIG_PRINTK=y | ||
63 | CONFIG_BUG=y | ||
64 | CONFIG_ELF_CORE=y | ||
65 | CONFIG_BASE_FULL=y | ||
66 | CONFIG_FUTEX=y | ||
67 | CONFIG_ANON_INODES=y | ||
68 | CONFIG_EPOLL=y | ||
69 | CONFIG_SIGNALFD=y | ||
70 | CONFIG_EVENTFD=y | ||
71 | CONFIG_SHMEM=y | ||
72 | CONFIG_VM_EVENT_COUNTERS=y | ||
73 | CONFIG_SLAB=y | ||
74 | # CONFIG_SLUB is not set | ||
75 | # CONFIG_SLOB is not set | ||
76 | CONFIG_RT_MUTEXES=y | ||
77 | # CONFIG_TINY_SHMEM is not set | ||
78 | CONFIG_BASE_SMALL=0 | ||
79 | # CONFIG_MODULES is not set | ||
80 | CONFIG_BLOCK=y | ||
81 | # CONFIG_LBD is not set | ||
82 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
83 | # CONFIG_LSF is not set | ||
84 | # CONFIG_BLK_DEV_BSG is not set | ||
85 | |||
86 | # | ||
87 | # IO Schedulers | ||
88 | # | ||
89 | CONFIG_IOSCHED_NOOP=y | ||
90 | CONFIG_IOSCHED_AS=y | ||
91 | # CONFIG_IOSCHED_DEADLINE is not set | ||
92 | # CONFIG_IOSCHED_CFQ is not set | ||
93 | CONFIG_DEFAULT_AS=y | ||
94 | # CONFIG_DEFAULT_DEADLINE is not set | ||
95 | # CONFIG_DEFAULT_CFQ is not set | ||
96 | # CONFIG_DEFAULT_NOOP is not set | ||
97 | CONFIG_DEFAULT_IOSCHED="anticipatory" | ||
98 | |||
99 | # | ||
100 | # System Type | ||
101 | # | ||
102 | # CONFIG_ARCH_AAEC2000 is not set | ||
103 | # CONFIG_ARCH_GOLDFISH is not set | ||
104 | # CONFIG_ARCH_INTEGRATOR is not set | ||
105 | # CONFIG_ARCH_REALVIEW is not set | ||
106 | # CONFIG_ARCH_VERSATILE is not set | ||
107 | # CONFIG_ARCH_AT91 is not set | ||
108 | # CONFIG_ARCH_CLPS7500 is not set | ||
109 | # CONFIG_ARCH_CLPS711X is not set | ||
110 | # CONFIG_ARCH_CO285 is not set | ||
111 | # CONFIG_ARCH_EBSA110 is not set | ||
112 | # CONFIG_ARCH_EP93XX is not set | ||
113 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
114 | # CONFIG_ARCH_NETX is not set | ||
115 | # CONFIG_ARCH_H720X is not set | ||
116 | # CONFIG_ARCH_IMX is not set | ||
117 | # CONFIG_ARCH_IOP13XX is not set | ||
118 | # CONFIG_ARCH_IOP32X is not set | ||
119 | # CONFIG_ARCH_IOP33X is not set | ||
120 | # CONFIG_ARCH_IXP23XX is not set | ||
121 | # CONFIG_ARCH_IXP2000 is not set | ||
122 | # CONFIG_ARCH_IXP4XX is not set | ||
123 | # CONFIG_ARCH_L7200 is not set | ||
124 | # CONFIG_ARCH_KS8695 is not set | ||
125 | # CONFIG_ARCH_NS9XXX is not set | ||
126 | # CONFIG_ARCH_MXC is not set | ||
127 | # CONFIG_ARCH_PNX4008 is not set | ||
128 | # CONFIG_ARCH_PXA is not set | ||
129 | # CONFIG_ARCH_RPC is not set | ||
130 | # CONFIG_ARCH_SA1100 is not set | ||
131 | # CONFIG_ARCH_S3C2410 is not set | ||
132 | # CONFIG_ARCH_SHARK is not set | ||
133 | # CONFIG_ARCH_LH7A40X is not set | ||
134 | # CONFIG_ARCH_DAVINCI is not set | ||
135 | # CONFIG_ARCH_OMAP is not set | ||
136 | CONFIG_ARCH_MSM7X00A=y | ||
137 | |||
138 | # | ||
139 | # Boot options | ||
140 | # | ||
141 | |||
142 | # | ||
143 | # Power management | ||
144 | # | ||
145 | |||
146 | # | ||
147 | # MSM7200 Board Type | ||
148 | # | ||
149 | CONFIG_MACH_HALIBUT=y | ||
150 | CONFIG_SERIAL_MSM=y | ||
151 | CONFIG_SERIAL_MSM_CONSOLE=y | ||
152 | # CONFIG_SERIAL_MSM_NOINIT is not set | ||
153 | CONFIG_MSM_SMD=y | ||
154 | |||
155 | # | ||
156 | # Processor Type | ||
157 | # | ||
158 | CONFIG_CPU_32=y | ||
159 | CONFIG_CPU_V6=y | ||
160 | # CONFIG_CPU_32v6K is not set | ||
161 | CONFIG_CPU_32v6=y | ||
162 | CONFIG_CPU_ABRT_EV6=y | ||
163 | CONFIG_CPU_CACHE_V6=y | ||
164 | CONFIG_CPU_CACHE_VIPT=y | ||
165 | CONFIG_CPU_COPY_V6=y | ||
166 | CONFIG_CPU_TLB_V6=y | ||
167 | CONFIG_CPU_HAS_ASID=y | ||
168 | CONFIG_CPU_CP15=y | ||
169 | CONFIG_CPU_CP15_MMU=y | ||
170 | |||
171 | # | ||
172 | # Processor Features | ||
173 | # | ||
174 | CONFIG_ARM_THUMB=y | ||
175 | # CONFIG_CPU_ICACHE_DISABLE is not set | ||
176 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
177 | # CONFIG_CPU_BPREDICT_DISABLE is not set | ||
178 | # CONFIG_OUTER_CACHE is not set | ||
179 | |||
180 | # | ||
181 | # Bus support | ||
182 | # | ||
183 | # CONFIG_PCI_SYSCALL is not set | ||
184 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
185 | |||
186 | # | ||
187 | # PCCARD (PCMCIA/CardBus) support | ||
188 | # | ||
189 | # CONFIG_PCCARD is not set | ||
190 | |||
191 | # | ||
192 | # Kernel Features | ||
193 | # | ||
194 | CONFIG_TICK_ONESHOT=y | ||
195 | CONFIG_NO_HZ=y | ||
196 | CONFIG_HIGH_RES_TIMERS=y | ||
197 | CONFIG_PREEMPT=y | ||
198 | CONFIG_HZ=100 | ||
199 | CONFIG_AEABI=y | ||
200 | # CONFIG_OABI_COMPAT is not set | ||
201 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
202 | CONFIG_SELECT_MEMORY_MODEL=y | ||
203 | CONFIG_FLATMEM_MANUAL=y | ||
204 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
205 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
206 | CONFIG_FLATMEM=y | ||
207 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
208 | # CONFIG_SPARSEMEM_STATIC is not set | ||
209 | CONFIG_SPLIT_PTLOCK_CPUS=4 | ||
210 | CONFIG_RESOURCES_64BIT=y | ||
211 | CONFIG_ZONE_DMA_FLAG=1 | ||
212 | CONFIG_BOUNCE=y | ||
213 | CONFIG_VIRT_TO_BUS=y | ||
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="mem=64M console=ttyMSM,115200n8" | ||
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_VFP is not set | ||
233 | |||
234 | # | ||
235 | # Userspace binary formats | ||
236 | # | ||
237 | CONFIG_BINFMT_ELF=y | ||
238 | # CONFIG_BINFMT_AOUT is not set | ||
239 | # CONFIG_BINFMT_MISC is not set | ||
240 | |||
241 | # | ||
242 | # Power management options | ||
243 | # | ||
244 | CONFIG_PM=y | ||
245 | CONFIG_SUSPEND_UP_POSSIBLE=y | ||
246 | |||
247 | # | ||
248 | # Networking | ||
249 | # | ||
250 | CONFIG_NET=y | ||
251 | |||
252 | # | ||
253 | # Networking options | ||
254 | # | ||
255 | # CONFIG_PACKET is not set | ||
256 | CONFIG_UNIX=y | ||
257 | # CONFIG_NET_KEY is not set | ||
258 | CONFIG_INET=y | ||
259 | # CONFIG_IP_MULTICAST is not set | ||
260 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
261 | CONFIG_IP_FIB_HASH=y | ||
262 | # CONFIG_IP_PNP is not set | ||
263 | # CONFIG_NET_IPIP is not set | ||
264 | # CONFIG_NET_IPGRE is not set | ||
265 | # CONFIG_ARPD is not set | ||
266 | # CONFIG_SYN_COOKIES is not set | ||
267 | # CONFIG_INET_AH is not set | ||
268 | # CONFIG_INET_ESP is not set | ||
269 | # CONFIG_INET_IPCOMP is not set | ||
270 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
271 | # CONFIG_INET_TUNNEL is not set | ||
272 | # CONFIG_INET_XFRM_MODE_TRANSPORT is not set | ||
273 | # CONFIG_INET_XFRM_MODE_TUNNEL is not set | ||
274 | # CONFIG_INET_XFRM_MODE_BEET is not set | ||
275 | # CONFIG_INET_DIAG is not set | ||
276 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
277 | CONFIG_TCP_CONG_CUBIC=y | ||
278 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
279 | # CONFIG_TCP_MD5SIG is not set | ||
280 | # CONFIG_IPV6 is not set | ||
281 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
282 | # CONFIG_INET6_TUNNEL is not set | ||
283 | # CONFIG_NETWORK_SECMARK is not set | ||
284 | # CONFIG_NETFILTER is not set | ||
285 | # CONFIG_IP_DCCP is not set | ||
286 | # CONFIG_IP_SCTP is not set | ||
287 | # CONFIG_TIPC is not set | ||
288 | # CONFIG_ATM is not set | ||
289 | # CONFIG_BRIDGE is not set | ||
290 | # CONFIG_VLAN_8021Q is not set | ||
291 | # CONFIG_DECNET is not set | ||
292 | # CONFIG_LLC2 is not set | ||
293 | # CONFIG_IPX is not set | ||
294 | # CONFIG_ATALK is not set | ||
295 | # CONFIG_X25 is not set | ||
296 | # CONFIG_LAPB is not set | ||
297 | # CONFIG_ECONET is not set | ||
298 | # CONFIG_WAN_ROUTER is not set | ||
299 | |||
300 | # | ||
301 | # QoS and/or fair queueing | ||
302 | # | ||
303 | # CONFIG_NET_SCHED is not set | ||
304 | |||
305 | # | ||
306 | # Network testing | ||
307 | # | ||
308 | # CONFIG_NET_PKTGEN is not set | ||
309 | # CONFIG_HAMRADIO is not set | ||
310 | # CONFIG_IRDA is not set | ||
311 | # CONFIG_BT is not set | ||
312 | # CONFIG_AF_RXRPC is not set | ||
313 | |||
314 | # | ||
315 | # Wireless | ||
316 | # | ||
317 | # CONFIG_CFG80211 is not set | ||
318 | # CONFIG_WIRELESS_EXT is not set | ||
319 | # CONFIG_MAC80211 is not set | ||
320 | # CONFIG_IEEE80211 is not set | ||
321 | # CONFIG_RFKILL is not set | ||
322 | # CONFIG_NET_9P is not set | ||
323 | |||
324 | # | ||
325 | # Device Drivers | ||
326 | # | ||
327 | |||
328 | # | ||
329 | # Generic Driver Options | ||
330 | # | ||
331 | CONFIG_STANDALONE=y | ||
332 | CONFIG_PREVENT_FIRMWARE_BUILD=y | ||
333 | CONFIG_FW_LOADER=y | ||
334 | # CONFIG_DEBUG_DRIVER is not set | ||
335 | # CONFIG_DEBUG_DEVRES is not set | ||
336 | # CONFIG_SYS_HYPERVISOR is not set | ||
337 | # CONFIG_CONNECTOR is not set | ||
338 | CONFIG_MTD=y | ||
339 | # CONFIG_MTD_DEBUG is not set | ||
340 | # CONFIG_MTD_CONCAT is not set | ||
341 | CONFIG_MTD_PARTITIONS=y | ||
342 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
343 | CONFIG_MTD_CMDLINE_PARTS=y | ||
344 | # CONFIG_MTD_AFS_PARTS is not set | ||
345 | |||
346 | # | ||
347 | # User Modules And Translation Layers | ||
348 | # | ||
349 | CONFIG_MTD_CHAR=y | ||
350 | CONFIG_MTD_BLKDEVS=y | ||
351 | CONFIG_MTD_BLOCK=y | ||
352 | # CONFIG_FTL is not set | ||
353 | # CONFIG_NFTL is not set | ||
354 | # CONFIG_INFTL is not set | ||
355 | # CONFIG_RFD_FTL is not set | ||
356 | # CONFIG_SSFDC is not set | ||
357 | |||
358 | # | ||
359 | # RAM/ROM/Flash chip drivers | ||
360 | # | ||
361 | # CONFIG_MTD_CFI is not set | ||
362 | # CONFIG_MTD_JEDECPROBE is not set | ||
363 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
364 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
365 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
366 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
367 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
368 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
369 | CONFIG_MTD_CFI_I1=y | ||
370 | CONFIG_MTD_CFI_I2=y | ||
371 | # CONFIG_MTD_CFI_I4 is not set | ||
372 | # CONFIG_MTD_CFI_I8 is not set | ||
373 | # CONFIG_MTD_RAM is not set | ||
374 | # CONFIG_MTD_ROM is not set | ||
375 | # CONFIG_MTD_ABSENT is not set | ||
376 | |||
377 | # | ||
378 | # Mapping drivers for chip access | ||
379 | # | ||
380 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
381 | # CONFIG_MTD_PLATRAM is not set | ||
382 | |||
383 | # | ||
384 | # Self-contained MTD device drivers | ||
385 | # | ||
386 | # CONFIG_MTD_SLRAM is not set | ||
387 | # CONFIG_MTD_PHRAM is not set | ||
388 | # CONFIG_MTD_MTDRAM is not set | ||
389 | # CONFIG_MTD_BLOCK2MTD is not set | ||
390 | CONFIG_MTD_MSM_NAND=y | ||
391 | |||
392 | # | ||
393 | # Disk-On-Chip Device Drivers | ||
394 | # | ||
395 | # CONFIG_MTD_DOC2000 is not set | ||
396 | # CONFIG_MTD_DOC2001 is not set | ||
397 | # CONFIG_MTD_DOC2001PLUS is not set | ||
398 | # CONFIG_MTD_GOLDFISH_NAND is not set | ||
399 | # CONFIG_MTD_NAND is not set | ||
400 | # CONFIG_MTD_ONENAND is not set | ||
401 | |||
402 | # | ||
403 | # UBI - Unsorted block images | ||
404 | # | ||
405 | # CONFIG_MTD_UBI is not set | ||
406 | # CONFIG_PARPORT is not set | ||
407 | CONFIG_BLK_DEV=y | ||
408 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
409 | # CONFIG_BLK_DEV_LOOP is not set | ||
410 | # CONFIG_BLK_DEV_NBD is not set | ||
411 | # CONFIG_BLK_DEV_RAM is not set | ||
412 | # CONFIG_CDROM_PKTCDVD is not set | ||
413 | # CONFIG_ATA_OVER_ETH is not set | ||
414 | |||
415 | # | ||
416 | # SCSI device support | ||
417 | # | ||
418 | # CONFIG_RAID_ATTRS is not set | ||
419 | # CONFIG_SCSI is not set | ||
420 | # CONFIG_SCSI_DMA is not set | ||
421 | # CONFIG_SCSI_NETLINK is not set | ||
422 | # CONFIG_ATA is not set | ||
423 | # CONFIG_MD is not set | ||
424 | CONFIG_NETDEVICES=y | ||
425 | # CONFIG_NETDEVICES_MULTIQUEUE is not set | ||
426 | CONFIG_DUMMY=y | ||
427 | # CONFIG_BONDING is not set | ||
428 | # CONFIG_MACVLAN is not set | ||
429 | # CONFIG_EQUALIZER is not set | ||
430 | # CONFIG_TUN is not set | ||
431 | # CONFIG_PHYLIB is not set | ||
432 | CONFIG_NET_ETHERNET=y | ||
433 | CONFIG_MII=y | ||
434 | # CONFIG_AX88796 is not set | ||
435 | CONFIG_SMC91X=y | ||
436 | # CONFIG_DM9000 is not set | ||
437 | CONFIG_NETDEV_1000=y | ||
438 | CONFIG_NETDEV_10000=y | ||
439 | |||
440 | # | ||
441 | # Wireless LAN | ||
442 | # | ||
443 | # CONFIG_WLAN_PRE80211 is not set | ||
444 | # CONFIG_WLAN_80211 is not set | ||
445 | # CONFIG_WAN is not set | ||
446 | CONFIG_PPP=y | ||
447 | # CONFIG_PPP_MULTILINK is not set | ||
448 | # CONFIG_PPP_FILTER is not set | ||
449 | CONFIG_PPP_ASYNC=y | ||
450 | # CONFIG_PPP_SYNC_TTY is not set | ||
451 | CONFIG_PPP_DEFLATE=y | ||
452 | CONFIG_PPP_BSDCOMP=y | ||
453 | # CONFIG_PPP_MPPE is not set | ||
454 | # CONFIG_PPPOE is not set | ||
455 | # CONFIG_PPPOL2TP is not set | ||
456 | # CONFIG_SLIP is not set | ||
457 | CONFIG_SLHC=y | ||
458 | # CONFIG_SHAPER is not set | ||
459 | # CONFIG_NETCONSOLE is not set | ||
460 | CONFIG_MSM_RMNET=y | ||
461 | # CONFIG_NETPOLL is not set | ||
462 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
463 | # CONFIG_ISDN is not set | ||
464 | |||
465 | # | ||
466 | # Input device support | ||
467 | # | ||
468 | CONFIG_INPUT=y | ||
469 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
470 | # CONFIG_INPUT_POLLDEV is not set | ||
471 | |||
472 | # | ||
473 | # Userland interfaces | ||
474 | # | ||
475 | CONFIG_INPUT_MOUSEDEV=y | ||
476 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
477 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
478 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
479 | # CONFIG_INPUT_JOYDEV is not set | ||
480 | # CONFIG_INPUT_TSDEV is not set | ||
481 | CONFIG_INPUT_EVDEV=y | ||
482 | # CONFIG_INPUT_EVBUG is not set | ||
483 | |||
484 | # | ||
485 | # Input Device Drivers | ||
486 | # | ||
487 | CONFIG_INPUT_KEYBOARD=y | ||
488 | # CONFIG_KEYBOARD_ATKBD is not set | ||
489 | # CONFIG_KEYBOARD_SUNKBD is not set | ||
490 | # CONFIG_KEYBOARD_LKKBD is not set | ||
491 | # CONFIG_KEYBOARD_XTKBD is not set | ||
492 | # CONFIG_KEYBOARD_NEWTON is not set | ||
493 | # CONFIG_KEYBOARD_STOWAWAY is not set | ||
494 | # CONFIG_KEYBOARD_GOLDFISH_EVENTS is not set | ||
495 | # CONFIG_INPUT_MOUSE is not set | ||
496 | # CONFIG_INPUT_JOYSTICK is not set | ||
497 | # CONFIG_INPUT_TABLET is not set | ||
498 | CONFIG_INPUT_TOUCHSCREEN=y | ||
499 | # CONFIG_TOUCHSCREEN_FUJITSU is not set | ||
500 | # CONFIG_TOUCHSCREEN_GUNZE is not set | ||
501 | # CONFIG_TOUCHSCREEN_ELO is not set | ||
502 | # CONFIG_TOUCHSCREEN_MTOUCH is not set | ||
503 | # CONFIG_TOUCHSCREEN_MK712 is not set | ||
504 | # CONFIG_TOUCHSCREEN_PENMOUNT is not set | ||
505 | # CONFIG_TOUCHSCREEN_SYNAPTICS_I2C_MEP is not set | ||
506 | CONFIG_TOUCHSCREEN_SYNAPTICS_I2C_RMI=y | ||
507 | # CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set | ||
508 | # CONFIG_TOUCHSCREEN_TOUCHWIN is not set | ||
509 | # CONFIG_TOUCHSCREEN_UCB1400 is not set | ||
510 | # CONFIG_TOUCHSCREEN_USB_COMPOSITE is not set | ||
511 | CONFIG_INPUT_MISC=y | ||
512 | # CONFIG_INPUT_ATI_REMOTE is not set | ||
513 | # CONFIG_INPUT_ATI_REMOTE2 is not set | ||
514 | # CONFIG_INPUT_KEYSPAN_REMOTE is not set | ||
515 | # CONFIG_INPUT_POWERMATE is not set | ||
516 | # CONFIG_INPUT_YEALINK is not set | ||
517 | # CONFIG_INPUT_UINPUT is not set | ||
518 | CONFIG_INPUT_GPIO=y | ||
519 | |||
520 | # | ||
521 | # Hardware I/O ports | ||
522 | # | ||
523 | # CONFIG_SERIO is not set | ||
524 | # CONFIG_GAMEPORT is not set | ||
525 | |||
526 | # | ||
527 | # Character devices | ||
528 | # | ||
529 | CONFIG_VT=y | ||
530 | CONFIG_VT_CONSOLE=y | ||
531 | CONFIG_HW_CONSOLE=y | ||
532 | CONFIG_VT_HW_CONSOLE_BINDING=y | ||
533 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
534 | |||
535 | # | ||
536 | # Serial drivers | ||
537 | # | ||
538 | # CONFIG_SERIAL_8250 is not set | ||
539 | |||
540 | # | ||
541 | # Non-8250 serial port support | ||
542 | # | ||
543 | CONFIG_SERIAL_CORE=y | ||
544 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
545 | CONFIG_UNIX98_PTYS=y | ||
546 | # CONFIG_LEGACY_PTYS is not set | ||
547 | # CONFIG_IPMI_HANDLER is not set | ||
548 | # CONFIG_WATCHDOG is not set | ||
549 | # CONFIG_HW_RANDOM is not set | ||
550 | # CONFIG_NVRAM is not set | ||
551 | # CONFIG_R3964 is not set | ||
552 | # CONFIG_RAW_DRIVER is not set | ||
553 | # CONFIG_TCG_TPM is not set | ||
554 | CONFIG_DCC_TTY=y | ||
555 | # CONFIG_GOLDFISH_TTY is not set | ||
556 | CONFIG_BINDER=y | ||
557 | CONFIG_I2C=y | ||
558 | CONFIG_I2C_BOARDINFO=y | ||
559 | # CONFIG_I2C_CHARDEV is not set | ||
560 | |||
561 | # | ||
562 | # I2C Algorithms | ||
563 | # | ||
564 | # CONFIG_I2C_ALGOBIT is not set | ||
565 | # CONFIG_I2C_ALGOPCF is not set | ||
566 | # CONFIG_I2C_ALGOPCA is not set | ||
567 | |||
568 | # | ||
569 | # I2C Hardware Bus support | ||
570 | # | ||
571 | CONFIG_I2C_MSM=y | ||
572 | # CONFIG_I2C_OCORES is not set | ||
573 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
574 | # CONFIG_I2C_SIMTEC is not set | ||
575 | # CONFIG_I2C_TAOS_EVM is not set | ||
576 | |||
577 | # | ||
578 | # Miscellaneous I2C Chip support | ||
579 | # | ||
580 | # CONFIG_SENSORS_DS1337 is not set | ||
581 | # CONFIG_SENSORS_DS1374 is not set | ||
582 | # CONFIG_DS1682 is not set | ||
583 | # CONFIG_SENSORS_EEPROM is not set | ||
584 | # CONFIG_SENSORS_PCF8574 is not set | ||
585 | # CONFIG_SENSORS_PCA9539 is not set | ||
586 | CONFIG_SENSORS_PCA9633=y | ||
587 | # CONFIG_SENSORS_PCF8591 is not set | ||
588 | # CONFIG_SENSORS_MAX6875 is not set | ||
589 | CONFIG_SENSORS_AKM8976=y | ||
590 | # CONFIG_SENSORS_TSL2550 is not set | ||
591 | # CONFIG_I2C_DEBUG_CORE is not set | ||
592 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
593 | # CONFIG_I2C_DEBUG_BUS is not set | ||
594 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
595 | |||
596 | # | ||
597 | # SPI support | ||
598 | # | ||
599 | # CONFIG_SPI is not set | ||
600 | # CONFIG_SPI_MASTER is not set | ||
601 | # CONFIG_W1 is not set | ||
602 | # CONFIG_HWMON is not set | ||
603 | CONFIG_MISC_DEVICES=y | ||
604 | # CONFIG_EEPROM_93CX6 is not set | ||
605 | CONFIG_LOW_MEMORY_KILLER=y | ||
606 | |||
607 | # | ||
608 | # Multifunction device drivers | ||
609 | # | ||
610 | # CONFIG_MFD_SM501 is not set | ||
611 | CONFIG_NEW_LEDS=y | ||
612 | CONFIG_LEDS_CLASS=y | ||
613 | |||
614 | # | ||
615 | # Multimedia devices | ||
616 | # | ||
617 | # CONFIG_VIDEO_DEV is not set | ||
618 | # CONFIG_DVB_CORE is not set | ||
619 | CONFIG_DAB=y | ||
620 | |||
621 | # | ||
622 | # Graphics support | ||
623 | # | ||
624 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
625 | |||
626 | # | ||
627 | # Display device support | ||
628 | # | ||
629 | # CONFIG_DISPLAY_SUPPORT is not set | ||
630 | # CONFIG_VGASTATE is not set | ||
631 | CONFIG_VIDEO_OUTPUT_CONTROL=y | ||
632 | CONFIG_FB=y | ||
633 | # CONFIG_FIRMWARE_EDID is not set | ||
634 | # CONFIG_FB_DDC is not set | ||
635 | CONFIG_FB_CFB_FILLRECT=y | ||
636 | CONFIG_FB_CFB_COPYAREA=y | ||
637 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
638 | # CONFIG_FB_SYS_FILLRECT is not set | ||
639 | # CONFIG_FB_SYS_COPYAREA is not set | ||
640 | # CONFIG_FB_SYS_IMAGEBLIT is not set | ||
641 | # CONFIG_FB_SYS_FOPS is not set | ||
642 | CONFIG_FB_DEFERRED_IO=y | ||
643 | # CONFIG_FB_SVGALIB is not set | ||
644 | # CONFIG_FB_MACMODES is not set | ||
645 | # CONFIG_FB_BACKLIGHT is not set | ||
646 | CONFIG_FB_MODE_HELPERS=y | ||
647 | CONFIG_FB_TILEBLITTING=y | ||
648 | |||
649 | # | ||
650 | # Frame buffer hardware drivers | ||
651 | # | ||
652 | # CONFIG_FB_S1D13XXX is not set | ||
653 | CONFIG_FB_MSM=y | ||
654 | # CONFIG_FB_GOLDFISH is not set | ||
655 | # CONFIG_FB_VIRTUAL is not set | ||
656 | |||
657 | # | ||
658 | # Console display driver support | ||
659 | # | ||
660 | # CONFIG_VGA_CONSOLE is not set | ||
661 | CONFIG_DUMMY_CONSOLE=y | ||
662 | CONFIG_FRAMEBUFFER_CONSOLE=y | ||
663 | # CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set | ||
664 | # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set | ||
665 | # CONFIG_FONTS is not set | ||
666 | CONFIG_FONT_8x8=y | ||
667 | CONFIG_FONT_8x16=y | ||
668 | # CONFIG_LOGO is not set | ||
669 | |||
670 | # | ||
671 | # Sound | ||
672 | # | ||
673 | # CONFIG_SOUND is not set | ||
674 | CONFIG_HID_SUPPORT=y | ||
675 | CONFIG_HID=y | ||
676 | # CONFIG_HID_DEBUG is not set | ||
677 | CONFIG_USB_SUPPORT=y | ||
678 | CONFIG_USB_ARCH_HAS_HCD=y | ||
679 | # CONFIG_USB_ARCH_HAS_OHCI is not set | ||
680 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
681 | # CONFIG_USB is not set | ||
682 | |||
683 | # | ||
684 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
685 | # | ||
686 | |||
687 | # | ||
688 | # USB Gadget Support | ||
689 | # | ||
690 | # CONFIG_USB_GADGET is not set | ||
691 | |||
692 | # | ||
693 | # USB Function Support | ||
694 | # | ||
695 | CONFIG_USB_FUNCTION=y | ||
696 | CONFIG_USB_FUNCTION_MSM_HSUSB=y | ||
697 | # CONFIG_USB_FUNCTION_NULL is not set | ||
698 | # CONFIG_USB_FUNCTION_ZERO is not set | ||
699 | # CONFIG_USB_FUNCTION_LOOPBACK is not set | ||
700 | CONFIG_USB_FUNCTION_ADB=y | ||
701 | # CONFIG_MMC is not set | ||
702 | CONFIG_RTC_LIB=y | ||
703 | # CONFIG_RTC_CLASS is not set | ||
704 | |||
705 | # | ||
706 | # DMA Engine support | ||
707 | # | ||
708 | # CONFIG_DMA_ENGINE is not set | ||
709 | |||
710 | # | ||
711 | # DMA Clients | ||
712 | # | ||
713 | |||
714 | # | ||
715 | # DMA Devices | ||
716 | # | ||
717 | |||
718 | # | ||
719 | # Android | ||
720 | # | ||
721 | # CONFIG_ANDROID_GADGET is not set | ||
722 | # CONFIG_ANDROID_RAM_CONSOLE is not set | ||
723 | CONFIG_ANDROID_LOGGER=y | ||
724 | CONFIG_ANDROID_VIBRATOR=y | ||
725 | |||
726 | # | ||
727 | # File systems | ||
728 | # | ||
729 | # CONFIG_EXT2_FS is not set | ||
730 | # CONFIG_EXT3_FS is not set | ||
731 | # CONFIG_EXT4DEV_FS is not set | ||
732 | # CONFIG_REISERFS_FS is not set | ||
733 | # CONFIG_JFS_FS is not set | ||
734 | # CONFIG_FS_POSIX_ACL is not set | ||
735 | # CONFIG_XFS_FS is not set | ||
736 | # CONFIG_GFS2_FS is not set | ||
737 | # CONFIG_OCFS2_FS is not set | ||
738 | # CONFIG_MINIX_FS is not set | ||
739 | # CONFIG_ROMFS_FS is not set | ||
740 | CONFIG_INOTIFY=y | ||
741 | CONFIG_INOTIFY_USER=y | ||
742 | # CONFIG_QUOTA is not set | ||
743 | CONFIG_DNOTIFY=y | ||
744 | # CONFIG_AUTOFS_FS is not set | ||
745 | # CONFIG_AUTOFS4_FS is not set | ||
746 | # CONFIG_FUSE_FS is not set | ||
747 | |||
748 | # | ||
749 | # CD-ROM/DVD Filesystems | ||
750 | # | ||
751 | # CONFIG_ISO9660_FS is not set | ||
752 | # CONFIG_UDF_FS is not set | ||
753 | |||
754 | # | ||
755 | # DOS/FAT/NT Filesystems | ||
756 | # | ||
757 | # CONFIG_MSDOS_FS is not set | ||
758 | # CONFIG_VFAT_FS is not set | ||
759 | # CONFIG_NTFS_FS is not set | ||
760 | |||
761 | # | ||
762 | # Pseudo filesystems | ||
763 | # | ||
764 | CONFIG_PROC_FS=y | ||
765 | CONFIG_PROC_SYSCTL=y | ||
766 | CONFIG_SYSFS=y | ||
767 | CONFIG_TMPFS=y | ||
768 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
769 | # CONFIG_HUGETLB_PAGE is not set | ||
770 | CONFIG_RAMFS=y | ||
771 | # CONFIG_CONFIGFS_FS is not set | ||
772 | |||
773 | # | ||
774 | # Miscellaneous filesystems | ||
775 | # | ||
776 | # CONFIG_ADFS_FS is not set | ||
777 | # CONFIG_AFFS_FS is not set | ||
778 | # CONFIG_HFS_FS is not set | ||
779 | # CONFIG_HFSPLUS_FS is not set | ||
780 | # CONFIG_BEFS_FS is not set | ||
781 | # CONFIG_BFS_FS is not set | ||
782 | # CONFIG_EFS_FS is not set | ||
783 | CONFIG_YAFFS_FS=y | ||
784 | CONFIG_YAFFS_YAFFS1=y | ||
785 | # CONFIG_YAFFS_9BYTE_TAGS is not set | ||
786 | # CONFIG_YAFFS_DOES_ECC is not set | ||
787 | CONFIG_YAFFS_YAFFS2=y | ||
788 | CONFIG_YAFFS_AUTO_YAFFS2=y | ||
789 | # CONFIG_YAFFS_DISABLE_LAZY_LOAD is not set | ||
790 | CONFIG_YAFFS_CHECKPOINT_RESERVED_BLOCKS=10 | ||
791 | # CONFIG_YAFFS_DISABLE_WIDE_TNODES is not set | ||
792 | # CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED is not set | ||
793 | CONFIG_YAFFS_SHORT_NAMES_IN_RAM=y | ||
794 | # CONFIG_JFFS2_FS is not set | ||
795 | # CONFIG_CRAMFS is not set | ||
796 | # CONFIG_VXFS_FS is not set | ||
797 | # CONFIG_HPFS_FS is not set | ||
798 | # CONFIG_QNX4FS_FS is not set | ||
799 | # CONFIG_SYSV_FS is not set | ||
800 | # CONFIG_UFS_FS is not set | ||
801 | |||
802 | # | ||
803 | # Network File Systems | ||
804 | # | ||
805 | # CONFIG_NFS_FS is not set | ||
806 | # CONFIG_NFSD is not set | ||
807 | # CONFIG_SMB_FS is not set | ||
808 | # CONFIG_CIFS is not set | ||
809 | # CONFIG_NCP_FS is not set | ||
810 | # CONFIG_CODA_FS is not set | ||
811 | # CONFIG_AFS_FS is not set | ||
812 | |||
813 | # | ||
814 | # Partition Types | ||
815 | # | ||
816 | # CONFIG_PARTITION_ADVANCED is not set | ||
817 | CONFIG_MSDOS_PARTITION=y | ||
818 | |||
819 | # | ||
820 | # Native Language Support | ||
821 | # | ||
822 | # CONFIG_NLS is not set | ||
823 | |||
824 | # | ||
825 | # Distributed Lock Manager | ||
826 | # | ||
827 | # CONFIG_DLM is not set | ||
828 | |||
829 | # | ||
830 | # Profiling support | ||
831 | # | ||
832 | # CONFIG_PROFILING is not set | ||
833 | |||
834 | # | ||
835 | # Kernel hacking | ||
836 | # | ||
837 | # CONFIG_PRINTK_TIME is not set | ||
838 | CONFIG_ENABLE_MUST_CHECK=y | ||
839 | CONFIG_MAGIC_SYSRQ=y | ||
840 | # CONFIG_UNUSED_SYMBOLS is not set | ||
841 | # CONFIG_DEBUG_FS is not set | ||
842 | # CONFIG_HEADERS_CHECK is not set | ||
843 | CONFIG_DEBUG_KERNEL=y | ||
844 | # CONFIG_DEBUG_SHIRQ is not set | ||
845 | CONFIG_DETECT_SOFTLOCKUP=y | ||
846 | CONFIG_SCHED_DEBUG=y | ||
847 | CONFIG_SCHEDSTATS=y | ||
848 | # CONFIG_TIMER_STATS is not set | ||
849 | # CONFIG_DEBUG_SLAB is not set | ||
850 | CONFIG_DEBUG_PREEMPT=y | ||
851 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
852 | # CONFIG_RT_MUTEX_TESTER is not set | ||
853 | # CONFIG_DEBUG_SPINLOCK is not set | ||
854 | CONFIG_DEBUG_MUTEXES=y | ||
855 | # CONFIG_DEBUG_LOCK_ALLOC is not set | ||
856 | # CONFIG_PROVE_LOCKING is not set | ||
857 | # CONFIG_LOCK_STAT is not set | ||
858 | CONFIG_DEBUG_SPINLOCK_SLEEP=y | ||
859 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
860 | # CONFIG_DEBUG_KOBJECT is not set | ||
861 | CONFIG_DEBUG_BUGVERBOSE=y | ||
862 | CONFIG_DEBUG_INFO=y | ||
863 | # CONFIG_DEBUG_VM is not set | ||
864 | # CONFIG_DEBUG_LIST is not set | ||
865 | CONFIG_FRAME_POINTER=y | ||
866 | # CONFIG_FORCED_INLINING is not set | ||
867 | # CONFIG_FAULT_INJECTION is not set | ||
868 | # CONFIG_DEBUG_USER is not set | ||
869 | # CONFIG_DEBUG_ERRORS is not set | ||
870 | CONFIG_DEBUG_LL=y | ||
871 | # CONFIG_DEBUG_ICEDCC is not set | ||
872 | |||
873 | # | ||
874 | # Security options | ||
875 | # | ||
876 | # CONFIG_KEYS is not set | ||
877 | # CONFIG_SECURITY is not set | ||
878 | # CONFIG_CRYPTO is not set | ||
879 | |||
880 | # | ||
881 | # Library routines | ||
882 | # | ||
883 | CONFIG_BITREVERSE=y | ||
884 | CONFIG_CRC_CCITT=y | ||
885 | # CONFIG_CRC16 is not set | ||
886 | # CONFIG_CRC_ITU_T is not set | ||
887 | CONFIG_CRC32=y | ||
888 | # CONFIG_CRC7 is not set | ||
889 | # CONFIG_LIBCRC32C is not set | ||
890 | CONFIG_ZLIB_INFLATE=y | ||
891 | CONFIG_ZLIB_DEFLATE=y | ||
892 | CONFIG_PLIST=y | ||
893 | CONFIG_HAS_IOMEM=y | ||
894 | CONFIG_HAS_IOPORT=y | ||
895 | CONFIG_HAS_DMA=y | ||
diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig new file mode 100644 index 000000000000..3553babbbf05 --- /dev/null +++ b/arch/arm/mach-msm/Kconfig | |||
@@ -0,0 +1,18 @@ | |||
1 | if ARCH_MSM7X00A | ||
2 | |||
3 | comment "MSM7X00A Board Type" | ||
4 | depends on ARCH_MSM7X00A | ||
5 | |||
6 | config MACH_HALIBUT | ||
7 | depends on ARCH_MSM7X00A | ||
8 | default y | ||
9 | bool "Halibut Board (QCT SURF7200A)" | ||
10 | help | ||
11 | Support for the Qualcomm SURF7200A eval board. | ||
12 | |||
13 | config MSM7X00A_IDLE | ||
14 | depends on ARCH_MSM7X00A | ||
15 | default y | ||
16 | bool "Idle Support for MSM7X00A" | ||
17 | |||
18 | endif | ||
diff --git a/arch/arm/mach-msm/Makefile b/arch/arm/mach-msm/Makefile index a42d1a019cd2..fcca853d6485 100644 --- a/arch/arm/mach-msm/Makefile +++ b/arch/arm/mach-msm/Makefile | |||
@@ -1,2 +1,7 @@ | |||
1 | obj-y += io.o idle.o irq.o timer.o | 1 | obj-y += io.o idle.o irq.o timer.o |
2 | 2 | ||
3 | # Common code for board init | ||
4 | obj-y += common.o | ||
5 | |||
6 | obj-$(CONFIG_MACH_HALIBUT) += board-halibut.o | ||
7 | |||
diff --git a/arch/arm/mach-msm/board-halibut.c b/arch/arm/mach-msm/board-halibut.c new file mode 100644 index 000000000000..86dfb2b5261c --- /dev/null +++ b/arch/arm/mach-msm/board-halibut.c | |||
@@ -0,0 +1,114 @@ | |||
1 | /* linux/arch/arm/mach-msm/board-halibut.c | ||
2 | * | ||
3 | * Copyright (C) 2007 Google, Inc. | ||
4 | * Author: Brian Swetland <swetland@google.com> | ||
5 | * | ||
6 | * This software is licensed under the terms of the GNU General Public | ||
7 | * License version 2, as published by the Free Software Foundation, and | ||
8 | * may be copied, distributed, and modified under those terms. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | */ | ||
16 | |||
17 | #include <linux/kernel.h> | ||
18 | #include <linux/init.h> | ||
19 | #include <linux/platform_device.h> | ||
20 | #include <linux/input.h> | ||
21 | |||
22 | #include <asm/hardware.h> | ||
23 | #include <asm/mach-types.h> | ||
24 | #include <asm/mach/arch.h> | ||
25 | #include <asm/mach/map.h> | ||
26 | #include <asm/mach/flash.h> | ||
27 | |||
28 | #include <asm/arch/board.h> | ||
29 | #include <asm/arch/msm_iomap.h> | ||
30 | |||
31 | #include <asm/io.h> | ||
32 | #include <asm/delay.h> | ||
33 | |||
34 | #include <linux/mtd/nand.h> | ||
35 | #include <linux/mtd/partitions.h> | ||
36 | |||
37 | static struct resource smc91x_resources[] = { | ||
38 | [0] = { | ||
39 | .start = 0x9C004300, | ||
40 | .end = 0x9C004400, | ||
41 | .flags = IORESOURCE_MEM, | ||
42 | }, | ||
43 | [1] = { | ||
44 | .start = MSM_GPIO_TO_INT(49), | ||
45 | .end = MSM_GPIO_TO_INT(49), | ||
46 | .flags = IORESOURCE_IRQ, | ||
47 | }, | ||
48 | }; | ||
49 | |||
50 | static struct platform_device smc91x_device = { | ||
51 | .name = "smc91x", | ||
52 | .id = 0, | ||
53 | .num_resources = ARRAY_SIZE(smc91x_resources), | ||
54 | .resource = smc91x_resources, | ||
55 | }; | ||
56 | |||
57 | static void mddi0_panel_power(int on) | ||
58 | { | ||
59 | } | ||
60 | |||
61 | static struct msm_mddi_platform_data msm_mddi0_pdata = { | ||
62 | .panel_power = mddi0_panel_power, | ||
63 | .has_vsync_irq = 0, | ||
64 | }; | ||
65 | |||
66 | static struct platform_device msm_mddi0_device = { | ||
67 | .name = "msm_mddi", | ||
68 | .id = 0, | ||
69 | .dev = { | ||
70 | .platform_data = &msm_mddi0_pdata | ||
71 | }, | ||
72 | }; | ||
73 | |||
74 | static struct platform_device msm_serial0_device = { | ||
75 | .name = "msm_serial", | ||
76 | .id = 0, | ||
77 | }; | ||
78 | |||
79 | static struct platform_device *devices[] __initdata = { | ||
80 | &msm_serial0_device, | ||
81 | &msm_mddi0_device, | ||
82 | &smc91x_device, | ||
83 | }; | ||
84 | |||
85 | extern struct sys_timer msm_timer; | ||
86 | |||
87 | static void __init halibut_init_irq(void) | ||
88 | { | ||
89 | msm_init_irq(); | ||
90 | } | ||
91 | |||
92 | static void __init halibut_init(void) | ||
93 | { | ||
94 | platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
95 | msm_add_devices(); | ||
96 | } | ||
97 | |||
98 | static void __init halibut_map_io(void) | ||
99 | { | ||
100 | msm_map_common_io(); | ||
101 | } | ||
102 | |||
103 | MACHINE_START(HALIBUT, "Halibut Board (QCT SURF7200A)") | ||
104 | |||
105 | /* UART for LL DEBUG */ | ||
106 | .phys_io = MSM_UART1_PHYS, | ||
107 | .io_pg_offst = ((MSM_UART1_BASE) >> 18) & 0xfffc, | ||
108 | |||
109 | .boot_params = 0x10000100, | ||
110 | .map_io = halibut_map_io, | ||
111 | .init_irq = halibut_init_irq, | ||
112 | .init_machine = halibut_init, | ||
113 | .timer = &msm_timer, | ||
114 | MACHINE_END | ||
diff --git a/arch/arm/mach-msm/common.c b/arch/arm/mach-msm/common.c new file mode 100644 index 000000000000..3f5d3362f887 --- /dev/null +++ b/arch/arm/mach-msm/common.c | |||
@@ -0,0 +1,116 @@ | |||
1 | /* linux/arch/arm/mach-msm/common.c | ||
2 | * | ||
3 | * Common setup code for MSM7K Boards | ||
4 | * | ||
5 | * Copyright (C) 2007 Google, Inc. | ||
6 | * Author: Brian Swetland <swetland@google.com> | ||
7 | * | ||
8 | * This software is licensed under the terms of the GNU General Public | ||
9 | * License version 2, as published by the Free Software Foundation, and | ||
10 | * may be copied, distributed, and modified under those terms. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, | ||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | * GNU General Public License for more details. | ||
16 | * | ||
17 | */ | ||
18 | |||
19 | #include <linux/kernel.h> | ||
20 | #include <linux/init.h> | ||
21 | #include <linux/platform_device.h> | ||
22 | |||
23 | #include <asm/mach/flash.h> | ||
24 | #include <asm/io.h> | ||
25 | |||
26 | #include <asm/setup.h> | ||
27 | |||
28 | #include <linux/mtd/nand.h> | ||
29 | #include <linux/mtd/partitions.h> | ||
30 | |||
31 | #include <asm/arch/msm_iomap.h> | ||
32 | |||
33 | #include <asm/arch/board.h> | ||
34 | |||
35 | struct flash_platform_data msm_nand_data = { | ||
36 | .parts = 0, | ||
37 | .nr_parts = 0, | ||
38 | }; | ||
39 | |||
40 | static struct resource msm_nand_resources[] = { | ||
41 | [0] = { | ||
42 | .start = 7, | ||
43 | .end = 7, | ||
44 | .flags = IORESOURCE_DMA, | ||
45 | }, | ||
46 | }; | ||
47 | |||
48 | static struct platform_device msm_nand_device = { | ||
49 | .name = "msm_nand", | ||
50 | .id = -1, | ||
51 | .num_resources = ARRAY_SIZE(msm_nand_resources), | ||
52 | .resource = msm_nand_resources, | ||
53 | .dev = { | ||
54 | .platform_data = &msm_nand_data, | ||
55 | }, | ||
56 | }; | ||
57 | |||
58 | static struct platform_device msm_smd_device = { | ||
59 | .name = "msm_smd", | ||
60 | .id = -1, | ||
61 | }; | ||
62 | |||
63 | static struct resource msm_i2c_resources[] = { | ||
64 | { | ||
65 | .start = MSM_I2C_BASE, | ||
66 | .end = MSM_I2C_BASE + MSM_I2C_SIZE - 1, | ||
67 | .flags = IORESOURCE_MEM, | ||
68 | }, | ||
69 | { | ||
70 | .start = INT_PWB_I2C, | ||
71 | .end = INT_PWB_I2C, | ||
72 | .flags = IORESOURCE_IRQ, | ||
73 | }, | ||
74 | }; | ||
75 | |||
76 | static struct platform_device msm_i2c_device = { | ||
77 | .name = "msm_i2c", | ||
78 | .id = 0, | ||
79 | .num_resources = ARRAY_SIZE(msm_i2c_resources), | ||
80 | .resource = msm_i2c_resources, | ||
81 | }; | ||
82 | |||
83 | static struct resource usb_resources[] = { | ||
84 | { | ||
85 | .start = MSM_HSUSB_PHYS, | ||
86 | .end = MSM_HSUSB_PHYS + MSM_HSUSB_SIZE, | ||
87 | .flags = IORESOURCE_MEM, | ||
88 | }, | ||
89 | { | ||
90 | .start = INT_USB_HS, | ||
91 | .end = INT_USB_HS, | ||
92 | .flags = IORESOURCE_IRQ, | ||
93 | }, | ||
94 | }; | ||
95 | |||
96 | static struct platform_device msm_hsusb_device = { | ||
97 | .name = "msm_hsusb", | ||
98 | .id = -1, | ||
99 | .num_resources = ARRAY_SIZE(usb_resources), | ||
100 | .resource = usb_resources, | ||
101 | .dev = { | ||
102 | .coherent_dma_mask = 0xffffffff, | ||
103 | }, | ||
104 | }; | ||
105 | |||
106 | static struct platform_device *devices[] __initdata = { | ||
107 | &msm_nand_device, | ||
108 | &msm_smd_device, | ||
109 | &msm_i2c_device, | ||
110 | &msm_hsusb_device, | ||
111 | }; | ||
112 | |||
113 | void __init msm_add_devices(void) | ||
114 | { | ||
115 | platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
116 | } | ||