linux/include/linux/mfd/da9052/reg.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Register declarations for DA9052 PMICs.
 *
 * Copyright(c) 2011 Dialog Semiconductor Ltd.
 *
 * Author: David Dajun Chen <[email protected]>
 */

#ifndef __LINUX_MFD_DA9052_REG_H
#define __LINUX_MFD_DA9052_REG_H

/* PAGE REGISTERS */
#define DA9052_PAGE0_CON_REG
#define DA9052_PAGE1_CON_REG

/* STATUS REGISTERS */
#define DA9052_STATUS_A_REG
#define DA9052_STATUS_B_REG
#define DA9052_STATUS_C_REG
#define DA9052_STATUS_D_REG

/* PARK REGISTER */
#define DA9052_PARK_REGISTER

/* EVENT REGISTERS */
#define DA9052_EVENT_A_REG
#define DA9052_EVENT_B_REG
#define DA9052_EVENT_C_REG
#define DA9052_EVENT_D_REG
#define DA9052_FAULTLOG_REG

/* IRQ REGISTERS */
#define DA9052_IRQ_MASK_A_REG
#define DA9052_IRQ_MASK_B_REG
#define DA9052_IRQ_MASK_C_REG
#define DA9052_IRQ_MASK_D_REG

/* CONTROL REGISTERS */
#define DA9052_CONTROL_A_REG
#define DA9052_CONTROL_B_REG
#define DA9052_CONTROL_C_REG
#define DA9052_CONTROL_D_REG

#define DA9052_PDDIS_REG
#define DA9052_INTERFACE_REG
#define DA9052_RESET_REG

/* GPIO REGISTERS */
#define DA9052_GPIO_0_1_REG
#define DA9052_GPIO_2_3_REG
#define DA9052_GPIO_4_5_REG
#define DA9052_GPIO_6_7_REG
#define DA9052_GPIO_8_9_REG
#define DA9052_GPIO_10_11_REG
#define DA9052_GPIO_12_13_REG
#define DA9052_GPIO_14_15_REG

/* POWER SEQUENCER CONTROL REGISTERS */
#define DA9052_ID_0_1_REG
#define DA9052_ID_2_3_REG
#define DA9052_ID_4_5_REG
#define DA9052_ID_6_7_REG
#define DA9052_ID_8_9_REG
#define DA9052_ID_10_11_REG
#define DA9052_ID_12_13_REG
#define DA9052_ID_14_15_REG
#define DA9052_ID_16_17_REG
#define DA9052_ID_18_19_REG
#define DA9052_ID_20_21_REG
#define DA9052_SEQ_STATUS_REG
#define DA9052_SEQ_A_REG
#define DA9052_SEQ_B_REG
#define DA9052_SEQ_TIMER_REG

/* LDO AND BUCK REGISTERS */
#define DA9052_BUCKA_REG
#define DA9052_BUCKB_REG
#define DA9052_BUCKCORE_REG
#define DA9052_BUCKPRO_REG
#define DA9052_BUCKMEM_REG
#define DA9052_BUCKPERI_REG
#define DA9052_LDO1_REG
#define DA9052_LDO2_REG
#define DA9052_LDO3_REG
#define DA9052_LDO4_REG
#define DA9052_LDO5_REG
#define DA9052_LDO6_REG
#define DA9052_LDO7_REG
#define DA9052_LDO8_REG
#define DA9052_LDO9_REG
#define DA9052_LDO10_REG
#define DA9052_SUPPLY_REG
#define DA9052_PULLDOWN_REG
#define DA9052_CHGBUCK_REG
#define DA9052_WAITCONT_REG
#define DA9052_ISET_REG
#define DA9052_BATCHG_REG

/* BATTERY CONTROL REGISTRS */
#define DA9052_CHG_CONT_REG
#define DA9052_INPUT_CONT_REG
#define DA9052_CHG_TIME_REG
#define DA9052_BBAT_CONT_REG

