powerpc/86xx: Support for NVRAM on GE Fanuc's PPC9A
authorMartyn Welch <martyn.welch@gefanuc.com>
Thu, 2 Jul 2009 16:12:44 +0000 (17:12 +0100)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 20 Nov 2009 22:45:37 +0000 (16:45 -0600)
Add support for NVRAM on GE Fanuc's PPC9A.

Signed-off-by: Martyn Welch <martyn.welch@gefanuc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/boot/dts/gef_ppc9a.dts
arch/powerpc/configs/86xx/gef_ppc9a_defconfig
arch/powerpc/platforms/86xx/Kconfig
arch/powerpc/platforms/86xx/gef_ppc9a.c

index 910944edd886fdfa42994adedfbe4757668bd084..c86114e93f1e62400cf0fc9073c9645960471102 100644 (file)
                        };
                };
 
+               nvram@3,0 {
+                       device_type = "nvram";
+                       compatible = "simtek,stk14ca8";
+                       reg = <0x3 0x0 0x20000>;
+               };
+
                fpga@4,0 {
                        compatible = "gef,ppc9a-fpga-regs";
                        reg = <0x4 0x0 0x40>;
index 28980738776caf28bd6486b6114afaaaeaa0d7e9..6cd2cd65c2cdfbefa7e71527a4cbbed4ae0a8f9a 100644 (file)
@@ -218,7 +218,7 @@ CONFIG_MPIC=y
 # CONFIG_MPIC_WEIRD is not set
 # CONFIG_PPC_I8259 is not set
 # CONFIG_PPC_RTAS is not set
-# CONFIG_MMIO_NVRAM is not set
+CONFIG_MMIO_NVRAM=y
 # CONFIG_PPC_MPC106 is not set
 # CONFIG_PPC_970_NAP is not set
 # CONFIG_PPC_INDIRECT_IO is not set
index 6012022dcf7934c4698d61e68a82696fc049124f..2bbfd530d6d8d26b09c6d0f311b83e339a5a224c 100644 (file)
@@ -35,6 +35,7 @@ config MPC8610_HPCD
 config GEF_PPC9A
        bool "GE Fanuc PPC9A"
        select DEFAULT_UIMAGE
+       select MMIO_NVRAM
        select GENERIC_GPIO
        select ARCH_REQUIRE_GPIOLIB
        help
index 287f7bd17dd9027067dfdcd96dd26f48a269bbb8..a792e5d858131510735557327f790d155b8d9ed9 100644 (file)
@@ -33,6 +33,7 @@
 #include <asm/udbg.h>
 
 #include <asm/mpic.h>
+#include <asm/nvram.h>
 
 #include <sysdev/fsl_pci.h>
 #include <sysdev/fsl_soc.h>
@@ -95,6 +96,10 @@ static void __init gef_ppc9a_setup_arch(void)
                        printk(KERN_WARNING "Unable to map board registers\n");
                of_node_put(regs);
        }
+
+#if defined(CONFIG_MMIO_NVRAM)
+       mmio_nvram_init();
+#endif
 }
 
 /* Return the PCB revision */