Lines Matching refs:pei_data
37 void broadwell_fill_pei_data(struct pei_data *pei_data) in broadwell_fill_pei_data() argument
39 pei_data->pei_version = PEI_VERSION; in broadwell_fill_pei_data()
40 pei_data->board_type = BOARD_TYPE_ULT; in broadwell_fill_pei_data()
41 pei_data->pciexbar = MCFG_BASE_ADDRESS; in broadwell_fill_pei_data()
42 pei_data->smbusbar = SMBUS_BASE_ADDRESS; in broadwell_fill_pei_data()
43 pei_data->ehcibar = EARLY_EHCI_BAR; in broadwell_fill_pei_data()
44 pei_data->xhcibar = EARLY_XHCI_BAR; in broadwell_fill_pei_data()
45 pei_data->gttbar = EARLY_GTT_BAR; in broadwell_fill_pei_data()
46 pei_data->pmbase = ACPI_BASE_ADDRESS; in broadwell_fill_pei_data()
47 pei_data->gpiobase = GPIO_BASE_ADDRESS; in broadwell_fill_pei_data()
48 pei_data->tseg_size = CONFIG_SMM_TSEG_SIZE; in broadwell_fill_pei_data()
49 pei_data->temp_mmio_base = EARLY_TEMP_MMIO; in broadwell_fill_pei_data()
50 pei_data->tx_byte = sdram_console_tx_byte; in broadwell_fill_pei_data()
51 pei_data->ddr_refresh_2x = 1; in broadwell_fill_pei_data()
54 static inline void pei_data_usb2_port(struct pei_data *pei_data, int port, in pei_data_usb2_port() argument
58 pei_data->usb2_ports[port].length = length; in pei_data_usb2_port()
59 pei_data->usb2_ports[port].enable = enable; in pei_data_usb2_port()
60 pei_data->usb2_ports[port].oc_pin = oc_pin; in pei_data_usb2_port()
61 pei_data->usb2_ports[port].location = location; in pei_data_usb2_port()
64 static inline void pei_data_usb3_port(struct pei_data *pei_data, int port, in pei_data_usb3_port() argument
68 pei_data->usb3_ports[port].enable = enable; in pei_data_usb3_port()
69 pei_data->usb3_ports[port].oc_pin = oc_pin; in pei_data_usb3_port()
70 pei_data->usb3_ports[port].fixed_eq = fixed_eq; in pei_data_usb3_port()
73 void mainboard_fill_pei_data(struct pei_data *pei_data) in mainboard_fill_pei_data() argument
86 pei_data->ec_present = 1; in mainboard_fill_pei_data()
89 pei_data->dimm_channel0_disabled = 2; in mainboard_fill_pei_data()
90 pei_data->dimm_channel1_disabled = 2; in mainboard_fill_pei_data()
92 memcpy(pei_data->dq_map, dq_map, sizeof(dq_map)); in mainboard_fill_pei_data()
93 memcpy(pei_data->dqs_map, dqs_map, sizeof(dqs_map)); in mainboard_fill_pei_data()
96 pei_data_usb2_port(pei_data, 0, 0x0080, 1, 0, in mainboard_fill_pei_data()
99 pei_data_usb2_port(pei_data, 1, 0x0080, 1, 1, in mainboard_fill_pei_data()
102 pei_data_usb2_port(pei_data, 2, 0x0080, 1, USB_OC_PIN_SKIP, in mainboard_fill_pei_data()
105 pei_data_usb2_port(pei_data, 3, 0x0040, 1, USB_OC_PIN_SKIP, in mainboard_fill_pei_data()
108 pei_data_usb2_port(pei_data, 4, 0x0080, 1, USB_OC_PIN_SKIP, in mainboard_fill_pei_data()
111 pei_data_usb2_port(pei_data, 5, 0x0000, 0, USB_OC_PIN_SKIP, in mainboard_fill_pei_data()
114 pei_data_usb2_port(pei_data, 6, 0x0040, 1, USB_OC_PIN_SKIP, in mainboard_fill_pei_data()
117 pei_data_usb2_port(pei_data, 7, 0x0040, 1, USB_OC_PIN_SKIP, in mainboard_fill_pei_data()
121 pei_data_usb3_port(pei_data, 0, 1, 0, 0); in mainboard_fill_pei_data()
123 pei_data_usb3_port(pei_data, 1, 1, 1, 0); in mainboard_fill_pei_data()
125 pei_data_usb3_port(pei_data, 2, 1, USB_OC_PIN_SKIP, 0); in mainboard_fill_pei_data()
127 pei_data_usb3_port(pei_data, 3, 1, USB_OC_PIN_SKIP, 0); in mainboard_fill_pei_data()
172 static int prepare_mrc_cache(struct pei_data *pei_data) in prepare_mrc_cache() argument
185 pei_data->saved_data = mrc_cache->data; in prepare_mrc_cache()
186 pei_data->saved_data_size = mrc_cache->data_size; in prepare_mrc_cache()
188 pei_data->saved_data, pei_data->saved_data_size, in prepare_mrc_cache()
196 struct pei_data _pei_data __aligned(8); in dram_init()
197 struct pei_data *pei_data = &_pei_data; in dram_init() local
203 memset(pei_data, '\0', sizeof(struct pei_data)); in dram_init()
221 broadwell_fill_pei_data(pei_data); in dram_init()
222 mainboard_fill_pei_data(pei_data); in dram_init()
233 memcpy(pei_data->spd_data[0][0], spd_data, size); in dram_init()
234 memcpy(pei_data->spd_data[1][0], spd_data, size); in dram_init()
236 ret = prepare_mrc_cache(pei_data); in dram_init()
240 debug("PEI version %#x\n", pei_data->pei_version); in dram_init()
241 ret = mrc_common_init(dev, pei_data, true); in dram_init()
252 debug("MRC output data length %#x at %p\n", pei_data->data_to_save_size, in dram_init()
253 pei_data->data_to_save); in dram_init()
255 if (pei_data->boot_mode != SLEEP_STATE_S3) { in dram_init()
260 gd->arch.mrc_output = (char *)pei_data->data_to_save; in dram_init()
261 gd->arch.mrc_output_len = pei_data->data_to_save_size; in dram_init()
263 gd->arch.pei_meminfo = pei_data->meminfo; in dram_init()