Skip to content

Commit 4e75411

Browse files
committed
mb/lenovo/m900_tiny/ramstage.c: hook up Dasharo options
Upstream-Status: Inappropriate [Dasharo downstream] Change-Id: I1cd6916191ddf45cf5f9c5a82c965e476595c11c Signed-off-by: Michał Kopeć <[email protected]>
1 parent dc4c70f commit 4e75411

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mainboard/lenovo/m900_tiny/ramstage.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* SPDX-License-Identifier: GPL-2.0-only */
22

33
#include <console/console.h>
4+
#include <dasharo/options.h>
45
#include <device/device.h>
56
#include <device/pci_def.h>
67
#include <drivers/intel/gma/int15.h>
@@ -51,7 +52,7 @@ static void devtree_update(void)
5152
struct device *ssd_dev = DEV_PTR(pcie_rp17);
5253
struct device *ps2_dev = dev_find_slot_pnp(0x2e, NCT6687D_KBC);
5354

54-
if (get_uint_option("wifi_slot_enable", 1) == 0) {
55+
if (get_uint_option("wifi_slot_enable", get_wireless_option()) == 0) {
5556
cfg->usb2_ports[8].enable = 0;
5657
wifi_dev->enabled = 0;
5758
}
@@ -66,7 +67,7 @@ static void devtree_update(void)
6667
cfg->SataPortsEnable[1] = 0;
6768
}
6869

69-
if (get_uint_option("ps2_enable", 1) == 0)
70+
if (get_uint_option("ps2_enable", get_ps2_option()) == 0)
7071
ps2_dev->enabled = 0;
7172
}
7273

0 commit comments

Comments
 (0)