coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
BiosCallOuts.c File Reference
#include <AGESA.h>
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include <northbridge/amd/agesa/state_machine.h>
#include <FchPlatform.h>
#include "imc.h"
Include dependency graph for BiosCallOuts.c:

Go to the source code of this file.

Macros

#define FAN_INPUT_INTERNAL_DIODE   0
 
#define FAN_INPUT_TEMP0   1
 
#define FAN_INPUT_TEMP1   2
 
#define FAN_INPUT_TEMP2   3
 
#define FAN_INPUT_TEMP3   4
 
#define FAN_INPUT_TEMP0_FILTER   5
 
#define FAN_INPUT_ZERO   6
 
#define FAN_INPUT_DISABLED   7
 
#define FAN_AUTOMODE   (1 << 0)
 
#define FAN_LINEARMODE   (1 << 1)
 
#define FAN_STEPMODE   ~(1 << 1)
 
#define FAN_POLARITY_HIGH   (1 << 2)
 
#define FAN_POLARITY_LOW   ~(1 << 2)
 
#define FREQ_28KHZ   0x0
 
#define FREQ_25KHZ   0x1
 
#define FREQ_23KHZ   0x2
 
#define FREQ_21KHZ   0x3
 
#define FREQ_29KHZ   0x4
 
#define FREQ_18KHZ   0x5
 
#define FREQ_100HZ   0xF7
 
#define FREQ_87HZ   0xF8
 
#define FREQ_58HZ   0xF9
 
#define FREQ_44HZ   0xFA
 
#define FREQ_35HZ   0xFB
 
#define FREQ_29HZ   0xFC
 
#define FREQ_22HZ   0xFD
 
#define FREQ_14HZ   0xFE
 
#define FREQ_11HZ   0xFF
 

Functions

static void oem_fan_control (FCH_DATA_BLOCK *FchParams)
 
void board_FCH_InitReset (struct sysinfo *cb_NA, FCH_RESET_DATA_BLOCK *FchParams_reset)
 
void board_FCH_InitEnv (struct sysinfo *cb_NA, FCH_DATA_BLOCK *FchParams_env)
 

Variables

const BIOS_CALLOUT_STRUCT BiosCallouts []
 
const int BiosCalloutsLen = ARRAY_SIZE(BiosCallouts)
 
static const CODEC_ENTRY Olivehill_Alc272_VerbTbl []
 AMD Olivehill Platform ALC272 Verb Table. More...
 
static const CODEC_TBL_LIST OlivehillCodecTableList []
 

Macro Definition Documentation

◆ FAN_AUTOMODE

#define FAN_AUTOMODE   (1 << 0)

Definition at line 59 of file BiosCallOuts.c.

◆ FAN_INPUT_DISABLED

#define FAN_INPUT_DISABLED   7

Definition at line 57 of file BiosCallOuts.c.

◆ FAN_INPUT_INTERNAL_DIODE

#define FAN_INPUT_INTERNAL_DIODE   0

Definition at line 50 of file BiosCallOuts.c.

◆ FAN_INPUT_TEMP0

#define FAN_INPUT_TEMP0   1

Definition at line 51 of file BiosCallOuts.c.

◆ FAN_INPUT_TEMP0_FILTER

#define FAN_INPUT_TEMP0_FILTER   5

Definition at line 55 of file BiosCallOuts.c.

◆ FAN_INPUT_TEMP1

#define FAN_INPUT_TEMP1   2

Definition at line 52 of file BiosCallOuts.c.

◆ FAN_INPUT_TEMP2

#define FAN_INPUT_TEMP2   3

Definition at line 53 of file BiosCallOuts.c.

◆ FAN_INPUT_TEMP3

#define FAN_INPUT_TEMP3   4

Definition at line 54 of file BiosCallOuts.c.

◆ FAN_INPUT_ZERO

#define FAN_INPUT_ZERO   6

Definition at line 56 of file BiosCallOuts.c.

◆ FAN_LINEARMODE

#define FAN_LINEARMODE   (1 << 1)

Definition at line 60 of file BiosCallOuts.c.

◆ FAN_POLARITY_HIGH

#define FAN_POLARITY_HIGH   (1 << 2)

Definition at line 62 of file BiosCallOuts.c.

◆ FAN_POLARITY_LOW

#define FAN_POLARITY_LOW   ~(1 << 2)

Definition at line 63 of file BiosCallOuts.c.

◆ FAN_STEPMODE

#define FAN_STEPMODE   ~(1 << 1)

Definition at line 61 of file BiosCallOuts.c.

◆ FREQ_100HZ

#define FREQ_100HZ   0xF7

Definition at line 72 of file BiosCallOuts.c.

◆ FREQ_11HZ

#define FREQ_11HZ   0xFF

Definition at line 80 of file BiosCallOuts.c.

◆ FREQ_14HZ

#define FREQ_14HZ   0xFE

Definition at line 79 of file BiosCallOuts.c.

◆ FREQ_18KHZ

#define FREQ_18KHZ   0x5

Definition at line 71 of file BiosCallOuts.c.

◆ FREQ_21KHZ

#define FREQ_21KHZ   0x3

Definition at line 69 of file BiosCallOuts.c.

◆ FREQ_22HZ

#define FREQ_22HZ   0xFD

Definition at line 78 of file BiosCallOuts.c.

◆ FREQ_23KHZ

#define FREQ_23KHZ   0x2

Definition at line 68 of file BiosCallOuts.c.

◆ FREQ_25KHZ

