summaryrefslogtreecommitdiffstats
path: root/src/usr/i2c
Commit message (Collapse)AuthorAgeFilesLines
* Fix I2C Reset to resolve I2C Bus Arbitration Lost ErrorsMike Baiocchi2015-04-092-57/+129
| | | | | | | | | | | | | | | | This commit fixes 2 bugs where the full "Force Reset and Unlock" I2C reset procedure used to both avoid and recover from I2C Bus Arbitration Lost errors was not being performed correctly on any ports but port 0. Change-Id: Ie967d81917e9b942d5cb516856075ebdb5029487 CQ: SW297864 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16842 Reviewed-by: WILLIAM G. HOFFA <wghoffa@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix device address and offset for I2C runtimeCorey Swenson2015-03-261-9/+43
| | | | | | | | | | Change-Id: I8aae26f0e7d774059547b110c4bd643115570116 RTC: 125281 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16255 Tested-by: Jenkins Server Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Initialize I2C Switches in struct to zeroMike Baiocchi2015-03-262-2/+7
| | | | | | | | | | | | | | | | | There are multiple uses for the I2C Switches in the misc_args_t struct used in I2C operations. The struct was not defaulting the switches value to zero and there were negative consequences of this early in the IPL for the i2cPresence() function. Fixes open-power/hostboot#18 Change-Id: I83d34770ff04cfe31bf07b320d8821c8fa80c705 CQ: SW2999529 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16447 Tested-by: Jenkins Server Reviewed-by: MATTHEW A. PLOETZ <maploetz@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Limit I2C Reset on Processors to engine 0 - fixedMike Baiocchi2015-03-261-3/+4
| | | | | | | | | | | | | | Fixed a bug with the initial commit that when I2C Reset is called for procesors, the reset is only done on I2C Master Engine 0. Change-Id: I7ac5f6bee5fee9beb286b029b7fdab187685460b CQ: SW300339 Backport: release-fips830 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16637 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Limit I2C Reset on Processors to engine 0Mike Baiocchi2015-03-251-0/+9
| | | | | | | | | | | | | When I2C Reset is called for procesors, the reset is only done on I2C Master Engine 0 with this change. Change-Id: I6df6181d5dc7b24a3cd270930a50e52023eb1d73 CQ: SW300339 Backport: release-fips830 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16547 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Remove Early I2C Reset Masters on Power SystemsMike Baiocchi2015-03-011-10/+26
| | | | | | | | | | | | | | | | | This commit removes the call for i2cResetActiveMasters() during istep 6.3 host_init_fsi for POWER Systems. This call was attempting to reset the Slace Processors' FSI-based I2C Engines and was intermittently causing problems. It was determined this call was not needed for POWER systems as the FSP should have the system initialized properly for Hostboot. Change-Id: Ic6087ecd5ae82ea6a2807017e1d584e8c4072f9f CQ: SW296222 Backport: release-fips830 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16017 Tested-by: Jenkins Server Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Prioritize system vpd over memb vpd in devtreeDan Crowell2015-02-261-118/+219
| | | | | | | | | | | | | | If multiple targets are using the same physical eeprom for their vpd, the most senior of the targets is what should be reported into the devtree. Change-Id: Ic05761b634d24f3ef71adc17c572834876f2cee9 RTC: 124396 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15884 Tested-by: Jenkins Server Reviewed-by: William H. Schwartz <whs@us.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix I2C devtree valuesDan Crowell2015-02-191-0/+3
| | | | | | | | | Change-Id: Ibc78e9d1545ba6f973cc09185b90f08653d56111 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15785 Tested-by: Jenkins Server Reviewed-by: Joshua P. Rispoli <jprispol@us.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* HBRT Runtime VPD UpdatesCorey Swenson2015-02-188-43/+393
| | | | | | | | | | | | Enables writes to VPD and handles disabling PNOR cache in manufacturing mode Change-Id: I03d4246ceb91520939f8b04f3b3d2fc31c116079 RTC: 114911 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15462 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Update i2cSetupMasters() to support different inputsBill Schwartz2015-02-122-201/+180
| | | | | | | | | | | | Update i2cSetupMasters similar to i2cResetActiveMasters to accept a parameter to select procs and/or mem buffs and host and/or fsi engines. Change-Id: I943248e01acd3254acf5635a284a05c827645123 RTC: 115834 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15552 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Report I2C devices in devtreeDan Crowell2015-02-114-7/+211
| | | | | | | | | | | | | | | | | Report all I2C masters, busses and end devices in the devtree. Current support includes the following devices: -Processor module vpd (primary and backup) -Processor SBE SEEPROM (x2) -Memory buffer VPD -DIMM SPD Change-Id: Ic0e08c208331ce9701de27111cc2e9f54a81fcf7 RTC: 117996 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15203 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Cleanup I2C CodeMike Baiocchi2015-01-231-132/+132
| | | | | | | | | | | | This commit cleans up some changes for recent commits for Stories 116439 and 115834. No major functionality was added. Change-Id: I1675a749eda74454631629ca780013f90e70e8d3 RTC: 116439 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15052 Tested-by: Jenkins Server Reviewed-by: WILLIAM G. HOFFA <wghoffa@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix spelling mistakes using codespell.Patrick Williams2015-01-152-4/+4
| | | | | | | | | | | | - See https://github.com/lucasdemarchi/codespell Change-Id: I03e102d1ebb9473b6226fa9b6edb684fa0218a2f Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15031 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: Zane Shelley <zshelle@us.ibm.com> Reviewed-by: Brian Silver <bsilver@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Remove I2C and EEPROM attribute workaroundsCorey Swenson2015-01-092-31/+0
| | | | | | | | | | Change-Id: I28722938782322e1a378968656e4b2573aa43ccf RTC: 119764 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14959 Tested-by: Jenkins Server Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Support for i2cResetMasters for all existing I2C MastersMike Baiocchi2014-12-181-36/+227
| | | | | | | | | | | | | | This change supports resetting any I2C Master of a processor or memory buffer that has a device off of one of its engines. Change-Id: I2849d3c3d1901489310547ad06ba568aaab32a60 RTC: 115834 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14967 Tested-by: Jenkins Server Reviewed-by: WILLIAM G. HOFFA <wghoffa@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Remove Centaur I2C Master setup from end of IPLDan Crowell2014-12-181-97/+0
| | | | | | | | | | | | | PHYP doesn't use the Centaur engines and Opal will set them up themselves so HB doesn't need to do this. The immediate motivation to remove this is to avoid a potential ibscom collision between OCC and HB. Change-Id: I7086e6e5105eb0d40f4727e695e49c5c5d486eb2 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14932 Tested-by: Jenkins Server Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* BMC VPD hardware write supportCorey Swenson2014-12-162-0/+12
| | | | | | | | | | | | Also contains I2C attribute work-arounds. Change-Id: I6d1164cfefe4edcc6631e8cf51c288ce25489fab RTC: 113492 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13665 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Use FSI-based I2C for MVPD access in OpenPowerMike Baiocchi2014-12-151-0/+107
| | | | | | | | | | | | | | | This code defaults all slave processors to use FSI I2C access method at the start of the IPL. Then in istep 6.12 it calls a new function i2cSetAccessMode() to set them to Host I2C access method for the rest of the IPL. Change-Id: Ib13d274aa9a64a533bce79d34e75c0bee4d3e5c8 RTC: 116439 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14590 Tested-by: Jenkins Server Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Remove errors in VPD presence detect for eepromAndres Lugo2014-12-093-37/+424
| | | | | | | | RTC:117048 Change-Id: Ie63fb413cb9efb9d1ea450467efa500613939af2 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14494 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Add calls to reset I2C buses in istepsJosh Rispoli2014-12-031-5/+2
| | | | | | | | | | Added i2c bus reset (force i2c reset) to isteps 6.3 and 6.12. Change-Id: I35a95b4fdf6c045906f3620262c23ef4ec2baef2 RTC:116374 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14493 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Sync I2C and EEPROM Attributes from MRWMike Baiocchi2014-12-033-101/+131
| | | | | | | | | | | | | This commit adds additional MRW parsing and a new I2C Bus attribute to pull the needed information from the MRWs for EEPROM and I2C operations. Change-Id: I28abec9a04fe27502cab02790c00b15329a8b364 RTC: 80614 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14298 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: Jenkins Server
* BMC: Enable CVPD HW supportCorey Swenson2014-11-061-11/+76
| | | | | | | | Change-Id: I486f31fc47d67c7c4d5b32e49b80cfd8396ca695 RTC: 113492 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14127 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix i2cSetupMasters bug for CentaursMike Baiocchi2014-11-031-7/+2
| | | | | | | | | | | | | | With the code change for FSI I2C support scom registers are now calculated. There was a case in i2cSetupMasters() where the engine parameter was not set and it created an errant scom register access. This case has been fixed. Change-Id: I1fd2e25720d86161142fccae8acd0a7924d22be5 RTC: 109926 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14305 Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Enable FSI-based I2C Device Driver SupportMike Baiocchi2014-10-284-388/+759
| | | | | | | | | | | | | | | 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>
* Force I2C reset/unlockAni Bagepalli2014-10-223-8/+422
| | | | | | | | | | | | This commit add a method to manually toggle the clock and data lines to reset the I2C bus that is locked. This method will also reset the slave I2C chips. Change-Id: I6353dd24f86ca9b0a649875b11bae47035887c84 RTC:97439 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13659 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Move pcie power off prior to starting PCIe clocksDean Sanner2014-09-261-38/+207
| | | | | | | | | | | | | | | This commit moves pcie power off prior to starting PCIe clocks. It also created i2cResetMaster() function to be called before SBE Update in istep 9. Change-Id: I330a5cabf1e778c1354aa3d93d4dedfded7bf013 CQ: SW276751 Backport: release-fips820 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13235 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Dean Sanner <dsanner@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Tools for delivering SRC descriptions to PUBsDoug Gilbert2014-09-082-12/+25
| | | | | | | | | | Change-Id: I1e909145a28c4cce750baee5d79f8f1672235ba9 RTC: 106255 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/12841 Tested-by: Jenkins Server Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Initial Setup of FSI I2C Access MethodMike Baiocchi2014-09-081-1/+3
| | | | | | | | | | | | Add attributes and device driver hooks to add ability to switch between Host or FSI I2C access methods on a per target basis. Change-Id: I145f62583ddfe2d72feec1da3a76205b5191fb83 RTC: 109926 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/12998 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Change copyright prolog for all files to Apache.Patrick Williams2014-05-2114-145/+145
| | | | | | | Change-Id: I5664587b4f889099290ef50d50fa9ce5e580e1eb Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11167 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Update makefiles & included .mk files to use += convention.Brian Silver2014-05-211-2/+4
| | | | | | | | Change-Id: I4148bc4c770b7c3c10fe25aa18d57d1a4301e5a9 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11194 Tested-by: Jenkins Server Reviewed-by: Christopher T. Phan <cphan@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Verify Hostboot I2C SettingsMike Baiocchi2014-04-025-62/+258
| | | | | | | | | | | | | | Updates to I2C Device Driver code to base its settings off of system's Nest Frequency. Change-Id: Iefc556a7d868544d57dd545dc3c41e4bad9d01be Backport: release-fips810 RTC: 96656 CQ: SW253157 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/9574 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Clean up beam errors in core.Patrick Williams2014-02-271-1/+1
| | | | | | | | | | Change-Id: I695a38ae88583a052cae19b930eb53171f8fab2b RTC:94993 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/9050 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Update Default I2C Bus Speed to 1MHzMike Baiocchi2014-02-122-12/+23
| | | | | | | | | | | | | | Currently Hostboot only supports I2C interactions with the SBE SEEPROMs which can run at the faster 1MHz bus speed. Therefore, I am changing the default to run at 1MHz while keeping the ability to set the speed to 400KHz that PHYP needs (via i2cSetupMaster()). Change-Id: I99eb2933502803816e52d1c88d7570bb11319c47 RTC: 80614 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/8413 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Add Callouts to I2C and VPD driversMike Baiocchi2014-01-1510-106/+972
| | | | | | | | | | | | Callouts were added to I2C, EEPROM, MVPD and CVPD (via IPVPD code), and SPD code. Change-Id: Ibcb14ea3a228a5175b6faed06189286b0e0526bc RTC: 69113 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/7966 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Update I2C and EEPROM Device Drivers Error PathsMike Baiocchi2014-01-096-271/+587
| | | | | | | | | | | | | This commit removes the retry path from the I2C Device Driver and adds two to the EEPROM Device Driver. This will provide more flexibility to I2C DD use in the future, while keeping the current level of EEPROM DD robustness. Change-Id: I2b2aa3ed83557a5f2d9523cd55a7486924205e2f RTC: 89667 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/7508 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* IBSCOM Enablement and Error HandlingDan Crowell2013-12-121-0/+2
| | | | | | | | | | | | | | | | | Enable IBSCOM for Centaur DD2.x chips Add appropriate error handling Flip scom to FSI after IBSCOM fail Enable reconfig loop cleanup Code verified on hardware Change-Id: I394789b900e5779dded78dd5fbcc9b9257e856fb RTC: 69115 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/7410 Tested-by: Jenkins Server Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Handle Multiple TOCs and removed side codeStephen Cprek2013-12-121-1/+0
| | | | | | | | | | | | | Also added Hostboot Base image version header Change-Id: I0fc878a48b9449e5d4875fd14525faefe01b1ace RTC: 34764 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/7276 Tested-by: Jenkins Server Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Restart IPL after SBE UpdateMike Baiocchi2013-12-091-1/+5
| | | | | | | | | | | | | | | Along with some SBE Update improvements, this commit adds additional code to re-IPL the system after an SBE Update has taken place. NOTE: Full SBE Update code path to be enabled with RTC 89503. Change-Id: I6beaee026d3fc6aaa76bfc7ca387d6765754f0c3 RTC: 47033 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/6986 Tested-by: Jenkins Server Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix I2C BEAM ErrorsMike Baiocchi2013-12-061-1/+3
| | | | | | | | | | | | A change was made to ignore the BEAM error signaling a loop is only run once. It is be design that this loop is run once. Change-Id: I99c7661cc9b2537603cdb4534b7e7ae78deb895c RTC: 84067 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/7361 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Initial Support for Updating SBE SEEPROMMike Baiocchi2013-10-281-4/+4
| | | | | | | | | | | | | | | This initial commit will be used to create the new SBE directories and files. It also supports the usr functions to find and copy SBE PNOR images. NOTE: It will not enable Updating SBE SEEPROMs in the IPL. Change-Id: I3f545a134493c7595ce50fd885478bbe606de472 RTC: 47032 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6311 Tested-by: Jenkins Server Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Add More Attribute Support for I2C and EEPROM DriversMike Baiocchi2013-10-106-605/+973
| | | | | | | | | | | | | This commit adds more attribute fields to be used in the EEPROM device drivers. The I2C device driver is also being updated so that it can eventually get the desired bus speed from an attribute, as well. Change-Id: I6b609cafdd7ea3b015a4f62009297e0149ba5b84 RTC: 72715 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6116 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* New I2C Interface that adds device offset parameterMike Baiocchi2013-08-085-109/+506
| | | | | | | | | | | | | | Adding an I2C Device Driver interface that has an additional offset paramter which allows for a single operation to set both the device's internal offset and then do a read or write to the device. RTC: 73815 Change-Id: Ib77682f3b7e2088d77ce28b885c544e5cb785f6a Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5524 Tested-by: Jenkins Server Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Updates to I2C and EEPROM Device Drivers to work for P8Mike Baiocchi2013-07-025-258/+755
| | | | | | | | | | | | | | | There were several changes required for successful operation of the I2C and EEPROM Device Drivers based on HW Testing. There was also a need to upddate the attribute files and various testcases for processor support. Change-Id: Idd9351ffb01a992c835f99d06ef1246709eceb8b RTC: 64765 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4678 Tested-by: Jenkins Server Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fixes for GCC 4.7Patrick Williams2013-04-171-3/+1
| | | | | | | Change-Id: Ief0b9202e13bd70cf0de84ca3cb20f5c6df4d3d8 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4035 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Reduce trace buffer sizes.Patrick Williams2012-12-142-26/+26
| | | | | | | Change-Id: I13a80f814fd13a30315320c0b0c7374f39c3ecc2 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2522 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Program I2C Bus Divisor ValueTerry J. Opie2012-12-132-44/+252
| | | | | | | | Change-Id: I784a6b598298fcd09dcd5c108e0a47f1e7daa544 RTC: 49136 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2440 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Update testcases to use Attributes for present and functionalMissy Connell2012-05-092-6/+43
| | | | | | | | | | Update testcases for scom, i2c, mvpd, fsi Change-Id: I357c4efb046c04da1c801ec257a1827e36a73e25 RTC: 39765 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/943 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Support targeting code commonalityNick Bofferding2012-04-244-7/+5
| | | | | | | | | | | | | | | - Moved common targeting code to own subtrees - Updated many components with header file changes - Implemented abstract pointer class - Implemented Hostboot specific support for targeting commonality - Changed attribute VMM base address to 4 GB (From 3 GB) - Removed tabs, fixed > 80 character lines Change-Id: Ie5a6956670bfa4f262f7691b4f0ce5a20ed289fe RTC: 35569 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/909 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix I2C/EEPROM tests to work when there are no I2C TargetsTerry J. Opie2012-03-272-0/+54
| | | | | | | | Change-Id: I22112ca863b19759eec9080742148bd71751b144 RTC: 39190 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/793 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* RTC 35711 - Wrapper for VPO-mode attribute checkDan Crowell2012-02-072-14/+4
| | | | | | | | | The same code was in a dozen places so I added a wrapper function. Change-Id: I5b1d34e0f94b91289960c73670199ff22f4c6860 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/643 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
OpenPOWER on IntegriCloud