i2c/ww_ring: define display pattern programs

Hardware / Coreboot - Vadim Bendebury [chromium.org] - 22 April 2015 12:55 UTC

Add compiled lp55231 code snippets to allow display certain patterns when booting the device with the recovery button pressed.

As soon as the press is detected, the low intensify solid white pattern is enabled. Holding recovery button long enough causes the device transition between the wipeout requested and recovery requested states, with the appropriate changes in the displayed pattern.

The patch also includes the source code for the LED controller as well as instructions on how to compile and modify the code to result in different colors, intensities, blink periods and duty cycles.

BRANCH=storm BUG=chrome-os-partner:36059 TEST=reboot an SP5 device with the LED ring attached, keep the recovery button pressed, observe the changes in the LED display pattern while the device progresses through the boot sequence.

Change-Id: Ic7d45fc7c313b6d21119d4ae6adaeb4f46f7d181

5fa5f99 i2c/ww_ring: define display pattern programs
src/drivers/i2c/ww_ring/Makefile.inc | 1 +
src/drivers/i2c/ww_ring/ww_ring.c | 64 +-----
src/drivers/i2c/ww_ring/ww_ring_programs.c | 326 ++++++++++++++++++++++++++++
src/drivers/i2c/ww_ring/ww_ring_programs.h | 62 ++++++
4 files changed, 395 insertions(+), 58 deletions(-)

Upstream: review.coreboot.org


  • Share