intel/fsp_baytrail/i2c: mask i2c interrupts in i2c_init()
commit44bb9bdec86d2f0118fc6c1e8d6d0443cf81d235
authorBen Gardner <gardner.ben@gmail.com>
Wed, 1 Jun 2016 14:25:28 +0000 (1 09:25 -0500)
committerMartin Roth <martinroth@google.com>
Fri, 3 Jun 2016 02:54:32 +0000 (3 04:54 +0200)
tree257df888a04b75024a912d04fe0a28bbdde2d41a
parente3a692d7daf16d53764a4b0e30531491d4ae24bd
intel/fsp_baytrail/i2c: mask i2c interrupts in i2c_init()

i2c_init() leaves the I2C device enabled. Combined with the default
interrupt mask (0x8ff) and the fact that the interrupt line is shared,
this leads to an interrupt storm in the OS until a proper I2C driver
is loaded.

This change clears the interrupt mask to prevent the interrupt storm.

Change-Id: I0424a00753d06e26639750f065a7a08a710bfaba
Signed-off-by: Ben Gardner <gardner.ben@gmail.com>
Reviewed-on: https://review.coreboot.org/15047
Tested-by: build bot (Jenkins)
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
src/soc/intel/fsp_baytrail/i2c.c