ipq806x: extend GSBI driver to support i2c on any GSBI block

Hardware / Coreboot - Sourabh Banerjee [codeaurora.org] - 17 April 2015 02:59 UTC

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

8920865 ipq806x: extend GSBI driver to support i2c on any GSBI block
src/mainboard/google/storm/gsbi.c | 8 +-
src/soc/qualcomm/ipq806x/gsbi.c | 116 ++++++++++++++------------
src/soc/qualcomm/ipq806x/i2c.c | 47 +++++++++--
src/soc/qualcomm/ipq806x/include/soc/iomap.h | 72 ++++++++++++----
src/soc/qualcomm/ipq806x/include/soc/qup.h | 3 +-
src/soc/qualcomm/ipq806x/include/soc/spi.h | 17 ++--
src/soc/qualcomm/ipq806x/qup.c | 16 ++--
7 files changed, 183 insertions(+), 96 deletions(-)

Upstream: review.coreboot.org


  • Share