coreboot-kgpe-d16/src/soc/rockchip/rk3288
Julius Werner 7f70ad610b rk3288: Add software I2C support
This patch adds the necessary platform glue to allow the use of
software-driven I2C bit banging on the RK3288. This is just a debugging
feature that can be used to reproduce certain I2C failure cases.

Also fix Makefile verstage linking for the feature and add some new
rk3288 IOMUX macros as needed.

BRANCH=None
BUG=None
TEST=Added "CONFIG_SOFTWARE_I2C=y" to configs/config.veyron_jerry,
wrapped Jerry's bootblock and verstage in software_i2c_attach/detach()
calls, confirmed that both PMIC and TPM could be driven correctly with
software I2C driver. Tried out different combinations of
software_i2c_wedge_ack() and software_i2c_wedge_read() on the PMIC and
observed transfer results with the hardware controller after reboot...
the worst that would happen is that the first register read-modify-write
(DCDC_ILMAX) would fail to read, but all later transfers would be fine.
Since that register is written twice (due to current BUCK1 ramp
implementation) and is not terribily important anyway, I think we don't
need to worry about wedging problems.

Change-Id: Iba801ee61d30fb1fd3aef8300612c67fa50c441b
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 24dfca9bab38a20c40ef0c2dd4c775b8d8f47487
Original-Change-Id: I96777300a57c85471bad20e23a455551e9970222
Original-Signed-off-by: Julius Werner <jwerner@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/247890
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/9757
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2015-04-17 09:59:19 +02:00
..
include/soc rk3288: Add software I2C support 2015-04-17 09:59:19 +02:00
bootblock.c rk3288: Implement support for CRYPTO module and use it in vboot hashing 2015-04-15 16:45:04 +02:00
cbmem.c rk3288: detect sdram size at runtime 2015-04-17 09:26:09 +02:00
chip.h rk3288: support edp HPD function 2015-04-15 22:13:40 +02:00
clock.c rk3288: Implement support for CRYPTO module and use it in vboot hashing 2015-04-15 16:45:04 +02:00
crypto.c rk3288: Implement support for CRYPTO module and use it in vboot hashing 2015-04-15 16:45:04 +02:00
display.c rk3288: support edp HPD function 2015-04-15 22:13:40 +02:00
edp.c rk3288: support edp HPD function 2015-04-15 22:13:40 +02:00
gpio.c gpio: Extend common GPIO header, simplify function names 2015-04-10 11:57:33 +02:00
i2c.c rk3288: Change all SoC headers to <soc/headername.h> system 2015-04-08 09:28:50 +02:00
Kconfig veyron_*: Move PMIC_BUS to a Kconfig variable 2015-04-15 16:46:37 +02:00
Makefile.inc rk3288: Add software I2C support 2015-04-17 09:59:19 +02:00
pwm.c rk3288: Change all SoC headers to <soc/headername.h> system 2015-04-08 09:28:50 +02:00
rk808.c rk3288: set the rk808 BUCK default inductor current to max value 2015-04-15 22:10:43 +02:00
sdram.c rk3288: detect sdram size at runtime 2015-04-17 09:26:09 +02:00
soc.c rk3288: detect sdram size at runtime 2015-04-17 09:26:09 +02:00
software_i2c.c rk3288: Add software I2C support 2015-04-17 09:59:19 +02:00
spi.c veyron_*: Use common CBFS wrapper 2015-04-15 16:30:56 +02:00
timer.c timer: Reestablish init_timer(), consolidate timer initialization calls 2015-04-14 09:03:28 +02:00
tsadc.c rk3288: don't log LAST_TSHUT bit 2015-04-10 11:59:15 +02:00
uart.c uart: pass register width in the coreboot table 2015-04-17 09:53:39 +02:00
vop.c rockchip: support display 2015-04-10 20:50:53 +02:00