From 66030fa5ab35ac54b2569532a36c6baacc0bde40 Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Mon, 19 Jun 2017 19:39:39 -0400 Subject: [PATCH] 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 Reviewed-on: https://review.coreboot.org/21958 Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier Reviewed-by: Furquan Shaikh --- src/soc/intel/skylake/chip.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;