#define FREQ_25KHZ   0x1

Definition at line 67 of file BiosCallOuts.c.

◆ FREQ_28KHZ

#define FREQ_28KHZ   0x0

Definition at line 66 of file BiosCallOuts.c.

◆ FREQ_29HZ

#define FREQ_29HZ   0xFC

Definition at line 77 of file BiosCallOuts.c.

◆ FREQ_29KHZ

#define FREQ_29KHZ   0x4

Definition at line 70 of file BiosCallOuts.c.

◆ FREQ_35HZ

#define FREQ_35HZ   0xFB

Definition at line 76 of file BiosCallOuts.c.

◆ FREQ_44HZ

#define FREQ_44HZ   0xFA

Definition at line 75 of file BiosCallOuts.c.

◆ FREQ_58HZ

#define FREQ_58HZ   0xF9

Definition at line 74 of file BiosCallOuts.c.

◆ FREQ_87HZ

#define FREQ_87HZ   0xF8

Definition at line 73 of file BiosCallOuts.c.

Function Documentation

◆ board_FCH_InitEnv()

void board_FCH_InitEnv ( struct sysinfo cb_NA,
FCH_DATA_BLOCK *  FchParams_env 
)

Definition at line 161 of file BiosCallOuts.c.

References oem_fan_control(), and OlivehillCodecTableList.

Here is the call graph for this function:

◆ board_FCH_InitReset()

void board_FCH_InitReset ( struct sysinfo cb_NA,
FCH_RESET_DATA_BLOCK *  FchParams_reset 
)

Definition at line 157 of file BiosCallOuts.c.

◆ oem_fan_control()

static void oem_fan_control ( FCH_DATA_BLOCK *  FchParams)
static

80; /*AC0 threshold in Celsius *‍/

Definition at line 88 of file BiosCallOuts.c.

References CONFIG, and imc_reg_init().

Referenced by board_FCH_InitEnv().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ BiosCallouts

const BIOS_CALLOUT_STRUCT BiosCallouts[]
Initial value:
=
{
{AGESA_DO_RESET, agesa_Reset },
{AGESA_READ_SPD, agesa_ReadSpd },
{AGESA_READ_SPD_RECOVERY, agesa_NoopUnsupported },
{AGESA_RUNFUNC_ONAP, agesa_RunFuncOnAp },
{AGESA_GET_IDS_INIT_DATA, agesa_EmptyIdsInitData },
{AGESA_HOOKBEFORE_DQS_TRAINING, agesa_NoopSuccess },
{AGESA_HOOKBEFORE_EXIT_SELF_REF, agesa_NoopSuccess },
{AGESA_GNB_GFX_GET_VBIOS_IMAGE, agesa_GfxGetVbiosImage }
}
AGESA_STATUS agesa_RunFuncOnAp(UINT32 Func, UINTN Data, VOID *ConfigPtr)
Definition: def_callouts.c:102
AGESA_STATUS agesa_EmptyIdsInitData(UINT32 Func, UINTN Data, VOID *ConfigPtr)
Definition: def_callouts.c:58
AGESA_STATUS agesa_NoopUnsupported(UINT32 Func, UINTN Data, VOID *ConfigPtr)
Definition: def_callouts.c:48
AGESA_STATUS agesa_NoopSuccess(UINT32 Func, UINTN Data, VOID *ConfigPtr)
Definition: def_callouts.c:53
AGESA_STATUS agesa_Reset(UINT32 Func, UINTN Data, VOID *ConfigPtr)
Definition: def_callouts.c:66
AGESA_STATUS agesa_GfxGetVbiosImage(UINT32 Func, UINTN FchData, VOID *ConfigPrt)
AGESA_STATUS agesa_ReadSpd(uint32_t Func, uintptr_t Data, void *ConfigPtr)
Definition: BiosCallOuts.c:81

Definition at line 10 of file BiosCallOuts.c.

◆ BiosCalloutsLen

const int BiosCalloutsLen = ARRAY_SIZE(BiosCallouts)

Definition at line 21 of file BiosCallOuts.c.

◆ Olivehill_Alc272_VerbTbl

const CODEC_ENTRY Olivehill_Alc272_VerbTbl[]
static
Initial value:
= {
{0x11, 0x411111F0},
{0x12, 0x411111F0},
{0x13, 0x411111F0},
{0x14, 0x411111F0},
{0x15, 0x411111F0},
{0x16, 0x411111F0},
{0x17, 0x411111F0},
{0x18, 0x01a19840},
{0x19, 0x411111F0},
{0x1a, 0x01813030},
{0x1b, 0x411111F0},
{0x1d, 0x40130605},
{0x1e, 0x01441120},
{0x21, 0x01214010},
{0xff, 0xffffffff}
}

AMD Olivehill Platform ALC272 Verb Table.

Definition at line 26 of file BiosCallOuts.c.

◆ OlivehillCodecTableList

const CODEC_TBL_LIST OlivehillCodecTableList[]
static
Initial value:
=
{
{0x10ec0272, (CODEC_ENTRY*)&Olivehill_Alc272_VerbTbl[0]},
{(UINT32)0x0FFFFFFFF, (CODEC_ENTRY*)0x0FFFFFFFFUL}
}
static const CODEC_ENTRY Olivehill_Alc272_VerbTbl[]
AMD Olivehill Platform ALC272 Verb Table.
Definition: BiosCallOuts.c:26

Definition at line 44 of file BiosCallOuts.c.

Referenced by board_FCH_InitEnv().