ec/starlabs/merlin: Add disabled option for lid switch

There are three options for the LID switch:
    SWITCH_NORMAL        0x00
    SWITCH_SLEEP_ONLY    0x01
    SWITCH_DISABLED      0x02

Add these to coreboot to ensure they are set correctly.

Change-Id: I159111438eabd4abeb654be75fd80f29bd835055
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/89502
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
Sean Rhodes 2025-10-09 20:15:27 +01:00
commit 0c73e45493
2 changed files with 5 additions and 3 deletions

View file

@ -105,8 +105,9 @@
#define SPEED_0_2C 0x02
/* Lid Switch */
#define SWITCH_ENABLED 0x00
#define SWITCH_DISABLED 0x01
#define SWITCH_NORMAL 0x00
#define SWITCH_SLEEP_ONLY 0x01
#define SWITCH_DISABLED 0x02
/* Power LED Brightness */
#define LED_NORMAL 0x00

View file

@ -319,7 +319,8 @@ static void merlin_init(struct device *dev)
*
*/
const uint8_t lid_switch[] = {
SWITCH_ENABLED,
SWITCH_NORMAL,
SWITCH_SLEEP_ONLY,
SWITCH_DISABLED
};