From 58e016ed6941bc8a0a05306fc721ef343eb35918 Mon Sep 17 00:00:00 2001 From: Rory Liu Date: Wed, 22 Dec 2021 17:05:15 +0800 Subject: [PATCH] mb/google/brya/var/brask: Customize LEDs of RT8125 Add Kconfig item RT8168_SET_LED_MODE to enable LED customization. Update the LED settings in devicetree. BUG=b:193750191 TEST=Try different register values to verify LED feature. Signed-off-by: Rory Liu Change-Id: If80ace497c7481ce40b55af7e17e12a286aa9164 Reviewed-on: https://review.coreboot.org/c/coreboot/+/60298 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- src/mainboard/google/brya/Kconfig | 1 + src/mainboard/google/brya/variants/brask/overridetree.cb | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/mainboard/google/brya/Kconfig b/src/mainboard/google/brya/Kconfig index 9363d6e685..fa618b9bd8 100644 --- a/src/mainboard/google/brya/Kconfig +++ b/src/mainboard/google/brya/Kconfig @@ -9,6 +9,7 @@ config BOARD_GOOGLE_BASEBOARD_BRASK select SPD_CACHE_IN_FMAP select ENABLE_TCSS_DISPLAY_DETECTION if RUN_FSP_GOP select RT8168_GET_MAC_FROM_VPD + select RT8168_SET_LED_MODE select RT8168_GEN_ACPI_POWER_RESOURCE if BOARD_GOOGLE_BASEBOARD_BRYA || BOARD_GOOGLE_BASEBOARD_BRASK diff --git a/src/mainboard/google/brya/variants/brask/overridetree.cb b/src/mainboard/google/brya/variants/brask/overridetree.cb index fbb64ffd7b..9a0e073c98 100644 --- a/src/mainboard/google/brya/variants/brask/overridetree.cb +++ b/src/mainboard/google/brya/variants/brask/overridetree.cb @@ -96,6 +96,9 @@ chip soc/intel/alderlake register "stop_off_delay_ms" = "1" register "has_power_resource" = "1" register "wake" = "GPE0_DW0_07" + register "led_feature" = "0xe0" + register "customized_led0" = "0x23f" + register "customized_led2" = "0x028" device pci 00.0 on end end end # RTL8125 Ethernet NIC