summaryrefslogtreecommitdiff
path: root/src/mainboard/google/rambi/mainboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/rambi/mainboard.c')
-rw-r--r--src/mainboard/google/rambi/mainboard.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mainboard/google/rambi/mainboard.c b/src/mainboard/google/rambi/mainboard.c
index cd3fc484d2..1290a151ae 100644
--- a/src/mainboard/google/rambi/mainboard.c
+++ b/src/mainboard/google/rambi/mainboard.c
@@ -36,6 +36,8 @@
#include <smbios.h>
#include "ec.h"
#include "onboard.h"
+#include <baytrail/gpio.h>
+#include <bootstate.h>
void mainboard_suspend_resume(void)
{
@@ -174,3 +176,12 @@ static void mainboard_enable(device_t dev)
struct chip_operations mainboard_ops = {
.enable_dev = mainboard_enable,
};
+
+static void edp_vdden_cb(void *unused)
+{
+ ncore_select_func(SOC_DDI1_VDDEN_PAD, PAD_FUNC2);
+}
+
+BOOT_STATE_INIT_ENTRIES(edp_vdden_bscb) = {
+ BOOT_STATE_INIT_ENTRY(BS_DEV_INIT, BS_ON_EXIT, edp_vdden_cb, NULL),
+};