From 732eaf20c3319ec3558ff3333efc8ff87f7115de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Fri, 8 Jan 2021 07:25:47 +0200 Subject: util/autoport: Rename to mainboard_fill_gnvs() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia8d7083ca2f21abbb5f184c1b55dcf1bf047a7be Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/49231 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- util/autoport/bd82x6x.go | 5 +++-- util/autoport/readme.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'util') diff --git a/util/autoport/bd82x6x.go b/util/autoport/bd82x6x.go index 5d943e43fe..e2a84e4c51 100644 --- a/util/autoport/bd82x6x.go +++ b/util/autoport/bd82x6x.go @@ -359,10 +359,11 @@ void mainboard_get_spd(spd_raw_data *spd, bool id_only) defer gnvs.Close() Add_gpl(gnvs) - gnvs.WriteString(`#include + gnvs.WriteString(`#include +#include /* FIXME: check this function. */ -void acpi_create_gnvs(struct global_nvs *gnvs) +void mainboard_fill_gnvs(struct global_nvs *gnvs) { /* The lid is open by default. */ gnvs->lids = 1; diff --git a/util/autoport/readme.md b/util/autoport/readme.md index bfaaef6f4e..f2b2697da6 100644 --- a/util/autoport/readme.md +++ b/util/autoport/readme.md @@ -335,7 +335,7 @@ this value is correct. This can also be determined from the board's schematics. ## GNVS -`acpi_create_gnvs` sets values in GNVS, which then ACPI makes use of for +`mainboard_fill_gnvs` sets values in GNVS, which then ACPI makes use of for various power-related functions. Normally, there is no need to modify it on laptops (desktops have no "lid"!) but it makes sense to proofread it. -- cgit v1.2.3