linux/drivers/extcon/extcon-rt8973a.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * rt8973a.h
 *
 * Copyright (c) 2014 Samsung Electronics Co., Ltd
 */

#ifndef __LINUX_EXTCON_RT8973A_H
#define __LINUX_EXTCON_RT8973A_H

enum rt8973a_types {};

/* RT8973A registers */
enum rt8973A_reg {};

/* Define RT8973A MASK/SHIFT constant */
#define RT8973A_REG_DEVICE_ID_VENDOR_SHIFT
#define RT8973A_REG_DEVICE_ID_VERSION_SHIFT
#define RT8973A_REG_DEVICE_ID_VENDOR_MASK
#define RT8973A_REG_DEVICE_ID_VERSION_MASK

#define RT8973A_REG_CONTROL1_INTM_SHIFT
#define RT8973A_REG_CONTROL1_AUTO_CONFIG_SHIFT
#define RT8973A_REG_CONTROL1_I2C_RST_EN_SHIFT
#define RT8973A_REG_CONTROL1_SWITCH_OPEN_SHIFT
#define RT8973A_REG_CONTROL1_CHGTYP_SHIFT
#define RT8973A_REG_CONTROL1_USB_CHD_EN_SHIFT
#define RT8973A_REG_CONTROL1_ADC_EN_SHIFT
#define RT8973A_REG_CONTROL1_INTM_MASK
#define RT8973A_REG_CONTROL1_AUTO_CONFIG_MASK
#define RT8973A_REG_CONTROL1_I2C_RST_EN_MASK
#define RT8973A_REG_CONTROL1_SWITCH_OPEN_MASK
#define RT8973A_REG_CONTROL1_CHGTYP_MASK
#define RT8973A_REG_CONTROL1_USB_CHD_EN_MASK
#define RT8973A_REG_CONTROL1_ADC_EN_MASK

#define RT9873A_REG_INTM1_ATTACH_SHIFT
#define RT9873A_REG_INTM1_DETACH_SHIFT
#define RT9873A_REG_INTM1_CHGDET_SHIFT
#define RT9873A_REG_INTM1_DCD_T_SHIFT
#define RT9873A_REG_INTM1_OVP_SHIFT
#define RT9873A_REG_INTM1_CONNECT_SHIFT
#define RT9873A_REG_INTM1_ADC_CHG_SHIFT
#define RT9873A_REG_INTM1_OTP_SHIFT
#define RT9873A_REG_INTM1_ATTACH_MASK
#define RT9873A_REG_INTM1_DETACH_MASK
#define RT9873A_REG_INTM1_CHGDET_MASK
#define RT9873A_REG_INTM1_DCD_T_MASK
#define RT9873A_REG_INTM1_OVP_MASK
#define RT9873A_REG_INTM1_CONNECT_MASK
#define RT9873A_REG_INTM1_ADC_CHG_MASK
#define RT9873A_REG_INTM1_OTP_MASK

#define RT9873A_REG_INTM2_UVLO_SHIFT
#define RT9873A_REG_INTM2_POR_SHIFT
#define RT9873A_REG_INTM2_OTP_FET_SHIFT
#define RT9873A_REG_INTM2_OVP_FET_SHIFT
#define RT9873A_REG_INTM2_OCP_LATCH_SHIFT
#define RT9873A_REG_INTM2_OCP_SHIFT
#define RT9873A_REG_INTM2_OVP_OCP_SHIFT
#define RT9873A_REG_INTM2_UVLO_MASK
#define RT9873A_REG_INTM2_POR_MASK
#define RT9873A_REG_INTM2_OTP_FET_MASK
#define RT9873A_REG_INTM2_OVP_FET_MASK
#define RT9873A_REG_INTM2_OCP_LATCH_MASK
#define RT9873A_REG_INTM2_OCP_MASK
#define RT9873A_REG_INTM2_OVP_OCP_MASK

#define RT8973A_REG_ADC_SHIFT
#define RT8973A_REG_ADC_MASK

