123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- #ifndef _WM8741_H
- #define _WM8741_H
- #define WM8741_DACLLSB_ATTENUATION 0x00
- #define WM8741_DACLMSB_ATTENUATION 0x01
- #define WM8741_DACRLSB_ATTENUATION 0x02
- #define WM8741_DACRMSB_ATTENUATION 0x03
- #define WM8741_VOLUME_CONTROL 0x04
- #define WM8741_FORMAT_CONTROL 0x05
- #define WM8741_FILTER_CONTROL 0x06
- #define WM8741_MODE_CONTROL_1 0x07
- #define WM8741_MODE_CONTROL_2 0x08
- #define WM8741_RESET 0x09
- #define WM8741_ADDITIONAL_CONTROL_1 0x20
- #define WM8741_REGISTER_COUNT 11
- #define WM8741_MAX_REGISTER 0x20
- #define WM8741_UPDATELL 0x0020
- #define WM8741_UPDATELL_MASK 0x0020
- #define WM8741_UPDATELL_SHIFT 5
- #define WM8741_UPDATELL_WIDTH 1
- #define WM8741_LAT_4_0_MASK 0x001F
- #define WM8741_LAT_4_0_SHIFT 0
- #define WM8741_LAT_4_0_WIDTH 5
- #define WM8741_UPDATELM 0x0020
- #define WM8741_UPDATELM_MASK 0x0020
- #define WM8741_UPDATELM_SHIFT 5
- #define WM8741_UPDATELM_WIDTH 1
- #define WM8741_LAT_9_5_0_MASK 0x001F
- #define WM8741_LAT_9_5_0_SHIFT 0
- #define WM8741_LAT_9_5_0_WIDTH 5
- #define WM8741_UPDATERL 0x0020
- #define WM8741_UPDATERL_MASK 0x0020
- #define WM8741_UPDATERL_SHIFT 5
- #define WM8741_UPDATERL_WIDTH 1
- #define WM8741_RAT_4_0_MASK 0x001F
- #define WM8741_RAT_4_0_SHIFT 0
- #define WM8741_RAT_4_0_WIDTH 5
- #define WM8741_UPDATERM 0x0020
- #define WM8741_UPDATERM_MASK 0x0020
- #define WM8741_UPDATERM_SHIFT 5
- #define WM8741_UPDATERM_WIDTH 1
- #define WM8741_RAT_9_5_0_MASK 0x001F
- #define WM8741_RAT_9_5_0_SHIFT 0
- #define WM8741_RAT_9_5_0_WIDTH 5
- #define WM8741_AMUTE 0x0080
- #define WM8741_AMUTE_MASK 0x0080
- #define WM8741_AMUTE_SHIFT 7
- #define WM8741_AMUTE_WIDTH 1
- #define WM8741_ZFLAG_MASK 0x0060
- #define WM8741_ZFLAG_SHIFT 5
- #define WM8741_ZFLAG_WIDTH 2
- #define WM8741_IZD 0x0010
- #define WM8741_IZD_MASK 0x0010
- #define WM8741_IZD_SHIFT 4
- #define WM8741_IZD_WIDTH 1
- #define WM8741_SOFT 0x0008
- #define WM8741_SOFT_MASK 0x0008
- #define WM8741_SOFT_SHIFT 3
- #define WM8741_SOFT_WIDTH 1
- #define WM8741_ATC 0x0004
- #define WM8741_ATC_MASK 0x0004
- #define WM8741_ATC_SHIFT 2
- #define WM8741_ATC_WIDTH 1
- #define WM8741_ATT2DB 0x0002
- #define WM8741_ATT2DB_MASK 0x0002
- #define WM8741_ATT2DB_SHIFT 1
- #define WM8741_ATT2DB_WIDTH 1
- #define WM8741_VOL_RAMP 0x0001
- #define WM8741_VOL_RAMP_MASK 0x0001
- #define WM8741_VOL_RAMP_SHIFT 0
- #define WM8741_VOL_RAMP_WIDTH 1
- #define WM8741_PWDN 0x0080
- #define WM8741_PWDN_MASK 0x0080
- #define WM8741_PWDN_SHIFT 7
- #define WM8741_PWDN_WIDTH 1
- #define WM8741_REV 0x0040
- #define WM8741_REV_MASK 0x0040
- #define WM8741_REV_SHIFT 6
- #define WM8741_REV_WIDTH 1
- #define WM8741_BCP 0x0020
- #define WM8741_BCP_MASK 0x0020
- #define WM8741_BCP_SHIFT 5
- #define WM8741_BCP_WIDTH 1
- #define WM8741_LRP 0x0010
- #define WM8741_LRP_MASK 0x0010
- #define WM8741_LRP_SHIFT 4
- #define WM8741_LRP_WIDTH 1
- #define WM8741_FMT_MASK 0x000C
- #define WM8741_FMT_SHIFT 2
- #define WM8741_FMT_WIDTH 2
- #define WM8741_IWL_MASK 0x0003
- #define WM8741_IWL_SHIFT 0
- #define WM8741_IWL_WIDTH 2
- #define WM8741_ZFLAG_HI 0x0080
- #define WM8741_ZFLAG_HI_MASK 0x0080
- #define WM8741_ZFLAG_HI_SHIFT 7
- #define WM8741_ZFLAG_HI_WIDTH 1
- #define WM8741_DEEMPH_MASK 0x0060
- #define WM8741_DEEMPH_SHIFT 5
- #define WM8741_DEEMPH_WIDTH 2
- #define WM8741_DSDFILT_MASK 0x0018
- #define WM8741_DSDFILT_SHIFT 3
- #define WM8741_DSDFILT_WIDTH 2
- #define WM8741_FIRSEL_MASK 0x0007
- #define WM8741_FIRSEL_SHIFT 0
- #define WM8741_FIRSEL_WIDTH 3
- #define WM8741_MODE8X 0x0080
- #define WM8741_MODE8X_MASK 0x0080
- #define WM8741_MODE8X_SHIFT 7
- #define WM8741_MODE8X_WIDTH 1
- #define WM8741_OSR_MASK 0x0060
- #define WM8741_OSR_SHIFT 5
- #define WM8741_OSR_WIDTH 2
- #define WM8741_SR_MASK 0x001C
- #define WM8741_SR_SHIFT 2
- #define WM8741_SR_WIDTH 3
- #define WM8741_MODESEL_MASK 0x0003
- #define WM8741_MODESEL_SHIFT 0
- #define WM8741_MODESEL_WIDTH 2
- #define WM8741_DSD_GAIN 0x0040
- #define WM8741_DSD_GAIN_MASK 0x0040
- #define WM8741_DSD_GAIN_SHIFT 6
- #define WM8741_DSD_GAIN_WIDTH 1
- #define WM8741_SDOUT 0x0020
- #define WM8741_SDOUT_MASK 0x0020
- #define WM8741_SDOUT_SHIFT 5
- #define WM8741_SDOUT_WIDTH 1
- #define WM8741_DOUT 0x0010
- #define WM8741_DOUT_MASK 0x0010
- #define WM8741_DOUT_SHIFT 4
- #define WM8741_DOUT_WIDTH 1
- #define WM8741_DIFF_MASK 0x000C
- #define WM8741_DIFF_SHIFT 2
- #define WM8741_DIFF_WIDTH 2
- #define WM8741_DITHER_MASK 0x0003
- #define WM8741_DITHER_SHIFT 0
- #define WM8741_DITHER_WIDTH 2
- #define WM8741_DIFF_MODE_STEREO 0
- #define WM8741_DIFF_MODE_STEREO_REVERSED 2
- #define WM8741_DIFF_MODE_MONO_LEFT 1
- #define WM8741_DIFF_MODE_MONO_RIGHT 3
- #define WM8741_DSD_LEVEL 0x0002
- #define WM8741_DSD_LEVEL_MASK 0x0002
- #define WM8741_DSD_LEVEL_SHIFT 1
- #define WM8741_DSD_LEVEL_WIDTH 1
- #define WM8741_DSD_NO_NOTCH 0x0001
- #define WM8741_DSD_NO_NOTCH_MASK 0x0001
- #define WM8741_DSD_NO_NOTCH_SHIFT 0
- #define WM8741_DSD_NO_NOTCH_WIDTH 1
- #define WM8741_SYSCLK 0
- struct wm8741_platform_data {
- u32 diff_mode;
- };
- #endif
|