aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/purism/librem_whl/ramstage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/purism/librem_whl/ramstage.c')
-rw-r--r--src/mainboard/purism/librem_whl/ramstage.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mainboard/purism/librem_whl/ramstage.c b/src/mainboard/purism/librem_whl/ramstage.c
new file mode 100644
index 0000000000..07ede66505
--- /dev/null
+++ b/src/mainboard/purism/librem_whl/ramstage.c
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <soc/ramstage.h>
+#include <variant/gpio.h>
+
+void mainboard_silicon_init_params(FSP_S_CONFIG *params)
+{
+ /* Configure pads prior to SiliconInit() in case there's any
+ * dependencies during hardware initialization. */
+ size_t num_gpios;
+ const struct pad_config *gpio_table = variant_gpio_table(&num_gpios);
+ cnl_configure_pads(gpio_table, num_gpios);
+
+ /* Limit SATA speed to 3Gbps until correct HSIO PHY settings determined */
+ params->SataSpeedLimit = 2;
+}