From 2ecf3f8cb9784ce14752878a5a63c9359a7726a7 Mon Sep 17 00:00:00 2001 From: Gaggery Tsai Date: Thu, 2 Nov 2017 09:58:06 +0800 Subject: mb/google/fizz: Enable NIC leds This patch enables customized NIC leds as follows: Green Orange (Amber) 100M off blinking 1000M on blinking BUG=b:65437780, b:68284778 TEST=Make sure the registers are programmed as expected and observe the LEDs are behaving as expected. Perform suspend/resume test and the LEDs are still working as expected. Change-Id: I9bb1367a4c742c2755d620e14ee6dfe70ee7f34b Signed-off-by: Gaggery Tsai Reviewed-on: https://review.coreboot.org/22293 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Furquan Shaikh --- src/mainboard/google/fizz/Kconfig | 1 + src/mainboard/google/fizz/devicetree.cb | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'src/mainboard/google/fizz') diff --git a/src/mainboard/google/fizz/Kconfig b/src/mainboard/google/fizz/Kconfig index 1431db42c6..64748243fa 100644 --- a/src/mainboard/google/fizz/Kconfig +++ b/src/mainboard/google/fizz/Kconfig @@ -18,6 +18,7 @@ config BOARD_SPECIFIC_OPTIONS select FIZZ_USE_SPI_TPM select GENERIC_SPD_BIN select RT8168_GET_MAC_FROM_VPD + select RT8168_SET_LED_MODE select SPD_READ_BY_WORD config VBOOT diff --git a/src/mainboard/google/fizz/devicetree.cb b/src/mainboard/google/fizz/devicetree.cb index 15902528af..73a5c5077d 100644 --- a/src/mainboard/google/fizz/devicetree.cb +++ b/src/mainboard/google/fizz/devicetree.cb @@ -302,9 +302,15 @@ chip soc/intel/skylake end end # I2C #5 device pci 19.2 off end # I2C #4 - device pci 1c.0 on end # PCI Express Port 1 + device pci 1c.0 on # PCI Express Port 1 + chip drivers/net + register "customized_leds" = "0x0fa7" + device pci 00.0 on end + end + end # PCI Express Port 1 device pci 1c.1 off end # PCI Express Port 2 - device pci 1c.2 on end # PCI Express Port 3 for LAN + # PCI Express Port 3 for LAN, but will be swapped to port 1 + device pci 1c.2 on end device pci 1c.3 on chip drivers/intel/wifi register "wake" = "GPE0_PCI_EXP" -- cgit v1.2.3