/* LED CONTROL REGISTERS */
#define DA9052_BOOST_REG
#define DA9052_LED_CONT_REG
#define DA9052_LEDMIN123_REG
#define DA9052_LED1_CONF_REG
#define DA9052_LED2_CONF_REG
#define DA9052_LED3_CONF_REG
#define DA9052_LED1CONT_REG
#define DA9052_LED2CONT_REG
#define DA9052_LED3CONT_REG
#define DA9052_LED_CONT_4_REG
#define DA9052_LED_CONT_5_REG

/* ADC CONTROL REGISTERS */
#define DA9052_ADC_MAN_REG
#define DA9052_ADC_CONT_REG
#define DA9052_ADC_RES_L_REG
#define DA9052_ADC_RES_H_REG
#define DA9052_VDD_RES_REG
#define DA9052_VDD_MON_REG

#define DA9052_ICHG_AV_REG
#define DA9052_ICHG_THD_REG
#define DA9052_ICHG_END_REG
#define DA9052_TBAT_RES_REG
#define DA9052_TBAT_HIGHP_REG
#define DA9052_TBAT_HIGHN_REG
#define DA9052_TBAT_LOW_REG
#define DA9052_T_OFFSET_REG

#define DA9052_ADCIN4_RES_REG
#define DA9052_AUTO4_HIGH_REG
#define DA9052_AUTO4_LOW_REG
#define DA9052_ADCIN5_RES_REG
#define DA9052_AUTO5_HIGH_REG
#define DA9052_AUTO5_LOW_REG
#define DA9052_ADCIN6_RES_REG
#define DA9052_AUTO6_HIGH_REG
#define DA9052_AUTO6_LOW_REG

#define DA9052_TJUNC_RES_REG

/* TSI CONTROL REGISTERS */
#define DA9052_TSI_CONT_A_REG
#define DA9052_TSI_CONT_B_REG
#define DA9052_TSI_X_MSB_REG
#define DA9052_TSI_Y_MSB_REG
#define DA9052_TSI_LSB_REG
#define DA9052_TSI_Z_MSB_REG

/* RTC COUNT REGISTERS */
#define DA9052_COUNT_S_REG
#define DA9052_COUNT_MI_REG
#define DA9052_COUNT_H_REG
#define DA9052_COUNT_D_REG
#define DA9052_COUNT_MO_REG
#define DA9052_COUNT_Y_REG

/* RTC CONTROL REGISTERS */
#define DA9052_ALARM_MI_REG
#define DA9052_ALARM_H_REG
#define DA9052_ALARM_D_REG
#define DA9052_ALARM_MO_REG
#define DA9052_ALARM_Y_REG
#define DA9052_SECOND_A_REG
#define DA9052_SECOND_B_REG
#define DA9052_SECOND_C_REG
#define DA9052_SECOND_D_REG

/* PAGE CONFIGURATION BIT */
#define DA9052_PAGE_CONF

/* STATUS REGISTER A BITS */
#define DA9052_STATUSA_VDATDET
#define DA9052_STATUSA_VBUSSEL
#define DA9052_STATUSA_DCINSEL
#define DA9052_STATUSA_VBUSDET
#define DA9052_STATUSA_DCINDET
#define DA9052_STATUSA_IDGND
#define DA9052_STATUSA_IDFLOAT
#define DA9052_STATUSA_NONKEY

/* STATUS REGISTER B BITS */
#define DA9052_STATUSB_COMPDET
#define DA9052_STATUSB_SEQUENCING
#define DA9052_STATUSB_GPFB2
#define DA9052_STATUSB_CHGTO
#define DA9052_STATUSB_CHGEND
#define DA9052_STATUSB_CHGLIM
#define DA9052_STATUSB_CHGPRE
#define DA9052_STATUSB_CHGATT

