summaryrefslogtreecommitdiff
path: root/zephyr/program/skyrim/winterhold/src/ppc_config.c
blob: d6adb145ffcfd415d100a08eef8dea71fe6c8c78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Copyright 2022 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/* Winterhold board-specific PPC code */

#include "driver/ppc/nx20p348x.h"
#include "usbc_ppc.h"

#include <zephyr/drivers/gpio.h>

void ppc_interrupt(enum gpio_signal signal)
{
	switch (signal) {
	case GPIO_USB_C0_PPC_INT_ODL:
		nx20p348x_interrupt(0);
		break;

	case GPIO_USB_C1_PPC_INT_ODL:
		nx20p348x_interrupt(1);
		break;

	default:
		break;
	}
}