summaryrefslogtreecommitdiffstats
path: root/src/usr/isteps/ucd
diff options
context:
space:
mode:
authorNick Bofferding <bofferdn@us.ibm.com>2019-02-20 22:11:41 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2019-03-08 10:12:18 -0600
commit09a3da7596822d721dee3e69a13adfdd67759588 (patch)
tree4f782633fc309aaecbd08b2465abad20dd47adac /src/usr/isteps/ucd
parent6fa8d04529309619414c75a1e975f3f41d46fcd0 (diff)
downloadtalos-hostboot-09a3da7596822d721dee3e69a13adfdd67759588.tar.gz
talos-hostboot-09a3da7596822d721dee3e69a13adfdd67759588.zip
UCD Flash Update: Support I2C SMBUS operations for UCD flash update
- Adds I2C SMBUS operations for UCD flash update - Creates UCD component ID + trace name - Creates stub for UCD flash update entry point Change-Id: Id75cdd137b5a4924998c04bdbdce9218610a4906 RTC: 201992 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/72229 Reviewed-by: Ilya Smirnov <ismirno@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Matthew Raybuck <matthew.raybuck@ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/isteps/ucd')
-rw-r--r--src/usr/isteps/ucd/makefile32
-rw-r--r--src/usr/isteps/ucd/updateUcdFlash.C67
2 files changed, 99 insertions, 0 deletions
diff --git a/src/usr/isteps/ucd/makefile b/src/usr/isteps/ucd/makefile
new file mode 100644
index 000000000..9ffe7a69b
--- /dev/null
+++ b/src/usr/isteps/ucd/makefile
@@ -0,0 +1,32 @@
+# IBM_PROLOG_BEGIN_TAG
+# This is an automatically generated prolog.
+#
+# $Source: src/usr/isteps/ucd/makefile $
+#
+# OpenPOWER HostBoot Project
+#
+# Contributors Listed Below - COPYRIGHT 2019
+# [+] 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
+
+ROOTPATH = ../../../..
+
+MODULE = ucd
+
+OBJS += updateUcdFlash.o
+
+include ${ROOTPATH}/config.mk
diff --git a/src/usr/isteps/ucd/updateUcdFlash.C b/src/usr/isteps/ucd/updateUcdFlash.C
new file mode 100644
index 000000000..4e1e3b13d
--- /dev/null
+++ b/src/usr/isteps/ucd/updateUcdFlash.C
@@ -0,0 +1,67 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/usr/isteps/ucd/updateUcdFlash.C $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2019 */
+/* [+] 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 */
+
+#include <config.h>
+#include <isteps/ucd/updateUcdFlash.H>
+#include <devicefw/driverif.H>
+#include <targeting/common/entitypath.H>
+#include <targeting/common/target.H>
+#include <targeting/common/targetservice.H>
+#include <errl/errlentry.H>
+#include <devicefw/driverif.H>
+#include <trace/interface.H>
+#include <string.h>
+#include <hbotcompid.H>
+#include <errl/errlmanager.H>
+#include <errl/errlentry.H>
+
+namespace POWER_SEQUENCER
+{
+
+namespace TI // Texas Instruments
+{
+
+namespace UCD // UCD Series
+{
+
+trace_desc_t* g_trac_ucd = nullptr;
+TRAC_INIT(&g_trac_ucd, UCD_COMP_NAME, 2*KILOBYTE);
+
+errlHndl_t updateUcdFlash(
+ TARGETING::Target* i_pUcd,
+ const void* i_pFlashImage)
+{
+ errlHndl_t pError=nullptr;
+
+ // Stub for future additional support
+
+ return pError;
+}
+
+} // End namespace POWER_SEQUENCER
+
+} // End namespace TI
+
+} // End namespace UCD
OpenPOWER on IntegriCloud