/* STATUS REGISTER C BITS */
#define DA9052_STATUSC_GPI7
#define DA9052_STATUSC_GPI6
#define DA9052_STATUSC_GPI5
#define DA9052_STATUSC_GPI4
#define DA9052_STATUSC_GPI3
#define DA9052_STATUSC_GPI2
#define DA9052_STATUSC_GPI1
#define DA9052_STATUSC_GPI0

/* STATUS REGISTER D BITS */
#define DA9052_STATUSD_GPI15
#define DA9052_STATUSD_GPI14
#define DA9052_STATUSD_GPI13
#define DA9052_STATUSD_GPI12
#define DA9052_STATUSD_GPI11
#define DA9052_STATUSD_GPI10
#define DA9052_STATUSD_GPI9
#define DA9052_STATUSD_GPI8

/* EVENT REGISTER A BITS */
#define DA9052_EVENTA_ECOMP1V2
#define DA9052_EVENTA_ESEQRDY
#define DA9052_EVENTA_EALRAM
#define DA9052_EVENTA_EVDDLOW
#define DA9052_EVENTA_EVBUSREM
#define DA9052_EVENTA_EDCINREM
#define DA9052_EVENTA_EVBUSDET
#define DA9052_EVENTA_EDCINDET

/* EVENT REGISTER B BITS */
#define DA9052_EVENTB_ETSIREADY
#define DA9052_EVENTB_EPENDOWN
#define DA9052_EVENTB_EADCEOM
#define DA9052_EVENTB_ETBAT
#define DA9052_EVENTB_ECHGEND
#define DA9052_EVENTB_EIDGND
#define DA9052_EVENTB_EIDFLOAT
#define DA9052_EVENTB_ENONKEY

/* EVENT REGISTER C BITS */
#define DA9052_EVENTC_EGPI7
#define DA9052_EVENTC_EGPI6
#define DA9052_EVENTC_EGPI5
#define DA9052_EVENTC_EGPI4
#define DA9052_EVENTC_EGPI3
#define DA9052_EVENTC_EGPI2
#define DA9052_EVENTC_EGPI1
#define DA9052_EVENTC_EGPI0

/* EVENT REGISTER D BITS */
#define DA9052_EVENTD_EGPI15
#define DA9052_EVENTD_EGPI14
#define DA9052_EVENTD_EGPI13
#define DA9052_EVENTD_EGPI12
#define DA9052_EVENTD_EGPI11
#define DA9052_EVENTD_EGPI10
#define DA9052_EVENTD_EGPI9
#define DA9052_EVENTD_EGPI8

/* IRQ MASK REGISTERS BITS */
#define DA9052_M_NONKEY

/* TSI EVENT REGISTERS BITS */
#define DA9052_E_PEN_DOWN
#define DA9052_E_TSI_READY

/* FAULT LOG REGISTER BITS */
#define DA9052_FAULTLOG_WAITSET
#define DA9052_FAULTLOG_NSDSET
#define DA9052_FAULTLOG_KEYSHUT
#define DA9052_FAULTLOG_TEMPOVER
#define DA9052_FAULTLOG_VDDSTART
#define DA9052_FAULTLOG_VDDFAULT
#define DA9052_FAULTLOG_TWDERROR

/* CONTROL REGISTER A BITS */
#define DA9052_CONTROLA_GPIV
#define DA9052_CONTROLA_PMOTYPE
#define DA9052_CONTROLA_PMOV
#define DA9052_CONTROLA_PMIV
#define DA9052_CONTROLA_PMIFV
#define DA9052_CONTROLA_PWR1EN
#define DA9052_CONTROLA_PWREN
#define DA9052_CONTROLA_SYSEN

/* CONTROL REGISTER B BITS */
#define DA9052_CONTROLB_SHUTDOWN
#define DA9052_CONTROLB_DEEPSLEEP
#define DA9052_CONTROL_B_WRITEMODE
#define DA9052_CONTROLB_BBATEN
#define DA9052_CONTROLB_OTPREADEN
#define DA9052_CONTROLB_AUTOBOOT
#define DA9052_CONTROLB_ACTDIODE
#define DA9052_CONTROLB_BUCKMERGE

