summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/Kconfig
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2021-10-27 18:27:58 +0200
committerFelix Held <felix-coreboot@felixheld.de>2021-10-28 17:39:37 +0000
commit59a348b75a43d41411dfd7fc4f5d6d1f26404381 (patch)
treebbbb91d1adab0f377f8301aaa2ed8cd34715c476 /src/drivers/net/Kconfig
parentea9425504fa0abdca3a15146deb1337e241d6ce5 (diff)
downloadcoreboot-59a348b75a43d41411dfd7fc4f5d6d1f26404381.tar.gz
coreboot-59a348b75a43d41411dfd7fc4f5d6d1f26404381.tar.bz2
coreboot-59a348b75a43d41411dfd7fc4f5d6d1f26404381.zip
drivers/net/r8168.c: Guard against generating power resource
Not all platforms need to generate power resources, but the code does not get optimized out at build time because the devicetree gets compiled into a linked list. As this code pulls in some heavy ACPI dependencies that is even implemented with weak empty function it makes sense to optimize out this code using a Kconfig constant. This saves 1.5K in ramstage size on gigabyte/ga-945gcm-s2l. Change-Id: I82289aa7e6e82318417f3b827b86182891dfc2a6 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58657 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/net/Kconfig')
-rw-r--r--src/drivers/net/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/net/Kconfig b/src/drivers/net/Kconfig
index 7e111f656914..875b7095fad2 100644
--- a/src/drivers/net/Kconfig
+++ b/src/drivers/net/Kconfig
@@ -38,6 +38,13 @@ config RT8168_SET_LED_MODE
Configuration for details. With this flag enabled, the
customized_leds variable will be read from devicetree setting.
+config RT8168_GEN_ACPI_POWER_RESOURCE
+ bool
+ default n
+ depends on REALTEK_8168_RESET
+ help
+ Select this if an ACPI power resource needs to be generated.
+
config ATHEROS_ATL1E_SETMAC
bool
help