mb/purism/librem_mini: Implement `die_notify`
commit68b447c2f8ed9b064ff3c915ae98ec8612d0ba3d
authorAngel Pons <th3fanbus@gmail.com>
Wed, 27 Jan 2021 22:32:27 +0000 (27 23:32 +0100)
committerPatrick Georgi <pgeorgi@google.com>
Wed, 3 Mar 2021 09:01:32 +0000 (3 09:01 +0000)
tree1016a1c9679e540b40cb3b25b42658ac1d7fbd18
parentbab7f18a434a56d152980ec0e50aabd09ee64bf8
mb/purism/librem_mini: Implement `die_notify`

Make the SATA LED blink when coreboot dies. GPIO functions aren't
compiled in for postcar, so add a check to prevent linker failures.

TEST: Try to boot Librem Mini WHL without RAM, observe blinking (and
      also blinding LED). Re-install RAM (and re-seat RAM a few times),
      boot to OS, and observe SATA LED operating normally, as expected.

Change-Id: I0ffac0ab02e52e9fbba7990f401d87e50a1b5154
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50013
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Benjamin Doron <benjamin.doron00@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/mainboard/purism/librem_cnl/Makefile.inc
src/mainboard/purism/librem_cnl/variants/librem_mini/Makefile.inc [new file with mode: 0644]
src/mainboard/purism/librem_cnl/variants/librem_mini/die.c [new file with mode: 0644]