/* CONTROL REGISTER C BITS */
#define DA9052_CONTROLC_BLINKDUR
#define DA9052_CONTROLC_BLINKFRQ
#define DA9052_CONTROLC_DEBOUNCING
#define DA9052_CONTROLC_PMFB2PIN
#define DA9052_CONTROLC_PMFB1PIN

/* CONTROL REGISTER D BITS */
#define DA9052_CONTROLD_WATCHDOG
#define DA9052_CONTROLD_ACCDETEN
#define DA9052_CONTROLD_GPI1415SD
#define DA9052_CONTROLD_NONKEYSD
#define DA9052_CONTROLD_KEEPACTEN
#define DA9052_CONTROLD_TWDSCALE

/* POWER DOWN DISABLE REGISTER BITS */
#define DA9052_PDDIS_PMCONTPD
#define DA9052_PDDIS_OUT32KPD
#define DA9052_PDDIS_CHGBBATPD
#define DA9052_PDDIS_CHGPD
#define DA9052_PDDIS_HS2WIREPD
#define DA9052_PDDIS_PMIFPD
#define DA9052_PDDIS_GPADCPD
#define DA9052_PDDIS_GPIOPD

/* CONTROL REGISTER D BITS */
#define DA9052_INTERFACE_IFBASEADDR
#define DA9052_INTERFACE_NCSPOL
#define DA9052_INTERFACE_RWPOL
#define DA9052_INTERFACE_CPHA
#define DA9052_INTERFACE_CPOL
#define DA9052_INTERFACE_IFTYPE

/* CONTROL REGISTER D BITS */
#define DA9052_RESET_RESETEVENT
#define DA9052_RESET_RESETTIMER

/* GPIO REGISTERS */
/* GPIO CONTROL REGISTER BITS */
#define DA9052_GPIO_EVEN_PORT_PIN
#define DA9052_GPIO_EVEN_PORT_TYPE
#define DA9052_GPIO_EVEN_PORT_MODE

#define DA9052_GPIO_ODD_PORT_PIN
#define DA9052_GPIO_ODD_PORT_TYPE
#define DA9052_GPIO_ODD_PORT_MODE

/*POWER SEQUENCER REGISTER BITS */
/* SEQ CONTROL REGISTER BITS FOR ID 0 AND 1 */
#define DA9052_ID01_LDO1STEP
#define DA9052_ID01_SYSPRE
#define DA9052_ID01_DEFSUPPLY
#define DA9052_ID01_NRESMODE

/* SEQ CONTROL REGISTER BITS FOR ID 2 AND 3 */
#define DA9052_ID23_LDO3STEP
#define DA9052_ID23_LDO2STEP

/* SEQ CONTROL REGISTER BITS FOR ID 4 AND 5 */
#define DA9052_ID45_LDO5STEP
#define DA9052_ID45_LDO4STEP

/* SEQ CONTROL REGISTER BITS FOR ID 6 AND 7 */
#define DA9052_ID67_LDO7STEP
#define DA9052_ID67_LDO6STEP

/* SEQ CONTROL REGISTER BITS FOR ID 8 AND 9 */
#define DA9052_ID89_LDO9STEP
#define DA9052_ID89_LDO8STEP

/* SEQ CONTROL REGISTER BITS FOR ID 10 AND 11 */
#define DA9052_ID1011_PDDISSTEP
#define DA9052_ID1011_LDO10STEP

/* SEQ CONTROL REGISTER BITS FOR ID 12 AND 13 */
#define DA9052_ID1213_VMEMSWSTEP
#define DA9052_ID1213_VPERISWSTEP

/* SEQ CONTROL REGISTER BITS FOR ID 14 AND 15 */
#define DA9052_ID1415_BUCKPROSTEP
#define DA9052_ID1415_BUCKCORESTEP

/* SEQ CONTROL REGISTER BITS FOR ID 16 AND 17 */
#define DA9052_ID1617_BUCKPERISTEP
#define DA9052_ID1617_BUCKMEMSTEP

