From de198bb70760f81dfc23dc0721cedb46ceffaf9a Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Thu, 19 May 2022 15:34:35 +0100 Subject: soc/intel/apollolake: Hook up Sata Hot Plug to device tree Signed-off-by: Sean Rhodes Change-Id: I37d31598e87e5b625ded3186980e3aba7dcf6440 Reviewed-on: https://review.coreboot.org/c/coreboot/+/64523 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans --- src/soc/intel/apollolake/chip.c | 3 +++ src/soc/intel/apollolake/chip.h | 3 +++ 2 files changed, 6 insertions(+) (limited to 'src/soc/intel/apollolake') diff --git a/src/soc/intel/apollolake/chip.c b/src/soc/intel/apollolake/chip.c index 0458abd1d3..cb115a0b1b 100644 --- a/src/soc/intel/apollolake/chip.c +++ b/src/soc/intel/apollolake/chip.c @@ -680,6 +680,9 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *silupd) if (cfg->emmc_host_max_speed != 0) silconfig->eMMCHostMaxSpeed = cfg->emmc_host_max_speed; + memcpy(silconfig->SataPortsHotPlug, cfg->SataPortsHotPlug, + sizeof(silconfig->SataPortsHotPlug)); + silconfig->LPSS_S0ixEnable = cfg->lpss_s0ix_enable; /* Disable monitor mwait since it is broken due to a hardware bug diff --git a/src/soc/intel/apollolake/chip.h b/src/soc/intel/apollolake/chip.h index 0073103e25..2bdabd6e33 100644 --- a/src/soc/intel/apollolake/chip.h +++ b/src/soc/intel/apollolake/chip.h @@ -96,6 +96,9 @@ struct soc_intel_apollolake_config { /* Select the eMMC max speed allowed. */ uint8_t emmc_host_max_speed; + /* Sata Ports Hot Plug */ + uint8_t SataPortsHotPlug[2]; + /* Specifies on which IRQ the SCI will internally appear. */ uint8_t sci_irq; -- cgit v1.2.3