summaryrefslogtreecommitdiff
path: root/baseboard/zork/variant_dalboz.c
diff options
context:
space:
mode:
Diffstat (limited to 'baseboard/zork/variant_dalboz.c')
-rw-r--r--baseboard/zork/variant_dalboz.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/baseboard/zork/variant_dalboz.c b/baseboard/zork/variant_dalboz.c
new file mode 100644
index 0000000000..e3d1a7417d
--- /dev/null
+++ b/baseboard/zork/variant_dalboz.c
@@ -0,0 +1,23 @@
+/* Copyright 2020 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "common.h"
+#include "console.h"
+#include "gpio.h"
+#include "hooks.h"
+#include "i2c.h"
+#include "ioexpander.h"
+
+static void usba_retimer_on(void)
+{
+ ioex_set_level(IOEX_USB_A1_RETIMER_EN, 1);
+}
+DECLARE_HOOK(HOOK_CHIPSET_STARTUP, usba_retimer_on, HOOK_PRIO_DEFAULT);
+
+static void usba_retimer_off(void)
+{
+ ioex_set_level(IOEX_USB_A1_RETIMER_EN, 0);
+}
+DECLARE_HOOK(HOOK_CHIPSET_SHUTDOWN, usba_retimer_off, HOOK_PRIO_DEFAULT);