summaryrefslogtreecommitdiff
path: root/zephyr/program/myst/myst/src/ppc_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/program/myst/myst/src/ppc_config.c')
-rw-r--r--zephyr/program/myst/myst/src/ppc_config.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/zephyr/program/myst/myst/src/ppc_config.c b/zephyr/program/myst/myst/src/ppc_config.c
new file mode 100644
index 0000000000..a16e38a25d
--- /dev/null
+++ b/zephyr/program/myst/myst/src/ppc_config.c
@@ -0,0 +1,29 @@
+/* Copyright 2023 The ChromiumOS Authors
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/* Myst board-specific PPC code */
+
+#include "driver/ppc/aoz1380_public.h"
+#include "driver/ppc/nx20p348x.h"
+#include "usbc_ppc.h"
+
+#include <zephyr/drivers/gpio.h>
+
+#define CPRINTSUSB(format, args...) cprints(CC_USBCHARGE, format, ##args)
+#define CPRINTFUSB(format, args...) cprintf(CC_USBCHARGE, format, ##args)
+
+void ppc_interrupt(enum gpio_signal signal)
+{
+ switch (signal) {
+ case GPIO_USB_C0_PPC_INT_ODL:
+ break;
+
+ case GPIO_USB_C1_PPC_INT_ODL:
+ break;
+
+ default:
+ break;
+ }
+}