5 #if CONFIG(SOUTHBRIDGE_INTEL_I82801GX)
86 reg32 = (reg32 & ~0xfe) | (1 << 7);
135 reg32 = (reg32 & ~0xff) | 1 << 7;
139 reg32 = (reg32 & ~(0x7 << 17)) | (0x4 << 17);
146 reg32 = (0x5 << 28) | (1 << 6);
147 RCBA32(0x2020) = (
RCBA32(0x2020) & ~((0xf << 28) | (0x7 << 6))) | reg32;
150 RCBA32(0x20) = (
RCBA32(0x20) & ~(0x7 << 24)) | (1 << 24);
154 RCBA8(0x20) |= 1 << 7;
160 RCBA32(0x20) &= 0xfff1ffff;
163 RCBA32(0x30) = 0x0000000f;
164 RCBA32(0x34) = 0x000f0000;
166 RCBA32(0x3c) = 0x000000f0;
167 RCBA32(0x40) = 0x0f000000;
169 RCBA32(0x48) = 0x0000f000;
171 RCBA32(0x50) = 0x0000000f;
172 RCBA32(0x54) = 0x000f0000;
174 RCBA32(0x5c) = 0x000000f0;
175 RCBA32(0x60) = 0x0f000000;
177 RCBA32(0x68) = 0x0000f000;
186 while ((
RCBA8(0x26) & (1 << 1)) != 0)
190 while ((
RCBA8(0x26) & (1 << 0)) != 0)
197 RCBA32(0x2010) = (
RCBA32(0x2010) & ~(0x3 << 10)) | (1 << 10);
#define printk(level,...)
static __always_inline void dmibar_write8(const uintptr_t offset, const uint8_t value)
static __always_inline uint32_t epbar_read32(const uintptr_t offset)
static __always_inline void epbar_clrsetbits32(uintptr_t offset, uint32_t clear, uint32_t set)
#define dmibar_clrbits32(addr, clear)
static __always_inline void epbar_clrsetbits8(uintptr_t offset, uint8_t clear, uint8_t set)
static __always_inline uint32_t dmibar_read32(const uintptr_t offset)
static __always_inline void dmibar_write32(const uintptr_t offset, const uint32_t value)
static __always_inline uint16_t dmibar_read16(const uintptr_t offset)
#define mchbar_setbits8(addr, set)
#define dmibar_setbits32(addr, set)
static __always_inline uint32_t mchbar_read32(const uintptr_t offset)
static __always_inline void epbar_write8(const uintptr_t offset, const uint8_t value)
static __always_inline uint8_t epbar_read8(const uintptr_t offset)
static __always_inline void dmibar_clrsetbits16(uintptr_t offset, uint16_t clear, uint16_t set)
static __always_inline void epbar_write32(const uintptr_t offset, const uint32_t value)
#define epbar_setbits32(addr, set)
#define CLKCFG_FSBCLK_MASK
static __always_inline void pci_write_config32(const struct device *dev, u16 reg, u32 val)
static __always_inline u32 pci_read_config32(const struct device *dev, u16 reg)
static __always_inline void pci_write_config16(const struct device *dev, u16 reg, u16 val)
static __always_inline void pci_write_config8(const struct device *dev, u16 reg, u8 val)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
void x4x_early_init(void)
static void init_dmi(void)
static void init_egress(void)
unsigned int get_uint_option(const char *name, const unsigned int fallback)
#define PCI_DEV(SEGBUS, DEV, FN)