diff options
author | Arnd Bergmann <arndb@de.ibm.com> | 2005-10-31 20:08:39 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-11-01 05:02:59 -0500 |
commit | e9add2eeb182e2bf1863c548f7a8173c45b4b92f (patch) | |
tree | 25d7a07a37750f0956f1922dae624c6898ec8e1d /arch | |
parent | 19fe04755aca56e7d143f7f95b41008138619c5c (diff) |
[PATCH] powerpc: move rtas_fw.c out of platforms/pseries
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/Kconfig | 7 | ||||
-rw-r--r-- | arch/powerpc/kernel/Makefile | 1 | ||||
-rw-r--r-- | arch/powerpc/kernel/rtas_fw.c (renamed from arch/powerpc/platforms/pseries/rtas-fw.c) | 4 | ||||
-rw-r--r-- | arch/powerpc/platforms/pseries/Makefile | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/pseries/rtas-fw.h | 3 |
5 files changed, 10 insertions, 7 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 0bd315de156b..aa13a9d95ea2 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -278,6 +278,7 @@ config PPC_PSERIES | |||
278 | select PPC_I8259 | 278 | select PPC_I8259 |
279 | select PPC_RTAS | 279 | select PPC_RTAS |
280 | select RTAS_ERROR_LOGGING | 280 | select RTAS_ERROR_LOGGING |
281 | select RTAS_FW | ||
281 | default y | 282 | default y |
282 | 283 | ||
283 | config PPC_CHRP | 284 | config PPC_CHRP |
@@ -323,6 +324,7 @@ config PPC_CELL | |||
323 | bool " Cell Broadband Processor Architecture" | 324 | bool " Cell Broadband Processor Architecture" |
324 | depends on PPC_MULTIPLATFORM && PPC64 | 325 | depends on PPC_MULTIPLATFORM && PPC64 |
325 | select PPC_RTAS | 326 | select PPC_RTAS |
327 | select RTAS_FW | ||
326 | 328 | ||
327 | config PPC_OF | 329 | config PPC_OF |
328 | bool | 330 | bool |
@@ -353,6 +355,11 @@ config RTAS_ERROR_LOGGING | |||
353 | depends on PPC_RTAS | 355 | depends on PPC_RTAS |
354 | default n | 356 | default n |
355 | 357 | ||
358 | config RTAS_FW | ||
359 | bool | ||
360 | depends on PPC_RTAS | ||
361 | default n | ||
362 | |||
356 | config MPIC_BROKEN_U3 | 363 | config MPIC_BROKEN_U3 |
357 | bool | 364 | bool |
358 | depends on PPC_MAPLE | 365 | depends on PPC_MAPLE |
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index 572d4f5eaacb..abad3059a21a 100644 --- a/arch/powerpc/kernel/Makefile +++ b/arch/powerpc/kernel/Makefile | |||
@@ -18,6 +18,7 @@ obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o | |||
18 | obj-$(CONFIG_POWER4) += idle_power4.o | 18 | obj-$(CONFIG_POWER4) += idle_power4.o |
19 | obj-$(CONFIG_PPC_OF) += of_device.o | 19 | obj-$(CONFIG_PPC_OF) += of_device.o |
20 | obj-$(CONFIG_PPC_RTAS) += rtas.o | 20 | obj-$(CONFIG_PPC_RTAS) += rtas.o |
21 | obj-$(CONFIG_RTAS_FW) += rtas_fw.o | ||
21 | obj-$(CONFIG_IBMVIO) += vio.o | 22 | obj-$(CONFIG_IBMVIO) += vio.o |
22 | 23 | ||
23 | ifeq ($(CONFIG_PPC_MERGE),y) | 24 | ifeq ($(CONFIG_PPC_MERGE),y) |
diff --git a/arch/powerpc/platforms/pseries/rtas-fw.c b/arch/powerpc/kernel/rtas_fw.c index 15d81d758ca0..448922e8af1b 100644 --- a/arch/powerpc/platforms/pseries/rtas-fw.c +++ b/arch/powerpc/kernel/rtas_fw.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * | 2 | * |
3 | * Procedures for firmware flash updates on pSeries systems. | 3 | * Procedures for firmware flash updates. |
4 | * | 4 | * |
5 | * Peter Bergner, IBM March 2001. | 5 | * Peter Bergner, IBM March 2001. |
6 | * Copyright (C) 2001 IBM. | 6 | * Copyright (C) 2001 IBM. |
@@ -31,8 +31,6 @@ | |||
31 | #include <asm/uaccess.h> | 31 | #include <asm/uaccess.h> |
32 | #include <asm/systemcfg.h> | 32 | #include <asm/systemcfg.h> |
33 | 33 | ||
34 | #include "rtas-fw.h" | ||
35 | |||
36 | struct flash_block_list_header rtas_firmware_flash_list = {0, NULL}; | 34 | struct flash_block_list_header rtas_firmware_flash_list = {0, NULL}; |
37 | 35 | ||
38 | #define FLASH_BLOCK_LIST_VERSION (1UL) | 36 | #define FLASH_BLOCK_LIST_VERSION (1UL) |
diff --git a/arch/powerpc/platforms/pseries/Makefile b/arch/powerpc/platforms/pseries/Makefile index 5ef494e3a70f..91909a844736 100644 --- a/arch/powerpc/platforms/pseries/Makefile +++ b/arch/powerpc/platforms/pseries/Makefile | |||
@@ -1,5 +1,5 @@ | |||
1 | obj-y := pci.o lpar.o hvCall.o nvram.o reconfig.o \ | 1 | obj-y := pci.o lpar.o hvCall.o nvram.o reconfig.o \ |
2 | setup.o iommu.o rtas-fw.o ras.o | 2 | setup.o iommu.o ras.o |
3 | obj-$(CONFIG_SMP) += smp.o | 3 | obj-$(CONFIG_SMP) += smp.o |
4 | obj-$(CONFIG_IBMVIO) += vio.o | 4 | obj-$(CONFIG_IBMVIO) += vio.o |
5 | obj-$(CONFIG_XICS) += xics.o | 5 | 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 index e70fa69974a3..000000000000 --- a/arch/powerpc/platforms/pseries/rtas-fw.h +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | void rtas_fw_restart(char *cmd); | ||
2 | void rtas_fw_power_off(void); | ||
3 | void rtas_fw_halt(void); | ||