summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2017-07-25 12:12:29 +0200
committerNico Huber <nico.h@gmx.de>2017-07-26 19:12:54 +0000
commitefc0fa09fe47f5c57dfb4f912feb53b0e2dca192 (patch)
treec6acc5debeb2dfa0f1f227ced41acaf26dbde72c
parente56939e48ec95a797c658aaa6ba9e9c983470e98 (diff)
soc/intel/skylake/chip.h: Provide enum values for SataMode
The values were verified to be correct with the KabylakeFsp0001 from github. Skylake FSP documentation disagrees so YMMV. Change-Id: I1ee04dbbed48d5376dbc24ae70753b059f2646eb Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/20765 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r--src/soc/intel/skylake/chip.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/soc/intel/skylake/chip.h b/src/soc/intel/skylake/chip.h
index 1377237672..efd3566f76 100644
--- a/src/soc/intel/skylake/chip.h
+++ b/src/soc/intel/skylake/chip.h
@@ -138,7 +138,13 @@ struct soc_intel_skylake_config {
/* SATA related */
u8 EnableSata;
- u8 SataMode;
+ enum {
+ /* Documentation and header files of Skylake FSP disagree on
+ the values, Kaby Lake FSP (KabylakeFsp0001 on github) uses
+ these: */
+ KBLFSP_SATA_MODE_AHCI = 0,
+ KBLFSP_SATA_MODE_RAID = 1,
+ } SataMode;
u8 SataSalpSupport;
u8 SataPortsEnable[8];
u8 SataPortsDevSlp[8];