diff options
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/head_44x.S | 10 | ||||
-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 | ||||
-rw-r--r-- | arch/powerpc/platforms/Makefile | 3 |
5 files changed, 35 insertions, 11 deletions
diff --git a/arch/powerpc/kernel/head_44x.S b/arch/powerpc/kernel/head_44x.S index 9ee6773cf026..a51026f0a9d7 100644 --- a/arch/powerpc/kernel/head_44x.S +++ b/arch/powerpc/kernel/head_44x.S | |||
@@ -709,16 +709,6 @@ _GLOBAL(giveup_fpu) | |||
709 | blr | 709 | blr |
710 | #endif | 710 | #endif |
711 | 711 | ||
712 | /* | ||
713 | * extern void abort(void) | ||
714 | * | ||
715 | * At present, this routine just applies a system reset. | ||
716 | */ | ||
717 | _GLOBAL(abort) | ||
718 | mfspr r13,SPRN_DBCR0 | ||
719 | oris r13,r13,DBCR0_RST_SYSTEM@h | ||
720 | mtspr SPRN_DBCR0,r13 | ||
721 | |||
722 | _GLOBAL(set_context) | 712 | _GLOBAL(set_context) |
723 | 713 | ||
724 | #ifdef CONFIG_BDI_SWITCH | 714 | #ifdef CONFIG_BDI_SWITCH |
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 */ | ||
diff --git a/arch/powerpc/platforms/Makefile b/arch/powerpc/platforms/Makefile index 452004283f17..d6e041a46d25 100644 --- a/arch/powerpc/platforms/Makefile +++ b/arch/powerpc/platforms/Makefile | |||
@@ -6,7 +6,8 @@ obj-$(CONFIG_PPC_PMAC) += powermac/ | |||
6 | endif | 6 | endif |
7 | endif | 7 | endif |
8 | obj-$(CONFIG_PPC_CHRP) += chrp/ | 8 | obj-$(CONFIG_PPC_CHRP) += chrp/ |
9 | obj-$(CONFIG_4xx) += 4xx/ | 9 | #obj-$(CONFIG_4xx) += 4xx/ |
10 | obj-$(CONFIG_44x) += 44x/ | ||
10 | obj-$(CONFIG_PPC_MPC52xx) += 52xx/ | 11 | obj-$(CONFIG_PPC_MPC52xx) += 52xx/ |
11 | obj-$(CONFIG_PPC_8xx) += 8xx/ | 12 | obj-$(CONFIG_PPC_8xx) += 8xx/ |
12 | obj-$(CONFIG_PPC_82xx) += 82xx/ | 13 | obj-$(CONFIG_PPC_82xx) += 82xx/ |