summaryrefslogtreecommitdiff
path: root/src/drivers/net/Kconfig
diff options
context:
space:
mode:
authorGaggery Tsai <gaggery.tsai@intel.com>2017-09-29 11:15:23 +0800
committerFurquan Shaikh <furquan@google.com>2017-11-01 17:36:38 +0000
commit65623efda571bf7d426360b6ed1db7fe627d8561 (patch)
tree680371f5282d1c73c60ea42377755a8c57e222ec /src/drivers/net/Kconfig
parenta26c94e85493a92dc1238a1c7bbd1f9c1d0f3352 (diff)
drivers/net/r8168: Add customized LED mode
This patch adds a function to program a customized LED setting for Realtek 81xx family. It reads the settings from devicetree under target board and programs the setting to offset 0x18 and 0x19. BUG=b:65437780 TEST=Add customized_leds register in devicetree.cb under target board, enable RT8168_SET_LED_MODE flag. Make sure the setting is programmed correctly to offset 0x18 and 0x19. Observed the LEDs were behaving as expected. Executed suspend/resume and the LEDs were still working as expected. Change-Id: Ib3d4f2cd98ac391e1661a891d604bdd1974d07f6 Signed-off-by: Gaggery Tsai <gaggery.tsai@intel.com> Reviewed-on: https://review.coreboot.org/21862 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/drivers/net/Kconfig')
-rw-r--r--src/drivers/net/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/drivers/net/Kconfig b/src/drivers/net/Kconfig
index 67a138938e..bd6f09a61d 100644
--- a/src/drivers/net/Kconfig
+++ b/src/drivers/net/Kconfig
@@ -18,3 +18,14 @@ config RT8168_GET_MAC_FROM_VPD
bool
default n
select REALTEK_8168_RESET
+
+config RT8168_SET_LED_MODE
+ bool
+ default n
+ select REALTEK_8168_RESET
+ help
+ This is to set a customized LED mode to distinguish 10/100/1000
+ link and speed status with limited LEDs avaiable on a board.
+ Please refer to RTL811x datasheet section 7.2 Customizable LED
+ Configuration for details. With this flag enabled, the
+ customized_leds variable will be read from devicetree setting.