1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 3 #include <acpi/acpi_gnvs.h> 4 #include <device/device.h> 5 #include "ec.h" 6 7 #include <southbridge/intel/bd82x6x/pch.h> 8 #include <soc/nvs.h> 9 #include "thermal.h" 10 #include "onboard.h" 11 mainboard_fill_gnvs(struct global_nvs * gnvs)12void mainboard_fill_gnvs(struct global_nvs *gnvs) 13 { 14 /* EC handles all active thermal and fan control on Parrot. */ 15 gnvs->tcrt = CRITICAL_TEMPERATURE; 16 gnvs->tpsv = PASSIVE_TEMPERATURE; 17 18 // the lid is open by default. 19 gnvs->lids = 1; 20 21 // set trackpad IRQ 22 if (parrot_rev() < 0x2) { /* DVT vs PVT */ 23 gnvs->tpiq = BOARD_TRACKPAD_IRQ_DVT; 24 } else { 25 gnvs->tpiq = BOARD_TRACKPAD_IRQ_PVT; 26 } 27 } 28