Hi Keith,

On Mon, Apr 15, 2024 at 12:49 AM Keith Hui <buu...@gmail.com> wrote:
>
> What an eye opener.
>
> Yesterday I stumbled upon some boardviews for my board, and the pro
> variant. That could also let me sort out the pro's serial port without
> one actually on hand, but that's for another time.

Nice! Serial console is always nice to have.

> The power button have never blinked while in S3 like it's supposed to.
> I found that it is connected to GPIO27 on the PCH. I could adjust the
> PCH GPIO config to make it blink. What is the best approach if I want
> it to blink before entering S3, and stop it blinking after coming out
> of?

IIRC, the first 32 GPIOs of the PCH natively support a "blink" mode by
setting a bit in a register. You can easily test this by enabling
blink for GPIO27 in your board's `gpio.c` (this should make the power
LED blink all the time). In order to make it blink only in sleep mode,
you should set that "blink bit" when the board goes to sleep. In order
of preference, this can be done in the DSDT (`_PTS` method; check if
southbridge ACPI already has definitions for the GPIO registers) or in
the SMI handler.

> Thanks
> Keith
> _______________________________________________
> coreboot mailing list -- coreboot@coreboot.org
> To unsubscribe send an email to coreboot-le...@coreboot.org

Best regards,
Angel
_______________________________________________
coreboot mailing list -- coreboot@coreboot.org
To unsubscribe send an email to coreboot-le...@coreboot.org

Reply via email to