summaryrefslogtreecommitdiffstats
path: root/src/usr/errl/errludlogregister.C
diff options
context:
space:
mode:
authorMike Baiocchi <baiocchi@us.ibm.com>2014-08-26 00:08:39 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-10-28 03:20:29 -0500
commitb08e186c26f57cdbf396af57f84002018c0c3350 (patch)
treecb46f059e165d0f2eb0de3ce152f78c5f1dd85a5 /src/usr/errl/errludlogregister.C
parentf3f4aa436ae1c0aac413f6cde928f77f1a156600 (diff)
downloadtalos-hostboot-b08e186c26f57cdbf396af57f84002018c0c3350.tar.gz
talos-hostboot-b08e186c26f57cdbf396af57f84002018c0c3350.zip
Enable FSI-based I2C Device Driver Support
This commit adds FSI I2C Device Driver read and write support. The majority of interfaces are common, with the main difference being the registers that are being used. The FSI Device Driver also had to be udpated to support non-4-byte reads and writes. Change-Id: Ife3cfaedc6f23a161192710d1e9f1e74a942d399 RTC: 109926 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13300 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: ANIRUDH BAGEPALLI <abagepa@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/errl/errludlogregister.C')
-rw-r--r--src/usr/errl/errludlogregister.C9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/usr/errl/errludlogregister.C b/src/usr/errl/errludlogregister.C
index 81f537aa4..77e385dbb 100644
--- a/src/usr/errl/errludlogregister.C
+++ b/src/usr/errl/errludlogregister.C
@@ -5,7 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 2012,2014 */
+/* Contributors Listed Below - COPYRIGHT 2012,2014 */
+/* [+] 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. */
@@ -170,6 +172,11 @@ void ErrlUserDetailsLogRegister::readRegister(
uint64_t reg_data = 0;
size_t reg_size = sizeof(reg_data);
+ if ( i_accessType == DeviceFW::FSI)
+ {
+ reg_size = sizeof(uint32_t);
+ }
+
TRACDCOMP(g_trac_errl, "LogRegister: deviceOpValist()");
errlHndl_t errl;
errl = DeviceFW::deviceOpValist(DeviceFW::READ,
OpenPOWER on IntegriCloud