coreboot-kgpe-d16/src/mainboard/purism
Matt DeVillier f759a6257c mb/purism/librem_mini: Rework front status LED to show all disk activity
The front status LED on the Librem Mini is driven by the SATALED# GPIO
line configured for native function, so only shows disk activity for
SATA drives, but not NVMe. To allow it to show disk activity for NVMe
drives as well, reconfigure the GPIO as GPIO-OUT (rather than native
function), and configure it via ACPI so that the linux gpio-leds
driver will attach and use it accordingly.

This has the added benefit of allowing the user to reconfigure the
LED as they see fit via sysfs.

Test: boot Linux (PureOS) on Librem Mini v2 with NVMe drive, observe status
LED blinks during periods of disk activity (tested via 'stress').

Change-Id: I34c2a5f3fd1038266f4514544abfc1020da6f85b
Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63749
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
2022-04-22 21:37:28 +00:00
..
librem_bdw mb/purism/librem_bdw/hda_verb.c: Rewrite using macros 2021-11-04 00:24:15 +00:00
librem_cnl mb/purism/librem_mini: Rework front status LED to show all disk activity 2022-04-22 21:37:28 +00:00
librem_skl tpm: Refactor TPM Kconfig dimensions 2022-04-21 23:07:20 +00:00
Kconfig src: Remove leading blank lines from SPDX header 2020-05-18 07:00:27 +00:00
Kconfig.name