8 #include <soc/pci_devs.h>
11 #include <soc/iomap.h>
12 #include <soc/ramstage.h>
15 #define IOSF_READ(op_read, port) \
16 (IOSF_OPCODE(op_read) | IOSF_PORT(port))
17 #define IOSF_WRITE(op_write, port) \
18 (IOSF_OPCODE(op_write) | IOSF_PORT(port))
24 for (; table->
port; ++table) {
50 #define BUNIT_BALIMIT0 0x0b
51 #define AUNIT_AVCCTL 0x21
52 #define AUNIT_ACFCACV 0x60
53 #define CUNIT_ACCESS_CTRL_VIOL 0x41
54 #define CUINT_SSA_REGIONAL_TRUNKGATE_CTL 0x43
55 #define TUNIT_CTL 0x03
56 #define TUNIT_MISC_CTL 0x04
83 #define R_PCH_PMC_MTPMC1 0xb0
105 for (pollcnt = 0; pollcnt < 10; ++pollcnt) {
static void write32(void *addr, uint32_t val)
static uint32_t read32(const void *addr)
void iosf_aunit_write(int reg, uint32_t val)
void iosf_write_port(uint32_t cr, int reg, uint32_t val)
uint32_t iosf_read_port(uint32_t cr, int reg)
uint32_t iosf_cpu_bus_read(int reg)
void iosf_cpu_bus_write(int reg, uint32_t val)
void iosf_cunit_write(int reg, uint32_t val)
uint32_t iosf_bunit_read(int reg)
uint32_t iosf_aunit_read(int reg)
void iosf_bunit_write(int reg, uint32_t val)
uint32_t iosf_cunit_read(int reg)
#define printk(level,...)
DEVTREE_CONST struct device * pcidev_on_root(uint8_t dev, uint8_t fn)
#define setbits32(addr, set)
#define clrsetbits32(addr, clear, set)
#define clrbits32(addr, clear)
static __always_inline u8 pci_read_config8(const struct device *dev, u16 reg)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
struct modphy_entry revb0_modphy_table[]
struct modphy_entry reva0_modphy_table[]
#define IOSF_WRITE(op_write, port)
#define CUINT_SSA_REGIONAL_TRUNKGATE_CTL
#define IOSF_READ(op_read, port)
static void gpio_sc_sdcard_workaround(void)
static void program_modphy_table(struct modphy_entry *table)
static void ssa_safe_config(void)
#define CUNIT_ACCESS_CTRL_VIOL
void baytrail_run_reference_code(void)
#define RID_B_STEPPING_START