Skip to content

Commit

Permalink
[PATCH] powerpc: move rtas_fw.c out of platforms/pseries
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnd Bergmann authored and Paul Mackerras committed Nov 1, 2005
1 parent 19fe047 commit e9add2e
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
7 changes: 7 additions & 0 deletions arch/powerpc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/pseries/Makefile
Original file line number Diff line number Diff line change
@@ -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
3 changes: 0 additions & 3 deletions arch/powerpc/platforms/pseries/rtas-fw.h

This file was deleted.

3 changes: 3 additions & 0 deletions include/asm-powerpc/rtas.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e9add2e

Please sign in to comment.