| 1 |
|
| 2 |
|
| 3 |
#include <intelblocks/lpc_lib.h> |
| 4 |
#include <intelblocks/pmclib.h> |
| 5 |
#include <soc/pm.h> |
| 6 |
#include <soc/chip_common.h> |
| 7 |
#include <soc/numa.h> |
| 8 |
#include <soc/ramstage.h> |
| 9 |
|
| 10 |
#include "chip.h" |
| 11 |
|
| 12 |
struct device_operations cpu_bus_ops = { |
| 13 |
.init = mp_cpu_bus_init, |
| 14 |
}; |
| 15 |
|
| 16 |
struct pci_operations soc_pci_ops = { |
| 17 |
.set_subsystem = pci_dev_set_subsystem, |
| 18 |
}; |
| 19 |
|
| 20 |
static void chip_enable_dev(struct device *dev) |
| 21 |
{ |
| 22 |
switch (dev->path.type) { |
| 23 |
case DEVICE_PATH_GPIO: |
| 24 |
block_gpio_enable(dev); |
| 25 |
break; |
| 26 |
default: |
| 27 |
break; |
| 28 |
} |
| 29 |
} |
| 30 |
|
| 31 |
static void chip_init(void *data) |
| 32 |
{ |
| 33 |
printk(BIOS_DEBUG, "coreboot: calling fsp_silicon_init\n"); |
| 34 |
fsp_silicon_init(); |
| 35 |
|
| 36 |
setup_pds(); |
| 37 |
attach_iio_stacks(); |
| 38 |
pch_enable_ioapic(); |
| 39 |
|
| 40 |
pmc_gpe_init(); |
| 41 |
pmc_disable_all_gpe(); |
| 42 |
pmc_write_pm1_control(pmc_read_pm1_control() | SCI_EN); |
| 43 |
} |
| 44 |
|
| 45 |
struct chip_operations soc_intel_xeon_sp_gnr_ops = { |
| 46 |
.name = "Intel GNR", |
| 47 |
.enable_dev = chip_enable_dev, |
| 48 |
.init = chip_init, |
| 49 |
}; |
| 50 |
|
| 51 |
|
| 52 |
void platform_fsp_silicon_init_params_cb(FSPS_UPD *silupd) |
| 53 |
{ |
| 54 |
mainboard_silicon_init_params(silupd); |
| 55 |
} |