#define RT8973A_REG_DEV1_OTG_SHIFT
#define RT8973A_REG_DEV1_SDP_SHIFT
#define RT8973A_REG_DEV1_UART_SHIFT
#define RT8973A_REG_DEV1_CAR_KIT_TYPE1_SHIFT
#define RT8973A_REG_DEV1_CDPORT_SHIFT
#define RT8973A_REG_DEV1_DCPORT_SHIFT
#define RT8973A_REG_DEV1_OTG_MASK
#define RT8973A_REG_DEV1_SDP_MASK
#define RT8973A_REG_DEV1_UART_MASK
#define RT8973A_REG_DEV1_CAR_KIT_TYPE1_MASK
#define RT8973A_REG_DEV1_CDPORT_MASK
#define RT8973A_REG_DEV1_DCPORT_MASK
#define RT8973A_REG_DEV1_USB_MASK

#define RT8973A_REG_DEV2_JIG_USB_ON_SHIFT
#define RT8973A_REG_DEV2_JIG_USB_OFF_SHIFT
#define RT8973A_REG_DEV2_JIG_UART_ON_SHIFT
#define RT8973A_REG_DEV2_JIG_UART_OFF_SHIFT
#define RT8973A_REG_DEV2_JIG_USB_ON_MASK
#define RT8973A_REG_DEV2_JIG_USB_OFF_MASK
#define RT8973A_REG_DEV2_JIG_UART_ON_MASK
#define RT8973A_REG_DEV2_JIG_UART_OFF_MASK

#define RT8973A_REG_MANUAL_SW1_DP_SHIFT
#define RT8973A_REG_MANUAL_SW1_DM_SHIFT
#define RT8973A_REG_MANUAL_SW1_DP_MASK
#define RT8973A_REG_MANUAL_SW1_DM_MASK
#define DM_DP_CON_SWITCH_OPEN
#define DM_DP_CON_SWITCH_USB
#define DM_DP_CON_SWITCH_UART
#define DM_DP_SWITCH_OPEN
#define DM_DP_SWITCH_USB
#define DM_DP_SWITCH_UART

#define RT8973A_REG_MANUAL_SW2_FET_ON_SHIFT
#define RT8973A_REG_MANUAL_SW2_JIG_ON_SHIFT
#define RT8973A_REG_MANUAL_SW2_BOOT_SW_SHIFT
#define RT8973A_REG_MANUAL_SW2_FET_ON_MASK
#define RT8973A_REG_MANUAL_SW2_JIG_ON_MASK
#define RT8973A_REG_MANUAL_SW2_BOOT_SW_MASK
#define RT8973A_REG_MANUAL_SW2_FET_ON
#define RT8973A_REG_MANUAL_SW2_FET_OFF
#define RT8973A_REG_MANUAL_SW2_JIG_OFF
#define RT8973A_REG_MANUAL_SW2_JIG_ON
#define RT8973A_REG_MANUAL_SW2_BOOT_SW_ON
#define RT8973A_REG_MANUAL_SW2_BOOT_SW_OFF

#define RT8973A_REG_RESET_SHIFT
#define RT8973A_REG_RESET_MASK
#define RT8973A_REG_RESET

/* RT8973A Interrupts */
enum rt8973a_irq {};

#define RT8973A_INT1_ATTACH_MASK
#define RT8973A_INT1_DETACH_MASK
#define RT8973A_INT1_CHGDET_MASK
#define RT8973A_INT1_DCD_T_MASK
#define RT8973A_INT1_OVP_MASK
#define RT8973A_INT1_CONNECT_MASK
#define RT8973A_INT1_ADC_CHG_MASK
#define RT8973A_INT1_OTP_MASK
#define RT8973A_INT2_UVLOT_MASK
#define RT8973A_INT2_POR_MASK
#define RT8973A_INT2_OTP_FET_MASK
#define RT8973A_INT2_OVP_FET_MASK
#define RT8973A_INT2_OCP_LATCH_MASK
#define RT8973A_INT2_OCP_MASK
#define RT8973A_INT2_OVP_OCP_MASK

#endif /*  __LINUX_EXTCON_RT8973A_H */