linux/include/linux/mfd/tps6507x.h

/* linux/mfd/tps6507x.h
 *
 * Functions to access TPS65070 power management chip.
 *
 * Copyright (c) 2009 RidgeRun ([email protected])
 *
 *
 *  For licencing details see kernel-base/COPYING
 */

#ifndef __LINUX_MFD_TPS6507X_H
#define __LINUX_MFD_TPS6507X_H

/*
 * ----------------------------------------------------------------------------
 * Registers, all 8 bits
 * ----------------------------------------------------------------------------
 */


/* Register definitions */
#define TPS6507X_REG_PPATH1
#define TPS6507X_CHG_USB
#define TPS6507X_CHG_AC
#define TPS6507X_CHG_USB_PW_ENABLE
#define TPS6507X_CHG_AC_PW_ENABLE
#define TPS6507X_CHG_AC_CURRENT
#define TPS6507X_CHG_USB_CURRENT

#define TPS6507X_REG_INT
#define TPS6507X_REG_MASK_AC_USB
#define TPS6507X_REG_MASK_TSC
#define TPS6507X_REG_MASK_PB_IN
#define TPS6507X_REG_TSC_INT
#define TPS6507X_REG_PB_IN_INT
#define TPS6507X_REG_AC_USB_APPLIED
#define TPS6507X_REG_AC_USB_REMOVED

#define TPS6507X_REG_CHGCONFIG0

#define TPS6507X_REG_CHGCONFIG1
#define TPS6507X_CON_CTRL1_DCDC1_ENABLE
#define TPS6507X_CON_CTRL1_DCDC2_ENABLE
#define TPS6507X_CON_CTRL1_DCDC3_ENABLE
#define TPS6507X_CON_CTRL1_LDO1_ENABLE
#define TPS6507X_CON_CTRL1_LDO2_ENABLE

#define TPS6507X_REG_CHGCONFIG2

#define TPS6507X_REG_CHGCONFIG3

#define TPS6507X_REG_ADCONFIG
#define TPS6507X_ADCONFIG_AD_ENABLE
#define TPS6507X_ADCONFIG_START_CONVERSION
#define TPS6507X_ADCONFIG_CONVERSION_DONE
#define TPS6507X_ADCONFIG_VREF_ENABLE
#define TPS6507X_ADCONFIG_INPUT_AD_IN1
#define TPS6507X_ADCONFIG_INPUT_AD_IN2
#define TPS6507X_ADCONFIG_INPUT_AD_IN3
#define TPS6507X_ADCONFIG_INPUT_AD_IN4
#define TPS6507X_ADCONFIG_INPUT_TS_PIN
#define TPS6507X_ADCONFIG_INPUT_BAT_CURRENT
#define TPS6507X_ADCONFIG_INPUT_AC_VOLTAGE
#define TPS6507X_ADCONFIG_INPUT_SYS_VOLTAGE
#define TPS6507X_ADCONFIG_INPUT_CHARGER_VOLTAGE
#define TPS6507X_ADCONFIG_INPUT_BAT_VOLTAGE
#define TPS6507X_ADCONFIG_INPUT_THRESHOLD_VOLTAGE
#define TPS6507X_ADCONFIG_INPUT_ISET1_VOLTAGE
#define TPS6507X_ADCONFIG_INPUT_ISET2_VOLTAGE
#define TPS6507X_ADCONFIG_INPUT_REAL_TSC
#define TPS6507X_ADCONFIG_INPUT_TSC

#define TPS6507X_REG_TSCMODE
#define TPS6507X_TSCMODE_X_POSITION
#define TPS6507X_TSCMODE_Y_POSITION
#define TPS6507X_TSCMODE_PRESSURE
#define TPS6507X_TSCMODE_X_PLATE
#define TPS6507X_TSCMODE_Y_PLATE
#define TPS6507X_TSCMODE_STANDBY
#define TPS6507X_TSCMODE_ADC_INPUT
#define TPS6507X_TSCMODE_DISABLE

#define TPS6507X_REG_ADRESULT_1

#define TPS6507X_REG_ADRESULT_2
#define TPS6507X_REG_ADRESULT_2_MASK

#define TPS6507X_REG_PGOOD

#define TPS6507X_REG_PGOODMASK

#define TPS6507X_REG_CON_CTRL1
#define TPS6507X_CON_CTRL1_DCDC1_ENABLE
#define TPS6507X_CON_CTRL1_DCDC2_ENABLE
#define TPS6507X_CON_CTRL1_DCDC3_ENABLE
#define TPS6507X_CON_CTRL1_LDO1_ENABLE
#define TPS6507X_CON_CTRL1_LDO2_ENABLE

#define TPS6507X_REG_CON_CTRL2

#define TPS6507X_REG_CON_CTRL3

#define TPS6507X_REG_DEFDCDC1
#define TPS6507X_DEFDCDC1_DCDC1_EXT_ADJ_EN
#define TPS6507X_DEFDCDC1_DCDC1_MASK

#define TPS6507X_REG_DEFDCDC2_LOW
#define TPS6507X_DEFDCDC2_LOW_DCDC2_MASK

#define TPS6507X_REG_DEFDCDC2_HIGH
#define TPS6507X_DEFDCDC2_HIGH_DCDC2_MASK

#define TPS6507X_REG_DEFDCDC3_LOW
#define TPS6507X_DEFDCDC3_LOW_DCDC3_MASK

#define TPS6507X_REG_DEFDCDC3_HIGH
#define TPS6507X_DEFDCDC3_HIGH_DCDC3_MASK

#define TPS6507X_REG_DEFSLEW

#define TPS6507X_REG_LDO_CTRL1
#define TPS6507X_REG_LDO_CTRL1_LDO1_MASK

#define TPS6507X_REG_DEFLDO2
#define TPS6507X_REG_DEFLDO2_LDO2_MASK

#define TPS6507X_REG_WLED_CTRL1

#define TPS6507X_REG_WLED_CTRL2

/* VDCDC MASK */
#define TPS6507X_DEFDCDCX_DCDC_MASK

#define TPS6507X_MAX_REGISTER

/**
 * struct tps6507x_board - packages regulator and touchscreen init data
 * @tps6507x_regulator_data: regulator initialization values
 *
 * Board data may be used to initialize regulator and touchscreen.
 */

struct tps6507x_board {};

/**
 * struct tps6507x_dev - tps6507x sub-driver chip access routines
 * @read_dev() - I2C register read function
 * @write_dev() - I2C register write function
 *
 * Device data may be used to access the TPS6507x chip
 */

struct tps6507x_dev {};

#endif /*  __LINUX_MFD_TPS6507X_H */