linux/drivers/usb/typec/tcpm/tcpci_mt6370.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2022 Richtek Technology Corp.
 *
 * Author: ChiYuan Huang <[email protected]>
 */

#include <linux/bits.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/pm_wakeup.h>
#include <linux/pm_wakeirq.h>
#include <linux/regmap.h>
#include <linux/regulator/consumer.h>
#include <linux/usb/tcpci.h>
#include <linux/usb/tcpm.h>

#define MT6370_REG_SYSCTRL8

#define MT6370_AUTOIDLE_MASK

#define MT6370_VENDOR_ID
#define MT6370_TCPC_DID_A

struct mt6370_priv {};

static const struct reg_sequence mt6370_reg_init[] =;

static int mt6370_tcpc_init(struct tcpci *tcpci, struct tcpci_data *data)
{}

static int mt6370_tcpc_set_vconn(struct tcpci *tcpci, struct tcpci_data *data,
				 bool enable)
{}

static int mt6370_tcpc_set_vbus(struct tcpci *tcpci, struct tcpci_data *data,
				bool source, bool sink)
{}

static irqreturn_t mt6370_irq_handler(int irq, void *dev_id)
{}

static int mt6370_check_vendor_info(struct mt6370_priv *priv)
{}

static void mt6370_unregister_tcpci_port(void *tcpci)
{}

static int mt6370_tcpc_probe(struct platform_device *pdev)
{}

static void mt6370_tcpc_remove(struct platform_device *pdev)
{}

static const struct of_device_id mt6370_tcpc_devid_table[] =;
MODULE_DEVICE_TABLE(of, mt6370_tcpc_devid_table);

static struct platform_driver mt6370_tcpc_driver =;
module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();