diff options
author | Peter Lemenkov <lemenkov@gmail.com> | 2019-10-21 21:42:17 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-12-27 09:09:02 +0000 |
commit | 6c2c018e15a1c4d3ae394333263e6c7c3eb30415 (patch) | |
tree | 832792ac36f7b5ce890e001fee96639cbbecd6c3 /src/mainboard/samsung/lumpy/acpi_tables.c | |
parent | 1fe7dcb047d157de79acafedaab0fe98408aeafc (diff) |
mb/*/*/acpi_tables: Remove unnecessary function call
Remove acpi_update_thermal_table local function.
Change-Id: I4857348088feb8eaf1dd7f553c4efb29da8943cf
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36212
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/mainboard/samsung/lumpy/acpi_tables.c')
-rw-r--r-- | src/mainboard/samsung/lumpy/acpi_tables.c | 40 |
1 files changed, 17 insertions, 23 deletions
diff --git a/src/mainboard/samsung/lumpy/acpi_tables.c b/src/mainboard/samsung/lumpy/acpi_tables.c index 413841c60b..3e921870fc 100644 --- a/src/mainboard/samsung/lumpy/acpi_tables.c +++ b/src/mainboard/samsung/lumpy/acpi_tables.c @@ -27,8 +27,24 @@ static global_nvs_t *gnvs_; -static void acpi_update_thermal_table(global_nvs_t *gnvs) +void acpi_create_gnvs(global_nvs_t *gnvs) { + gnvs_ = gnvs; + + /* + * Disable 3G in suspend by default. + * Provide option to enable for http://crosbug.com/p/7925 + */ + gnvs->s33g = 0; + + /* Disable USB ports in S3 by default */ + gnvs->s3u0 = 0; + gnvs->s3u1 = 0; + + /* Disable USB ports in S5 by default */ + gnvs->s5u0 = 0; + gnvs->s5u1 = 0; + gnvs->f4of = FAN4_THRESHOLD_OFF; gnvs->f4on = FAN4_THRESHOLD_ON; @@ -48,28 +64,6 @@ static void acpi_update_thermal_table(global_nvs_t *gnvs) gnvs->tpsv = PASSIVE_TEMPERATURE; gnvs->tmax = MAX_TEMPERATURE; gnvs->flvl = 5; -} - -void acpi_create_gnvs(global_nvs_t *gnvs) -{ - gnvs_ = gnvs; - - /* - * Disable 3G in suspend by default. - * Provide option to enable for http://crosbug.com/p/7925 - */ - gnvs->s33g = 0; - - /* Disable USB ports in S3 by default */ - gnvs->s3u0 = 0; - gnvs->s3u1 = 0; - - /* Disable USB ports in S5 by default */ - gnvs->s5u0 = 0; - gnvs->s5u1 = 0; - - - acpi_update_thermal_table(gnvs); gnvs->chromeos.vbt2 = ec_read(0xcb) ? ACTIVE_ECFW_RW : ACTIVE_ECFW_RO; } |