From 0ff2e01e809439efbf8cbe85bb6b48315b8a945a Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Thu, 20 Jul 2017 20:54:36 -0600 Subject: amd/pi/hudson: Move oem_fan_control() It was not intentional to change oem_fan_control() to non-static with commit 23e5ba9 binarypi mainboards: Clean up IS_ENABLED fan control Every platform except bettong had its own static version of oem_fan_control, so remove the definition of oem_fan_control from imc.h, and move it out of imc.c into bettong's BiosCallOuts.c. Change-Id: Ie95ac1fd3a57259bb35796903aa8753ef0e70d70 Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/21189 Reviewed-by: Marshall Dawson Tested-by: build bot (Jenkins) --- src/southbridge/amd/pi/hudson/imc.c | 18 ------------------ src/southbridge/amd/pi/hudson/imc.h | 5 ----- 2 files changed, 23 deletions(-) (limited to 'src/southbridge/amd/pi/hudson') diff --git a/src/southbridge/amd/pi/hudson/imc.c b/src/southbridge/amd/pi/hudson/imc.c index d11bb88801..53e97fbae3 100644 --- a/src/southbridge/amd/pi/hudson/imc.c +++ b/src/southbridge/amd/pi/hudson/imc.c @@ -81,21 +81,3 @@ void enable_imc_thermal_zone(void) WaitForEcLDN9MailboxCmdAck(&StdHeader); } #endif - -/* Bettong Hardware Monitor Fan Control - * Hardware limitation: - * HWM will fail to read the input temperature via I2C if other - * software switches the I2C address. AMD recommends using IMC - * to control fans, instead of HWM. - */ -void oem_fan_control(FCH_DATA_BLOCK *FchParams) -{ - /* Enable IMC fan control. the recommand way */ - imc_reg_init(); - - FchParams->Imc.ImcEnable = TRUE; - FchParams->Hwm.HwmControl = 1; /* 1 IMC, 0 HWM */ - FchParams->Imc.ImcEnableOverWrite = 1; /* 2 disable IMC, 1 enable IMC, 0 following hw strap setting */ - - LibAmdMemFill(&(FchParams->Imc.EcStruct), 0, sizeof(FCH_EC), FchParams->StdHeader); -} diff --git a/src/southbridge/amd/pi/hudson/imc.h b/src/southbridge/amd/pi/hudson/imc.h index 7e407304eb..0fcc187a4e 100644 --- a/src/southbridge/amd/pi/hudson/imc.h +++ b/src/southbridge/amd/pi/hudson/imc.h @@ -16,12 +16,7 @@ #ifndef HUDSON_IMC_H #define HUDSON_IMC_H -#include "Porting.h" -#include "AGESA.h" -#include - void imc_reg_init(void); void enable_imc_thermal_zone(void); -void oem_fan_control(FCH_DATA_BLOCK *FchParams); #endif -- cgit v1.2.3