intel/apollolake: Add soc specific DPTF values
This patch adds apollolake soc specific change. DPTF ASL files are now in src/soc/intel/common so that they can be reused but different soc can have different values e.g., for skylake cpu soc thermal reporting device is at Bus 0, Device 4, Function 0 while for apollolake it is Bus 0, Device 0, Function 1. This patch adds a dptf asl file in soc directory where we can define all values which can change across soc's and can be included in mainboard dptf asl. BUG=chrome-os-partner:53096 TEST=In Amenia and Reef board verify that the thermal zones are enumerated under /sys/class/thermal in Amenia and Reef board. Navigate to /sys/class/thermal, and verify that a thermal zone of type TCPU exists there. Change-Id: I888260a9c799d36512411a769f26dd30cf8d5788 Signed-off-by: Shaunak Saha <shaunak.saha@intel.com> Reviewed-on: https://review.coreboot.org/15619 Tested-by: build bot (Jenkins) Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
parent
44887c3e36
commit
5dd2b18540
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
* This file is part of the coreboot project.
|
||||
*
|
||||
* Copyright (C) 2016 Intel Corporation.
|
||||
*
|
||||
* 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
|
||||
* the Free Software Foundation; version 2 of the License.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#define DPTF_CPU_DEVICE TCPU
|
||||
|
||||
#ifndef DPTF_CPU_PASSIVE
|
||||
#definie DPTF_CPU_PASSIVE 80
|
||||
#endif
|
||||
|
||||
#ifndef DPTF_CPU_CRITICAL
|
||||
#define DPTF_CPU_CRITICAL 90
|
||||
#endif
|
||||
|
||||
#ifndef DPTF_CPU_ACTIVE_AC0
|
||||
#define DPTF_CPU_ACTIVE_AC0 90
|
||||
#endif
|
||||
|
||||
#ifndef DPTF_CPU_ACTIVE_AC1
|
||||
#define DPTF_CPU_ACTIVE_AC1 80
|
||||
#endif
|
||||
|
||||
#ifndef DPTF_CPU_ACTIVE_AC2
|
||||
#define DPTF_CPU_ACTIVE_AC2 70
|
||||
#endif
|
||||
|
||||
#ifndef DPTF_CPU_ACTIVE_AC3
|
||||
#define DPTF_CPU_ACTIVE_AC3 60
|
||||
#endif
|
||||
|
||||
#ifndef DPTF_CPU_ACTIVE_AC4
|
||||
#define DPTF_CPU_ACTIVE_AC4 50
|
||||
#endif
|
Loading…
Reference in New Issue