/* SEQ CONTROL REGISTER BITS FOR ID 18 AND 19 */
#define DA9052_ID1819_GPRISE2STEP
#define DA9052_ID1819_GPRISE1STEP

/* SEQ CONTROL REGISTER BITS FOR ID 20 AND 21 */
#define DA9052_ID2021_GPFALL2STEP
#define DA9052_ID2021_GPFALL1STEP

/* POWER SEQ STATUS REGISTER BITS */
#define DA9052_SEQSTATUS_SEQPOINTER
#define DA9052_SEQSTATUS_WAITSTEP

/* POWER SEQ A REGISTER BITS */
#define DA9052_SEQA_POWEREND
#define DA9052_SEQA_SYSTEMEND

/* POWER SEQ B REGISTER BITS */
#define DA9052_SEQB_PARTDOWN
#define DA9052_SEQB_MAXCOUNT

/* POWER SEQ TIMER REGISTER BITS */
#define DA9052_SEQTIMER_SEQDUMMY
#define DA9052_SEQTIMER_SEQTIME

/*POWER SUPPLY CONTROL REGISTER BITS */
/* BUCK REGISTER A BITS */
#define DA9052_BUCKA_BPROILIM
#define DA9052_BUCKA_BPROMODE
#define DA9052_BUCKA_BCOREILIM
#define DA9052_BUCKA_BCOREMODE

/* BUCK REGISTER B BITS */
#define DA9052_BUCKB_BERIILIM
#define DA9052_BUCKB_BPERIMODE
#define DA9052_BUCKB_BMEMILIM
#define DA9052_BUCKB_BMEMMODE

/* BUCKCORE REGISTER BITS */
#define DA9052_BUCKCORE_BCORECONF
#define DA9052_BUCKCORE_BCOREEN
#define DA9052_BUCKCORE_VBCORE

/* BUCKPRO REGISTER BITS */
#define DA9052_BUCKPRO_BPROCONF
#define DA9052_BUCKPRO_BPROEN
#define DA9052_BUCKPRO_VBPRO

/* BUCKMEM REGISTER BITS */
#define DA9052_BUCKMEM_BMEMCONF
#define DA9052_BUCKMEM_BMEMEN
#define DA9052_BUCKMEM_VBMEM

/* BUCKPERI REGISTER BITS */
#define DA9052_BUCKPERI_BPERICONF
#define DA9052_BUCKPERI_BPERIEN
#define DA9052_BUCKPERI_BPERIHS
#define DA9052_BUCKPERI_VBPERI

/* LDO1 REGISTER BITS */
#define DA9052_LDO1_LDO1CONF
#define DA9052_LDO1_LDO1EN
#define DA9052_LDO1_VLDO1

/* LDO2 REGISTER BITS */
#define DA9052_LDO2_LDO2CONF
#define DA9052_LDO2_LDO2EN
#define DA9052_LDO2_VLDO2

/* LDO3 REGISTER BITS */
#define DA9052_LDO3_LDO3CONF
#define DA9052_LDO3_LDO3EN
#define DA9052_LDO3_VLDO3

/* LDO4 REGISTER BITS */
#define DA9052_LDO4_LDO4CONF
#define DA9052_LDO4_LDO4EN
#define DA9052_LDO4_VLDO4

/* LDO5 REGISTER BITS */
#define DA9052_LDO5_LDO5CONF
#define DA9052_LDO5_LDO5EN
#define DA9052_LDO5_VLDO5

/* LDO6 REGISTER BITS */
#define DA9052_LDO6_LDO6CONF
#define DA9052_LDO6_LDO6EN
#define DA9052_LDO6_VLDO6

/* LDO7 REGISTER BITS */
#define DA9052_LDO7_LDO7CONF
#define DA9052_LDO7_LDO7EN
#define DA9052_LDO7_VLDO7

