linux/include/linux/mfd/tps68470.h

/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (C) 2017 Intel Corporation */
/* Functions to access TPS68470 power management chip. */

#ifndef __LINUX_MFD_TPS68470_H
#define __LINUX_MFD_TPS68470_H

/* Register addresses */
#define TPS68470_REG_POSTDIV2
#define TPS68470_REG_BOOSTDIV
#define TPS68470_REG_BUCKDIV
#define TPS68470_REG_PLLSWR
#define TPS68470_REG_XTALDIV
#define TPS68470_REG_PLLDIV
#define TPS68470_REG_POSTDIV
#define TPS68470_REG_PLLCTL
#define TPS68470_REG_PLLCTL2
#define TPS68470_REG_CLKCFG1
#define TPS68470_REG_CLKCFG2
#define TPS68470_REG_GPCTL0A
#define TPS68470_REG_GPCTL0B
#define TPS68470_REG_GPCTL1A
#define TPS68470_REG_GPCTL1B
#define TPS68470_REG_GPCTL2A
#define TPS68470_REG_GPCTL2B
#define TPS68470_REG_GPCTL3A
#define TPS68470_REG_GPCTL3B
#define TPS68470_REG_GPCTL4A
#define TPS68470_REG_GPCTL4B
#define TPS68470_REG_GPCTL5A
#define TPS68470_REG_GPCTL5B
#define TPS68470_REG_GPCTL6A
#define TPS68470_REG_GPCTL6B
#define TPS68470_REG_SGPO
#define TPS68470_REG_GPDI
#define TPS68470_REG_GPDO
#define TPS68470_REG_VCMVAL
#define TPS68470_REG_VAUX1VAL
#define TPS68470_REG_VAUX2VAL
#define TPS68470_REG_VIOVAL
#define TPS68470_REG_VSIOVAL
#define TPS68470_REG_VAVAL
#define TPS68470_REG_VDVAL
#define TPS68470_REG_S_I2C_CTL
#define TPS68470_REG_VCMCTL
#define TPS68470_REG_VAUX1CTL
#define TPS68470_REG_VAUX2CTL
#define TPS68470_REG_VACTL
#define TPS68470_REG_VDCTL
#define TPS68470_REG_RESET
#define TPS68470_REG_REVID

#define TPS68470_REG_MAX

/* Register field definitions */

#define TPS68470_REG_RESET_MASK
#define TPS68470_VAVAL_AVOLT_MASK

#define TPS68470_VDVAL_DVOLT_MASK
#define TPS68470_VCMVAL_VCVOLT_MASK
#define TPS68470_VIOVAL_IOVOLT_MASK
#define TPS68470_VSIOVAL_IOVOLT_MASK
#define TPS68470_VAUX1VAL_AUX1VOLT_MASK
#define TPS68470_VAUX2VAL_AUX2VOLT_MASK

#define TPS68470_VACTL_EN_MASK
#define TPS68470_VDCTL_EN_MASK
#define TPS68470_VCMCTL_EN_MASK
#define TPS68470_S_I2C_CTL_EN_MASK
#define TPS68470_VAUX1CTL_EN_MASK
#define TPS68470_VAUX2CTL_EN_MASK
#define TPS68470_PLL_EN_MASK

#define TPS68470_CLKCFG1_MODE_A_MASK
#define TPS68470_CLKCFG1_MODE_B_MASK

#define TPS68470_CLKCFG2_DRV_STR_2MA
#define TPS68470_PLL_OUTPUT_ENABLE
#define TPS68470_CLK_SRC_XTAL
#define TPS68470_PLLSWR_DEFAULT
#define TPS68470_OSC_EXT_CAP_DEFAULT

#define TPS68470_OUTPUT_A_SHIFT
#define TPS68470_OUTPUT_B_SHIFT
#define TPS68470_CLK_SRC_SHIFT
#define TPS68470_OSC_EXT_CAP_SHIFT

#define TPS68470_GPIO_CTL_REG_A(x)
#define TPS68470_GPIO_CTL_REG_B(x)
#define TPS68470_GPIO_MODE_MASK
#define TPS68470_GPIO_MODE_IN
#define TPS68470_GPIO_MODE_IN_PULLUP
#define TPS68470_GPIO_MODE_OUT_CMOS
#define TPS68470_GPIO_MODE_OUT_ODRAIN

#endif /* __LINUX_MFD_TPS68470_H */