summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drivers/net/chip.h4
-rw-r--r--src/drivers/net/r8168.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/net/chip.h b/src/drivers/net/chip.h
index f253cae005..203707c436 100644
--- a/src/drivers/net/chip.h
+++ b/src/drivers/net/chip.h
@@ -34,6 +34,10 @@ struct drivers_net_config {
/* Allow kernel driver to enable ASPM L1.2. */
bool enable_aspm_l1_2;
+
+ /* When set to true, this will add a _DSD which contains a single
+ property, `DmaProperty`, set to 1, under the ACPI Device. */
+ bool add_acpi_dma_property;
};
#endif /* __DRIVERS_R8168_CHIP_H__ */
diff --git a/src/drivers/net/r8168.c b/src/drivers/net/r8168.c
index 32e02759c1..5d19d69519 100644
--- a/src/drivers/net/r8168.c
+++ b/src/drivers/net/r8168.c
@@ -400,6 +400,9 @@ static void r8168_net_fill_ssdt(const struct device *dev)
if (config->wake)
acpigen_write_PRW(config->wake, 3);
+ if (config->add_acpi_dma_property)
+ acpi_device_add_dma_property(NULL);
+
acpigen_pop_len(); /* Device */
acpigen_pop_len(); /* Scope */