#ifndef __CS35L32_H__
#define __CS35L32_H__
struct cs35l32_platform_data {
unsigned int batt_thresh;
unsigned int batt_recov;
unsigned int led_mng;
unsigned int audiogain_mng;
unsigned int boost_mng;
unsigned int sdout_datacfg;
unsigned int sdout_share;
};
#define CS35L32_CHIP_ID 0x00035A32
#define CS35L32_DEVID_AB 0x01
#define CS35L32_DEVID_CD 0x02
#define CS35L32_DEVID_E 0x03
#define CS35L32_FAB_ID 0x04
#define CS35L32_REV_ID 0x05
#define CS35L32_PWRCTL1 0x06
#define CS35L32_PWRCTL2 0x07
#define CS35L32_CLK_CTL 0x08
#define CS35L32_BATT_THRESHOLD 0x09
#define CS35L32_VMON 0x0A
#define CS35L32_BST_CPCP_CTL 0x0B
#define CS35L32_IMON_SCALING 0x0C
#define CS35L32_AUDIO_LED_MNGR 0x0D
#define CS35L32_ADSP_CTL 0x0F
#define CS35L32_CLASSD_CTL 0x10
#define CS35L32_PROTECT_CTL 0x11
#define CS35L32_INT_MASK_1 0x12
#define CS35L32_INT_MASK_2 0x13
#define CS35L32_INT_MASK_3 0x14
#define CS35L32_INT_STATUS_1 0x15
#define CS35L32_INT_STATUS_2 0x16
#define CS35L32_INT_STATUS_3 0x17
#define CS35L32_LED_STATUS 0x18
#define CS35L32_FLASH_MODE 0x19
#define CS35L32_MOVIE_MODE 0x1A
#define CS35L32_FLASH_TIMER 0x1B
#define CS35L32_FLASH_INHIBIT 0x1C
#define CS35L32_MAX_REGISTER 0x1C
#define CS35L32_MCLK_DIV2 0x01
#define CS35L32_MCLK_RATIO 0x01
#define CS35L32_MCLKDIS 0x80
#define CS35L32_PDN_ALL 0x01
#define CS35L32_PDN_AMP 0x80
#define CS35L32_PDN_BOOST 0x04
#define CS35L32_PDN_IMON 0x40
#define CS35L32_PDN_VMON 0x80
#define CS35L32_PDN_VPMON 0x20
#define CS35L32_PDN_ADSP 0x08
#define CS35L32_MCLK_DIV2_MASK 0x40
#define CS35L32_MCLK_RATIO_MASK 0x01
#define CS35L32_MCLK_MASK 0x41
#define CS35L32_ADSP_MASTER_MASK 0x40
#define CS35L32_BOOST_MASK 0x03
#define CS35L32_GAIN_MGR_MASK 0x08
#define CS35L32_ADSP_SHARE_MASK 0x08
#define CS35L32_ADSP_DATACFG_MASK 0x30
#define CS35L32_SDOUT_3ST 0x08
#define CS35L32_BATT_REC_MASK 0x0E
#define CS35L32_BATT_THRESH_MASK 0x30
#define CS35L32_RATES (SNDRV_PCM_RATE_48000)
#define CS35L32_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \
SNDRV_PCM_FMTBIT_S24_LE | \
SNDRV_PCM_FMTBIT_S32_LE)
#endif