diff options
author | Paul Mackerras <paulus@samba.org> | 2008-06-09 00:01:46 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-06-10 07:40:22 -0400 |
commit | 917f0af9e5a9ceecf9e72537fabb501254ba321d (patch) | |
tree | 1ef207755c6d83ce4af93ef2b5e4645eebd65886 /arch/ppc/syslib/ibm440sp_common.c | |
parent | 0f3d6bcd391b058c619fc30e8022e8a29fbf4bef (diff) |
powerpc: Remove arch/ppc and include/asm-ppc
All the maintained platforms are now in arch/powerpc, so the old
arch/ppc stuff can now go away.
Acked-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Becky Bruce <becky.bruce@freescale.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Jochen Friedrich <jochen@scram.de>
Acked-by: John Linn <john.linn@xilinx.com>
Acked-by: Jon Loeliger <jdl@freescale.com>
Acked-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Olof Johansson <olof@lixom.net>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Acked-by: Scott Wood <scottwood@freescale.com>
Acked-by: Sean MacLennan <smaclennan@pikatech.com>
Acked-by: Segher Boessenkool <segher@kernel.crashing.org>
Acked-by: Stefan Roese <sr@denx.de>
Acked-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Acked-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/syslib/ibm440sp_common.c')
-rw-r--r-- | arch/ppc/syslib/ibm440sp_common.c | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/arch/ppc/syslib/ibm440sp_common.c b/arch/ppc/syslib/ibm440sp_common.c deleted file mode 100644 index 571f8bcf78e6..000000000000 --- a/arch/ppc/syslib/ibm440sp_common.c +++ /dev/null | |||
@@ -1,68 +0,0 @@ | |||
1 | /* | ||
2 | * PPC440SP/PPC440SPe system library | ||
3 | * | ||
4 | * Matt Porter <mporter@kernel.crashing.org> | ||
5 | * Copyright 2002-2005 MontaVista Software Inc. | ||
6 | * | ||
7 | * Eugene Surovegin <eugene.surovegin@zultys.com> or <ebs@ebshome.net> | ||
8 | * Copyright (c) 2003, 2004 Zultys Technologies | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify it | ||
11 | * under the terms of the GNU General Public License as published by the | ||
12 | * Free Software Foundation; either version 2 of the License, or (at your | ||
13 | * option) any later version. | ||
14 | * | ||
15 | */ | ||
16 | #include <linux/types.h> | ||
17 | #include <linux/serial.h> | ||
18 | |||
19 | #include <asm/param.h> | ||
20 | #include <asm/ibm44x.h> | ||
21 | #include <asm/mmu.h> | ||
22 | #include <asm/machdep.h> | ||
23 | #include <asm/time.h> | ||
24 | #include <asm/ppc4xx_pic.h> | ||
25 | |||
26 | /* | ||
27 | * Read the 440SP memory controller to get size of system memory. | ||
28 | */ | ||
29 | unsigned long __init ibm440sp_find_end_of_memory(void) | ||
30 | { | ||
31 | u32 i; | ||
32 | u32 mem_size = 0; | ||
33 | |||
34 | /* Read two bank sizes and sum */ | ||
35 | for (i=0; i< MQ0_NUM_BANKS; i++) | ||
36 | switch (mfdcr(DCRN_MQ0_BS0BAS + i) & MQ0_CONFIG_SIZE_MASK) { | ||
37 | case MQ0_CONFIG_SIZE_8M: | ||
38 | mem_size += PPC44x_MEM_SIZE_8M; | ||
39 | break; | ||
40 | case MQ0_CONFIG_SIZE_16M: | ||
41 | mem_size += PPC44x_MEM_SIZE_16M; | ||
42 | break; | ||
43 | case MQ0_CONFIG_SIZE_32M: | ||
44 | mem_size += PPC44x_MEM_SIZE_32M; | ||
45 | break; | ||
46 | case MQ0_CONFIG_SIZE_64M: | ||
47 | mem_size += PPC44x_MEM_SIZE_64M; | ||
48 | break; | ||
49 | case MQ0_CONFIG_SIZE_128M: | ||
50 | mem_size += PPC44x_MEM_SIZE_128M; | ||
51 | break; | ||
52 | case MQ0_CONFIG_SIZE_256M: | ||
53 | mem_size += PPC44x_MEM_SIZE_256M; | ||
54 | break; | ||
55 | case MQ0_CONFIG_SIZE_512M: | ||
56 | mem_size += PPC44x_MEM_SIZE_512M; | ||
57 | break; | ||
58 | case MQ0_CONFIG_SIZE_1G: | ||
59 | mem_size += PPC44x_MEM_SIZE_1G; | ||
60 | break; | ||
61 | case MQ0_CONFIG_SIZE_2G: | ||
62 | mem_size += PPC44x_MEM_SIZE_2G; | ||
63 | break; | ||
64 | default: | ||
65 | break; | ||
66 | } | ||
67 | return mem_size; | ||
68 | } | ||