From 09a3da7596822d721dee3e69a13adfdd67759588 Mon Sep 17 00:00:00 2001 From: Nick Bofferding Date: Wed, 20 Feb 2019 22:11:41 -0600 Subject: 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 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Tested-by: Jenkins OP HW Reviewed-by: Matthew Raybuck Reviewed-by: Daniel M. Crowell --- src/usr/isteps/ucd/makefile | 32 ++++++++++++++++++ src/usr/isteps/ucd/updateUcdFlash.C | 67 +++++++++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 src/usr/isteps/ucd/makefile create mode 100644 src/usr/isteps/ucd/updateUcdFlash.C (limited to 'src/usr/isteps/ucd') 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +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 -- cgit v1.2.1