coreboot-kgpe-d16/src/mainboard
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
..
a-trend Replace hlt with halt() 2014-12-02 10:25:55 +01:00
aaeon Replace hlt with halt() 2014-12-02 10:25:55 +01:00
abit Replace hlt with halt() 2014-12-02 10:25:55 +01:00
adlink
advansus vendorcode/amd/agesa: Make Porting.h common between families 2014-12-06 11:39:42 +01:00
amd AGESA fam15tn fam15rl fam16kb: Add OemInitMid() 2014-12-20 07:27:15 +01:00
aopen e7505: Move to per-device ACPI 2014-10-18 13:54:13 +02:00
apple Remove IRQ_SLOT_COUNT on all boards without PIRQ table. 2014-12-06 21:34:19 +01:00
arima mainboard/*/debug.c: Remove duplicate or dead code 2014-11-15 10:25:23 +01:00
artecgroup Replace hlt with halt() 2014-12-02 10:25:55 +01:00
asrock AGESA fam15tn fam15rl fam16kb: Add OemInitMid() 2014-12-20 07:27:15 +01:00
asus AGESA fam15tn fam15rl fam16kb: Add OemInitMid() 2014-12-20 07:27:15 +01:00
avalue vendorcode/amd/agesa: Make Porting.h common between families 2014-12-06 11:39:42 +01:00
azza Replace hlt with halt() 2014-12-02 10:25:55 +01:00
bachmann Replace hlt with halt() 2014-12-02 10:25:55 +01:00
bcom Drop GX1, CS5330 and related boards 2014-12-16 21:17:36 +01:00
bifferos Replace hlt with halt() 2014-12-02 10:25:55 +01:00
biostar Replace hlt with halt() 2014-12-02 10:25:55 +01:00
broadcom
compaq Replace hlt with halt() 2014-12-02 10:25:55 +01:00
cubietech cubieboard: use new arm bootblock infrastructure 2014-12-02 14:18:35 +01:00
digitallogic Drop SC520 and related boards 2014-12-16 21:18:43 +01:00
dmp Replace hlt() loops with halt() 2014-11-30 12:20:07 +01:00
ecs Replace hlt with halt() 2014-12-02 10:25:55 +01:00
emulation qemu-armv7: Trivial style fixes 2014-12-19 23:47:39 +01:00
getac i945: Consolidate acpi/platform.asl 2014-12-03 21:02:50 +01:00
gigabyte gigabyte/ga-b75m-d3h: Drop redundant EARLY_CBMEM_INIT 2014-12-19 19:48:01 +01:00
gizmosphere AGESA fam15tn fam15rl fam16kb: Add OemInitMid() 2014-12-20 07:27:15 +01:00
google nyan*: I2C: Implement bus clear when 'ARB_LOST' error occurs 2014-12-26 19:39:16 +01:00
hp hp/pavilion_m6_1035dx: Enable IOMMU 2014-12-22 16:33:29 +01:00
ibase i945: Consolidate acpi/platform.asl 2014-12-03 21:02:50 +01:00
ibm
iei Drop GX1, CS5330 and related boards 2014-12-16 21:17:36 +01:00
intel fsp_baytrail: Remove GPIO_NC1 #define 2014-12-19 03:12:40 +01:00
iwave sch: Switch to per-device ACPI 2014-10-18 22:01:18 +02:00
iwill mainboard/{iwill,amd/serenget_*}: Fix ptr discards const qualifier 2014-12-09 06:13:47 +01:00
jetway AGESA: Add OemCustomize hooks structure 2014-12-20 07:26:01 +01:00
kontron kontron/986lcd-m: Fix PCI interrupt routing. 2014-12-06 21:35:32 +01:00
lanner Replace hlt with halt() 2014-12-02 10:25:55 +01:00
lenovo AGESA fam15tn fam15rl fam16kb: Add OemInitMid() 2014-12-20 07:27:15 +01:00
linutop
lippert AGESA: Add OemCustomize hooks structure 2014-12-20 07:26:01 +01:00
mitac Replace hlt with halt() 2014-12-02 10:25:55 +01:00
msi mainboard: Strip out some dead includes 2014-12-19 19:19:53 +01:00
nec Replace hlt with halt() 2014-12-02 10:25:55 +01:00
newisys
nokia Replace hlt with halt() 2014-12-02 10:25:55 +01:00
nvidia azalia: Shrink boilerplate 2014-09-13 00:42:14 +02:00
packardbell Remove IRQ_SLOT_COUNT on all boards without PIRQ table. 2014-12-06 21:34:19 +01:00
pcengines Replace hlt with halt() 2014-12-02 10:25:55 +01:00
rca Replace hlt with halt() 2014-12-02 10:25:55 +01:00
roda Remove IRQ_SLOT_COUNT on all boards without PIRQ table. 2014-12-06 21:34:19 +01:00
samsung Remove IRQ_SLOT_COUNT on all boards without PIRQ table. 2014-12-06 21:34:19 +01:00
siemens mainboard/siemens/sitemp_g1p1/mainboard.c: Fix implicit conversion 2014-12-09 09:04:34 +01:00
soyo Replace hlt with halt() 2014-12-02 10:25:55 +01:00
sunw
supermicro AGESA: Add OemCustomize hooks structure 2014-12-20 07:26:01 +01:00
technexion AMD: Move RAMBASE and RAMTOP 2014-11-14 15:46:57 +01:00
thomson Replace hlt with halt() 2014-12-02 10:25:55 +01:00
ti beaglebone: use new arm bootblock infrastructure 2014-12-19 19:37:37 +01:00
traverse Replace hlt with halt() 2014-12-02 10:25:55 +01:00
tyan AGESA: Add OemCustomize hooks structure 2014-12-20 07:26:01 +01:00
via Drop VIA Epia-N 2014-12-18 02:14:45 +01:00
winent Replace hlt with halt() 2014-12-02 10:25:55 +01:00
wyse Replace hlt with halt() 2014-12-02 10:25:55 +01:00
Kconfig Drop SC520 and related boards 2014-12-16 21:18:43 +01:00