diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2007-05-07 22:59:30 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-05-08 00:43:59 -0400 |
commit | 2cd976477035716af52a6eff6625f32e5813c02b (patch) | |
tree | 56a725e3c27afef3eabb227256236635025a0470 /arch/powerpc/platforms/44x | |
parent | 05af7bd2d75e5098021864d83fbb831111755fa0 (diff) |
[POWERPC] Add powerpc/platforms/44x, disable platforms/4xx for now
This prepares for Ebony/440 support by creating an
arch/powerpc/platforms/44x directory. It is populated with a single
misc_44x.S file, into which is moved the 44x specific reset code from
head_44x.S (on the grounds that we should really stop clogging up the
head_* files with random asm helper routines).
At the same time, we disable the (empty save Kconfig and Makefile)
arch/powerpc/platforms/4xx directory from the arch/powerpc/platforms
Makefile. Contrary to the comment in
arch/powerpc/platforms/4xx/Makefile, attempting to build such an empty
Makefile will fail, thus breaking compile for the 44x platforms we're
about to add. It can go back in once we start porting some of the 40x
platforms (and thus it becomes non-empty).
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/44x')
-rw-r--r-- | arch/powerpc/platforms/44x/44x.h | 6 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/Makefile | 1 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/misc_44x.S | 26 |
3 files changed, 33 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/44x/44x.h b/arch/powerpc/platforms/44x/44x.h new file mode 100644 index 000000000000..45f24b166f4d --- /dev/null +++ b/arch/powerpc/platforms/44x/44x.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef __POWERPC_PLATFORMS_44X_44X_H | ||
2 | #define __POWERPC_PLATFORMS_44X_44X_H | ||
3 | |||
4 | extern void ppc44x_reset_system(char *cmd); | ||
5 | |||
6 | #endif /* __POWERPC_PLATFORMS_44X_44X_H */ | ||
diff --git a/arch/powerpc/platforms/44x/Makefile b/arch/powerpc/platforms/44x/Makefile new file mode 100644 index 000000000000..575fdde5c905 --- /dev/null +++ b/arch/powerpc/platforms/44x/Makefile | |||
@@ -0,0 +1 @@ | |||
obj-$(CONFIG_44x) := misc_44x.o | |||
diff --git a/arch/powerpc/platforms/44x/misc_44x.S b/arch/powerpc/platforms/44x/misc_44x.S new file mode 100644 index 000000000000..52bde71485bd --- /dev/null +++ b/arch/powerpc/platforms/44x/misc_44x.S | |||
@@ -0,0 +1,26 @@ | |||
1 | /* | ||
2 | * This file contains miscellaneous low-level functions for PPC 44x. | ||
3 | * Copyright 2007 David Gibson <dwg@au1.ibm.com>, IBM Corporation. | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or | ||
6 | * modify it under the terms of the GNU General Public License | ||
7 | * as published by the Free Software Foundation; either version | ||
8 | * 2 of the License, or (at your option) any later version. | ||
9 | * | ||
10 | */ | ||
11 | |||
12 | #include <asm/reg.h> | ||
13 | #include <asm/ppc_asm.h> | ||
14 | |||
15 | .text | ||
16 | |||
17 | /* | ||
18 | * void ppc44x_reset_system(char *cmd) | ||
19 | * | ||
20 | * At present, this routine just applies a system reset. | ||
21 | */ | ||
22 | _GLOBAL(ppc44x_reset_system) | ||
23 | mfspr r13,SPRN_DBCR0 | ||
24 | oris r13,r13,DBCR0_RST_SYSTEM@h | ||
25 | mtspr SPRN_DBCR0,r13 | ||
26 | b . /* Just in case the reset doesn't work */ | ||