diff options
-rw-r--r-- | arch/ppc/Kconfig | 5 | ||||
-rw-r--r-- | arch/ppc/boot/simple/Makefile | 2 | ||||
-rw-r--r-- | arch/ppc/configs/mcpn765_defconfig | 579 | ||||
-rw-r--r-- | arch/ppc/platforms/Makefile | 1 | ||||
-rw-r--r-- | arch/ppc/platforms/mcpn765.c | 527 | ||||
-rw-r--r-- | arch/ppc/platforms/mcpn765.h | 122 | ||||
-rw-r--r-- | arch/ppc/syslib/Makefile | 2 | ||||
-rw-r--r-- | include/asm-ppc/serial.h | 2 |
8 files changed, 2 insertions, 1238 deletions
diff --git a/arch/ppc/Kconfig b/arch/ppc/Kconfig index 3f8e003ff881..ad6c362a15b6 100644 --- a/arch/ppc/Kconfig +++ b/arch/ppc/Kconfig | |||
@@ -613,9 +613,6 @@ config EV64260 | |||
613 | config LOPEC | 613 | config LOPEC |
614 | bool "Motorola-LoPEC" | 614 | bool "Motorola-LoPEC" |
615 | 615 | ||
616 | config MCPN765 | ||
617 | bool "Motorola-MCPN765" | ||
618 | |||
619 | config MVME5100 | 616 | config MVME5100 |
620 | bool "Motorola-MVME5100" | 617 | bool "Motorola-MVME5100" |
621 | 618 | ||
@@ -790,7 +787,7 @@ config PPC_OF | |||
790 | 787 | ||
791 | config PPC_GEN550 | 788 | config PPC_GEN550 |
792 | bool | 789 | bool |
793 | depends on SANDPOINT || MCPN765 || SPRUCE || PPLUS || PCORE || \ | 790 | depends on SANDPOINT || SPRUCE || PPLUS || PCORE || \ |
794 | PRPMC750 || PRPMC800 || LOPEC || \ | 791 | PRPMC750 || PRPMC800 || LOPEC || \ |
795 | (EV64260 && !SERIAL_MPSC) || CHESTNUT || RADSTONE_PPC7D || \ | 792 | (EV64260 && !SERIAL_MPSC) || CHESTNUT || RADSTONE_PPC7D || \ |
796 | 83xx | 793 | 83xx |
diff --git a/arch/ppc/boot/simple/Makefile b/arch/ppc/boot/simple/Makefile index 20717193fff5..3e187fe0f599 100644 --- a/arch/ppc/boot/simple/Makefile +++ b/arch/ppc/boot/simple/Makefile | |||
@@ -106,7 +106,7 @@ zimageinitrd-$(CONFIG_GEMINI) := zImage.initrd-STRIPELF | |||
106 | 106 | ||
107 | # kconfig 'feature', only one of these will ever be 'y' at a time. | 107 | # kconfig 'feature', only one of these will ever be 'y' at a time. |
108 | # The rest will be unset. | 108 | # The rest will be unset. |
109 | motorola := $(CONFIG_MCPN765)$(CONFIG_MVME5100)$(CONFIG_PRPMC750) \ | 109 | motorola := $(CONFIG_MVME5100)$(CONFIG_PRPMC750) \ |
110 | $(CONFIG_PRPMC800)$(CONFIG_LOPEC)$(CONFIG_PPLUS) | 110 | $(CONFIG_PRPMC800)$(CONFIG_LOPEC)$(CONFIG_PPLUS) |
111 | motorola := $(strip $(motorola)) | 111 | motorola := $(strip $(motorola)) |
112 | pcore := $(CONFIG_PCORE)$(CONFIG_POWERPMC250) | 112 | pcore := $(CONFIG_PCORE)$(CONFIG_POWERPMC250) |
diff --git a/arch/ppc/configs/mcpn765_defconfig b/arch/ppc/configs/mcpn765_defconfig deleted file mode 100644 index 899e89a9ea6a..000000000000 --- a/arch/ppc/configs/mcpn765_defconfig +++ /dev/null | |||
@@ -1,579 +0,0 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # | ||
4 | CONFIG_MMU=y | ||
5 | CONFIG_RWSEM_XCHGADD_ALGORITHM=y | ||
6 | CONFIG_HAVE_DEC_LOCK=y | ||
7 | CONFIG_PPC=y | ||
8 | CONFIG_PPC32=y | ||
9 | CONFIG_GENERIC_NVRAM=y | ||
10 | |||
11 | # | ||
12 | # Code maturity level options | ||
13 | # | ||
14 | # CONFIG_EXPERIMENTAL is not set | ||
15 | CONFIG_CLEAN_COMPILE=y | ||
16 | CONFIG_STANDALONE=y | ||
17 | CONFIG_BROKEN_ON_SMP=y | ||
18 | |||
19 | # | ||
20 | # General setup | ||
21 | # | ||
22 | # CONFIG_SWAP is not set | ||
23 | CONFIG_SYSVIPC=y | ||
24 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
25 | CONFIG_SYSCTL=y | ||
26 | CONFIG_LOG_BUF_SHIFT=14 | ||
27 | # CONFIG_HOTPLUG is not set | ||
28 | # CONFIG_IKCONFIG is not set | ||
29 | CONFIG_EMBEDDED=y | ||
30 | CONFIG_KALLSYMS=y | ||
31 | CONFIG_FUTEX=y | ||
32 | CONFIG_EPOLL=y | ||
33 | CONFIG_IOSCHED_NOOP=y | ||
34 | CONFIG_IOSCHED_AS=y | ||
35 | CONFIG_IOSCHED_DEADLINE=y | ||
36 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set | ||
37 | |||
38 | # | ||
39 | # Loadable module support | ||
40 | # | ||
41 | CONFIG_MODULES=y | ||
42 | # CONFIG_MODULE_UNLOAD is not set | ||
43 | CONFIG_OBSOLETE_MODPARM=y | ||
44 | # CONFIG_KMOD is not set | ||
45 | |||
46 | # | ||
47 | # Processor | ||
48 | # | ||
49 | CONFIG_6xx=y | ||
50 | # CONFIG_40x is not set | ||
51 | # CONFIG_44x is not set | ||
52 | # CONFIG_POWER3 is not set | ||
53 | # CONFIG_POWER4 is not set | ||
54 | # CONFIG_8xx is not set | ||
55 | CONFIG_ALTIVEC=y | ||
56 | # CONFIG_TAU is not set | ||
57 | # CONFIG_CPU_FREQ is not set | ||
58 | CONFIG_PPC_STD_MMU=y | ||
59 | |||
60 | # | ||
61 | # Platform options | ||
62 | # | ||
63 | # CONFIG_PPC_MULTIPLATFORM is not set | ||
64 | # CONFIG_APUS is not set | ||
65 | # CONFIG_WILLOW is not set | ||
66 | # CONFIG_PCORE is not set | ||
67 | # CONFIG_POWERPMC250 is not set | ||
68 | # CONFIG_EV64260 is not set | ||
69 | # CONFIG_SPRUCE is not set | ||
70 | # CONFIG_LOPEC is not set | ||
71 | CONFIG_MCPN765=y | ||
72 | # CONFIG_MVME5100 is not set | ||
73 | # CONFIG_PPLUS is not set | ||
74 | # CONFIG_PRPMC750 is not set | ||
75 | # CONFIG_PRPMC800 is not set | ||
76 | # CONFIG_SANDPOINT is not set | ||
77 | # CONFIG_ADIR is not set | ||
78 | # CONFIG_K2 is not set | ||
79 | # CONFIG_PAL4 is not set | ||
80 | # CONFIG_GEMINI is not set | ||
81 | # CONFIG_EST8260 is not set | ||
82 | # CONFIG_SBS8260 is not set | ||
83 | # CONFIG_RPX6 is not set | ||
84 | # CONFIG_TQM8260 is not set | ||
85 | CONFIG_PPC_GEN550=y | ||
86 | # CONFIG_SMP is not set | ||
87 | # CONFIG_PREEMPT is not set | ||
88 | CONFIG_HIGHMEM=y | ||
89 | CONFIG_KERNEL_ELF=y | ||
90 | CONFIG_BINFMT_ELF=y | ||
91 | # CONFIG_BINFMT_MISC is not set | ||
92 | CONFIG_CMDLINE_BOOL=y | ||
93 | CONFIG_CMDLINE="ip=on" | ||
94 | |||
95 | # | ||
96 | # Bus options | ||
97 | # | ||
98 | CONFIG_GENERIC_ISA_DMA=y | ||
99 | CONFIG_PCI=y | ||
100 | CONFIG_PCI_DOMAINS=y | ||
101 | # CONFIG_PCI_LEGACY_PROC is not set | ||
102 | # CONFIG_PCI_NAMES is not set | ||
103 | |||
104 | # | ||
105 | # Advanced setup | ||
106 | # | ||
107 | # CONFIG_ADVANCED_OPTIONS is not set | ||
108 | |||
109 | # | ||
110 | # Default settings for advanced configuration options are used | ||
111 | # | ||
112 | CONFIG_HIGHMEM_START=0xfe000000 | ||
113 | CONFIG_LOWMEM_SIZE=0x30000000 | ||
114 | CONFIG_KERNEL_START=0xc0000000 | ||
115 | CONFIG_TASK_SIZE=0x80000000 | ||
116 | CONFIG_BOOT_LOAD=0x00800000 | ||
117 | |||
118 | # | ||
119 | # Device Drivers | ||
120 | # | ||
121 | |||
122 | # | ||
123 | # Generic Driver Options | ||
124 | # | ||
125 | |||
126 | # | ||
127 | # Memory Technology Devices (MTD) | ||
128 | # | ||
129 | # CONFIG_MTD is not set | ||
130 | |||
131 | # | ||
132 | # Parallel port support | ||
133 | # | ||
134 | # CONFIG_PARPORT is not set | ||
135 | |||
136 | # | ||
137 | # Plug and Play support | ||
138 | # | ||
139 | |||
140 | # | ||
141 | # Block devices | ||
142 | # | ||
143 | # CONFIG_BLK_DEV_FD is not set | ||
144 | # CONFIG_BLK_CPQ_DA is not set | ||
145 | # CONFIG_BLK_CPQ_CISS_DA is not set | ||
146 | # CONFIG_BLK_DEV_DAC960 is not set | ||
147 | CONFIG_BLK_DEV_LOOP=y | ||
148 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | ||
149 | # CONFIG_BLK_DEV_NBD is not set | ||
150 | # CONFIG_BLK_DEV_CARMEL is not set | ||
151 | CONFIG_BLK_DEV_RAM=y | ||
152 | CONFIG_BLK_DEV_RAM_SIZE=4096 | ||
153 | CONFIG_BLK_DEV_INITRD=y | ||
154 | # CONFIG_LBD is not set | ||
155 | |||
156 | # | ||
157 | # ATA/ATAPI/MFM/RLL support | ||
158 | # | ||
159 | CONFIG_IDE=y | ||
160 | CONFIG_BLK_DEV_IDE=y | ||
161 | |||
162 | # | ||
163 | # Please see Documentation/ide.txt for help/info on IDE drives | ||
164 | # | ||
165 | CONFIG_BLK_DEV_IDEDISK=y | ||
166 | # CONFIG_IDEDISK_MULTI_MODE is not set | ||
167 | # CONFIG_IDEDISK_STROKE is not set | ||
168 | # CONFIG_BLK_DEV_IDECD is not set | ||
169 | # CONFIG_BLK_DEV_IDEFLOPPY is not set | ||
170 | # CONFIG_IDE_TASK_IOCTL is not set | ||
171 | |||
172 | # | ||
173 | # IDE chipset support/bugfixes | ||
174 | # | ||
175 | # CONFIG_IDE_GENERIC is not set | ||
176 | CONFIG_BLK_DEV_IDEPCI=y | ||
177 | # CONFIG_IDEPCI_SHARE_IRQ is not set | ||
178 | # CONFIG_BLK_DEV_OFFBOARD is not set | ||
179 | # CONFIG_BLK_DEV_GENERIC is not set | ||
180 | # CONFIG_BLK_DEV_SL82C105 is not set | ||
181 | CONFIG_BLK_DEV_IDEDMA_PCI=y | ||
182 | # CONFIG_BLK_DEV_IDEDMA_FORCED is not set | ||
183 | # CONFIG_IDEDMA_PCI_AUTO is not set | ||
184 | CONFIG_BLK_DEV_ADMA=y | ||
185 | # CONFIG_BLK_DEV_AEC62XX is not set | ||
186 | # CONFIG_BLK_DEV_ALI15X3 is not set | ||
187 | # CONFIG_BLK_DEV_AMD74XX is not set | ||
188 | # CONFIG_BLK_DEV_CMD64X is not set | ||
189 | # CONFIG_BLK_DEV_TRIFLEX is not set | ||
190 | # CONFIG_BLK_DEV_CY82C693 is not set | ||
191 | # CONFIG_BLK_DEV_CS5530 is not set | ||
192 | # CONFIG_BLK_DEV_HPT34X is not set | ||
193 | # CONFIG_BLK_DEV_HPT366 is not set | ||
194 | # CONFIG_BLK_DEV_SC1200 is not set | ||
195 | # CONFIG_BLK_DEV_PIIX is not set | ||
196 | # CONFIG_BLK_DEV_NS87415 is not set | ||
197 | # CONFIG_BLK_DEV_PDC202XX_OLD is not set | ||
198 | # CONFIG_BLK_DEV_PDC202XX_NEW is not set | ||
199 | # CONFIG_BLK_DEV_SVWKS is not set | ||
200 | # CONFIG_BLK_DEV_SIIMAGE is not set | ||
201 | # CONFIG_BLK_DEV_SLC90E66 is not set | ||
202 | # CONFIG_BLK_DEV_TRM290 is not set | ||
203 | CONFIG_BLK_DEV_VIA82CXXX=y | ||
204 | CONFIG_BLK_DEV_IDEDMA=y | ||
205 | # CONFIG_IDEDMA_IVB is not set | ||
206 | # CONFIG_IDEDMA_AUTO is not set | ||
207 | # CONFIG_BLK_DEV_HD is not set | ||
208 | |||
209 | # | ||
210 | # SCSI device support | ||
211 | # | ||
212 | # CONFIG_SCSI is not set | ||
213 | |||
214 | # | ||
215 | # Multi-device support (RAID and LVM) | ||
216 | # | ||
217 | # CONFIG_MD is not set | ||
218 | |||
219 | # | ||
220 | # Fusion MPT device support | ||
221 | # | ||
222 | # CONFIG_FUSION is not set | ||
223 | |||
224 | # | ||
225 | # IEEE 1394 (FireWire) support | ||
226 | # | ||
227 | # CONFIG_IEEE1394 is not set | ||
228 | |||
229 | # | ||
230 | # I2O device support | ||
231 | # | ||
232 | # CONFIG_I2O is not set | ||
233 | |||
234 | # | ||
235 | # Macintosh device drivers | ||
236 | # | ||
237 | |||
238 | # | ||
239 | # Networking support | ||
240 | # | ||
241 | CONFIG_NET=y | ||
242 | |||
243 | # | ||
244 | # Networking options | ||
245 | # | ||
246 | CONFIG_PACKET=y | ||
247 | # CONFIG_PACKET_MMAP is not set | ||
248 | # CONFIG_NETLINK_DEV is not set | ||
249 | CONFIG_UNIX=y | ||
250 | # CONFIG_NET_KEY is not set | ||
251 | CONFIG_INET=y | ||
252 | # CONFIG_IP_MULTICAST is not set | ||
253 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
254 | CONFIG_IP_PNP=y | ||
255 | CONFIG_IP_PNP_DHCP=y | ||
256 | # CONFIG_IP_PNP_BOOTP is not set | ||
257 | # CONFIG_IP_PNP_RARP is not set | ||
258 | # CONFIG_NET_IPIP is not set | ||
259 | # CONFIG_NET_IPGRE is not set | ||
260 | # CONFIG_SYN_COOKIES is not set | ||
261 | # CONFIG_INET_AH is not set | ||
262 | # CONFIG_INET_ESP is not set | ||
263 | # CONFIG_INET_IPCOMP is not set | ||
264 | # CONFIG_DECNET is not set | ||
265 | # CONFIG_BRIDGE is not set | ||
266 | # CONFIG_NETFILTER is not set | ||
267 | # CONFIG_VLAN_8021Q is not set | ||
268 | # CONFIG_LLC2 is not set | ||
269 | # CONFIG_IPX is not set | ||
270 | # CONFIG_ATALK is not set | ||
271 | |||
272 | # | ||
273 | # QoS and/or fair queueing | ||
274 | # | ||
275 | # CONFIG_NET_SCHED is not set | ||
276 | |||
277 | # | ||
278 | # Network testing | ||
279 | # | ||
280 | # CONFIG_NET_PKTGEN is not set | ||
281 | CONFIG_NETDEVICES=y | ||
282 | |||
283 | # | ||
284 | # ARCnet devices | ||
285 | # | ||
286 | # CONFIG_ARCNET is not set | ||
287 | # CONFIG_DUMMY is not set | ||
288 | # CONFIG_BONDING is not set | ||
289 | # CONFIG_EQUALIZER is not set | ||
290 | # CONFIG_TUN is not set | ||
291 | |||
292 | # | ||
293 | # Ethernet (10 or 100Mbit) | ||
294 | # | ||
295 | CONFIG_NET_ETHERNET=y | ||
296 | CONFIG_MII=y | ||
297 | # CONFIG_OAKNET is not set | ||
298 | # CONFIG_HAPPYMEAL is not set | ||
299 | # CONFIG_SUNGEM is not set | ||
300 | # CONFIG_NET_VENDOR_3COM is not set | ||
301 | |||
302 | # | ||
303 | # Tulip family network device support | ||
304 | # | ||
305 | CONFIG_NET_TULIP=y | ||
306 | CONFIG_TULIP=y | ||
307 | # CONFIG_TULIP_MMIO is not set | ||
308 | # CONFIG_TULIP_NAPI is not set | ||
309 | # CONFIG_DE4X5 is not set | ||
310 | # CONFIG_WINBOND_840 is not set | ||
311 | # CONFIG_DM9102 is not set | ||
312 | # CONFIG_HP100 is not set | ||
313 | # CONFIG_NET_PCI is not set | ||
314 | |||
315 | # | ||
316 | # Ethernet (1000 Mbit) | ||
317 | # | ||
318 | # CONFIG_ACENIC is not set | ||
319 | # CONFIG_DL2K is not set | ||
320 | # CONFIG_E1000 is not set | ||
321 | # CONFIG_NS83820 is not set | ||
322 | # CONFIG_HAMACHI is not set | ||
323 | # CONFIG_R8169 is not set | ||
324 | # CONFIG_SK98LIN is not set | ||
325 | # CONFIG_TIGON3 is not set | ||
326 | |||
327 | # | ||
328 | # Ethernet (10000 Mbit) | ||
329 | # | ||
330 | # CONFIG_IXGB is not set | ||
331 | # CONFIG_FDDI is not set | ||
332 | # CONFIG_PPP is not set | ||
333 | # CONFIG_SLIP is not set | ||
334 | |||
335 | # | ||
336 | # Wireless LAN (non-hamradio) | ||
337 | # | ||
338 | # CONFIG_NET_RADIO is not set | ||
339 | |||
340 | # | ||
341 | # Token Ring devices | ||
342 | # | ||
343 | # CONFIG_TR is not set | ||
344 | |||
345 | # | ||
346 | # Wan interfaces | ||
347 | # | ||
348 | # CONFIG_WAN is not set | ||
349 | |||
350 | # | ||
351 | # Amateur Radio support | ||
352 | # | ||
353 | # CONFIG_HAMRADIO is not set | ||
354 | |||
355 | # | ||
356 | # IrDA (infrared) support | ||
357 | # | ||
358 | # CONFIG_IRDA is not set | ||
359 | |||
360 | # | ||
361 | # Bluetooth support | ||
362 | # | ||
363 | # CONFIG_BT is not set | ||
364 | # CONFIG_NETPOLL is not set | ||
365 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
366 | |||
367 | # | ||
368 | # ISDN subsystem | ||
369 | # | ||
370 | # CONFIG_ISDN is not set | ||
371 | |||
372 | # | ||
373 | # Telephony Support | ||
374 | # | ||
375 | # CONFIG_PHONE is not set | ||
376 | |||
377 | # | ||
378 | # Input device support | ||
379 | # | ||
380 | # CONFIG_INPUT is not set | ||
381 | |||
382 | # | ||
383 | # Userland interfaces | ||
384 | # | ||
385 | |||
386 | # | ||
387 | # Input I/O drivers | ||
388 | # | ||
389 | # CONFIG_GAMEPORT is not set | ||
390 | CONFIG_SOUND_GAMEPORT=y | ||
391 | # CONFIG_SERIO is not set | ||
392 | # CONFIG_SERIO_I8042 is not set | ||
393 | |||
394 | # | ||
395 | # Input Device Drivers | ||
396 | # | ||
397 | |||
398 | # | ||
399 | # Character devices | ||
400 | # | ||
401 | # CONFIG_VT is not set | ||
402 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
403 | |||
404 | # | ||
405 | # Serial drivers | ||
406 | # | ||
407 | CONFIG_SERIAL_8250=y | ||
408 | CONFIG_SERIAL_8250_CONSOLE=y | ||
409 | CONFIG_SERIAL_8250_NR_UARTS=4 | ||
410 | # CONFIG_SERIAL_8250_EXTENDED is not set | ||
411 | |||
412 | # | ||
413 | # Non-8250 serial port support | ||
414 | # | ||
415 | CONFIG_SERIAL_CORE=y | ||
416 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
417 | CONFIG_UNIX98_PTYS=y | ||
418 | CONFIG_LEGACY_PTYS=y | ||
419 | CONFIG_LEGACY_PTY_COUNT=256 | ||
420 | # CONFIG_QIC02_TAPE is not set | ||
421 | |||
422 | # | ||
423 | # IPMI | ||
424 | # | ||
425 | # CONFIG_IPMI_HANDLER is not set | ||
426 | |||
427 | # | ||
428 | # Watchdog Cards | ||
429 | # | ||
430 | # CONFIG_WATCHDOG is not set | ||
431 | # CONFIG_NVRAM is not set | ||
432 | CONFIG_GEN_RTC=y | ||
433 | # CONFIG_GEN_RTC_X is not set | ||
434 | # CONFIG_DTLK is not set | ||
435 | # CONFIG_R3964 is not set | ||
436 | # CONFIG_APPLICOM is not set | ||
437 | |||
438 | # | ||
439 | # Ftape, the floppy tape device driver | ||
440 | # | ||
441 | # CONFIG_FTAPE is not set | ||
442 | # CONFIG_AGP is not set | ||
443 | # CONFIG_DRM is not set | ||
444 | # CONFIG_RAW_DRIVER is not set | ||
445 | |||
446 | # | ||
447 | # I2C support | ||
448 | # | ||
449 | # CONFIG_I2C is not set | ||
450 | |||
451 | # | ||
452 | # Misc devices | ||
453 | # | ||
454 | |||
455 | # | ||
456 | # Multimedia devices | ||
457 | # | ||
458 | # CONFIG_VIDEO_DEV is not set | ||
459 | |||
460 | # | ||
461 | # Digital Video Broadcasting Devices | ||
462 | # | ||
463 | # CONFIG_DVB is not set | ||
464 | |||
465 | # | ||
466 | # Graphics support | ||
467 | # | ||
468 | # CONFIG_FB is not set | ||
469 | |||
470 | # | ||
471 | # Sound | ||
472 | # | ||
473 | # CONFIG_SOUND is not set | ||
474 | |||
475 | # | ||
476 | # USB support | ||
477 | # | ||
478 | # CONFIG_USB is not set | ||
479 | |||
480 | # | ||
481 | # USB Gadget Support | ||
482 | # | ||
483 | # CONFIG_USB_GADGET is not set | ||
484 | |||
485 | # | ||
486 | # File systems | ||
487 | # | ||
488 | CONFIG_EXT2_FS=y | ||
489 | # CONFIG_EXT2_FS_XATTR is not set | ||
490 | # CONFIG_EXT3_FS is not set | ||
491 | # CONFIG_JBD is not set | ||
492 | # CONFIG_REISERFS_FS is not set | ||
493 | # CONFIG_JFS_FS is not set | ||
494 | # CONFIG_XFS_FS is not set | ||
495 | # CONFIG_MINIX_FS is not set | ||
496 | # CONFIG_ROMFS_FS is not set | ||
497 | # CONFIG_QUOTA is not set | ||
498 | # CONFIG_AUTOFS_FS is not set | ||
499 | # CONFIG_AUTOFS4_FS is not set | ||
500 | |||
501 | # | ||
502 | # CD-ROM/DVD Filesystems | ||
503 | # | ||
504 | # CONFIG_ISO9660_FS is not set | ||
505 | # CONFIG_UDF_FS is not set | ||
506 | |||
507 | # | ||
508 | # DOS/FAT/NT Filesystems | ||
509 | # | ||
510 | # CONFIG_FAT_FS is not set | ||
511 | # CONFIG_NTFS_FS is not set | ||
512 | |||
513 | # | ||
514 | # Pseudo filesystems | ||
515 | # | ||
516 | CONFIG_PROC_FS=y | ||
517 | CONFIG_PROC_KCORE=y | ||
518 | # CONFIG_DEVPTS_FS_XATTR is not set | ||
519 | CONFIG_TMPFS=y | ||
520 | # CONFIG_HUGETLB_PAGE is not set | ||
521 | CONFIG_RAMFS=y | ||
522 | |||
523 | # | ||
524 | # Miscellaneous filesystems | ||
525 | # | ||
526 | # CONFIG_HFSPLUS_FS is not set | ||
527 | # CONFIG_CRAMFS is not set | ||
528 | # CONFIG_VXFS_FS is not set | ||
529 | # CONFIG_HPFS_FS is not set | ||
530 | # CONFIG_QNX4FS_FS is not set | ||
531 | # CONFIG_SYSV_FS is not set | ||
532 | # CONFIG_UFS_FS is not set | ||
533 | |||
534 | # | ||
535 | # Network File Systems | ||
536 | # | ||
537 | CONFIG_NFS_FS=y | ||
538 | # CONFIG_NFS_V3 is not set | ||
539 | # CONFIG_NFSD is not set | ||
540 | CONFIG_ROOT_NFS=y | ||
541 | CONFIG_LOCKD=y | ||
542 | # CONFIG_EXPORTFS is not set | ||
543 | CONFIG_SUNRPC=y | ||
544 | # CONFIG_SMB_FS is not set | ||
545 | # CONFIG_CIFS is not set | ||
546 | # CONFIG_NCP_FS is not set | ||
547 | # CONFIG_CODA_FS is not set | ||
548 | |||
549 | # | ||
550 | # Partition Types | ||
551 | # | ||
552 | # CONFIG_PARTITION_ADVANCED is not set | ||
553 | CONFIG_MSDOS_PARTITION=y | ||
554 | |||
555 | # | ||
556 | # Native Language Support | ||
557 | # | ||
558 | # CONFIG_NLS is not set | ||
559 | |||
560 | # | ||
561 | # Library routines | ||
562 | # | ||
563 | CONFIG_CRC32=y | ||
564 | |||
565 | # | ||
566 | # Kernel hacking | ||
567 | # | ||
568 | # CONFIG_DEBUG_KERNEL is not set | ||
569 | # CONFIG_SERIAL_TEXT_DEBUG is not set | ||
570 | |||
571 | # | ||
572 | # Security options | ||
573 | # | ||
574 | # CONFIG_SECURITY is not set | ||
575 | |||
576 | # | ||
577 | # Cryptographic options | ||
578 | # | ||
579 | # CONFIG_CRYPTO is not set | ||
diff --git a/arch/ppc/platforms/Makefile b/arch/ppc/platforms/Makefile index fb52acf5daad..2360bdcc79fd 100644 --- a/arch/ppc/platforms/Makefile +++ b/arch/ppc/platforms/Makefile | |||
@@ -30,7 +30,6 @@ obj-$(CONFIG_GEMINI) += gemini_pci.o gemini_setup.o gemini_prom.o | |||
30 | obj-$(CONFIG_LOPEC) += lopec.o | 30 | obj-$(CONFIG_LOPEC) += lopec.o |
31 | obj-$(CONFIG_KATANA) += katana.o | 31 | obj-$(CONFIG_KATANA) += katana.o |
32 | obj-$(CONFIG_HDPU) += hdpu.o | 32 | obj-$(CONFIG_HDPU) += hdpu.o |
33 | obj-$(CONFIG_MCPN765) += mcpn765.o | ||
34 | obj-$(CONFIG_MENF1) += menf1_setup.o menf1_pci.o | 33 | obj-$(CONFIG_MENF1) += menf1_setup.o menf1_pci.o |
35 | obj-$(CONFIG_MVME5100) += mvme5100.o | 34 | obj-$(CONFIG_MVME5100) += mvme5100.o |
36 | obj-$(CONFIG_PAL4) += pal4_setup.o pal4_pci.o | 35 | obj-$(CONFIG_PAL4) += pal4_setup.o pal4_pci.o |
diff --git a/arch/ppc/platforms/mcpn765.c b/arch/ppc/platforms/mcpn765.c deleted file mode 100644 index e88d294ea593..000000000000 --- a/arch/ppc/platforms/mcpn765.c +++ /dev/null | |||
@@ -1,527 +0,0 @@ | |||
1 | /* | ||
2 | * arch/ppc/platforms/mcpn765.c | ||
3 | * | ||
4 | * Board setup routines for the Motorola MCG MCPN765 cPCI Board. | ||
5 | * | ||
6 | * Author: Mark A. Greer | ||
7 | * mgreer@mvista.com | ||
8 | * | ||
9 | * Modified by Randy Vinson (rvinson@mvista.com) | ||
10 | * | ||
11 | * 2001-2002 (c) MontaVista, Software, Inc. This file is licensed under | ||
12 | * the terms of the GNU General Public License version 2. This program | ||
13 | * is licensed "as is" without any warranty of any kind, whether express | ||
14 | * or implied. | ||
15 | */ | ||
16 | |||
17 | /* | ||
18 | * This file adds support for the Motorola MCG MCPN765. | ||
19 | */ | ||
20 | #include <linux/config.h> | ||
21 | #include <linux/stddef.h> | ||
22 | #include <linux/kernel.h> | ||
23 | #include <linux/init.h> | ||
24 | #include <linux/errno.h> | ||
25 | #include <linux/reboot.h> | ||
26 | #include <linux/pci.h> | ||
27 | #include <linux/kdev_t.h> | ||
28 | #include <linux/major.h> | ||
29 | #include <linux/initrd.h> | ||
30 | #include <linux/console.h> | ||
31 | #include <linux/delay.h> | ||
32 | #include <linux/irq.h> | ||
33 | #include <linux/seq_file.h> | ||
34 | #include <linux/root_dev.h> | ||
35 | #include <linux/serial.h> | ||
36 | #include <linux/tty.h> /* for linux/serial_core.h */ | ||
37 | #include <linux/serial_core.h> | ||
38 | #include <linux/slab.h> | ||
39 | |||
40 | #include <asm/system.h> | ||
41 | #include <asm/pgtable.h> | ||
42 | #include <asm/page.h> | ||
43 | #include <asm/time.h> | ||
44 | #include <asm/dma.h> | ||
45 | #include <asm/byteorder.h> | ||
46 | #include <asm/io.h> | ||
47 | #include <asm/machdep.h> | ||
48 | #include <asm/prom.h> | ||
49 | #include <asm/smp.h> | ||
50 | #include <asm/open_pic.h> | ||
51 | #include <asm/i8259.h> | ||
52 | #include <asm/todc.h> | ||
53 | #include <asm/pci-bridge.h> | ||
54 | #include <asm/irq.h> | ||
55 | #include <asm/uaccess.h> | ||
56 | #include <asm/bootinfo.h> | ||
57 | #include <asm/hawk.h> | ||
58 | #include <asm/kgdb.h> | ||
59 | |||
60 | #include "mcpn765.h" | ||
61 | |||
62 | static u_char mcpn765_openpic_initsenses[] __initdata = { | ||
63 | (IRQ_SENSE_EDGE | IRQ_POLARITY_POSITIVE),/* 16: i8259 cascade */ | ||
64 | (IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* 17: COM1,2,3,4 */ | ||
65 | (IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* 18: Enet 1 (front) */ | ||
66 | (IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* 19: HAWK WDT XXXX */ | ||
67 | (IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* 20: 21554 bridge */ | ||
68 | (IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* 21: cPCI INTA# */ | ||
69 | (IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* 22: cPCI INTB# */ | ||
70 | (IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* 23: cPCI INTC# */ | ||
71 | (IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* 24: cPCI INTD# */ | ||
72 | (IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* 25: PMC1 INTA#,PMC2 INTB#*/ | ||
73 | (IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* 26: PMC1 INTB#,PMC2 INTC#*/ | ||
74 | (IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* 27: PMC1 INTC#,PMC2 INTD#*/ | ||
75 | (IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* 28: PMC1 INTD#,PMC2 INTA#*/ | ||
76 | (IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* 29: Enet 2 (J3) */ | ||
77 | (IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* 30: Abort Switch */ | ||
78 | (IRQ_SENSE_LEVEL | IRQ_POLARITY_NEGATIVE),/* 31: RTC Alarm */ | ||
79 | }; | ||
80 | |||
81 | extern void mcpn765_set_VIA_IDE_native(void); | ||
82 | |||
83 | extern u_int openpic_irq(void); | ||
84 | extern char cmd_line[]; | ||
85 | |||
86 | extern void gen550_progress(char *, unsigned short); | ||
87 | extern void gen550_init(int, struct uart_port *); | ||
88 | |||
89 | int use_of_interrupt_tree = 0; | ||
90 | |||
91 | static void mcpn765_halt(void); | ||
92 | |||
93 | TODC_ALLOC(); | ||
94 | |||
95 | /* | ||
96 | * Motorola MCG MCPN765 interrupt routing. | ||
97 | */ | ||
98 | static inline int | ||
99 | mcpn765_map_irq(struct pci_dev *dev, unsigned char idsel, unsigned char pin) | ||
100 | { | ||
101 | static char pci_irq_table[][4] = | ||
102 | /* | ||
103 | * PCI IDSEL/INTPIN->INTLINE | ||
104 | * A B C D | ||
105 | */ | ||
106 | { | ||
107 | { 14, 0, 0, 0 }, /* IDSEL 11 - have to manually set */ | ||
108 | { 0, 0, 0, 0 }, /* IDSEL 12 - unused */ | ||
109 | { 0, 0, 0, 0 }, /* IDSEL 13 - unused */ | ||
110 | { 18, 0, 0, 0 }, /* IDSEL 14 - Enet 0 */ | ||
111 | { 0, 0, 0, 0 }, /* IDSEL 15 - unused */ | ||
112 | { 25, 26, 27, 28 }, /* IDSEL 16 - PMC Slot 1 */ | ||
113 | { 28, 25, 26, 27 }, /* IDSEL 17 - PMC Slot 2 */ | ||
114 | { 0, 0, 0, 0 }, /* IDSEL 18 - PMC 2B Connector XXXX */ | ||
115 | { 29, 0, 0, 0 }, /* IDSEL 19 - Enet 1 */ | ||
116 | { 20, 0, 0, 0 }, /* IDSEL 20 - 21554 cPCI bridge */ | ||
117 | }; | ||
118 | |||
119 | const long min_idsel = 11, max_idsel = 20, irqs_per_slot = 4; | ||
120 | return PCI_IRQ_TABLE_LOOKUP; | ||
121 | } | ||
122 | |||
123 | void __init | ||
124 | mcpn765_set_VIA_IDE_legacy(void) | ||
125 | { | ||
126 | unsigned short vend, dev; | ||
127 | |||
128 | early_read_config_word(0, 0, PCI_DEVFN(0xb, 1), PCI_VENDOR_ID, &vend); | ||
129 | early_read_config_word(0, 0, PCI_DEVFN(0xb, 1), PCI_DEVICE_ID, &dev); | ||
130 | |||
131 | if ((vend == PCI_VENDOR_ID_VIA) && | ||
132 | (dev == PCI_DEVICE_ID_VIA_82C586_1)) { | ||
133 | |||
134 | unsigned char temp; | ||
135 | |||
136 | /* put back original "standard" port base addresses */ | ||
137 | early_write_config_dword(0, 0, PCI_DEVFN(0xb, 1), | ||
138 | PCI_BASE_ADDRESS_0, 0x1f1); | ||
139 | early_write_config_dword(0, 0, PCI_DEVFN(0xb, 1), | ||
140 | PCI_BASE_ADDRESS_1, 0x3f5); | ||
141 | early_write_config_dword(0, 0, PCI_DEVFN(0xb, 1), | ||
142 | PCI_BASE_ADDRESS_2, 0x171); | ||
143 | early_write_config_dword(0, 0, PCI_DEVFN(0xb, 1), | ||
144 | PCI_BASE_ADDRESS_3, 0x375); | ||
145 | early_write_config_dword(0, 0, PCI_DEVFN(0xb, 1), | ||
146 | PCI_BASE_ADDRESS_4, 0xcc01); | ||
147 | |||
148 | /* put into legacy mode */ | ||
149 | early_read_config_byte(0, 0, PCI_DEVFN(0xb, 1), PCI_CLASS_PROG, | ||
150 | &temp); | ||
151 | temp &= ~0x05; | ||
152 | early_write_config_byte(0, 0, PCI_DEVFN(0xb, 1), PCI_CLASS_PROG, | ||
153 | temp); | ||
154 | } | ||
155 | } | ||
156 | |||
157 | void | ||
158 | mcpn765_set_VIA_IDE_native(void) | ||
159 | { | ||
160 | unsigned short vend, dev; | ||
161 | |||
162 | early_read_config_word(0, 0, PCI_DEVFN(0xb, 1), PCI_VENDOR_ID, &vend); | ||
163 | early_read_config_word(0, 0, PCI_DEVFN(0xb, 1), PCI_DEVICE_ID, &dev); | ||
164 | |||
165 | if ((vend == PCI_VENDOR_ID_VIA) && | ||
166 | (dev == PCI_DEVICE_ID_VIA_82C586_1)) { | ||
167 | |||
168 | unsigned char temp; | ||
169 | |||
170 | /* put into native mode */ | ||
171 | early_read_config_byte(0, 0, PCI_DEVFN(0xb, 1), PCI_CLASS_PROG, | ||
172 | &temp); | ||
173 | temp |= 0x05; | ||
174 | early_write_config_byte(0, 0, PCI_DEVFN(0xb, 1), PCI_CLASS_PROG, | ||
175 | temp); | ||
176 | } | ||
177 | } | ||
178 | |||
179 | /* | ||
180 | * Initialize the VIA 82c586b. | ||
181 | */ | ||
182 | static void __init | ||
183 | mcpn765_setup_via_82c586b(void) | ||
184 | { | ||
185 | struct pci_dev *dev; | ||
186 | u_char c; | ||
187 | |||
188 | if ((dev = pci_get_device(PCI_VENDOR_ID_VIA, | ||
189 | PCI_DEVICE_ID_VIA_82C586_0, | ||
190 | NULL)) == NULL) { | ||
191 | printk("No VIA ISA bridge found\n"); | ||
192 | mcpn765_halt(); | ||
193 | /* NOTREACHED */ | ||
194 | } | ||
195 | |||
196 | /* | ||
197 | * If the firmware left the EISA 4d0/4d1 ports enabled, make sure | ||
198 | * IRQ 14 is set for edge. | ||
199 | */ | ||
200 | pci_read_config_byte(dev, 0x47, &c); | ||
201 | |||
202 | if (c & (1<<5)) { | ||
203 | c = inb(0x4d1); | ||
204 | c &= ~(1<<6); | ||
205 | outb(c, 0x4d1); | ||
206 | } | ||
207 | |||
208 | /* Disable PNP IRQ routing since we use the Hawk's MPIC */ | ||
209 | pci_write_config_dword(dev, 0x54, 0); | ||
210 | pci_write_config_byte(dev, 0x58, 0); | ||
211 | |||
212 | pci_dev_put(dev); | ||
213 | if ((dev = pci_get_device(PCI_VENDOR_ID_VIA, | ||
214 | PCI_DEVICE_ID_VIA_82C586_1, | ||
215 | NULL)) == NULL) { | ||
216 | printk("No VIA ISA bridge found\n"); | ||
217 | mcpn765_halt(); | ||
218 | /* NOTREACHED */ | ||
219 | } | ||
220 | |||
221 | /* | ||
222 | * PPCBug doesn't set the enable bits for the IDE device. | ||
223 | * Turn them on now. | ||
224 | */ | ||
225 | pci_read_config_byte(dev, 0x40, &c); | ||
226 | c |= 0x03; | ||
227 | pci_write_config_byte(dev, 0x40, c); | ||
228 | pci_dev_put(dev); | ||
229 | |||
230 | return; | ||
231 | } | ||
232 | |||
233 | void __init | ||
234 | mcpn765_pcibios_fixup(void) | ||
235 | { | ||
236 | /* Do MCPN765 board specific initialization. */ | ||
237 | mcpn765_setup_via_82c586b(); | ||
238 | } | ||
239 | |||
240 | void __init | ||
241 | mcpn765_find_bridges(void) | ||
242 | { | ||
243 | struct pci_controller *hose; | ||
244 | |||
245 | hose = pcibios_alloc_controller(); | ||
246 | |||
247 | if (!hose) | ||
248 | return; | ||
249 | |||
250 | hose->first_busno = 0; | ||
251 | hose->last_busno = 0xff; | ||
252 | hose->pci_mem_offset = MCPN765_PCI_PHY_MEM_OFFSET; | ||
253 | |||
254 | pci_init_resource(&hose->io_resource, | ||
255 | MCPN765_PCI_IO_START, | ||
256 | MCPN765_PCI_IO_END, | ||
257 | IORESOURCE_IO, | ||
258 | "PCI host bridge"); | ||
259 | |||
260 | pci_init_resource(&hose->mem_resources[0], | ||
261 | MCPN765_PCI_MEM_START, | ||
262 | MCPN765_PCI_MEM_END, | ||
263 | IORESOURCE_MEM, | ||
264 | "PCI host bridge"); | ||
265 | |||
266 | hose->io_space.start = MCPN765_PCI_IO_START; | ||
267 | hose->io_space.end = MCPN765_PCI_IO_END; | ||
268 | hose->mem_space.start = MCPN765_PCI_MEM_START; | ||
269 | hose->mem_space.end = MCPN765_PCI_MEM_END - HAWK_MPIC_SIZE; | ||
270 | |||
271 | if (hawk_init(hose, | ||
272 | MCPN765_HAWK_PPC_REG_BASE, | ||
273 | MCPN765_PROC_PCI_MEM_START, | ||
274 | MCPN765_PROC_PCI_MEM_END - HAWK_MPIC_SIZE, | ||
275 | MCPN765_PROC_PCI_IO_START, | ||
276 | MCPN765_PROC_PCI_IO_END, | ||
277 | MCPN765_PCI_MEM_END - HAWK_MPIC_SIZE + 1) != 0) { | ||
278 | printk("Could not initialize HAWK bridge\n"); | ||
279 | } | ||
280 | |||
281 | /* VIA IDE BAR decoders are only 16-bits wide. PCI Auto Config | ||
282 | * will reassign the bars outside of 16-bit I/O space, which will | ||
283 | * "break" things. To prevent this, we'll set the IDE chip into | ||
284 | * legacy mode and seed the bars with their legacy addresses (in 16-bit | ||
285 | * I/O space). The Auto Config code will skip the IDE contoller in | ||
286 | * legacy mode, so our bar values will stick. | ||
287 | */ | ||
288 | mcpn765_set_VIA_IDE_legacy(); | ||
289 | |||
290 | hose->last_busno = pciauto_bus_scan(hose, hose->first_busno); | ||
291 | |||
292 | /* Now that we've got 16-bit addresses in the bars, we can switch the | ||
293 | * IDE controller back into native mode so we can do "modern" resource | ||
294 | * and interrupt management. | ||
295 | */ | ||
296 | mcpn765_set_VIA_IDE_native(); | ||
297 | |||
298 | ppc_md.pcibios_fixup = mcpn765_pcibios_fixup; | ||
299 | ppc_md.pcibios_fixup_bus = NULL; | ||
300 | ppc_md.pci_swizzle = common_swizzle; | ||
301 | ppc_md.pci_map_irq = mcpn765_map_irq; | ||
302 | |||
303 | return; | ||
304 | } | ||
305 | static void __init | ||
306 | mcpn765_setup_arch(void) | ||
307 | { | ||
308 | struct pci_controller *hose; | ||
309 | |||
310 | if ( ppc_md.progress ) | ||
311 | ppc_md.progress("mcpn765_setup_arch: enter", 0); | ||
312 | |||
313 | loops_per_jiffy = 50000000 / HZ; | ||
314 | |||
315 | #ifdef CONFIG_BLK_DEV_INITRD | ||
316 | if (initrd_start) | ||
317 | ROOT_DEV = Root_RAM0; | ||
318 | else | ||
319 | #endif | ||
320 | #ifdef CONFIG_ROOT_NFS | ||
321 | ROOT_DEV = Root_NFS; | ||
322 | #else | ||
323 | ROOT_DEV = Root_SDA2; | ||
324 | #endif | ||
325 | |||
326 | if ( ppc_md.progress ) | ||
327 | ppc_md.progress("mcpn765_setup_arch: find_bridges", 0); | ||
328 | |||
329 | /* Lookup PCI host bridges */ | ||
330 | mcpn765_find_bridges(); | ||
331 | |||
332 | hose = pci_bus_to_hose(0); | ||
333 | isa_io_base = (ulong)hose->io_base_virt; | ||
334 | |||
335 | TODC_INIT(TODC_TYPE_MK48T37, | ||
336 | (MCPN765_PHYS_NVRAM_AS0 - isa_io_base), | ||
337 | (MCPN765_PHYS_NVRAM_AS1 - isa_io_base), | ||
338 | (MCPN765_PHYS_NVRAM_DATA - isa_io_base), | ||
339 | 8); | ||
340 | |||
341 | OpenPIC_InitSenses = mcpn765_openpic_initsenses; | ||
342 | OpenPIC_NumInitSenses = sizeof(mcpn765_openpic_initsenses); | ||
343 | |||
344 | printk("Motorola MCG MCPN765 cPCI Non-System Board\n"); | ||
345 | printk("MCPN765 port (MontaVista Software, Inc. (source@mvista.com))\n"); | ||
346 | |||
347 | if ( ppc_md.progress ) | ||
348 | ppc_md.progress("mcpn765_setup_arch: exit", 0); | ||
349 | |||
350 | return; | ||
351 | } | ||
352 | |||
353 | static void __init | ||
354 | mcpn765_init2(void) | ||
355 | { | ||
356 | |||
357 | request_region(0x00,0x20,"dma1"); | ||
358 | request_region(0x20,0x20,"pic1"); | ||
359 | request_region(0x40,0x20,"timer"); | ||
360 | request_region(0x80,0x10,"dma page reg"); | ||
361 | request_region(0xa0,0x20,"pic2"); | ||
362 | request_region(0xc0,0x20,"dma2"); | ||
363 | |||
364 | return; | ||
365 | } | ||
366 | |||
367 | /* | ||
368 | * Interrupt setup and service. | ||
369 | * Have MPIC on HAWK and cascaded 8259s on VIA 82586 cascaded to MPIC. | ||
370 | */ | ||
371 | static void __init | ||
372 | mcpn765_init_IRQ(void) | ||
373 | { | ||
374 | int i; | ||
375 | |||
376 | if ( ppc_md.progress ) | ||
377 | ppc_md.progress("init_irq: enter", 0); | ||
378 | |||
379 | openpic_init(NUM_8259_INTERRUPTS); | ||
380 | openpic_hookup_cascade(NUM_8259_INTERRUPTS, "82c59 cascade", | ||
381 | i8259_irq); | ||
382 | |||
383 | for(i=0; i < NUM_8259_INTERRUPTS; i++) | ||
384 | irq_desc[i].handler = &i8259_pic; | ||
385 | |||
386 | i8259_init(0); | ||
387 | |||
388 | if ( ppc_md.progress ) | ||
389 | ppc_md.progress("init_irq: exit", 0); | ||
390 | |||
391 | return; | ||
392 | } | ||
393 | |||
394 | static u32 | ||
395 | mcpn765_irq_canonicalize(u32 irq) | ||
396 | { | ||
397 | if (irq == 2) | ||
398 | return 9; | ||
399 | else | ||
400 | return irq; | ||
401 | } | ||
402 | |||
403 | static unsigned long __init | ||
404 | mcpn765_find_end_of_memory(void) | ||
405 | { | ||
406 | return hawk_get_mem_size(MCPN765_HAWK_SMC_BASE); | ||
407 | } | ||
408 | |||
409 | static void __init | ||
410 | mcpn765_map_io(void) | ||
411 | { | ||
412 | io_block_mapping(0xfe800000, 0xfe800000, 0x00800000, _PAGE_IO); | ||
413 | } | ||
414 | |||
415 | static void | ||
416 | mcpn765_reset_board(void) | ||
417 | { | ||
418 | local_irq_disable(); | ||
419 | |||
420 | /* set VIA IDE controller into native mode */ | ||
421 | mcpn765_set_VIA_IDE_native(); | ||
422 | |||
423 | /* Set exception prefix high - to the firmware */ | ||
424 | _nmask_and_or_msr(0, MSR_IP); | ||
425 | |||
426 | out_8((u_char *)MCPN765_BOARD_MODRST_REG, 0x01); | ||
427 | |||
428 | return; | ||
429 | } | ||
430 | |||
431 | static void | ||
432 | mcpn765_restart(char *cmd) | ||
433 | { | ||
434 | volatile ulong i = 10000000; | ||
435 | |||
436 | mcpn765_reset_board(); | ||
437 | |||
438 | while (i-- > 0); | ||
439 | panic("restart failed\n"); | ||
440 | } | ||
441 | |||
442 | static void | ||
443 | mcpn765_power_off(void) | ||
444 | { | ||
445 | mcpn765_halt(); | ||
446 | /* NOTREACHED */ | ||
447 | } | ||
448 | |||
449 | static void | ||
450 | mcpn765_halt(void) | ||
451 | { | ||
452 | local_irq_disable(); | ||
453 | while (1); | ||
454 | /* NOTREACHED */ | ||
455 | } | ||
456 | |||
457 | static int | ||
458 | mcpn765_show_cpuinfo(struct seq_file *m) | ||
459 | { | ||
460 | seq_printf(m, "vendor\t\t: Motorola MCG\n"); | ||
461 | seq_printf(m, "machine\t\t: MCPN765\n"); | ||
462 | |||
463 | return 0; | ||
464 | } | ||
465 | |||
466 | /* | ||
467 | * Set BAT 3 to map 0xf0000000 to end of physical memory space. | ||
468 | */ | ||
469 | static __inline__ void | ||
470 | mcpn765_set_bat(void) | ||
471 | { | ||
472 | mb(); | ||
473 | mtspr(SPRN_DBAT1U, 0xfe8000fe); | ||
474 | mtspr(SPRN_DBAT1L, 0xfe80002a); | ||
475 | mb(); | ||
476 | } | ||
477 | |||
478 | void __init | ||
479 | platform_init(unsigned long r3, unsigned long r4, unsigned long r5, | ||
480 | unsigned long r6, unsigned long r7) | ||
481 | { | ||
482 | parse_bootinfo(find_bootinfo()); | ||
483 | |||
484 | /* Map in board regs, etc. */ | ||
485 | mcpn765_set_bat(); | ||
486 | |||
487 | isa_mem_base = MCPN765_ISA_MEM_BASE; | ||
488 | pci_dram_offset = MCPN765_PCI_DRAM_OFFSET; | ||
489 | ISA_DMA_THRESHOLD = 0x00ffffff; | ||
490 | DMA_MODE_READ = 0x44; | ||
491 | DMA_MODE_WRITE = 0x48; | ||
492 | |||
493 | ppc_md.setup_arch = mcpn765_setup_arch; | ||
494 | ppc_md.show_cpuinfo = mcpn765_show_cpuinfo; | ||
495 | ppc_md.irq_canonicalize = mcpn765_irq_canonicalize; | ||
496 | ppc_md.init_IRQ = mcpn765_init_IRQ; | ||
497 | ppc_md.get_irq = openpic_get_irq; | ||
498 | ppc_md.init = mcpn765_init2; | ||
499 | |||
500 | ppc_md.restart = mcpn765_restart; | ||
501 | ppc_md.power_off = mcpn765_power_off; | ||
502 | ppc_md.halt = mcpn765_halt; | ||
503 | |||
504 | ppc_md.find_end_of_memory = mcpn765_find_end_of_memory; | ||
505 | ppc_md.setup_io_mappings = mcpn765_map_io; | ||
506 | |||
507 | ppc_md.time_init = todc_time_init; | ||
508 | ppc_md.set_rtc_time = todc_set_rtc_time; | ||
509 | ppc_md.get_rtc_time = todc_get_rtc_time; | ||
510 | ppc_md.calibrate_decr = todc_calibrate_decr; | ||
511 | |||
512 | ppc_md.nvram_read_val = todc_m48txx_read_val; | ||
513 | ppc_md.nvram_write_val = todc_m48txx_write_val; | ||
514 | |||
515 | ppc_md.heartbeat = NULL; | ||
516 | ppc_md.heartbeat_reset = 0; | ||
517 | ppc_md.heartbeat_count = 0; | ||
518 | |||
519 | #ifdef CONFIG_SERIAL_TEXT_DEBUG | ||
520 | ppc_md.progress = gen550_progress; | ||
521 | #endif | ||
522 | #ifdef CONFIG_KGDB | ||
523 | ppc_md.kgdb_map_scc = gen550_kgdb_map_scc; | ||
524 | #endif | ||
525 | |||
526 | return; | ||
527 | } | ||
diff --git a/arch/ppc/platforms/mcpn765.h b/arch/ppc/platforms/mcpn765.h deleted file mode 100644 index 4d35ecad097b..000000000000 --- a/arch/ppc/platforms/mcpn765.h +++ /dev/null | |||
@@ -1,122 +0,0 @@ | |||
1 | /* | ||
2 | * arch/ppc/platforms/mcpn765.h | ||
3 | * | ||
4 | * Definitions for Motorola MCG MCPN765 cPCI Board. | ||
5 | * | ||
6 | * Author: Mark A. Greer | ||
7 | * mgreer@mvista.com | ||
8 | * | ||
9 | * 2001-2004 (c) MontaVista, Software, Inc. This file is licensed under | ||
10 | * the terms of the GNU General Public License version 2. This program | ||
11 | * is licensed "as is" without any warranty of any kind, whether express | ||
12 | * or implied. | ||
13 | */ | ||
14 | |||
15 | /* | ||
16 | * From Processor to PCI: | ||
17 | * PCI Mem Space: 0x80000000 - 0xc0000000 -> 0x80000000 - 0xc0000000 (1 GB) | ||
18 | * PCI I/O Space: 0xfd800000 - 0xfe000000 -> 0x00000000 - 0x00800000 (8 MB) | ||
19 | * Note: Must skip 0xfe000000-0xfe400000 for CONFIG_HIGHMEM/PKMAP area | ||
20 | * MPIC in PCI Mem Space: 0xfe800000 - 0xfe830000 (not all used by MPIC) | ||
21 | * | ||
22 | * From PCI to Processor: | ||
23 | * System Memory: 0x00000000 -> 0x00000000 | ||
24 | */ | ||
25 | |||
26 | #ifndef __PPC_PLATFORMS_MCPN765_H | ||
27 | #define __PPC_PLATFORMS_MCPN765_H | ||
28 | #include <linux/config.h> | ||
29 | |||
30 | /* PCI Memory space mapping info */ | ||
31 | #define MCPN765_PCI_MEM_SIZE 0x40000000U | ||
32 | #define MCPN765_PROC_PCI_MEM_START 0x80000000U | ||
33 | #define MCPN765_PROC_PCI_MEM_END (MCPN765_PROC_PCI_MEM_START + \ | ||
34 | MCPN765_PCI_MEM_SIZE - 1) | ||
35 | #define MCPN765_PCI_MEM_START 0x80000000U | ||
36 | #define MCPN765_PCI_MEM_END (MCPN765_PCI_MEM_START + \ | ||
37 | MCPN765_PCI_MEM_SIZE - 1) | ||
38 | |||
39 | /* PCI I/O space mapping info */ | ||
40 | #define MCPN765_PCI_IO_SIZE 0x00800000U | ||
41 | #define MCPN765_PROC_PCI_IO_START 0xfd800000U | ||
42 | #define MCPN765_PROC_PCI_IO_END (MCPN765_PROC_PCI_IO_START + \ | ||
43 | MCPN765_PCI_IO_SIZE - 1) | ||
44 | #define MCPN765_PCI_IO_START 0x00000000U | ||
45 | #define MCPN765_PCI_IO_END (MCPN765_PCI_IO_START + \ | ||
46 | MCPN765_PCI_IO_SIZE - 1) | ||
47 | |||
48 | /* System memory mapping info */ | ||
49 | #define MCPN765_PCI_DRAM_OFFSET 0x00000000U | ||
50 | #define MCPN765_PCI_PHY_MEM_OFFSET 0x00000000U | ||
51 | |||
52 | #define MCPN765_ISA_MEM_BASE 0x00000000U | ||
53 | #define MCPN765_ISA_IO_BASE MCPN765_PROC_PCI_IO_START | ||
54 | |||
55 | /* Define base addresses for important sets of registers */ | ||
56 | #define MCPN765_HAWK_MPIC_BASE 0xfe800000U | ||
57 | #define MCPN765_HAWK_SMC_BASE 0xfef80000U | ||
58 | #define MCPN765_HAWK_PPC_REG_BASE 0xfeff0000U | ||
59 | |||
60 | /* Define MCPN765 board register addresses. */ | ||
61 | #define MCPN765_BOARD_STATUS_REG 0xfef88080U | ||
62 | #define MCPN765_BOARD_MODFAIL_REG 0xfef88090U | ||
63 | #define MCPN765_BOARD_MODRST_REG 0xfef880a0U | ||
64 | #define MCPN765_BOARD_TBEN_REG 0xfef880c0U | ||
65 | #define MCPN765_BOARD_GEOGRAPHICAL_REG 0xfef880e8U | ||
66 | #define MCPN765_BOARD_EXT_FEATURE_REG 0xfef880f0U | ||
67 | #define MCPN765_BOARD_LAST_RESET_REG 0xfef880f8U | ||
68 | |||
69 | /* Defines for UART */ | ||
70 | |||
71 | /* Define the UART base addresses */ | ||
72 | #define MCPN765_SERIAL_1 0xfef88000 | ||
73 | #define MCPN765_SERIAL_2 0xfef88200 | ||
74 | #define MCPN765_SERIAL_3 0xfef88400 | ||
75 | #define MCPN765_SERIAL_4 0xfef88600 | ||
76 | |||
77 | #ifdef CONFIG_SERIAL_MANY_PORTS | ||
78 | #define RS_TABLE_SIZE 64 | ||
79 | #else | ||
80 | #define RS_TABLE_SIZE 4 | ||
81 | #endif | ||
82 | |||
83 | /* Rate for the 1.8432 Mhz clock for the onboard serial chip */ | ||
84 | #define BASE_BAUD ( 1843200 / 16 ) | ||
85 | #define UART_CLK 1843200 | ||
86 | |||
87 | #ifdef CONFIG_SERIAL_DETECT_IRQ | ||
88 | #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST|ASYNC_AUTO_IRQ) | ||
89 | #else | ||
90 | #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST) | ||
91 | #endif | ||
92 | |||
93 | /* All UART IRQ's are wire-OR'd to IRQ 17 */ | ||
94 | #define STD_SERIAL_PORT_DFNS \ | ||
95 | { 0, BASE_BAUD, MCPN765_SERIAL_1, 17, STD_COM_FLAGS, /* ttyS0 */\ | ||
96 | iomem_base: (u8 *)MCPN765_SERIAL_1, \ | ||
97 | iomem_reg_shift: 4, \ | ||
98 | io_type: SERIAL_IO_MEM }, \ | ||
99 | { 0, BASE_BAUD, MCPN765_SERIAL_2, 17, STD_COM_FLAGS, /* ttyS1 */\ | ||
100 | iomem_base: (u8 *)MCPN765_SERIAL_2, \ | ||
101 | iomem_reg_shift: 4, \ | ||
102 | io_type: SERIAL_IO_MEM }, \ | ||
103 | { 0, BASE_BAUD, MCPN765_SERIAL_3, 17, STD_COM_FLAGS, /* ttyS2 */\ | ||
104 | iomem_base: (u8 *)MCPN765_SERIAL_3, \ | ||
105 | iomem_reg_shift: 4, \ | ||
106 | io_type: SERIAL_IO_MEM }, \ | ||
107 | { 0, BASE_BAUD, MCPN765_SERIAL_4, 17, STD_COM_FLAGS, /* ttyS3 */\ | ||
108 | iomem_base: (u8 *)MCPN765_SERIAL_4, \ | ||
109 | iomem_reg_shift: 4, \ | ||
110 | io_type: SERIAL_IO_MEM }, | ||
111 | |||
112 | #define SERIAL_PORT_DFNS \ | ||
113 | STD_SERIAL_PORT_DFNS | ||
114 | |||
115 | /* Define the NVRAM/RTC address strobe & data registers */ | ||
116 | #define MCPN765_PHYS_NVRAM_AS0 0xfef880c8U | ||
117 | #define MCPN765_PHYS_NVRAM_AS1 0xfef880d0U | ||
118 | #define MCPN765_PHYS_NVRAM_DATA 0xfef880d8U | ||
119 | |||
120 | extern void mcpn765_find_bridges(void); | ||
121 | |||
122 | #endif /* __PPC_PLATFORMS_MCPN765_H */ | ||
diff --git a/arch/ppc/syslib/Makefile b/arch/ppc/syslib/Makefile index 54e5666939b6..0c044c51dcc1 100644 --- a/arch/ppc/syslib/Makefile +++ b/arch/ppc/syslib/Makefile | |||
@@ -54,8 +54,6 @@ obj-$(CONFIG_LOPEC) += i8259.o pci_auto.o todc_time.o | |||
54 | obj-$(CONFIG_HDPU) += pci_auto.o | 54 | obj-$(CONFIG_HDPU) += pci_auto.o |
55 | obj-$(CONFIG_LUAN) += indirect_pci.o pci_auto.o todc_time.o | 55 | obj-$(CONFIG_LUAN) += indirect_pci.o pci_auto.o todc_time.o |
56 | obj-$(CONFIG_KATANA) += pci_auto.o | 56 | obj-$(CONFIG_KATANA) += pci_auto.o |
57 | obj-$(CONFIG_MCPN765) += todc_time.o indirect_pci.o pci_auto.o \ | ||
58 | open_pic.o i8259.o hawk_common.o | ||
59 | obj-$(CONFIG_MENF1) += todc_time.o i8259.o mpc10x_common.o \ | 57 | obj-$(CONFIG_MENF1) += todc_time.o i8259.o mpc10x_common.o \ |
60 | pci_auto.o indirect_pci.o | 58 | pci_auto.o indirect_pci.o |
61 | obj-$(CONFIG_MV64360) += mv64360_pic.o | 59 | obj-$(CONFIG_MV64360) += mv64360_pic.o |
diff --git a/include/asm-ppc/serial.h b/include/asm-ppc/serial.h index 6d47438be58c..485a924e4d06 100644 --- a/include/asm-ppc/serial.h +++ b/include/asm-ppc/serial.h | |||
@@ -18,8 +18,6 @@ | |||
18 | #include <platforms/powerpmc250.h> | 18 | #include <platforms/powerpmc250.h> |
19 | #elif defined(CONFIG_LOPEC) | 19 | #elif defined(CONFIG_LOPEC) |
20 | #include <platforms/lopec.h> | 20 | #include <platforms/lopec.h> |
21 | #elif defined(CONFIG_MCPN765) | ||
22 | #include <platforms/mcpn765.h> | ||
23 | #elif defined(CONFIG_MVME5100) | 21 | #elif defined(CONFIG_MVME5100) |
24 | #include <platforms/mvme5100.h> | 22 | #include <platforms/mvme5100.h> |
25 | #elif defined(CONFIG_PAL4) | 23 | #elif defined(CONFIG_PAL4) |