coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
smbus_early_fch.c File Reference
#include <stdint.h>
#include <amdblocks/acpimmio.h>
#include <amdblocks/smbus.h>
#include <soc/iomap.h>
Include dependency graph for smbus_early_fch.c:

Go to the source code of this file.

Functions

static void fch_smbus_enable_decode (uint16_t base)
 
void fch_smbus_init (void)
 

Function Documentation

◆ fch_smbus_enable_decode()

static void fch_smbus_enable_decode ( uint16_t  base)
static

Definition at line 8 of file smbus_early_fch.c.

References base, PM_DECODE_EN, pm_read32(), pm_write32(), SMBUS_ASF_IO_BASE_MASK, SMBUS_ASF_IO_EN, and val.

Referenced by fch_smbus_init().

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

◆ fch_smbus_init()

void fch_smbus_init ( void  )

Definition at line 18 of file smbus_early_fch.c.

References asf_write8(), fch_smbus_enable_decode(), SMB_BASE_ADDR, SMBHST_STAT_CLEAR, SMBHSTSTAT, SMBSLV_STAT_CLEAR, SMBSLVSTAT, SMBTIMING, and smbus_write8().

Referenced by bootblock_fch_early_init(), and fch_pre_init().

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