summaryrefslogtreecommitdiff
path: root/src/drivers/net/chip.h
diff options
context:
space:
mode:
authorRory Liu <rory.liu@quanta.corp-partner.google.com>2021-11-22 10:42:25 +0800
committerFelix Held <felix-coreboot@felixheld.de>2021-12-23 21:15:13 +0000
commit2b1e737289e617ece51a20d670cb1493176570d0 (patch)
treeda544c66143fbd87a3a71e03d55431331ad61b6e /src/drivers/net/chip.h
parent4bf08cfbfe5a07a69715f727d571fa7870640f2e (diff)
drivers/net/r8168: Modify to support RTL8125 LEDs
The Realtek RTL8125 has four registers for four leds and a feature config register. We use led0 and led2 in brask, so modify ethernet driver. Those registers' IO address are based on RTL8125 datasheet. BUG=b:193750191 TEST=Modify overridetree.cb to verify LEDs' settings. Signed-off-by: Rory Liu <rory.liu@quanta.corp-partner.google.com> Change-Id: I4b05a859dc0a0d2b8d6b35d6491fc88f7077cb92 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59531 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/drivers/net/chip.h')
-rw-r--r--src/drivers/net/chip.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/net/chip.h b/src/drivers/net/chip.h
index 9b6a4e550b..a4ba8afc53 100644
--- a/src/drivers/net/chip.h
+++ b/src/drivers/net/chip.h
@@ -8,6 +8,11 @@
struct drivers_net_config {
uint16_t customized_leds;
+ /* RTL8125 LED settings */
+ uint8_t led_feature;
+ uint16_t customized_led0;
+ uint16_t customized_led2;
+
unsigned int wake; /* Wake pin for ACPI _PRW */
/* Does the device have a power resource? */