From 8aab7876d186ed9a8e978ec06a83a46f74a6179b Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Sat, 4 Jul 2020 01:24:59 +0200 Subject: haswell: Move some MRC settings to devicetree There's no generic way to tell whether a mainboard has an EC or not. Making Kconfig symbols for these options seems overkill, too. So, just put them on the devicetree. Also, drop unnecessary assignments when the board's current value is zero, as the struct defaults to zero already. Change-Id: If2ebac5fcab278c97dfaf8adc9d1e125888acafe Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/43129 Reviewed-by: Nico Huber Reviewed-by: Tristan Corrick Tested-by: build bot (Jenkins) --- src/northbridge/intel/haswell/chip.h | 6 ++++++ src/northbridge/intel/haswell/romstage.c | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'src/northbridge/intel') diff --git a/src/northbridge/intel/haswell/chip.h b/src/northbridge/intel/haswell/chip.h index 593144d1d0..28c082838d 100644 --- a/src/northbridge/intel/haswell/chip.h +++ b/src/northbridge/intel/haswell/chip.h @@ -32,6 +32,12 @@ struct northbridge_intel_haswell_config { bool gpu_ddi_e_connected; + bool ec_present; + + bool dq_pins_interleaved; + + bool usb_xhci_on_resume; + struct i915_gpu_controller_info gfx; }; diff --git a/src/northbridge/intel/haswell/romstage.c b/src/northbridge/intel/haswell/romstage.c index 7016fd9a7e..dfadad24aa 100644 --- a/src/northbridge/intel/haswell/romstage.c +++ b/src/northbridge/intel/haswell/romstage.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -40,6 +41,8 @@ void mainboard_romstage_entry(void) { const struct device *gbe = pcidev_on_root(0x19, 0); + const struct northbridge_intel_haswell_config *cfg = config_of_soc(); + int wake_from_s3; struct pei_data pei_data = { @@ -56,9 +59,12 @@ void mainboard_romstage_entry(void) .temp_mmio_base = 0xfed08000, .system_type = get_pch_platform_type(), .tseg_size = CONFIG_SMM_TSEG_SIZE, + .ec_present = cfg->ec_present, .gbe_enable = gbe && gbe->enabled, .ddr_refresh_2x = CONFIG(ENABLE_DDR_2X_REFRESH), + .dq_pins_interleaved = cfg->dq_pins_interleaved, .max_ddr3_freq = 1600, + .usb_xhci_on_resume = cfg->usb_xhci_on_resume, }; mainboard_fill_pei_data(&pei_data); -- cgit v1.2.3