/* LDO8 REGISTER BITS */
#define DA9052_LDO8_LDO8CONF
#define DA9052_LDO8_LDO8EN
#define DA9052_LDO8_VLDO8

/* LDO9 REGISTER BITS */
#define DA9052_LDO9_LDO9CONF
#define DA9052_LDO9_LDO9EN
#define DA9052_LDO9_VLDO9

/* LDO10 REGISTER BITS */
#define DA9052_LDO10_LDO10CONF
#define DA9052_LDO10_LDO10EN
#define DA9052_LDO10_VLDO10

/* SUPPLY REGISTER BITS */
#define DA9052_SUPPLY_VLOCK
#define DA9052_SUPPLY_VMEMSWEN
#define DA9052_SUPPLY_VPERISWEN
#define DA9052_SUPPLY_VLDO3GO
#define DA9052_SUPPLY_VLDO2GO
#define DA9052_SUPPLY_VBMEMGO
#define DA9052_SUPPLY_VBPROGO
#define DA9052_SUPPLY_VBCOREGO

/* PULLDOWN REGISTER BITS */
#define DA9052_PULLDOWN_LDO5PDDIS
#define DA9052_PULLDOWN_LDO2PDDIS
#define DA9052_PULLDOWN_LDO1PDDIS
#define DA9052_PULLDOWN_MEMPDDIS
#define DA9052_PULLDOWN_PROPDDIS
#define DA9052_PULLDOWN_COREPDDIS

/* BAT CHARGER REGISTER BITS */
/* CHARGER BUCK REGISTER BITS */
#define DA9052_CHGBUCK_CHGTEMP
#define DA9052_CHGBUCK_CHGUSBILIM
#define DA9052_CHGBUCK_CHGBUCKLP
#define DA9052_CHGBUCK_CHGBUCKEN
#define DA9052_CHGBUCK_ISETBUCK

/* WAIT COUNTER REGISTER BITS */
#define DA9052_WAITCONT_WAITDIR
#define DA9052_WAITCONT_RTCCLOCK
#define DA9052_WAITCONT_WAITMODE
#define DA9052_WAITCONT_EN32KOUT
#define DA9052_WAITCONT_DELAYTIME

/* ISET CONTROL REGISTER BITS */
#define DA9052_ISET_ISETDCIN
#define DA9052_ISET_ISETVBUS

/* BATTERY CHARGER CONTROL REGISTER BITS */
#define DA9052_BATCHG_ICHGPRE
#define DA9052_BATCHG_ICHGBAT

/* CHARGER COUNTER REGISTER BITS */
#define DA9052_CHG_CONT_VCHG_BAT
#define DA9052_CHG_CONT_TCTR

/* INPUT CONTROL REGISTER BITS */
#define DA9052_INPUT_CONT_TCTR_MODE
#define DA9052_INPUT_CONT_VBUS_SUSP
#define DA9052_INPUT_CONT_DCIN_SUSP

/* CHARGING TIME REGISTER BITS */
#define DA9052_CHGTIME_CHGTIME

/* BACKUP BATTERY CONTROL REGISTER BITS */
#define DA9052_BBATCONT_BCHARGERISET
#define DA9052_BBATCONT_BCHARGERVSET

/* LED REGISTERS BITS */
/* LED BOOST REGISTER BITS */
#define DA9052_BOOST_EBFAULT
#define DA9052_BOOST_MBFAULT
#define DA9052_BOOST_BOOSTFRQ
#define DA9052_BOOST_BOOSTILIM
#define DA9052_BOOST_LED3INEN
#define DA9052_BOOST_LED2INEN
#define DA9052_BOOST_LED1INEN
#define DA9052_BOOST_BOOSTEN

/* LED CONTROL REGISTER BITS */
#define DA9052_LEDCONT_SELLEDMODE
#define DA9052_LEDCONT_LED3ICONT
#define DA9052_LEDCONT_LED3RAMP
#define DA9052_LEDCONT_LED3EN
#define DA9052_LEDCONT_LED2RAMP
#define DA9052_LEDCONT_LED2EN
#define DA9052_LEDCONT_LED1RAMP
#define DA9052_LEDCONT_LED1EN

