Skip to contentSkip to conversation

maple: use mmio nvram

PATCH New Nathan Lynch 1 participant 1 message Feb 6, 2007 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 maple: use mmio nvram

Some systems supported by the maple platform (e.g. JS2x blades running SLOF) are able to use the mmio_nvram backend for reading and writing nvram. This is an improvement over the current situation -- no nvram access from userspace at all.

Select MMIO_NVRAM for the maple platform.

Initialize the mmio_nvram backend from maple setup code.

---

Please apply this patch instead of the "rename pSeries nvram functions" and "move pSeries nvram code to neutral location" patches from January 24.

 arch/powerpc/Kconfig                 |    1 +
 arch/powerpc/platforms/maple/setup.c |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)
arch/powerpc/Kconfig +1 -0
index 0855d55..113685e 100644
@@ -484,6 +484,7 @@ config PPC_MAPLE
 	select PPC_970_NAP
 	select PPC_NATIVE
 	select PPC_RTAS
+	select MMIO_NVRAM
 	default n
 	help
           This option enables support for the Maple 970FX Evaluation Board.
arch/powerpc/platforms/maple/setup.c +3 -0
index 50855d4..82d3f9e 100644
@@ -62,6 +62,7 @@
 #include <asm/mpic.h>
 #include <asm/rtas.h>
 #include <asm/udbg.h>
+#include <asm/nvram.h>
 
 #include "maple.h"
 
@@ -195,6 +196,8 @@ void __init maple_setup_arch(void)
 	maple_use_rtas_reboot_and_halt_if_present();
 
 	printk(KERN_DEBUG "Using native/NAP idle loop\n");
+
+	mmio_nvram_init();
 }
 
 /* 
Signature · 1 line
1.4.4.3