]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[PATCH] powerpc: move rtas_fw.c out of platforms/pseries
authorArnd Bergmann <arndb@de.ibm.com>
Tue, 1 Nov 2005 01:08:39 +0000 (20:08 -0500)
committerPaul Mackerras <paulus@samba.org>
Tue, 1 Nov 2005 10:02:59 +0000 (21:02 +1100)
Cell uses the same code as pSeries for flashing the firmware
through rtas, so the implementation should not be part of
platforms/pseries.

Put it into arch/powerpc/kernel instead.

Signed-off-by: Arnd Bergmann <arndb@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/Kconfig
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/rtas_fw.c [moved from arch/powerpc/platforms/pseries/rtas-fw.c with 97% similarity]
arch/powerpc/platforms/pseries/Makefile
arch/powerpc/platforms/pseries/rtas-fw.h [deleted file]
include/asm-powerpc/rtas.h

index 0bd315de156b4ea0fe37eea39342cf8f017e2aa3..aa13a9d95ea2774123cc89e31d32df902a58840b 100644 (file)
@@ -278,6 +278,7 @@ config PPC_PSERIES
        select PPC_I8259
        select PPC_RTAS
        select RTAS_ERROR_LOGGING
+       select RTAS_FW
        default y
 
 config PPC_CHRP
@@ -323,6 +324,7 @@ config PPC_CELL
        bool "  Cell Broadband Processor Architecture"
        depends on PPC_MULTIPLATFORM && PPC64
        select PPC_RTAS
+       select RTAS_FW
 
 config PPC_OF
        bool
@@ -353,6 +355,11 @@ config RTAS_ERROR_LOGGING
        depends on PPC_RTAS
        default n
 
+config RTAS_FW
+       bool
+       depends on PPC_RTAS
+       default n
+
 config MPIC_BROKEN_U3
        bool
        depends on PPC_MAPLE
index 572d4f5eaacb48da8209fe169306f5b967cf3bd0..abad3059a21ad6d304f624dea0c2ae5ecaec7ee8 100644 (file)
@@ -18,6 +18,7 @@ obj-$(CONFIG_ALTIVEC)         += vecemu.o vector.o
 obj-$(CONFIG_POWER4)           += idle_power4.o
 obj-$(CONFIG_PPC_OF)           += of_device.o
 obj-$(CONFIG_PPC_RTAS)         += rtas.o
+obj-$(CONFIG_RTAS_FW)          += rtas_fw.o
 obj-$(CONFIG_IBMVIO)           += vio.o
 
 ifeq ($(CONFIG_PPC_MERGE),y)
similarity index 97%
rename from arch/powerpc/platforms/pseries/rtas-fw.c
rename to arch/powerpc/kernel/rtas_fw.c
index 15d81d758ca09921932390f168f4bad701cbe334..448922e8af1bc435e01e1e8e2cb4f931571441be 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *
- * Procedures for firmware flash updates on pSeries systems.
+ * Procedures for firmware flash updates.
  *
  * Peter Bergner, IBM  March 2001.
  * Copyright (C) 2001 IBM.
@@ -31,8 +31,6 @@
 #include <asm/uaccess.h>
 #include <asm/systemcfg.h>
 
-#include "rtas-fw.h"
-
 struct flash_block_list_header rtas_firmware_flash_list = {0, NULL};
 
 #define FLASH_BLOCK_LIST_VERSION (1UL)
index 5ef494e3a70f797cf507072b4e1527f1033a169e..91909a84473652edbf9031144dde274c3bf3da64 100644 (file)
@@ -1,5 +1,5 @@
 obj-y                  := pci.o lpar.o hvCall.o nvram.o reconfig.o \
-                          setup.o iommu.o rtas-fw.o ras.o
+                          setup.o iommu.o ras.o
 obj-$(CONFIG_SMP)      += smp.o
 obj-$(CONFIG_IBMVIO)   += vio.o
 obj-$(CONFIG_XICS)     += xics.o
diff --git a/arch/powerpc/platforms/pseries/rtas-fw.h b/arch/powerpc/platforms/pseries/rtas-fw.h
deleted file mode 100644 (file)
index e70fa69..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-void rtas_fw_restart(char *cmd);
-void rtas_fw_power_off(void);
-void rtas_fw_halt(void);
index 2c050332471db29d7bedd4ed1fc4f36b5f485605..d9fd7866927ff8b60eaa121d98454d4878a3c1c6 100644 (file)
@@ -171,6 +171,9 @@ struct flash_block_list_header { /* just the header of flash_block_list */
        struct flash_block_list *next;
 };
 extern struct flash_block_list_header rtas_firmware_flash_list;
+void rtas_fw_restart(char *cmd);
+void rtas_fw_power_off(void);
+void rtas_fw_halt(void);
 
 extern struct rtas_t rtas;