intel/skylake: Use Sata related registers from devicetree

Enable the use of the SataPortsEnable and SataPortsDevSlp registers
which were being ignored from the devicetree and were not affecting
the resulting UPD parameters.

SataPortsEnable was only being copied for the first SATA port, while
the other ports were left ignored.

Change-Id: Iae70a4d6375fa5d1b05ee89f6b97c65dbbf28dda
Signed-off-by: Youness Alaoui <youness.alaoui@puri.sm>
Reviewed-on: https://review.coreboot.org/21958
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
Youness Alaoui 2017-06-19 19:39:39 -04:00 committed by Matt DeVillier
parent 43a285f983
commit 66030fa5ab
1 changed files with 4 additions and 1 deletions

View File

@ -132,7 +132,10 @@ void soc_silicon_init_params(SILICON_INIT_UPD *params)
params->EnableLan = config->EnableLan;
params->Cio2Enable = config->Cio2Enable;
params->SataSalpSupport = config->SataSalpSupport;
params->SataPortsEnable[0] = config->SataPortsEnable[0];
memcpy(params->SataPortsEnable, config->SataPortsEnable,
sizeof(params->SataPortsEnable));
memcpy(params->SataPortsDevSlp, config->SataPortsDevSlp,
sizeof(params->SataPortsDevSlp));
params->SsicPortEnable = config->SsicPortEnable;
params->SmbusEnable = config->SmbusEnable;
params->ScsEmmcEnabled = config->ScsEmmcEnabled;