diff options
author | Youness Alaoui <youness.alaoui@puri.sm> | 2017-06-19 19:39:39 -0400 |
---|---|---|
committer | Matt DeVillier <matt.devillier@gmail.com> | 2017-10-14 00:25:08 +0000 |
commit | 66030fa5ab35ac54b2569532a36c6baacc0bde40 (patch) | |
tree | 3ad37ca80f0e721cc90609fd970b9344386a6911 /src/soc/intel | |
parent | 43a285f983f6c29467d7f30f7e2b402926bd5c6f (diff) |
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>
Diffstat (limited to 'src/soc/intel')
-rw-r--r-- | src/soc/intel/skylake/chip.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/soc/intel/skylake/chip.c b/src/soc/intel/skylake/chip.c index 7014c24d9e..dfa813a692 100644 --- a/src/soc/intel/skylake/chip.c +++ b/src/soc/intel/skylake/chip.c @@ -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; |