[Skiboot] [PATCH v1 11/11]ibm-fsp/firenze: Add init function call to involve Nest support
Madhavan Srinivasan
maddy at linux.vnet.ibm.com
Mon Jun 1 11:53:30 AEST 2015
Patch adds init routine in main entry function to detect and enable
Nest PMU support.
Signed-off-by: Madhavan Srinivasan <maddy at linux.vnet.ibm.com>
---
core/init.c | 4 ++++
hw/Makefile.inc | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/core/init.c b/core/init.c
index 8cb89b5..fbf9d98 100644
--- a/core/init.c
+++ b/core/init.c
@@ -44,6 +44,7 @@
#include <timer.h>
#include <ipmi.h>
#include <sensor.h>
+#include <nest.h>
/*
* Boot semaphore, incremented by each CPU calling in
@@ -721,6 +722,9 @@ void __noreturn main_cpu_entry(const void *fdt, u32 master_cpu)
/* Init SLW related stuff, including fastsleep */
slw_init();
+ /* Init Nest PMU unit */
+ nest_ima_init();
+
op_display(OP_LOG, OP_MOD_INIT, 0x0002);
/* Read in NVRAM and set it up */
diff --git a/hw/Makefile.inc b/hw/Makefile.inc
index 8a67d75..fb029fd 100644
--- a/hw/Makefile.inc
+++ b/hw/Makefile.inc
@@ -2,7 +2,7 @@
SUBDIRS += hw
HW_OBJS = xscom.o chiptod.o gx.o cec.o lpc.o lpc-uart.o psi.o
-HW_OBJS += homer.o slw.o occ.o fsi-master.o centaur.o
+HW_OBJS += homer.o slw.o occ.o fsi-master.o centaur.o nest.o
HW_OBJS += nx.o nx-rng.o nx-crypto.o nx-842.o
HW_OBJS += p7ioc.o p7ioc-inits.o p7ioc-phb.o p5ioc2.o p5ioc2-phb.o
HW_OBJS += phb3.o sfc-ctrl.o fake-rtc.o bt.o p8-i2c.o prd.o
--
1.9.3
More information about the Skiboot
mailing list