aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/amd/olivehill/get_bus_conf.c
diff options
context:
space:
mode:
authorWANG Siyuan <wangsiyuanbuaa@gmail.com>2013-12-02 10:39:44 +0800
committerRudolf Marek <r.marek@assembler.cz>2014-03-10 18:07:53 +0100
commit62a3f6f6656012c6c0bc4f95f8773fc9c1811cd5 (patch)
tree2d828c8f8af834c11ce0a9c67ab94c7b9328e936 /src/mainboard/amd/olivehill/get_bus_conf.c
parentd5813530fa4d6d217c3e797ee4042a4b841da72c (diff)
AMD Olive Hill: add IMC fan control
There are 3 steps to enable the IMC fan control: 1. Enable fan control related registers on Hudson using oem_fan_control(). 2. Set EcStruct. 3. Enable thermal zone using enable_imc_thermal_zone(). I have tested on Olive Hill. Change-Id: I1748e8c92fb72a82bac0506ecdf98304a5bd8239 Signed-off-by: WANG Siyuan <SiYuan.Wang@amd.com> Signed-off-by: WANG Siyuan <wangsiyuanbuaa@gmail.com> Reviewed-on: http://review.coreboot.org/4301 Tested-by: build bot (Jenkins) Reviewed-by: Rudolf Marek <r.marek@assembler.cz>
Diffstat (limited to 'src/mainboard/amd/olivehill/get_bus_conf.c')
-rw-r--r--src/mainboard/amd/olivehill/get_bus_conf.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mainboard/amd/olivehill/get_bus_conf.c b/src/mainboard/amd/olivehill/get_bus_conf.c
index 81caf7da03..df6ebb7a6d 100644
--- a/src/mainboard/amd/olivehill/get_bus_conf.c
+++ b/src/mainboard/amd/olivehill/get_bus_conf.c
@@ -25,6 +25,9 @@
#include <stdlib.h>
#include <cpu/amd/amdfam14.h>
#include "agesawrapper.h"
+#if IS_ENABLED(CONFIG_HUDSON_IMC_FWM)
+#include "imc.h"
+#endif
/* Global variables for MB layouts and these will be shared by irqtable mptable
* and acpi_tables busnum is default.
@@ -145,4 +148,9 @@ void get_bus_conf(void)
bus_isa = 10;
apicid_base = CONFIG_MAX_CPUS;
apicid_yangtze = apicid_base;
+
+#if IS_ENABLED(CONFIG_HUDSON_IMC_FWM)
+ /* AMD AGESA does not enable thermal zone, so we enable it here. */
+ enable_imc_thermal_zone();
+#endif
}