/* Copyright 2021 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. */ /* Marzipan board-specific USB-C configuration */ #include "usb_pd.h" #include "usbc_config.h" /* GPIO Interrupt Handlers */ void tcpc_alert_event(enum gpio_signal signal) { int port = -1; switch (signal) { case GPIO_USB_C0_PD_INT_ODL: port = 0; break; case GPIO_USB_C1_PD_INT_ODL: port = 1; break; default: return; } schedule_deferred_pd_interrupt(port); }