summaryrefslogtreecommitdiff
path: root/src/drivers/net/chip.h
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/chip.h
parenta26c94e85493a92dc1238a1c7bbd1f9c1d0f3352 (diff)
downloadcoreboot-65623efda571bf7d426360b6ed1db7fe627d8561.tar.xz
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/chip.h')
-rw-r--r--src/drivers/net/chip.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/drivers/net/chip.h b/src/drivers/net/chip.h
new file mode 100644
index 0000000000..7a37cdedb9
--- /dev/null
+++ b/src/drivers/net/chip.h
@@ -0,0 +1,21 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __DRIVERS_R8168_CHIP_H__
+#define __DRIVERS_R8168_CHIP_H__
+
+struct drivers_net_config {
+ uint16_t customized_leds;
+};
+
+#endif /* __DRIVERS_R8168_CHIP_H__ */