![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <amdblocks/acp.h>
#include <amdblocks/chip.h>
#include <device/device.h>
#include <device/mmio.h>
#include <console/console.h>
#include "acp_def.h"
Go to the source code of this file.
Macros | |
#define | ACP_PME_EN 0x41400 |
#define | PME_EN_MASK (1 << 0) |
#define | ACP_I2S_PIN_CONFIG 0x41440 /* HDA, Soundwire, I2S */ |
#define | PIN_CONFIG_MASK (0xf << 0) |
#define | ACP_I2S_WAKE_EN 0x4145C |
#define | WAKE_EN_MASK (1 << 0) |
Functions | |
static void | acp_update32 (uintptr_t bar, uint32_t reg, uint32_t clear, uint32_t set) |
void | acp_init (struct device *dev) |
#define ACP_I2S_PIN_CONFIG 0x41440 /* HDA, Soundwire, I2S */ |
Definition at line 13 of file acp_gen2.c.
#define ACP_I2S_WAKE_EN 0x4145C |
Definition at line 15 of file acp_gen2.c.
#define ACP_PME_EN 0x41400 |
Definition at line 11 of file acp_gen2.c.
#define PIN_CONFIG_MASK (0xf << 0) |
Definition at line 14 of file acp_gen2.c.
#define PME_EN_MASK (1 << 0) |
Definition at line 12 of file acp_gen2.c.
#define WAKE_EN_MASK (1 << 0) |
Definition at line 16 of file acp_gen2.c.
Definition at line 23 of file acp_gen2.c.
References soc_amd_common_config::acp_config, ACP_I2S_PIN_CONFIG, ACP_I2S_WAKE_EN, acp_config::acp_i2s_wake_enable, acp_config::acp_pin_cfg, ACP_PME_EN, acp_config::acp_pme_enable, acp_update32(), resource::base, BIOS_ERR, PIN_CONFIG_MASK, PME_EN_MASK, printk, device::resource_list, soc_get_common_config(), and WAKE_EN_MASK.
Definition at line 18 of file acp_gen2.c.
References clrsetbits32.
Referenced by acp_init().