summaryrefslogtreecommitdiffstats
path: root/import
diff options
context:
space:
mode:
authorGreg Still <stillgs@us.ibm.com>2017-02-26 22:04:36 -0600
committerJoshua Hunsberger <jahunsbe@us.ibm.com>2017-10-23 17:12:26 -0500
commit1aa0b0e4b6b67020954cd27e155aeab8a1c0b560 (patch)
tree51b58c50bdbcf198b7ae602415977aecd224c294 /import
parent5236343c0ffb914e3434430d7ce3a2fff9a562cb (diff)
downloadtalos-hcode-1aa0b0e4b6b67020954cd27e155aeab8a1c0b560.tar.gz
talos-hcode-1aa0b0e4b6b67020954cd27e155aeab8a1c0b560.zip
PM: VPD in #V order and Natural Order
Change-Id: Iaa2a24d872b56b337cc34c286411329499e9816b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37071 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: RAHUL BATRA <rbatra@us.ibm.com> Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Diffstat (limited to 'import')
-rw-r--r--import/chips/p9/procedures/hwp/lib/p9_pstates_common.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/import/chips/p9/procedures/hwp/lib/p9_pstates_common.h b/import/chips/p9/procedures/hwp/lib/p9_pstates_common.h
index e87f2af8..5113d8d8 100644
--- a/import/chips/p9/procedures/hwp/lib/p9_pstates_common.h
+++ b/import/chips/p9/procedures/hwp/lib/p9_pstates_common.h
@@ -89,15 +89,23 @@
// @todo Determine what is needed here (eg Attribute mapping) and if any constants
// are warrented
-/// VPD #V Operating Points
+/// VPD #V Data from keyword (eg VPD order)
#define VPD_PV_POINTS 4
+#define VPD_PV_POWERSAVE 1
+#define VPD_PV_NOMINAL 0
+#define VPD_PV_TURBO 2
+#define VPD_PV_ULTRA 3
+#define VPD_PV_ORDER {VPD_PV_POWERSAVE, VPD_PV_NOMINAL, VPD_PV_TURBO, VPD_PV_ULTRA}
#define VPD_PV_ORDER_STR {"Nominal ","PowerSave ", "Turbo ", "UltraTurbo"}
-#define POWERSAVE 1
-#define NOMINAL 0
+
+/// VPD #V Operating Points (eg Natureal order)
+#define POWERSAVE 0
+#define NOMINAL 1
#define TURBO 2
#define ULTRA 3
#define POWERBUS 4
-#define VPD_PV_ORDER {POWERSAVE, NOMINAL, TURBO, ULTRA}
+#define PV_OP_ORDER {POWERSAVE, NOMINAL, TURBO, ULTRA}
+#define PV_OP_ORDER_STR {"PowerSave ", "Nominal ","Turbo ", "UltraTurbo"}
#define VPD_PV_CORE_FREQ_MHZ 0
#define VPD_PV_VDD_MV 1
OpenPOWER on IntegriCloud