linux/include/linux/mfd/sy7636a.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Functions to access SY3686A power management chip.
 *
 * Copyright (C) 2021 reMarkable AS - http://www.remarkable.com/
 */

#ifndef __MFD_SY7636A_H
#define __MFD_SY7636A_H

#define SY7636A_REG_OPERATION_MODE_CRL
/* It is set if a gpio is used to control the regulator */
#define SY7636A_OPERATION_MODE_CRL_VCOMCTL
#define SY7636A_OPERATION_MODE_CRL_ONOFF
#define SY7636A_REG_VCOM_ADJUST_CTRL_L
#define SY7636A_REG_VCOM_ADJUST_CTRL_H
#define SY7636A_REG_VCOM_ADJUST_CTRL_MASK
#define SY7636A_REG_VLDO_VOLTAGE_ADJULST_CTRL
#define SY7636A_REG_POWER_ON_DELAY_TIME
#define SY7636A_REG_FAULT_FLAG
#define SY7636A_FAULT_FLAG_PG
#define SY7636A_REG_TERMISTOR_READOUT

#define SY7636A_REG_MAX

#define VCOM_ADJUST_CTRL_MASK
// Used to shift the high byte
#define VCOM_ADJUST_CTRL_SHIFT
// Used to scale from VCOM_ADJUST_CTRL to mv
#define VCOM_ADJUST_CTRL_SCAL

#define FAULT_FLAG_SHIFT

#endif /* __LINUX_MFD_SY7636A_H */