/* LEDMIN123 REGISTER BIT */
#define DA9052_LEDMIN123_LEDMINCURRENT

/* LED1CONF REGISTER BIT */
#define DA9052_LED1CONF_LED1CURRENT

/* LED2CONF REGISTER BIT */
#define DA9052_LED2CONF_LED2CURRENT

/* LED3CONF REGISTER BIT */
#define DA9052_LED3CONF_LED3CURRENT

/* LED COUNT REGISTER BIT */
#define DA9052_LED_CONT_DIM

/* ADC MAN REGISTERS BITS */
#define DA9052_ADC_MAN_MAN_CONV
#define DA9052_ADC_MAN_MUXSEL_VDDOUT
#define DA9052_ADC_MAN_MUXSEL_ICH
#define DA9052_ADC_MAN_MUXSEL_TBAT
#define DA9052_ADC_MAN_MUXSEL_VBAT
#define DA9052_ADC_MAN_MUXSEL_AD4
#define DA9052_ADC_MAN_MUXSEL_AD5
#define DA9052_ADC_MAN_MUXSEL_AD6
#define DA9052_ADC_MAN_MUXSEL_VBBAT

/* ADC CONTROL REGSISTERS BITS */
#define DA9052_ADCCONT_COMP1V2EN
#define DA9052_ADCCONT_ADCMODE
#define DA9052_ADCCONT_TBATISRCEN
#define DA9052_ADCCONT_AD4ISRCEN
#define DA9052_ADCCONT_AUTOAD6EN
#define DA9052_ADCCONT_AUTOAD5EN
#define DA9052_ADCCONT_AUTOAD4EN
#define DA9052_ADCCONT_AUTOVDDEN

/* ADC 10 BIT MANUAL CONVERSION RESULT LOW REGISTER */
#define DA9052_ADC_RES_LSB

/* ADC 10 BIT MANUAL CONVERSION RESULT HIGH REGISTER */
#define DA9052_ADCRESH_ADCRESMSB

/* VDD RES REGSISTER BIT*/
#define DA9052_VDDRES_VDDOUTRES

/* VDD MON REGSISTER BIT */
#define DA9052_VDDMON_VDDOUTMON

/* ICHG_AV REGSISTER BIT */
#define DA9052_ICHGAV_ICHGAV

/* ICHG_THD REGSISTER BIT */
#define DA9052_ICHGTHD_ICHGTHD

/* ICHG_END REGSISTER BIT */
#define DA9052_ICHGEND_ICHGEND

/* TBAT_RES REGSISTER BIT */
#define DA9052_TBATRES_TBATRES

/* TBAT_HIGHP REGSISTER BIT */
#define DA9052_TBATHIGHP_TBATHIGHP

/* TBAT_HIGHN REGSISTER BIT */
#define DA9052_TBATHIGHN_TBATHIGHN

/* TBAT_LOW REGSISTER BIT */
#define DA9052_TBATLOW_TBATLOW

/* T_OFFSET REGSISTER BIT */
#define DA9052_TOFFSET_TOFFSET

/* ADCIN4_RES REGSISTER BIT */
#define DA9052_ADCIN4RES_ADCIN4RES

/* ADCIN4_HIGH REGSISTER BIT */
#define DA9052_AUTO4HIGH_AUTO4HIGH

/* ADCIN4_LOW REGSISTER BIT */
#define DA9052_AUTO4LOW_AUTO4LOW

/* ADCIN5_RES REGSISTER BIT */
#define DA9052_ADCIN5RES_ADCIN5RES

/* ADCIN5_HIGH REGSISTER BIT */
#define DA9052_AUTO5HIGH_AUTOHIGH

/* ADCIN5_LOW REGSISTER BIT */
#define DA9052_AUTO5LOW_AUTO5LOW

