diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-12 00:55:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-12 00:55:47 -0400 |
commit | e86908614f2c7fec401827e5cefd7a6ea9407f85 (patch) | |
tree | fcb5d9e52422b37bdaf0e647126ebdfc1680f162 /arch/powerpc/platforms/82xx/mpc82xx.c | |
parent | 547307420931344a868275bd7ea7a30f117a15a9 (diff) | |
parent | 9b4b8feb962f4b3e74768b7205f1f8f6cce87238 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
* 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (408 commits)
[POWERPC] Add memchr() to the bootwrapper
[POWERPC] Implement logging of unhandled signals
[POWERPC] Add legacy serial support for OPB with flattened device tree
[POWERPC] Use 1TB segments
[POWERPC] XilinxFB: Allow fixed framebuffer base address
[POWERPC] XilinxFB: Add support for custom screen resolution
[POWERPC] XilinxFB: Use pdata to pass around framebuffer parameters
[POWERPC] PCI: Add 64-bit physical address support to setup_indirect_pci
[POWERPC] 4xx: Kilauea defconfig file
[POWERPC] 4xx: Kilauea DTS
[POWERPC] 4xx: Add AMCC Kilauea eval board support to platforms/40x
[POWERPC] 4xx: Add AMCC 405EX support to cputable.c
[POWERPC] Adjust TASK_SIZE on ppc32 systems to 3GB that are capable
[POWERPC] Use PAGE_OFFSET to tell if an address is user/kernel in SW TLB handlers
[POWERPC] 85xx: Enable FP emulation in MPC8560 ADS defconfig
[POWERPC] 85xx: Killed <asm/mpc85xx.h>
[POWERPC] 85xx: Add cpm nodes for 8541/8555 CDS
[POWERPC] 85xx: Convert mpc8560ads to the new CPM binding.
[POWERPC] mpc8272ads: Remove muram from the CPM reg property.
[POWERPC] Make clockevents work on PPC601 processors
...
Fixed up conflict in Documentation/powerpc/booting-without-of.txt manually.
Diffstat (limited to 'arch/powerpc/platforms/82xx/mpc82xx.c')
-rw-r--r-- | arch/powerpc/platforms/82xx/mpc82xx.c | 110 |
1 files changed, 0 insertions, 110 deletions
diff --git a/arch/powerpc/platforms/82xx/mpc82xx.c b/arch/powerpc/platforms/82xx/mpc82xx.c deleted file mode 100644 index cc9900d2e5ee..000000000000 --- a/arch/powerpc/platforms/82xx/mpc82xx.c +++ /dev/null | |||
@@ -1,110 +0,0 @@ | |||
1 | /* | ||
2 | * MPC82xx setup and early boot code plus other random bits. | ||
3 | * | ||
4 | * Author: Vitaly Bordug <vbordug@ru.mvista.com> | ||
5 | * | ||
6 | * Copyright (c) 2006 MontaVista Software, Inc. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify it | ||
9 | * under the terms of the GNU General Public License as published by the | ||
10 | * Free Software Foundation; either version 2 of the License, or (at your | ||
11 | * option) any later version. | ||
12 | */ | ||
13 | |||
14 | #include <linux/stddef.h> | ||
15 | #include <linux/kernel.h> | ||
16 | #include <linux/init.h> | ||
17 | #include <linux/errno.h> | ||
18 | #include <linux/reboot.h> | ||
19 | #include <linux/pci.h> | ||
20 | #include <linux/interrupt.h> | ||
21 | #include <linux/kdev_t.h> | ||
22 | #include <linux/major.h> | ||
23 | #include <linux/console.h> | ||
24 | #include <linux/delay.h> | ||
25 | #include <linux/seq_file.h> | ||
26 | #include <linux/root_dev.h> | ||
27 | #include <linux/initrd.h> | ||
28 | #include <linux/module.h> | ||
29 | #include <linux/fsl_devices.h> | ||
30 | #include <linux/fs_uart_pd.h> | ||
31 | |||
32 | #include <asm/system.h> | ||
33 | #include <asm/pgtable.h> | ||
34 | #include <asm/page.h> | ||
35 | #include <asm/atomic.h> | ||
36 | #include <asm/time.h> | ||
37 | #include <asm/io.h> | ||
38 | #include <asm/machdep.h> | ||
39 | #include <asm/bootinfo.h> | ||
40 | #include <asm/pci-bridge.h> | ||
41 | #include <asm/mpc8260.h> | ||
42 | #include <asm/irq.h> | ||
43 | #include <mm/mmu_decl.h> | ||
44 | #include <asm/prom.h> | ||
45 | #include <asm/cpm2.h> | ||
46 | #include <asm/udbg.h> | ||
47 | #include <asm/i8259.h> | ||
48 | #include <linux/fs_enet_pd.h> | ||
49 | |||
50 | #include <sysdev/fsl_soc.h> | ||
51 | #include <sysdev/cpm2_pic.h> | ||
52 | |||
53 | #include "pq2ads.h" | ||
54 | |||
55 | static int __init get_freq(char *name, unsigned long *val) | ||
56 | { | ||
57 | struct device_node *cpu; | ||
58 | const unsigned int *fp; | ||
59 | int found = 0; | ||
60 | |||
61 | /* The cpu node should have timebase and clock frequency properties */ | ||
62 | cpu = of_find_node_by_type(NULL, "cpu"); | ||
63 | |||
64 | if (cpu) { | ||
65 | fp = of_get_property(cpu, name, NULL); | ||
66 | if (fp) { | ||
67 | found = 1; | ||
68 | *val = *fp; | ||
69 | } | ||
70 | |||
71 | of_node_put(cpu); | ||
72 | } | ||
73 | |||
74 | return found; | ||
75 | } | ||
76 | |||
77 | void __init m82xx_calibrate_decr(void) | ||
78 | { | ||
79 | ppc_tb_freq = 125000000; | ||
80 | if (!get_freq("bus-frequency", &ppc_tb_freq)) { | ||
81 | printk(KERN_ERR "WARNING: Estimating decrementer frequency " | ||
82 | "(not found)\n"); | ||
83 | } | ||
84 | ppc_tb_freq /= 4; | ||
85 | ppc_proc_freq = 1000000000; | ||
86 | if (!get_freq("clock-frequency", &ppc_proc_freq)) | ||
87 | printk(KERN_ERR "WARNING: Estimating processor frequency" | ||
88 | "(not found)\n"); | ||
89 | } | ||
90 | |||
91 | void mpc82xx_ads_show_cpuinfo(struct seq_file *m) | ||
92 | { | ||
93 | uint pvid, svid, phid1; | ||
94 | uint memsize = total_memory; | ||
95 | |||
96 | pvid = mfspr(SPRN_PVR); | ||
97 | svid = mfspr(SPRN_SVR); | ||
98 | |||
99 | seq_printf(m, "Vendor\t\t: Freescale Semiconductor\n"); | ||
100 | seq_printf(m, "Machine\t\t: %s\n", CPUINFO_MACHINE); | ||
101 | seq_printf(m, "PVR\t\t: 0x%x\n", pvid); | ||
102 | seq_printf(m, "SVR\t\t: 0x%x\n", svid); | ||
103 | |||
104 | /* Display cpu Pll setting */ | ||
105 | phid1 = mfspr(SPRN_HID1); | ||
106 | seq_printf(m, "PLL setting\t: 0x%x\n", ((phid1 >> 24) & 0x3f)); | ||
107 | |||
108 | /* Display the amount of memory */ | ||
109 | seq_printf(m, "Memory\t\t: %d MB\n", memsize / (1024 * 1024)); | ||
110 | } | ||