ipq806x: extend GSBI driver to support i2c on any GSBI block
commit89208653320c099e3c4489a43f792633d99cf4c1
authorSourabh Banerjee <sbanerje@codeaurora.org>
Thu, 19 Feb 2015 11:13:26 +0000 (19 16:43 +0530)
committerPatrick Georgi <pgeorgi@google.com>
Fri, 17 Apr 2015 07:59:53 +0000 (17 09:59 +0200)
treebf172662053d8fe4c0d57f3a2d9ab36e57f81614
parent3cfb6a066b6801186b716a4f789b69655e1e420e
ipq806x: extend GSBI driver to support i2c on any GSBI block

The GSBI driver is extended to be able to program the CTRL reg for any given
GSBI block. The NS and MD registers programming is made more readable by
programming the M, N, D and other bits of the registers individually.
Defined configure structs for each QUP block to be able to track the init
status for each qup.
Configured GPIO8 and GPIO9 for I2C fuction.

BRANCH=chromeos-2013.04
BUG=chrome-os-partner:36722
TEST=Booted up storm P0.2, verified that the TPM on GSBI1 still works.

Change-Id: I17906beedef5c80267cf114892080b121902210a
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 07bc79211770decc1070c3a88874a4e452b8f5bc
Original-Change-Id: I841d0d419f7339f5e5cb3385da98786eb18252ad
Original-Signed-off-by: Sourabh Banerjee <sbanerje@codeaurora.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/250763
Original-Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Original-Trybot-Ready: Vadim Bendebury <vbendeb@chromium.org>
Original-Commit-Queue: Vadim Bendebury <vbendeb@chromium.org>
Original-Tested-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: http://review.coreboot.org/9759
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
src/mainboard/google/storm/gsbi.c
src/soc/qualcomm/ipq806x/gsbi.c
src/soc/qualcomm/ipq806x/i2c.c
src/soc/qualcomm/ipq806x/include/soc/iomap.h
src/soc/qualcomm/ipq806x/include/soc/qup.h
src/soc/qualcomm/ipq806x/include/soc/spi.h
src/soc/qualcomm/ipq806x/qup.c