summaryrefslogtreecommitdiff
path: root/src/mainboard/google/brya/variants/baseboard/nissa
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/brya/variants/baseboard/nissa')
-rw-r--r--src/mainboard/google/brya/variants/baseboard/nissa/Makefile.inc1
-rw-r--r--src/mainboard/google/brya/variants/baseboard/nissa/ramstage.c23
2 files changed, 24 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/variants/baseboard/nissa/Makefile.inc b/src/mainboard/google/brya/variants/baseboard/nissa/Makefile.inc
index 1693d2e263..8a4b2acfaa 100644
--- a/src/mainboard/google/brya/variants/baseboard/nissa/Makefile.inc
+++ b/src/mainboard/google/brya/variants/baseboard/nissa/Makefile.inc
@@ -4,3 +4,4 @@ romstage-y += memory.c
romstage-y += gpio.c
ramstage-y += gpio.c
+ramstage-y += ramstage.c
diff --git a/src/mainboard/google/brya/variants/baseboard/nissa/ramstage.c b/src/mainboard/google/brya/variants/baseboard/nissa/ramstage.c
new file mode 100644
index 0000000000..7f4e291abc
--- /dev/null
+++ b/src/mainboard/google/brya/variants/baseboard/nissa/ramstage.c
@@ -0,0 +1,23 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <baseboard/gpio.h>
+#include <baseboard/variants.h>
+#include <gpio.h>
+#include <soc/gpio.h>
+#include <soc/ramstage.h>
+
+void variant_configure_pads(void)
+{
+ const struct pad_config *base_pads;
+ const struct pad_config *override_pads;
+ struct pad_config *padbased_table;
+ size_t base_num, override_num;
+
+ padbased_table = new_padbased_table();
+ base_pads = variant_gpio_table(&base_num);
+ gpio_padbased_override(padbased_table, base_pads, base_num);
+ override_pads = variant_gpio_override_table(&override_num);
+ gpio_padbased_override(padbased_table, override_pads, override_num);
+ gpio_configure_pads_with_padbased(padbased_table);
+ free(padbased_table);
+}