This is a copy of the depthcharge ww ring driver implementation ported into coreboot. The main differences are:
- direct use of the i2c driver instead of using the callback driver description
- no dynamic memory allocation for the controller structures
BRANCH=storm BUG=chrome-os-partner:36059 TEST=with the rest of the patches applied the LED ring gets initialized to the default pattern at coreboot start.
Change-Id: I6902c8b76fc173ad2ec28b8cc94695e892df338a
71558f5 i2c: add support for ww_ring
src/drivers/i2c/Kconfig | 3 +-
src/drivers/i2c/Makefile.inc | 5 +-
src/drivers/i2c/ww_ring/Kconfig | 3 +
src/drivers/i2c/ww_ring/Makefile.inc | 1 +
src/drivers/i2c/ww_ring/ww_ring.c | 401 ++++++++++++++++++++++++++++++++++
src/drivers/i2c/ww_ring/ww_ring.h | 30 +++
6 files changed, 440 insertions(+), 3 deletions(-)
Upstream: review.coreboot.org