coreboot-kgpe-d16/src/mainboard/google/nyan
Tom Warren bb932c56f0 nyan*: I2C: Implement bus clear when 'ARB_LOST' error occurs
This is a fix for the 'Lost arb' we're seeing on Nyan* during
reboot stress testing. It occurs when we are slamming the
default PMIC registers with pmic_write_reg().

Currently, I've only captured this a few times, and the bus
clear seemed to work, as the PMIC writes continued (where
they'd hang the system before bus clear) for a couple of regs,
then it hangs hard, no messages, no 2nd lost arb, etc. So
I've added code to the PMIC write function that will reset the
SoC if any I2C error occurs. That seems to recover OK, i.e. on
the next reboot the PMIC writes all go thru, boot is OK, kernel
loads, etc.

BUG=chrome-os-partner:28323
BRANCH=nyan
TEST=Tested on nyan. Built for nyan and nyan_big.

Original-Change-Id: I1ac5e3023ae22c015105b7f0fb7849663b4aa982
Original-Signed-off-by: Tom Warren <twarren@nvidia.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/197732
Original-Reviewed-by: Julius Werner <jwerner@chromium.org>
Original-Reviewed-by: Jimmy Zhang <jimmzhang@nvidia.com>
(cherry picked from commit f445127e2d9e223a5ef9117008a7ac7631a7980c)
Signed-off-by: Marc Jones <marc.jones@se-eng.com>

Change-Id: I584d55b99d65f1e278961db6bdde1845cb01f3bc
Reviewed-on: http://review.coreboot.org/7897
Tested-by: build bot (Jenkins)
Reviewed-by: David Hendricks <dhendrix@chromium.org>
2014-12-26 19:39:16 +01:00
..
bct nyan*: Fix unexpected symbol (CR) when converting DOS-formatted BCT config. 2014-12-15 20:11:34 +01:00
board_info.txt Add board_info for all Google/Intel boards mitting the file 2014-10-17 10:12:08 +02:00
boardid.c tegra124/nyan: display, clock, and other updates 2014-09-13 02:00:03 +02:00
boardid.h tegra124/nyan: display, clock, and other updates 2014-09-13 02:00:03 +02:00
bootblock.c nyan: big: Set the i2c controller frequencies appropriately. 2014-11-13 06:27:40 +01:00
chromeos.c tegra124/nyan: various fixes and additions 2014-09-12 21:59:45 +02:00
devicetree.cb nyan*: Add fast link training functions 2014-12-19 23:46:50 +01:00
Kconfig nyans: prepare for vboot verification of ramstage 2014-12-15 20:14:43 +01:00
mainboard.c nyan*: Disable SD card reader power gpio. 2014-12-19 23:47:00 +01:00
Makefile.inc nyan*: I2C: Implement bus clear when 'ARB_LOST' error occurs 2014-12-26 19:39:16 +01:00
pmic.c nyan*: I2C: Implement bus clear when 'ARB_LOST' error occurs 2014-12-26 19:39:16 +01:00
pmic.h tegra124/nyan: display, clock, and other updates 2014-09-13 02:00:03 +02:00
reset.c nyan*: I2C: Implement bus clear when 'ARB_LOST' error occurs 2014-12-26 19:39:16 +01:00
reset.h nyan*: I2C: Implement bus clear when 'ARB_LOST' error occurs 2014-12-26 19:39:16 +01:00
romstage.c nyan*: cbmem: Move the call to cbmemc_reinit. 2014-12-17 20:49:23 +01:00
sdram_configs.c nyan: Update 924MHz BCT w/latest qual'd cfg, use 924 as default speed for 2GB 2014-11-13 06:24:42 +01:00
sdram_configs.h tegra/nyan*: sdram updates 2014-10-22 03:56:49 +02:00