blob: bbde3d275e3b55564b8e0e12ff445285a1e21f32 [file] [log] [blame]
Angel Ponsf94ac9a2020-04-05 15:46:48 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Duncan Lauriec88c54c2014-04-30 16:36:13 -07002
3#include <console/console.h>
Angel Pons9d733de2020-11-23 13:15:19 +01004#include <cpu/intel/haswell/haswell.h>
Furquan Shaikh76cedd22020-05-02 10:24:23 -07005#include <acpi/acpi.h>
Kyösti Mälkkif1b58b72019-03-01 13:43:02 +02006#include <device/pci_ops.h>
Duncan Lauriec88c54c2014-04-30 16:36:13 -07007#include <stdint.h>
8#include <delay.h>
9#include <device/device.h>
10#include <device/pci.h>
11#include <device/pci_ids.h>
Angel Ponse866a2f2020-10-23 15:54:33 +020012#include <soc/acpi.h>
Julius Werner4ee4bd52014-10-20 13:46:39 -070013#include <soc/iomap.h>
14#include <soc/pci_devs.h>
Angel Pons12fc21b2021-06-16 16:57:21 +020015#include <soc/refcode.h>
Julius Werner4ee4bd52014-10-20 13:46:39 -070016#include <soc/systemagent.h>
Duncan Lauriec88c54c2014-04-30 16:36:13 -070017
Duncan Laurie84b9cf42014-07-31 10:46:57 -070018u8 systemagent_revision(void)
19{
Kyösti Mälkki71756c212019-07-12 13:10:19 +030020 struct device *sa_dev = pcidev_path_on_root(SA_DEVFN_ROOT);
21 return pci_read_config8(sa_dev, PCI_REVISION_ID);
Duncan Laurie84b9cf42014-07-31 10:46:57 -070022}
23
Elyes HAOUAS040aff22018-05-27 16:30:36 +020024static int get_pcie_bar(struct device *dev, unsigned int index, u32 *base,
25 u32 *len)
Duncan Lauriec88c54c2014-04-30 16:36:13 -070026{
27 u32 pciexbar_reg;
28
29 *base = 0;
30 *len = 0;
31
32 pciexbar_reg = pci_read_config32(dev, index);
33
34 if (!(pciexbar_reg & (1 << 0)))
35 return 0;
36
37 switch ((pciexbar_reg >> 1) & 3) {
38 case 0: // 256MB
39 *base = pciexbar_reg & ((1 << 31)|(1 << 30)|(1 << 29)|
40 (1 << 28));
41 *len = 256 * 1024 * 1024;
42 return 1;
43 case 1: // 128M
44 *base = pciexbar_reg & ((1 << 31)|(1 << 30)|(1 << 29)|
45 (1 << 28)|(1 << 27));
46 *len = 128 * 1024 * 1024;
47 return 1;
48 case 2: // 64M
49 *base = pciexbar_reg & ((1 << 31)|(1 << 30)|(1 << 29)|
50 (1 << 28)|(1 << 27)|(1 << 26));
51 *len = 64 * 1024 * 1024;
52 return 1;
53 }
54
55 return 0;
56}
57
Elyes HAOUAS040aff22018-05-27 16:30:36 +020058static int get_bar(struct device *dev, unsigned int index, u32 *base, u32 *len)
Duncan Lauriec88c54c2014-04-30 16:36:13 -070059{
60 u32 bar;
61
62 bar = pci_read_config32(dev, index);
63
64 /* If not enabled don't report it. */
65 if (!(bar & 0x1))
66 return 0;
67
68 /* Knock down the enable bit. */
69 *base = bar & ~1;
70
71 return 1;
72}
73
74/* There are special BARs that actually are programmed in the MCHBAR. These
75 * Intel special features, but they do consume resources that need to be
76 * accounted for. */
Elyes HAOUAS040aff22018-05-27 16:30:36 +020077static int get_bar_in_mchbar(struct device *dev, unsigned int index, u32 *base,
Lee Leahy26b7cd02017-03-16 18:47:55 -070078 u32 *len)
Duncan Lauriec88c54c2014-04-30 16:36:13 -070079{
80 u32 bar;
81
Angel Ponsa8753e92021-04-17 14:34:37 +020082 bar = mchbar_read32(index);
Duncan Lauriec88c54c2014-04-30 16:36:13 -070083
84 /* If not enabled don't report it. */
85 if (!(bar & 0x1))
86 return 0;
87
88 /* Knock down the enable bit. */
89 *base = bar & ~1;
90
91 return 1;
92}
93
94struct fixed_mmio_descriptor {
95 unsigned int index;
96 u32 size;
Elyes HAOUAS040aff22018-05-27 16:30:36 +020097 int (*get_resource)(struct device *dev, unsigned int index,
Lee Leahy26b7cd02017-03-16 18:47:55 -070098 u32 *base, u32 *size);
Duncan Lauriec88c54c2014-04-30 16:36:13 -070099 const char *description;
100};
101
102struct fixed_mmio_descriptor mc_fixed_resources[] = {
103 { PCIEXBAR, 0, get_pcie_bar, "PCIEXBAR" },
104 { MCHBAR, MCH_BASE_SIZE, get_bar, "MCHBAR" },
105 { DMIBAR, DMI_BASE_SIZE, get_bar, "DMIBAR" },
106 { EPBAR, EP_BASE_SIZE, get_bar, "EPBAR" },
107 { GDXCBAR, GDXC_BASE_SIZE, get_bar_in_mchbar, "GDXCBAR" },
108 { EDRAMBAR, EDRAM_BASE_SIZE, get_bar_in_mchbar, "EDRAMBAR" },
109};
110
111/*
112 * Add all known fixed MMIO ranges that hang off the host bridge/memory
113 * controller device.
114 */
Elyes HAOUAS040aff22018-05-27 16:30:36 +0200115static void mc_add_fixed_mmio_resources(struct device *dev)
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700116{
117 int i;
118
119 for (i = 0; i < ARRAY_SIZE(mc_fixed_resources); i++) {
120 u32 base;
121 u32 size;
122 struct resource *resource;
123 unsigned int index;
124
125 size = mc_fixed_resources[i].size;
126 index = mc_fixed_resources[i].index;
127 if (!mc_fixed_resources[i].get_resource(dev, index,
Lee Leahy26b7cd02017-03-16 18:47:55 -0700128 &base, &size))
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700129 continue;
130
131 resource = new_resource(dev, mc_fixed_resources[i].index);
Kyösti Mälkki4e4edf72022-05-26 19:03:55 +0300132 resource->base = base;
133 resource->size = size;
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700134 resource->flags = IORESOURCE_MEM | IORESOURCE_FIXED |
Lee Leahy26b7cd02017-03-16 18:47:55 -0700135 IORESOURCE_STORED | IORESOURCE_RESERVE |
136 IORESOURCE_ASSIGNED;
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700137 printk(BIOS_DEBUG, "%s: Adding %s @ %x 0x%08lx-0x%08lx.\n",
138 __func__, mc_fixed_resources[i].description, index,
139 (unsigned long)base, (unsigned long)(base + size - 1));
140 }
141}
142
143/* Host Memory Map:
144 *
145 * +--------------------------+ TOUUD
146 * | |
147 * +--------------------------+ 4GiB
148 * | PCI Address Space |
149 * +--------------------------+ TOLUD (also maps into MC address space)
150 * | iGD |
151 * +--------------------------+ BDSM
152 * | GTT |
153 * +--------------------------+ BGSM
154 * | TSEG |
155 * +--------------------------+ TSEGMB
156 * | Usage DRAM |
157 * +--------------------------+ 0
158 *
159 * Some of the base registers above can be equal making the size of those
160 * regions 0. The reason is because the memory controller internally subtracts
161 * the base registers from each other to determine sizes of the regions. In
162 * other words, the memory map is in a fixed order no matter what.
163 */
164
165struct map_entry {
166 int reg;
167 int is_64_bit;
168 int is_limit;
169 const char *description;
170};
171
Elyes HAOUAS040aff22018-05-27 16:30:36 +0200172static void read_map_entry(struct device *dev, struct map_entry *entry,
Lee Leahy26b7cd02017-03-16 18:47:55 -0700173 uint64_t *result)
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700174{
175 uint64_t value;
176 uint64_t mask;
177
178 /* All registers are on a 1MiB granularity. */
179 mask = ((1ULL<<20)-1);
180 mask = ~mask;
181
182 value = 0;
183
184 if (entry->is_64_bit) {
185 value = pci_read_config32(dev, entry->reg + 4);
186 value <<= 32;
187 }
188
189 value |= pci_read_config32(dev, entry->reg);
190 value &= mask;
191
192 if (entry->is_limit)
193 value |= ~mask;
194
195 *result = value;
196}
197
198#define MAP_ENTRY(reg_, is_64_, is_limit_, desc_) \
199 { \
200 .reg = reg_, \
201 .is_64_bit = is_64_, \
202 .is_limit = is_limit_, \
203 .description = desc_, \
204 }
205
206#define MAP_ENTRY_BASE_64(reg_, desc_) \
207 MAP_ENTRY(reg_, 1, 0, desc_)
208#define MAP_ENTRY_LIMIT_64(reg_, desc_) \
209 MAP_ENTRY(reg_, 1, 1, desc_)
210#define MAP_ENTRY_BASE_32(reg_, desc_) \
211 MAP_ENTRY(reg_, 0, 0, desc_)
212
213enum {
214 TOM_REG,
215 TOUUD_REG,
216 MESEG_BASE_REG,
217 MESEG_LIMIT_REG,
218 REMAP_BASE_REG,
219 REMAP_LIMIT_REG,
220 TOLUD_REG,
221 BGSM_REG,
222 BDSM_REG,
223 TSEG_REG,
224 // Must be last.
225 NUM_MAP_ENTRIES
226};
227
228static struct map_entry memory_map[NUM_MAP_ENTRIES] = {
229 [TOM_REG] = MAP_ENTRY_BASE_64(TOM, "TOM"),
230 [TOUUD_REG] = MAP_ENTRY_BASE_64(TOUUD, "TOUUD"),
231 [MESEG_BASE_REG] = MAP_ENTRY_BASE_64(MESEG_BASE, "MESEG_BASE"),
232 [MESEG_LIMIT_REG] = MAP_ENTRY_LIMIT_64(MESEG_LIMIT, "MESEG_LIMIT"),
233 [REMAP_BASE_REG] = MAP_ENTRY_BASE_64(REMAPBASE, "REMAP_BASE"),
234 [REMAP_LIMIT_REG] = MAP_ENTRY_LIMIT_64(REMAPLIMIT, "REMAP_LIMIT"),
235 [TOLUD_REG] = MAP_ENTRY_BASE_32(TOLUD, "TOLUD"),
236 [BDSM_REG] = MAP_ENTRY_BASE_32(BDSM, "BDSM"),
237 [BGSM_REG] = MAP_ENTRY_BASE_32(BGSM, "BGSM"),
Angel Pons40b39432020-06-20 18:06:47 +0200238 [TSEG_REG] = MAP_ENTRY_BASE_32(TSEG, "TSEGMB"),
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700239};
240
Elyes HAOUAS040aff22018-05-27 16:30:36 +0200241static void mc_read_map_entries(struct device *dev, uint64_t *values)
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700242{
243 int i;
Lee Leahy8a9c7dc2017-03-17 10:43:25 -0700244 for (i = 0; i < NUM_MAP_ENTRIES; i++)
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700245 read_map_entry(dev, &memory_map[i], &values[i]);
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700246}
247
Elyes HAOUAS040aff22018-05-27 16:30:36 +0200248static void mc_report_map_entries(struct device *dev, uint64_t *values)
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700249{
250 int i;
251 for (i = 0; i < NUM_MAP_ENTRIES; i++) {
252 printk(BIOS_DEBUG, "MC MAP: %s: 0x%llx\n",
253 memory_map[i].description, values[i]);
254 }
255 /* One can validate the BDSM and BGSM against the GGC. */
256 printk(BIOS_DEBUG, "MC MAP: GGC: 0x%x\n", pci_read_config16(dev, GGC));
257}
258
Elyes HAOUAS040aff22018-05-27 16:30:36 +0200259static void mc_add_dram_resources(struct device *dev, int *resource_cnt)
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700260{
261 unsigned long base_k, size_k;
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700262 unsigned long index;
263 struct resource *resource;
264 uint64_t mc_values[NUM_MAP_ENTRIES];
Duncan Laurie61680272014-05-05 12:42:35 -0500265 unsigned long dpr_size = 0;
266 u32 dpr_reg;
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700267
268 /* Read in the MAP registers and report their values. */
269 mc_read_map_entries(dev, &mc_values[0]);
270 mc_report_map_entries(dev, &mc_values[0]);
271
272 /*
Duncan Laurie61680272014-05-05 12:42:35 -0500273 * DMA Protected Range can be reserved below TSEG for PCODE patch
Paul Menzel7f5a1ee2021-12-15 10:47:05 +0100274 * or TXT/Boot Guard related data. Rather than report a base address
Duncan Laurie61680272014-05-05 12:42:35 -0500275 * the DPR register reports the TOP of the region, which is the same
276 * as TSEG base. The region size is reported in MiB in bits 11:4.
277 */
Angel Pons54b5e202020-10-29 20:36:47 +0100278 dpr_reg = pci_read_config32(dev, DPR);
Duncan Laurie61680272014-05-05 12:42:35 -0500279 if (dpr_reg & DPR_EPM) {
280 dpr_size = (dpr_reg & DPR_SIZE_MASK) << 16;
281 printk(BIOS_INFO, "DPR SIZE: 0x%lx\n", dpr_size);
282 }
283
284 /*
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700285 * These are the host memory ranges that should be added:
286 * - 0 -> 0xa0000: cacheable
287 * - 0xc0000 -> TSEG : cacheable
288 * - TESG -> BGSM: cacheable with standard MTRRs and reserved
289 * - BGSM -> TOLUD: not cacheable with standard MTRRs and reserved
290 * - 4GiB -> TOUUD: cacheable
291 *
292 * The default SMRAM space is reserved so that the range doesn't
293 * have to be saved during S3 Resume. Once marked reserved the OS
294 * cannot use the memory. This is a bit of an odd place to reserve
295 * the region, but the CPU devices don't have dev_ops->read_resources()
296 * called on them.
297 *
298 * The range 0xa0000 -> 0xc0000 does not have any resources
299 * associated with it to handle legacy VGA memory. If this range
300 * is not omitted the mtrr code will setup the area as cacheable
301 * causing VGA access to not work.
302 *
303 * The TSEG region is mapped as cacheable so that one can perform
304 * SMRAM relocation faster. Once the SMRR is enabled the SMRR takes
305 * precedence over the existing MTRRs covering this region.
306 *
307 * It should be noted that cacheable entry types need to be added in
308 * order. The reason is that the current MTRR code assumes this and
309 * falls over itself if it isn't.
310 *
311 * The resource index starts low and should not meet or exceed
312 * PCI_BASE_ADDRESS_0.
313 */
Matt DeVillier81a6f102018-02-19 17:33:48 -0600314 index = *resource_cnt;
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700315
316 /* 0 - > 0xa0000 */
317 base_k = 0;
318 size_k = (0xa0000 >> 10) - base_k;
Kyösti Mälkki27d62992022-05-24 20:25:58 +0300319 ram_resource_kb(dev, index++, base_k, size_k);
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700320
Duncan Laurie61680272014-05-05 12:42:35 -0500321 /* 0xc0000 -> TSEG - DPR */
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700322 base_k = 0xc0000 >> 10;
323 size_k = (unsigned long)(mc_values[TSEG_REG] >> 10) - base_k;
Duncan Laurie61680272014-05-05 12:42:35 -0500324 size_k -= dpr_size >> 10;
Kyösti Mälkki27d62992022-05-24 20:25:58 +0300325 ram_resource_kb(dev, index++, base_k, size_k);
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700326
Duncan Laurie61680272014-05-05 12:42:35 -0500327 /* TSEG - DPR -> BGSM */
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700328 resource = new_resource(dev, index++);
Duncan Laurie61680272014-05-05 12:42:35 -0500329 resource->base = mc_values[TSEG_REG] - dpr_size;
Kyösti Mälkki4e4edf72022-05-26 19:03:55 +0300330 resource->size = mc_values[BGSM_REG] - (mc_values[TSEG_REG] - dpr_size);
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700331 resource->flags = IORESOURCE_MEM | IORESOURCE_FIXED |
Lee Leahy26b7cd02017-03-16 18:47:55 -0700332 IORESOURCE_STORED | IORESOURCE_RESERVE |
333 IORESOURCE_ASSIGNED | IORESOURCE_CACHEABLE;
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700334
335 /* BGSM -> TOLUD */
336 resource = new_resource(dev, index++);
337 resource->base = mc_values[BGSM_REG];
Kyösti Mälkki4e4edf72022-05-26 19:03:55 +0300338 resource->size = mc_values[TOLUD_REG] - mc_values[BGSM_REG];
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700339 resource->flags = IORESOURCE_MEM | IORESOURCE_FIXED |
Lee Leahy26b7cd02017-03-16 18:47:55 -0700340 IORESOURCE_STORED | IORESOURCE_RESERVE |
341 IORESOURCE_ASSIGNED;
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700342
343 /* 4GiB -> TOUUD */
Kyösti Mälkki0a18d642021-06-28 21:43:31 +0300344 upper_ram_end(dev, index++, mc_values[TOUUD_REG]);
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700345
346 /* Reserve everything between A segment and 1MB:
347 *
348 * 0xa0000 - 0xbffff: legacy VGA
349 * 0xc0000 - 0xfffff: RAM
350 */
Kyösti Mälkki27d62992022-05-24 20:25:58 +0300351 mmio_resource_kb(dev, index++, (0xa0000 >> 10), (0xc0000 - 0xa0000) >> 10);
352 reserved_ram_resource_kb(dev, index++, (0xc0000 >> 10),
Lee Leahy26b7cd02017-03-16 18:47:55 -0700353 (0x100000 - 0xc0000) >> 10);
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700354
Matt DeVillier81a6f102018-02-19 17:33:48 -0600355 *resource_cnt = index;
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700356}
357
Elyes HAOUAS040aff22018-05-27 16:30:36 +0200358static void systemagent_read_resources(struct device *dev)
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700359{
Matt DeVillier81a6f102018-02-19 17:33:48 -0600360 int index = 0;
361 const bool vtd_capable =
362 !(pci_read_config32(dev, CAPID0_A) & VTD_DISABLE);
363
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700364 /* Read standard PCI resources. */
365 pci_dev_read_resources(dev);
366
367 /* Add all fixed MMIO resources. */
368 mc_add_fixed_mmio_resources(dev);
369
Matt DeVillier81a6f102018-02-19 17:33:48 -0600370 /* Add VT-d MMIO resources if capable */
371 if (vtd_capable) {
Kyösti Mälkki27d62992022-05-24 20:25:58 +0300372 mmio_resource_kb(dev, index++, GFXVT_BASE_ADDRESS / KiB,
Matt DeVillier81a6f102018-02-19 17:33:48 -0600373 GFXVT_BASE_SIZE / KiB);
Kyösti Mälkki27d62992022-05-24 20:25:58 +0300374 mmio_resource_kb(dev, index++, VTVC0_BASE_ADDRESS / KiB,
Matt DeVillier81a6f102018-02-19 17:33:48 -0600375 VTVC0_BASE_SIZE / KiB);
376 }
377
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700378 /* Calculate and add DRAM resources. */
Matt DeVillier81a6f102018-02-19 17:33:48 -0600379 mc_add_dram_resources(dev, &index);
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700380}
381
382static void systemagent_init(struct device *dev)
383{
Angel Ponsa8753e92021-04-17 14:34:37 +0200384 /* Enable Power Aware Interrupt Routing. */
385 mchbar_clrsetbits8(MCH_PAIR, 0x7, 0x4); /* Clear 2:0, set Fixed Priority */
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700386
387 /*
388 * Set bits 0+1 of BIOS_RESET_CPL to indicate to the CPU
389 * that BIOS has initialized memory and power management
390 */
Angel Ponsa8753e92021-04-17 14:34:37 +0200391 mchbar_setbits8(BIOS_RESET_CPL, 3);
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700392 printk(BIOS_DEBUG, "Set BIOS_RESET_CPL\n");
393
394 /* Configure turbo power limits 1ms after reset complete bit */
395 mdelay(1);
Angel Pons9f6cdba2020-10-25 00:02:29 +0000396 set_power_limits(28);
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700397}
398
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700399static struct device_operations systemagent_ops = {
Elyes HAOUAS1d191272018-11-27 12:23:48 +0100400 .read_resources = systemagent_read_resources,
Nico Huber68680dd2020-03-31 17:34:52 +0200401 .acpi_fill_ssdt = generate_cpu_entries,
Elyes HAOUAS1d191272018-11-27 12:23:48 +0100402 .set_resources = pci_dev_set_resources,
403 .enable_resources = pci_dev_enable_resources,
404 .init = systemagent_init,
Angel Ponscb2080f2020-10-23 15:45:44 +0200405 .ops_pci = &pci_dev_ops_pci,
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700406};
407
408static const unsigned short systemagent_ids[] = {
409 0x0a04, /* Haswell ULT */
410 0x1604, /* Broadwell-U/Y */
411 0x1610, /* Broadwell-H Desktop */
412 0x1614, /* Broadwell-H Mobile */
413 0
414};
415
416static const struct pci_driver systemagent_driver __pci_driver = {
417 .ops = &systemagent_ops,
Felix Singer43b7f412022-03-07 04:34:52 +0100418 .vendor = PCI_VID_INTEL,
Duncan Lauriec88c54c2014-04-30 16:36:13 -0700419 .devices = systemagent_ids
420};
Angel Ponse866a2f2020-10-23 15:54:33 +0200421
Arthur Heymans4c4bd3c2022-11-07 13:30:29 +0100422struct device_operations broadwell_pci_domain_ops = {
Angel Ponse866a2f2020-10-23 15:54:33 +0200423 .read_resources = &pci_domain_read_resources,
424 .set_resources = &pci_domain_set_resources,
425 .scan_bus = &pci_domain_scan_bus,
426#if CONFIG(HAVE_ACPI_TABLES)
427 .write_acpi_tables = &northbridge_write_acpi_tables,
428#endif
429};
430
Arthur Heymans4c4bd3c2022-11-07 13:30:29 +0100431struct device_operations broadwell_cpu_bus_ops = {
Angel Ponse866a2f2020-10-23 15:54:33 +0200432 .read_resources = noop_read_resources,
433 .set_resources = noop_set_resources,
Angel Pons9a1b7202020-11-23 13:17:56 +0100434 .init = mp_cpu_bus_init,
Angel Ponse866a2f2020-10-23 15:54:33 +0200435};
436
Angel Ponse780d982021-01-26 19:26:51 +0100437static void broadwell_init_pre_device(void *chip_info)
438{
439 broadwell_run_reference_code();
440}
441
Angel Ponse866a2f2020-10-23 15:54:33 +0200442struct chip_operations soc_intel_broadwell_ops = {
443 CHIP_NAME("Intel Broadwell")
Angel Ponse866a2f2020-10-23 15:54:33 +0200444 .init = &broadwell_init_pre_device,
445};