summaryrefslogtreecommitdiffstats
path: root/src/usr/fapi2/test/fapi2GetVpdTest.H
diff options
context:
space:
mode:
authorwhs <whs@us.ibm.com>2016-04-04 10:19:37 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-06-30 23:52:31 -0400
commitc9219373d4320bf513046e69903ce33243e84be6 (patch)
tree93494842bf5a673b00910edc756f19d3e1e1a026 /src/usr/fapi2/test/fapi2GetVpdTest.H
parentf07603a9f2eab60e8e524ff487787086b9a5304e (diff)
downloadtalos-hostboot-c9219373d4320bf513046e69903ce33243e84be6.tar.gz
talos-hostboot-c9219373d4320bf513046e69903ce33243e84be6.zip
Changes related to packaging of memory vpd on Nimbus - part 2
Add the "upper" half of the NIMBUS direct memory support. Add ATTR_MEMVPD_FREQS_MHZ and ATTR_MEMVPD_POS attributes. Implement plat_vpd_access to call p9_getmem_vpd_keyword which decodes which vpd keyword to read for MR and MT. Update dvpd DD with record and keyword list. Update dvpd.dat simics vpd file to include MR and MT that map to J0 and X0. Change-Id: Ife00aa4266a7c16dcff2f0f72837f4d547988b82 RTC: 144519 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23245 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/fapi2/test/fapi2GetVpdTest.H')
-rw-r--r--src/usr/fapi2/test/fapi2GetVpdTest.H59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/usr/fapi2/test/fapi2GetVpdTest.H b/src/usr/fapi2/test/fapi2GetVpdTest.H
new file mode 100644
index 000000000..cfd560b28
--- /dev/null
+++ b/src/usr/fapi2/test/fapi2GetVpdTest.H
@@ -0,0 +1,59 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/usr/fapi2/test/fapi2GetVpdTest.H $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2016 */
+/* [+] International Business Machines Corp. */
+/* */
+/* */
+/* Licensed under the Apache License, Version 2.0 (the "License"); */
+/* you may not use this file except in compliance with the License. */
+/* You may obtain a copy of the License at */
+/* */
+/* http://www.apache.org/licenses/LICENSE-2.0 */
+/* */
+/* Unless required by applicable law or agreed to in writing, software */
+/* distributed under the License is distributed on an "AS IS" BASIS, */
+/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
+/* implied. See the License for the specific language governing */
+/* permissions and limitations under the License. */
+/* */
+/* IBM_PROLOG_END_TAG */
+
+#ifndef __FAPI2GETVPDTEST_H
+#define __FAPI2GETVPDTEST_H
+
+/**
+ * @file getVpdTest.H
+ * @brief simple testcase for vpd function
+ */
+
+#include <stdint.h>
+
+#include <cxxtest/TestSuite.H>
+#include <getVpdTest.H>
+
+class GetVPDTest : public CxxTest::TestSuite
+{
+
+public:
+
+void testGetVPD(void)
+{
+ testGetVPD_MR();
+
+ testGetVPD_MT();
+
+ testDecode_MR();
+
+ testDecode_MT();
+
+ testGetVPD_Override();
+}
+
+}; // GetVPDTest class
+
+#endif
OpenPOWER on IntegriCloud