63 const int gpio_vector[] = {41, 42, 43, 10, -1};
69 spd_file =
cbfs_map(
"spd.bin", &spd_file_len);
71 die(
"SPD data not found.");
73 if (spd_file_len < ((
spd_index + 1) * 256)) {
78 if (spd_file_len < 256)
79 die(
"Missing SPD data.");
86 struct pei_data pei_data_template = {
88 .mchbar = CONFIG_FIXED_MCHBAR_MMIO_BASE,
89 .dmibar = CONFIG_FIXED_DMIBAR_MMIO_BASE,
90 .epbar = CONFIG_FIXED_EPBAR_MMIO_BASE,
91 .pciexbar = CONFIG_ECAM_MMCONF_BASE_ADDRESS,
92 .smbusbar = CONFIG_FIXED_SMBUS_IO_BASE,
105 .max_ddr3_freq = 1600,
157 memcpy(&spd[2], &spd[0], 128);
#define HPET_BASE_ADDRESS
void * memcpy(void *dest, const void *src, size_t n)
static void * cbfs_map(const char *name, size_t *size_out)
#define printk(level,...)
void __noreturn die(const char *fmt,...)
int google_chromeec_kbbacklight(int percent)
static __always_inline void pci_or_config16(const struct device *dev, u16 reg, u16 ormask)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
void mainboard_late_rcba_config(void)
void mainboard_get_spd(spd_raw_data *spd, bool id_only)
const struct southbridge_usb_port mainboard_usb_ports[]
void mainboard_fill_pei_data(struct pei_data *pei)
int mainboard_should_reset_usb(int s3resume)
static const int spd_index[32]
void mainboard_early_init(void)
void mainboard_pch_lpc_setup(void)
static uint8_t * locate_spd(void)
#define DIR_ROUTE(a, b, c, d)
unsigned int get_gpios(const int *gpio_num_array)
uint8_t spd_data[4][SPD_LEN]