/* ADCIN6_RES REGSISTER BIT */
#define DA9052_ADCIN6RES_ADCIN6RES

/* ADCIN6_HIGH REGSISTER BIT */
#define DA9052_AUTO6HIGH_AUTO6HIGH

/* ADCIN6_LOW REGSISTER BIT */
#define DA9052_AUTO6LOW_AUTO6LOW

/* TJUNC_RES REGSISTER BIT*/
#define DA9052_TJUNCRES_TJUNCRES

/* TSI REGISTER */
/* TSI CONTROL REGISTER A BITS */
#define DA9052_TSICONTA_TSIDELAY
#define DA9052_TSICONTA_TSISKIP
#define DA9052_TSICONTA_TSIMODE
#define DA9052_TSICONTA_PENDETEN
#define DA9052_TSICONTA_AUTOTSIEN

/* TSI CONTROL REGISTER B BITS */
#define DA9052_TSICONTB_ADCREF
#define DA9052_TSICONTB_TSIMAN
#define DA9052_TSICONTB_TSIMUX_XP
#define DA9052_TSICONTB_TSIMUX_YP
#define DA9052_TSICONTB_TSIMUX_XN
#define DA9052_TSICONTB_TSIMUX_YN
#define DA9052_TSICONTB_TSISEL3
#define DA9052_TSICONTB_TSISEL2
#define DA9052_TSICONTB_TSISEL1
#define DA9052_TSICONTB_TSISEL0

/* TSI X CO-ORDINATE MSB RESULT REGISTER BITS */
#define DA9052_TSIXMSB_TSIXM

/* TSI Y CO-ORDINATE MSB RESULT REGISTER BITS */
#define DA9052_TSIYMSB_TSIYM

/* TSI CO-ORDINATE LSB RESULT REGISTER BITS */
#define DA9052_TSILSB_PENDOWN
#define DA9052_TSILSB_TSIZL
#define DA9052_TSILSB_TSIZL_SHIFT
#define DA9052_TSILSB_TSIZL_BITS
#define DA9052_TSILSB_TSIYL
#define DA9052_TSILSB_TSIYL_SHIFT
#define DA9052_TSILSB_TSIYL_BITS
#define DA9052_TSILSB_TSIXL
#define DA9052_TSILSB_TSIXL_SHIFT
#define DA9052_TSILSB_TSIXL_BITS

/* TSI Z MEASUREMENT MSB RESULT REGISTER BIT */
#define DA9052_TSIZMSB_TSIZM

/* RTC REGISTER */
/* RTC TIMER SECONDS REGISTER BITS */
#define DA9052_COUNTS_MONITOR
#define DA9052_RTC_SEC

/* RTC TIMER MINUTES REGISTER BIT */
#define DA9052_RTC_MIN

/* RTC TIMER HOUR REGISTER BIT */
#define DA9052_RTC_HOUR

/* RTC TIMER DAYS REGISTER BIT */
#define DA9052_RTC_DAY

/* RTC TIMER MONTHS REGISTER BIT */
#define DA9052_RTC_MONTH

/* RTC TIMER YEARS REGISTER BIT */
#define DA9052_RTC_YEAR

/* RTC ALARM MINUTES REGISTER BITS */
#define DA9052_ALARMM_I_TICK_TYPE
#define DA9052_ALARMMI_ALARMTYPE

/* RTC ALARM YEARS REGISTER BITS */
#define DA9052_ALARM_Y_TICK_ON
#define DA9052_ALARM_Y_ALARM_ON

/* RTC SECONDS REGISTER A BITS */
#define DA9052_SECONDA_SECONDSA

/* RTC SECONDS REGISTER B BITS */
#define DA9052_SECONDB_SECONDSB

/* RTC SECONDS REGISTER C BITS */
#define DA9052_SECONDC_SECONDSC

/* RTC SECONDS REGISTER D BITS */
#define DA9052_SECONDD_SECONDSD

#endif
/* __LINUX_MFD_DA9052_REG_H */