powerpc/nvram: Move generic code for nvram and pstore
authorHari Bathini <hbathini@linux.vnet.ibm.com>
Thu, 5 Feb 2015 19:36:04 +0000 (01:06 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 23 Mar 2015 03:05:49 +0000 (14:05 +1100)
commit78989f0a5592182a3d45d869ddaafc71c8f673af
tree262f1696f4ec07ce621f9cc143952a97faa13319
parent3af229f2071f5b5cb31664be6109561fbe19c861
powerpc/nvram: Move generic code for nvram and pstore

With minor checks, we can move most of the code for nvram
under pseries to a common place to be re-used by other
powerpc platforms like powernv. This patch moves such
common code to arch/powerpc/kernel/nvram_64.c file.

Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com>
[mpe: Move select of ZLIB_DEFLATE to PPC64 to fix the build]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/nvram.h
arch/powerpc/include/asm/rtas.h
arch/powerpc/kernel/nvram_64.c
arch/powerpc/platforms/Kconfig.cputype
arch/powerpc/platforms/pseries/Kconfig
arch/powerpc/platforms/pseries/nvram.c