soc/intel/braswell/acpi/dptf/thermal.asl: Make Thermal event optional
Currently thermal event support can not be disabled at board level. Define and dependent code are placed in same file. Move define of HAVE_THERM_EVENT_HANDLER to mainboard file. Change-Id: Icb532e5bc7fd171ee2921f9a4b9b2150ba9f05c5 Signed-off-by: Frans Hendriks <fhendriks@eltan.com> Reviewed-on: https://review.coreboot.org/27415 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
a353d054ae
commit
34510c377e
|
@ -3,6 +3,7 @@
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012 Google Inc.
|
* Copyright (C) 2012 Google Inc.
|
||||||
* Copyright (C) 2015 Intel Corp.
|
* Copyright (C) 2015 Intel Corp.
|
||||||
|
* Copyright (C) 2018 Eltan B.V.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -14,6 +15,8 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define HAVE_THERM_EVENT_HANDLER
|
||||||
|
|
||||||
/* Include Variant DPTF */
|
/* Include Variant DPTF */
|
||||||
#include <variant/acpi/dptf.asl>
|
#include <variant/acpi/dptf.asl>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
/*
|
/*
|
||||||
* This file is part of the coreboot project.
|
* This file is part of the coreboot project.
|
||||||
*
|
*
|
||||||
|
* Copyright (C) 2018 Eltan B.V.
|
||||||
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License as
|
* modify it under the terms of the GNU General Public License as
|
||||||
* published by the Free Software Foundation; version 2 of
|
* published by the Free Software Foundation; version 2 of
|
||||||
|
@ -13,7 +15,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Thermal Threshold Event Handler */
|
/* Thermal Threshold Event Handler */
|
||||||
#define HAVE_THERM_EVENT_HANDLER
|
#ifdef HAVE_THERM_EVENT_HANDLER
|
||||||
Method (TEVT, 1, NotSerialized)
|
Method (TEVT, 1, NotSerialized)
|
||||||
{
|
{
|
||||||
Store (ToInteger (Arg0), Local0)
|
Store (ToInteger (Arg0), Local0)
|
||||||
|
@ -34,6 +36,7 @@ Method (TEVT, 1, NotSerialized)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Thermal device initialization - Disable Aux Trip Points */
|
/* Thermal device initialization - Disable Aux Trip Points */
|
||||||
Method (TINI)
|
Method (TINI)
|
||||||
|
|
Loading…
Reference in New Issue