0001
0002
0003
0004
0005
0006 #ifndef __REDWOODPUBLIC_H__
0007 #define __REDWOODPUBLIC_H__
0008
0009 #define VIRT_BASE 0x00
0010 #define PAGE_LEN 0x100
0011 #define VIRT_PAGE_BASE(page) (VIRT_BASE + (PAGE_LEN * page))
0012 #define VIRT_ADDR(page, address) (VIRT_PAGE_BASE(page) + address)
0013 #define ADDR(page, virt_address) (virt_address - VIRT_PAGE_BASE(page))
0014
0015 #define R_PAGESEL 0x0
0016 #define R_RESET VIRT_ADDR(0x0, 0x1)
0017 #define R_IRQEN VIRT_ADDR(0x0, 0x2)
0018 #define R_IRQMASK VIRT_ADDR(0x0, 0x3)
0019 #define R_IRQSTAT VIRT_ADDR(0x0, 0x4)
0020 #define R_DEVADD0 VIRT_ADDR(0x0, 0x6)
0021 #define R_DEVID VIRT_ADDR(0x0, 0x8)
0022 #define R_DEVREV VIRT_ADDR(0x0, 0x9)
0023 #define R_PLLSTAT VIRT_ADDR(0x0, 0x0A)
0024 #define R_PLL1CTL VIRT_ADDR(0x0, 0x0B)
0025 #define R_PLL1RDIV VIRT_ADDR(0x0, 0x0C)
0026 #define R_PLL1ODIV VIRT_ADDR(0x0, 0x0D)
0027 #define R_PLL1FDIVL VIRT_ADDR(0x0, 0x0E)
0028 #define R_PLL1FDIVH VIRT_ADDR(0x0, 0x0F)
0029 #define R_PLL2CTL VIRT_ADDR(0x0, 0x10)
0030 #define R_PLL2RDIV VIRT_ADDR(0x0, 0x11)
0031 #define R_PLL2ODIV VIRT_ADDR(0x0, 0x12)
0032 #define R_PLL2FDIVL VIRT_ADDR(0x0, 0x13)
0033 #define R_PLL2FDIVH VIRT_ADDR(0x0, 0x14)
0034 #define R_PLLCTL VIRT_ADDR(0x0, 0x15)
0035 #define R_ISRC VIRT_ADDR(0x0, 0x16)
0036 #define R_SCLKCTL VIRT_ADDR(0x0, 0x18)
0037 #define R_TIMEBASE VIRT_ADDR(0x0, 0x19)
0038 #define R_I2SP1CTL VIRT_ADDR(0x0, 0x1A)
0039 #define R_I2SP2CTL VIRT_ADDR(0x0, 0x1B)
0040 #define R_I2SP3CTL VIRT_ADDR(0x0, 0x1C)
0041 #define R_I2S1MRATE VIRT_ADDR(0x0, 0x1D)
0042 #define R_I2S2MRATE VIRT_ADDR(0x0, 0x1E)
0043 #define R_I2S3MRATE VIRT_ADDR(0x0, 0x1F)
0044 #define R_I2SCMC VIRT_ADDR(0x0, 0x20)
0045 #define R_MCLK2PINC VIRT_ADDR(0x0, 0x21)
0046 #define R_I2SPINC0 VIRT_ADDR(0x0, 0x22)
0047 #define R_I2SPINC1 VIRT_ADDR(0x0, 0x23)
0048 #define R_I2SPINC2 VIRT_ADDR(0x0, 0x24)
0049 #define R_GPIOCTL0 VIRT_ADDR(0x0, 0x25)
0050 #define R_GPIOCTL1 VIRT_ADDR(0x0, 0x26)
0051 #define R_ASRC VIRT_ADDR(0x0, 0x28)
0052 #define R_TDMCTL0 VIRT_ADDR(0x0, 0x2D)
0053 #define R_TDMCTL1 VIRT_ADDR(0x0, 0x2E)
0054 #define R_PCMP2CTL0 VIRT_ADDR(0x0, 0x2F)
0055 #define R_PCMP2CTL1 VIRT_ADDR(0x0, 0x30)
0056 #define R_PCMP3CTL0 VIRT_ADDR(0x0, 0x31)
0057 #define R_PCMP3CTL1 VIRT_ADDR(0x0, 0x32)
0058 #define R_PWRM0 VIRT_ADDR(0x0, 0x33)
0059 #define R_PWRM1 VIRT_ADDR(0x0, 0x34)
0060 #define R_PWRM2 VIRT_ADDR(0x0, 0x35)
0061 #define R_PWRM3 VIRT_ADDR(0x0, 0x36)
0062 #define R_PWRM4 VIRT_ADDR(0x0, 0x37)
0063 #define R_I2SIDCTL VIRT_ADDR(0x0, 0x38)
0064 #define R_I2SODCTL VIRT_ADDR(0x0, 0x39)
0065 #define R_AUDIOMUX1 VIRT_ADDR(0x0, 0x3A)
0066 #define R_AUDIOMUX2 VIRT_ADDR(0x0, 0x3B)
0067 #define R_AUDIOMUX3 VIRT_ADDR(0x0, 0x3C)
0068 #define R_HSDCTL1 VIRT_ADDR(0x1, 0x1)
0069 #define R_HSDCTL2 VIRT_ADDR(0x1, 0x2)
0070 #define R_HSDSTAT VIRT_ADDR(0x1, 0x3)
0071 #define R_HSDDELAY VIRT_ADDR(0x1, 0x4)
0072 #define R_BUTCTL VIRT_ADDR(0x1, 0x5)
0073 #define R_CH0AIC VIRT_ADDR(0x1, 0x6)
0074 #define R_CH1AIC VIRT_ADDR(0x1, 0x7)
0075 #define R_CH2AIC VIRT_ADDR(0x1, 0x8)
0076 #define R_CH3AIC VIRT_ADDR(0x1, 0x9)
0077 #define R_ICTL0 VIRT_ADDR(0x1, 0x0A)
0078 #define R_ICTL1 VIRT_ADDR(0x1, 0x0B)
0079 #define R_MICBIAS VIRT_ADDR(0x1, 0x0C)
0080 #define R_PGACTL0 VIRT_ADDR(0x1, 0x0D)
0081 #define R_PGACTL1 VIRT_ADDR(0x1, 0x0E)
0082 #define R_PGACTL2 VIRT_ADDR(0x1, 0x0F)
0083 #define R_PGACTL3 VIRT_ADDR(0x1, 0x10)
0084 #define R_PGAZ VIRT_ADDR(0x1, 0x11)
0085 #define R_ICH0VOL VIRT_ADDR(0x1, 0x12)
0086 #define R_ICH1VOL VIRT_ADDR(0x1, 0x13)
0087 #define R_ICH2VOL VIRT_ADDR(0x1, 0x14)
0088 #define R_ICH3VOL VIRT_ADDR(0x1, 0x15)
0089 #define R_ASRCILVOL VIRT_ADDR(0x1, 0x16)
0090 #define R_ASRCIRVOL VIRT_ADDR(0x1, 0x17)
0091 #define R_ASRCOLVOL VIRT_ADDR(0x1, 0x18)
0092 #define R_ASRCORVOL VIRT_ADDR(0x1, 0x19)
0093 #define R_IVOLCTLU VIRT_ADDR(0x1, 0x1C)
0094 #define R_ALCCTL0 VIRT_ADDR(0x1, 0x1D)
0095 #define R_ALCCTL1 VIRT_ADDR(0x1, 0x1E)
0096 #define R_ALCCTL2 VIRT_ADDR(0x1, 0x1F)
0097 #define R_ALCCTL3 VIRT_ADDR(0x1, 0x20)
0098 #define R_NGATE VIRT_ADDR(0x1, 0x21)
0099 #define R_DMICCTL VIRT_ADDR(0x1, 0x22)
0100 #define R_DACCTL VIRT_ADDR(0x2, 0x1)
0101 #define R_SPKCTL VIRT_ADDR(0x2, 0x2)
0102 #define R_SUBCTL VIRT_ADDR(0x2, 0x3)
0103 #define R_DCCTL VIRT_ADDR(0x2, 0x4)
0104 #define R_OVOLCTLU VIRT_ADDR(0x2, 0x6)
0105 #define R_MUTEC VIRT_ADDR(0x2, 0x7)
0106 #define R_MVOLL VIRT_ADDR(0x2, 0x8)
0107 #define R_MVOLR VIRT_ADDR(0x2, 0x9)
0108 #define R_HPVOLL VIRT_ADDR(0x2, 0x0A)
0109 #define R_HPVOLR VIRT_ADDR(0x2, 0x0B)
0110 #define R_SPKVOLL VIRT_ADDR(0x2, 0x0C)
0111 #define R_SPKVOLR VIRT_ADDR(0x2, 0x0D)
0112 #define R_SUBVOL VIRT_ADDR(0x2, 0x10)
0113 #define R_COP0 VIRT_ADDR(0x2, 0x11)
0114 #define R_COP1 VIRT_ADDR(0x2, 0x12)
0115 #define R_COPSTAT VIRT_ADDR(0x2, 0x13)
0116 #define R_PWM0 VIRT_ADDR(0x2, 0x14)
0117 #define R_PWM1 VIRT_ADDR(0x2, 0x15)
0118 #define R_PWM2 VIRT_ADDR(0x2, 0x16)
0119 #define R_PWM3 VIRT_ADDR(0x2, 0x17)
0120 #define R_HPSW VIRT_ADDR(0x2, 0x18)
0121 #define R_THERMTS VIRT_ADDR(0x2, 0x19)
0122 #define R_THERMSPK1 VIRT_ADDR(0x2, 0x1A)
0123 #define R_THERMSTAT VIRT_ADDR(0x2, 0x1B)
0124 #define R_SCSTAT VIRT_ADDR(0x2, 0x1C)
0125 #define R_SDMON VIRT_ADDR(0x2, 0x1D)
0126 #define R_SPKEQFILT VIRT_ADDR(0x3, 0x1)
0127 #define R_SPKCRWDL VIRT_ADDR(0x3, 0x2)
0128 #define R_SPKCRWDM VIRT_ADDR(0x3, 0x3)
0129 #define R_SPKCRWDH VIRT_ADDR(0x3, 0x4)
0130 #define R_SPKCRRDL VIRT_ADDR(0x3, 0x5)
0131 #define R_SPKCRRDM VIRT_ADDR(0x3, 0x6)
0132 #define R_SPKCRRDH VIRT_ADDR(0x3, 0x7)
0133 #define R_SPKCRADD VIRT_ADDR(0x3, 0x8)
0134 #define R_SPKCRS VIRT_ADDR(0x3, 0x9)
0135 #define R_SPKMBCEN VIRT_ADDR(0x3, 0x0A)
0136 #define R_SPKMBCCTL VIRT_ADDR(0x3, 0x0B)
0137 #define R_SPKMBCMUG1 VIRT_ADDR(0x3, 0x0C)
0138 #define R_SPKMBCTHR1 VIRT_ADDR(0x3, 0x0D)
0139 #define R_SPKMBCRAT1 VIRT_ADDR(0x3, 0x0E)
0140 #define R_SPKMBCATK1L VIRT_ADDR(0x3, 0x0F)
0141 #define R_SPKMBCATK1H VIRT_ADDR(0x3, 0x10)
0142 #define R_SPKMBCREL1L VIRT_ADDR(0x3, 0x11)
0143 #define R_SPKMBCREL1H VIRT_ADDR(0x3, 0x12)
0144 #define R_SPKMBCMUG2 VIRT_ADDR(0x3, 0x13)
0145 #define R_SPKMBCTHR2 VIRT_ADDR(0x3, 0x14)
0146 #define R_SPKMBCRAT2 VIRT_ADDR(0x3, 0x15)
0147 #define R_SPKMBCATK2L VIRT_ADDR(0x3, 0x16)
0148 #define R_SPKMBCATK2H VIRT_ADDR(0x3, 0x17)
0149 #define R_SPKMBCREL2L VIRT_ADDR(0x3, 0x18)
0150 #define R_SPKMBCREL2H VIRT_ADDR(0x3, 0x19)
0151 #define R_SPKMBCMUG3 VIRT_ADDR(0x3, 0x1A)
0152 #define R_SPKMBCTHR3 VIRT_ADDR(0x3, 0x1B)
0153 #define R_SPKMBCRAT3 VIRT_ADDR(0x3, 0x1C)
0154 #define R_SPKMBCATK3L VIRT_ADDR(0x3, 0x1D)
0155 #define R_SPKMBCATK3H VIRT_ADDR(0x3, 0x1E)
0156 #define R_SPKMBCREL3L VIRT_ADDR(0x3, 0x1F)
0157 #define R_SPKMBCREL3H VIRT_ADDR(0x3, 0x20)
0158 #define R_SPKCLECTL VIRT_ADDR(0x3, 0x21)
0159 #define R_SPKCLEMUG VIRT_ADDR(0x3, 0x22)
0160 #define R_SPKCOMPTHR VIRT_ADDR(0x3, 0x23)
0161 #define R_SPKCOMPRAT VIRT_ADDR(0x3, 0x24)
0162 #define R_SPKCOMPATKL VIRT_ADDR(0x3, 0x25)
0163 #define R_SPKCOMPATKH VIRT_ADDR(0x3, 0x26)
0164 #define R_SPKCOMPRELL VIRT_ADDR(0x3, 0x27)
0165 #define R_SPKCOMPRELH VIRT_ADDR(0x3, 0x28)
0166 #define R_SPKLIMTHR VIRT_ADDR(0x3, 0x29)
0167 #define R_SPKLIMTGT VIRT_ADDR(0x3, 0x2A)
0168 #define R_SPKLIMATKL VIRT_ADDR(0x3, 0x2B)
0169 #define R_SPKLIMATKH VIRT_ADDR(0x3, 0x2C)
0170 #define R_SPKLIMRELL VIRT_ADDR(0x3, 0x2D)
0171 #define R_SPKLIMRELH VIRT_ADDR(0x3, 0x2E)
0172 #define R_SPKEXPTHR VIRT_ADDR(0x3, 0x2F)
0173 #define R_SPKEXPRAT VIRT_ADDR(0x3, 0x30)
0174 #define R_SPKEXPATKL VIRT_ADDR(0x3, 0x31)
0175 #define R_SPKEXPATKH VIRT_ADDR(0x3, 0x32)
0176 #define R_SPKEXPRELL VIRT_ADDR(0x3, 0x33)
0177 #define R_SPKEXPRELH VIRT_ADDR(0x3, 0x34)
0178 #define R_SPKFXCTL VIRT_ADDR(0x3, 0x35)
0179 #define R_DACEQFILT VIRT_ADDR(0x4, 0x1)
0180 #define R_DACCRWDL VIRT_ADDR(0x4, 0x2)
0181 #define R_DACCRWDM VIRT_ADDR(0x4, 0x3)
0182 #define R_DACCRWDH VIRT_ADDR(0x4, 0x4)
0183 #define R_DACCRRDL VIRT_ADDR(0x4, 0x5)
0184 #define R_DACCRRDM VIRT_ADDR(0x4, 0x6)
0185 #define R_DACCRRDH VIRT_ADDR(0x4, 0x7)
0186 #define R_DACCRADD VIRT_ADDR(0x4, 0x8)
0187 #define R_DACCRS VIRT_ADDR(0x4, 0x9)
0188 #define R_DACMBCEN VIRT_ADDR(0x4, 0x0A)
0189 #define R_DACMBCCTL VIRT_ADDR(0x4, 0x0B)
0190 #define R_DACMBCMUG1 VIRT_ADDR(0x4, 0x0C)
0191 #define R_DACMBCTHR1 VIRT_ADDR(0x4, 0x0D)
0192 #define R_DACMBCRAT1 VIRT_ADDR(0x4, 0x0E)
0193 #define R_DACMBCATK1L VIRT_ADDR(0x4, 0x0F)
0194 #define R_DACMBCATK1H VIRT_ADDR(0x4, 0x10)
0195 #define R_DACMBCREL1L VIRT_ADDR(0x4, 0x11)
0196 #define R_DACMBCREL1H VIRT_ADDR(0x4, 0x12)
0197 #define R_DACMBCMUG2 VIRT_ADDR(0x4, 0x13)
0198 #define R_DACMBCTHR2 VIRT_ADDR(0x4, 0x14)
0199 #define R_DACMBCRAT2 VIRT_ADDR(0x4, 0x15)
0200 #define R_DACMBCATK2L VIRT_ADDR(0x4, 0x16)
0201 #define R_DACMBCATK2H VIRT_ADDR(0x4, 0x17)
0202 #define R_DACMBCREL2L VIRT_ADDR(0x4, 0x18)
0203 #define R_DACMBCREL2H VIRT_ADDR(0x4, 0x19)
0204 #define R_DACMBCMUG3 VIRT_ADDR(0x4, 0x1A)
0205 #define R_DACMBCTHR3 VIRT_ADDR(0x4, 0x1B)
0206 #define R_DACMBCRAT3 VIRT_ADDR(0x4, 0x1C)
0207 #define R_DACMBCATK3L VIRT_ADDR(0x4, 0x1D)
0208 #define R_DACMBCATK3H VIRT_ADDR(0x4, 0x1E)
0209 #define R_DACMBCREL3L VIRT_ADDR(0x4, 0x1F)
0210 #define R_DACMBCREL3H VIRT_ADDR(0x4, 0x20)
0211 #define R_DACCLECTL VIRT_ADDR(0x4, 0x21)
0212 #define R_DACCLEMUG VIRT_ADDR(0x4, 0x22)
0213 #define R_DACCOMPTHR VIRT_ADDR(0x4, 0x23)
0214 #define R_DACCOMPRAT VIRT_ADDR(0x4, 0x24)
0215 #define R_DACCOMPATKL VIRT_ADDR(0x4, 0x25)
0216 #define R_DACCOMPATKH VIRT_ADDR(0x4, 0x26)
0217 #define R_DACCOMPRELL VIRT_ADDR(0x4, 0x27)
0218 #define R_DACCOMPRELH VIRT_ADDR(0x4, 0x28)
0219 #define R_DACLIMTHR VIRT_ADDR(0x4, 0x29)
0220 #define R_DACLIMTGT VIRT_ADDR(0x4, 0x2A)
0221 #define R_DACLIMATKL VIRT_ADDR(0x4, 0x2B)
0222 #define R_DACLIMATKH VIRT_ADDR(0x4, 0x2C)
0223 #define R_DACLIMRELL VIRT_ADDR(0x4, 0x2D)
0224 #define R_DACLIMRELH VIRT_ADDR(0x4, 0x2E)
0225 #define R_DACEXPTHR VIRT_ADDR(0x4, 0x2F)
0226 #define R_DACEXPRAT VIRT_ADDR(0x4, 0x30)
0227 #define R_DACEXPATKL VIRT_ADDR(0x4, 0x31)
0228 #define R_DACEXPATKH VIRT_ADDR(0x4, 0x32)
0229 #define R_DACEXPRELL VIRT_ADDR(0x4, 0x33)
0230 #define R_DACEXPRELH VIRT_ADDR(0x4, 0x34)
0231 #define R_DACFXCTL VIRT_ADDR(0x4, 0x35)
0232 #define R_SUBEQFILT VIRT_ADDR(0x5, 0x1)
0233 #define R_SUBCRWDL VIRT_ADDR(0x5, 0x2)
0234 #define R_SUBCRWDM VIRT_ADDR(0x5, 0x3)
0235 #define R_SUBCRWDH VIRT_ADDR(0x5, 0x4)
0236 #define R_SUBCRRDL VIRT_ADDR(0x5, 0x5)
0237 #define R_SUBCRRDM VIRT_ADDR(0x5, 0x6)
0238 #define R_SUBCRRDH VIRT_ADDR(0x5, 0x7)
0239 #define R_SUBCRADD VIRT_ADDR(0x5, 0x8)
0240 #define R_SUBCRS VIRT_ADDR(0x5, 0x9)
0241 #define R_SUBMBCEN VIRT_ADDR(0x5, 0x0A)
0242 #define R_SUBMBCCTL VIRT_ADDR(0x5, 0x0B)
0243 #define R_SUBMBCMUG1 VIRT_ADDR(0x5, 0x0C)
0244 #define R_SUBMBCTHR1 VIRT_ADDR(0x5, 0x0D)
0245 #define R_SUBMBCRAT1 VIRT_ADDR(0x5, 0x0E)
0246 #define R_SUBMBCATK1L VIRT_ADDR(0x5, 0x0F)
0247 #define R_SUBMBCATK1H VIRT_ADDR(0x5, 0x10)
0248 #define R_SUBMBCREL1L VIRT_ADDR(0x5, 0x11)
0249 #define R_SUBMBCREL1H VIRT_ADDR(0x5, 0x12)
0250 #define R_SUBMBCMUG2 VIRT_ADDR(0x5, 0x13)
0251 #define R_SUBMBCTHR2 VIRT_ADDR(0x5, 0x14)
0252 #define R_SUBMBCRAT2 VIRT_ADDR(0x5, 0x15)
0253 #define R_SUBMBCATK2L VIRT_ADDR(0x5, 0x16)
0254 #define R_SUBMBCATK2H VIRT_ADDR(0x5, 0x17)
0255 #define R_SUBMBCREL2L VIRT_ADDR(0x5, 0x18)
0256 #define R_SUBMBCREL2H VIRT_ADDR(0x5, 0x19)
0257 #define R_SUBMBCMUG3 VIRT_ADDR(0x5, 0x1A)
0258 #define R_SUBMBCTHR3 VIRT_ADDR(0x5, 0x1B)
0259 #define R_SUBMBCRAT3 VIRT_ADDR(0x5, 0x1C)
0260 #define R_SUBMBCATK3L VIRT_ADDR(0x5, 0x1D)
0261 #define R_SUBMBCATK3H VIRT_ADDR(0x5, 0x1E)
0262 #define R_SUBMBCREL3L VIRT_ADDR(0x5, 0x1F)
0263 #define R_SUBMBCREL3H VIRT_ADDR(0x5, 0x20)
0264 #define R_SUBCLECTL VIRT_ADDR(0x5, 0x21)
0265 #define R_SUBCLEMUG VIRT_ADDR(0x5, 0x22)
0266 #define R_SUBCOMPTHR VIRT_ADDR(0x5, 0x23)
0267 #define R_SUBCOMPRAT VIRT_ADDR(0x5, 0x24)
0268 #define R_SUBCOMPATKL VIRT_ADDR(0x5, 0x25)
0269 #define R_SUBCOMPATKH VIRT_ADDR(0x5, 0x26)
0270 #define R_SUBCOMPRELL VIRT_ADDR(0x5, 0x27)
0271 #define R_SUBCOMPRELH VIRT_ADDR(0x5, 0x28)
0272 #define R_SUBLIMTHR VIRT_ADDR(0x5, 0x29)
0273 #define R_SUBLIMTGT VIRT_ADDR(0x5, 0x2A)
0274 #define R_SUBLIMATKL VIRT_ADDR(0x5, 0x2B)
0275 #define R_SUBLIMATKH VIRT_ADDR(0x5, 0x2C)
0276 #define R_SUBLIMRELL VIRT_ADDR(0x5, 0x2D)
0277 #define R_SUBLIMRELH VIRT_ADDR(0x5, 0x2E)
0278 #define R_SUBEXPTHR VIRT_ADDR(0x5, 0x2F)
0279 #define R_SUBEXPRAT VIRT_ADDR(0x5, 0x30)
0280 #define R_SUBEXPATKL VIRT_ADDR(0x5, 0x31)
0281 #define R_SUBEXPATKH VIRT_ADDR(0x5, 0x32)
0282 #define R_SUBEXPRELL VIRT_ADDR(0x5, 0x33)
0283 #define R_SUBEXPRELH VIRT_ADDR(0x5, 0x34)
0284 #define R_SUBFXCTL VIRT_ADDR(0x5, 0x35)
0285
0286
0287 #define FB_PLLCTL_VCCI_PLL 6
0288 #define FM_PLLCTL_VCCI_PLL 0xC0
0289
0290 #define FB_PLLCTL_RZ_PLL 3
0291 #define FM_PLLCTL_RZ_PLL 0x38
0292
0293 #define FB_PLLCTL_CP_PLL 0
0294 #define FM_PLLCTL_CP_PLL 0x7
0295
0296
0297 #define FB_PLLRDIV_REFDIV_PLL 0
0298 #define FM_PLLRDIV_REFDIV_PLL 0xFF
0299
0300
0301 #define FB_PLLODIV_OUTDIV_PLL 0
0302 #define FM_PLLODIV_OUTDIV_PLL 0xFF
0303
0304
0305 #define FB_PLLFDIVL_FBDIVL_PLL 0
0306 #define FM_PLLFDIVL_FBDIVL_PLL 0xFF
0307
0308
0309 #define FB_PLLFDIVH_FBDIVH_PLL 0
0310 #define FM_PLLFDIVH_FBDIVH_PLL 0xF
0311
0312
0313 #define FB_I2SPCTL_BCLKSTAT 7
0314 #define FM_I2SPCTL_BCLKSTAT 0x80
0315 #define FV_BCLKSTAT_LOST 0x80
0316 #define FV_BCLKSTAT_NOT_LOST 0x0
0317
0318 #define FB_I2SPCTL_BCLKP 6
0319 #define FM_I2SPCTL_BCLKP 0x40
0320 #define FV_BCLKP_NOT_INVERTED 0x0
0321 #define FV_BCLKP_INVERTED 0x40
0322
0323 #define FB_I2SPCTL_PORTMS 5
0324 #define FM_I2SPCTL_PORTMS 0x20
0325 #define FV_PORTMS_SLAVE 0x0
0326 #define FV_PORTMS_MASTER 0x20
0327
0328 #define FB_I2SPCTL_LRCLKP 4
0329 #define FM_I2SPCTL_LRCLKP 0x10
0330 #define FV_LRCLKP_NOT_INVERTED 0x0
0331 #define FV_LRCLKP_INVERTED 0x10
0332
0333 #define FB_I2SPCTL_WL 2
0334 #define FM_I2SPCTL_WL 0xC
0335 #define FV_WL_16 0x0
0336 #define FV_WL_20 0x4
0337 #define FV_WL_24 0x8
0338 #define FV_WL_32 0xC
0339
0340 #define FB_I2SPCTL_FORMAT 0
0341 #define FM_I2SPCTL_FORMAT 0x3
0342 #define FV_FORMAT_RIGHT 0x0
0343 #define FV_FORMAT_LEFT 0x1
0344 #define FV_FORMAT_I2S 0x2
0345 #define FV_FORMAT_TDM 0x3
0346
0347
0348 #define FB_I2SMRATE_I2SMCLKHALF 7
0349 #define FM_I2SMRATE_I2SMCLKHALF 0x80
0350 #define FV_I2SMCLKHALF_I2S1MCLKDIV_DIV_2 0x0
0351 #define FV_I2SMCLKHALF_I2S1MCLKDIV_ONLY 0x80
0352
0353 #define FB_I2SMRATE_I2SMCLKDIV 5
0354 #define FM_I2SMRATE_I2SMCLKDIV 0x60
0355 #define FV_I2SMCLKDIV_125 0x0
0356 #define FV_I2SMCLKDIV_128 0x20
0357 #define FV_I2SMCLKDIV_136 0x40
0358 #define FV_I2SMCLKDIV_192 0x60
0359
0360 #define FB_I2SMRATE_I2SMBR 3
0361 #define FM_I2SMRATE_I2SMBR 0x18
0362 #define FV_I2SMBR_32 0x0
0363 #define FV_I2SMBR_44PT1 0x8
0364 #define FV_I2SMBR_48 0x10
0365 #define FV_I2SMBR_MCLK_MODE 0x18
0366
0367 #define FB_I2SMRATE_I2SMBM 0
0368 #define FM_I2SMRATE_I2SMBM 0x3
0369 #define FV_I2SMBM_0PT25 0x0
0370 #define FV_I2SMBM_0PT5 0x1
0371 #define FV_I2SMBM_1 0x2
0372 #define FV_I2SMBM_2 0x3
0373
0374
0375 #define FB_PCMPCTL0_PCMFLENP 2
0376 #define FM_PCMPCTL0_PCMFLENP 0x4
0377 #define FV_PCMFLENP_128 0x0
0378 #define FV_PCMFLENP_256 0x4
0379
0380 #define FB_PCMPCTL0_SLSYNCP 1
0381 #define FM_PCMPCTL0_SLSYNCP 0x2
0382 #define FV_SLSYNCP_SHORT 0x0
0383 #define FV_SLSYNCP_LONG 0x2
0384
0385 #define FB_PCMPCTL0_BDELAYP 0
0386 #define FM_PCMPCTL0_BDELAYP 0x1
0387 #define FV_BDELAYP_NO_DELAY 0x0
0388 #define FV_BDELAYP_1BCLK_DELAY 0x1
0389
0390
0391 #define FB_PCMPCTL1_PCMMOMP 6
0392 #define FM_PCMPCTL1_PCMMOMP 0x40
0393
0394 #define FB_PCMPCTL1_PCMSOP 5
0395 #define FM_PCMPCTL1_PCMSOP 0x20
0396 #define FV_PCMSOP_1 0x0
0397 #define FV_PCMSOP_2 0x20
0398
0399 #define FB_PCMPCTL1_PCMDSSP 3
0400 #define FM_PCMPCTL1_PCMDSSP 0x18
0401 #define FV_PCMDSSP_16 0x0
0402 #define FV_PCMDSSP_24 0x8
0403 #define FV_PCMDSSP_32 0x10
0404
0405 #define FB_PCMPCTL1_PCMMIMP 1
0406 #define FM_PCMPCTL1_PCMMIMP 0x2
0407
0408 #define FB_PCMPCTL1_PCMSIP 0
0409 #define FM_PCMPCTL1_PCMSIP 0x1
0410 #define FV_PCMSIP_1 0x0
0411 #define FV_PCMSIP_2 0x1
0412
0413
0414 #define FB_CHAIC_MICBST 4
0415 #define FM_CHAIC_MICBST 0x30
0416
0417
0418 #define FB_PGACTL_PGAMUTE 7
0419 #define FM_PGACTL_PGAMUTE 0x80
0420
0421 #define FB_PGACTL_PGAVOL 0
0422 #define FM_PGACTL_PGAVOL 0x3F
0423
0424
0425 #define FB_ICHVOL_ICHVOL 0
0426 #define FM_ICHVOL_ICHVOL 0xFF
0427
0428
0429 #define FB_SPKMBCMUG_PHASE 5
0430 #define FM_SPKMBCMUG_PHASE 0x20
0431
0432 #define FB_SPKMBCMUG_MUGAIN 0
0433 #define FM_SPKMBCMUG_MUGAIN 0x1F
0434
0435
0436 #define FB_SPKMBCTHR_THRESH 0
0437 #define FM_SPKMBCTHR_THRESH 0xFF
0438
0439
0440 #define FB_SPKMBCRAT_RATIO 0
0441 #define FM_SPKMBCRAT_RATIO 0x1F
0442
0443
0444 #define FB_SPKMBCATKL_TCATKL 0
0445 #define FM_SPKMBCATKL_TCATKL 0xFF
0446
0447
0448 #define FB_SPKMBCATKH_TCATKH 0
0449 #define FM_SPKMBCATKH_TCATKH 0xFF
0450
0451
0452 #define FB_SPKMBCRELL_TCRELL 0
0453 #define FM_SPKMBCRELL_TCRELL 0xFF
0454
0455
0456 #define FB_SPKMBCRELH_TCRELH 0
0457 #define FM_SPKMBCRELH_TCRELH 0xFF
0458
0459
0460 #define FB_DACMBCMUG_PHASE 5
0461 #define FM_DACMBCMUG_PHASE 0x20
0462
0463 #define FB_DACMBCMUG_MUGAIN 0
0464 #define FM_DACMBCMUG_MUGAIN 0x1F
0465
0466
0467 #define FB_DACMBCTHR_THRESH 0
0468 #define FM_DACMBCTHR_THRESH 0xFF
0469
0470
0471 #define FB_DACMBCRAT_RATIO 0
0472 #define FM_DACMBCRAT_RATIO 0x1F
0473
0474
0475 #define FB_DACMBCATKL_TCATKL 0
0476 #define FM_DACMBCATKL_TCATKL 0xFF
0477
0478
0479 #define FB_DACMBCATKH_TCATKH 0
0480 #define FM_DACMBCATKH_TCATKH 0xFF
0481
0482
0483 #define FB_DACMBCRELL_TCRELL 0
0484 #define FM_DACMBCRELL_TCRELL 0xFF
0485
0486
0487 #define FB_DACMBCRELH_TCRELH 0
0488 #define FM_DACMBCRELH_TCRELH 0xFF
0489
0490
0491 #define FB_SUBMBCMUG_PHASE 5
0492 #define FM_SUBMBCMUG_PHASE 0x20
0493
0494 #define FB_SUBMBCMUG_MUGAIN 0
0495 #define FM_SUBMBCMUG_MUGAIN 0x1F
0496
0497
0498 #define FB_SUBMBCTHR_THRESH 0
0499 #define FM_SUBMBCTHR_THRESH 0xFF
0500
0501
0502 #define FB_SUBMBCRAT_RATIO 0
0503 #define FM_SUBMBCRAT_RATIO 0x1F
0504
0505
0506 #define FB_SUBMBCATKL_TCATKL 0
0507 #define FM_SUBMBCATKL_TCATKL 0xFF
0508
0509
0510 #define FB_SUBMBCATKH_TCATKH 0
0511 #define FM_SUBMBCATKH_TCATKH 0xFF
0512
0513
0514 #define FB_SUBMBCRELL_TCRELL 0
0515 #define FM_SUBMBCRELL_TCRELL 0xFF
0516
0517
0518 #define FB_SUBMBCRELH_TCRELH 0
0519 #define FM_SUBMBCRELH_TCRELH 0xFF
0520
0521
0522 #define FB_PAGESEL_PAGESEL 0
0523 #define FM_PAGESEL_PAGESEL 0xFF
0524
0525
0526 #define FB_RESET_RESET 0
0527 #define FM_RESET_RESET 0xFF
0528 #define FV_RESET_PWR_ON_DEFAULTS 0x85
0529
0530
0531 #define FB_IRQEN_THRMINTEN 6
0532 #define FM_IRQEN_THRMINTEN 0x40
0533 #define FV_THRMINTEN_ENABLED 0x40
0534 #define FV_THRMINTEN_DISABLED 0x0
0535
0536 #define FB_IRQEN_HBPINTEN 5
0537 #define FM_IRQEN_HBPINTEN 0x20
0538 #define FV_HBPINTEN_ENABLED 0x20
0539 #define FV_HBPINTEN_DISABLED 0x0
0540
0541 #define FB_IRQEN_HSDINTEN 4
0542 #define FM_IRQEN_HSDINTEN 0x10
0543 #define FV_HSDINTEN_ENABLED 0x10
0544 #define FV_HSDINTEN_DISABLED 0x0
0545
0546 #define FB_IRQEN_HPDINTEN 3
0547 #define FM_IRQEN_HPDINTEN 0x8
0548 #define FV_HPDINTEN_ENABLED 0x8
0549 #define FV_HPDINTEN_DISABLED 0x0
0550
0551 #define FB_IRQEN_GPIO3INTEN 1
0552 #define FM_IRQEN_GPIO3INTEN 0x2
0553 #define FV_GPIO3INTEN_ENABLED 0x2
0554 #define FV_GPIO3INTEN_DISABLED 0x0
0555
0556 #define FB_IRQEN_GPIO2INTEN 0
0557 #define FM_IRQEN_GPIO2INTEN 0x1
0558 #define FV_GPIO2INTEN_ENABLED 0x1
0559 #define FV_GPIO2INTEN_DISABLED 0x0
0560
0561 #define IRQEN_GPIOINTEN_ENABLED 0x1
0562 #define IRQEN_GPIOINTEN_DISABLED 0x0
0563
0564
0565 #define FB_IRQMASK_THRMIM 6
0566 #define FM_IRQMASK_THRMIM 0x40
0567 #define FV_THRMIM_MASKED 0x0
0568 #define FV_THRMIM_NOT_MASKED 0x40
0569
0570 #define FB_IRQMASK_HBPIM 5
0571 #define FM_IRQMASK_HBPIM 0x20
0572 #define FV_HBPIM_MASKED 0x0
0573 #define FV_HBPIM_NOT_MASKED 0x20
0574
0575 #define FB_IRQMASK_HSDIM 4
0576 #define FM_IRQMASK_HSDIM 0x10
0577 #define FV_HSDIM_MASKED 0x0
0578 #define FV_HSDIM_NOT_MASKED 0x10
0579
0580 #define FB_IRQMASK_HPDIM 3
0581 #define FM_IRQMASK_HPDIM 0x8
0582 #define FV_HPDIM_MASKED 0x0
0583 #define FV_HPDIM_NOT_MASKED 0x8
0584
0585 #define FB_IRQMASK_GPIO3M 1
0586 #define FM_IRQMASK_GPIO3M 0x2
0587 #define FV_GPIO3M_MASKED 0x0
0588 #define FV_GPIO3M_NOT_MASKED 0x2
0589
0590 #define FB_IRQMASK_GPIO2M 0
0591 #define FM_IRQMASK_GPIO2M 0x1
0592 #define FV_GPIO2M_MASKED 0x0
0593 #define FV_GPIO2M_NOT_MASKED 0x1
0594
0595 #define IRQMASK_GPIOM_MASKED 0x0
0596 #define IRQMASK_GPIOM_NOT_MASKED 0x1
0597
0598
0599 #define FB_IRQSTAT_THRMINT 6
0600 #define FM_IRQSTAT_THRMINT 0x40
0601 #define FV_THRMINT_INTERRUPTED 0x40
0602 #define FV_THRMINT_NOT_INTERRUPTED 0x0
0603
0604 #define FB_IRQSTAT_HBPINT 5
0605 #define FM_IRQSTAT_HBPINT 0x20
0606 #define FV_HBPINT_INTERRUPTED 0x20
0607 #define FV_HBPINT_NOT_INTERRUPTED 0x0
0608
0609 #define FB_IRQSTAT_HSDINT 4
0610 #define FM_IRQSTAT_HSDINT 0x10
0611 #define FV_HSDINT_INTERRUPTED 0x10
0612 #define FV_HSDINT_NOT_INTERRUPTED 0x0
0613
0614 #define FB_IRQSTAT_HPDINT 3
0615 #define FM_IRQSTAT_HPDINT 0x8
0616 #define FV_HPDINT_INTERRUPTED 0x8
0617 #define FV_HPDINT_NOT_INTERRUPTED 0x0
0618
0619 #define FB_IRQSTAT_GPIO3INT 1
0620 #define FM_IRQSTAT_GPIO3INT 0x2
0621 #define FV_GPIO3INT_INTERRUPTED 0x2
0622 #define FV_GPIO3INT_NOT_INTERRUPTED 0x0
0623
0624 #define FB_IRQSTAT_GPIO2INT 0
0625 #define FM_IRQSTAT_GPIO2INT 0x1
0626 #define FV_GPIO2INT_INTERRUPTED 0x1
0627 #define FV_GPIO2INT_NOT_INTERRUPTED 0x0
0628
0629 #define IRQSTAT_GPIOINT_INTERRUPTED 0x1
0630 #define IRQSTAT_GPIOINT_NOT_INTERRUPTED 0x0
0631
0632
0633 #define FB_DEVADD0_DEVADD0 1
0634 #define FM_DEVADD0_DEVADD0 0xFE
0635
0636 #define FB_DEVADD0_I2C_ADDRLK 0
0637 #define FM_DEVADD0_I2C_ADDRLK 0x1
0638 #define FV_I2C_ADDRLK_LOCK 0x1
0639
0640
0641 #define FB_DEVID_DEV_ID 0
0642 #define FM_DEVID_DEV_ID 0xFF
0643
0644
0645 #define FB_DEVREV_MAJ_REV 4
0646 #define FM_DEVREV_MAJ_REV 0xF0
0647
0648 #define FB_DEVREV_MIN_REV 0
0649 #define FM_DEVREV_MIN_REV 0xF
0650
0651
0652 #define FB_PLLSTAT_PLL2LK 1
0653 #define FM_PLLSTAT_PLL2LK 0x2
0654 #define FV_PLL2LK_LOCKED 0x2
0655 #define FV_PLL2LK_UNLOCKED 0x0
0656
0657 #define FB_PLLSTAT_PLL1LK 0
0658 #define FM_PLLSTAT_PLL1LK 0x1
0659 #define FV_PLL1LK_LOCKED 0x1
0660 #define FV_PLL1LK_UNLOCKED 0x0
0661
0662 #define PLLSTAT_PLLLK_LOCKED 0x1
0663 #define PLLSTAT_PLLLK_UNLOCKED 0x0
0664
0665
0666 #define FB_PLLCTL_PU_PLL2 7
0667 #define FM_PLLCTL_PU_PLL2 0x80
0668 #define FV_PU_PLL2_PWR_UP 0x80
0669 #define FV_PU_PLL2_PWR_DWN 0x0
0670
0671 #define FB_PLLCTL_PU_PLL1 6
0672 #define FM_PLLCTL_PU_PLL1 0x40
0673 #define FV_PU_PLL1_PWR_UP 0x40
0674 #define FV_PU_PLL1_PWR_DWN 0x0
0675
0676 #define FB_PLLCTL_PLL2CLKEN 5
0677 #define FM_PLLCTL_PLL2CLKEN 0x20
0678 #define FV_PLL2CLKEN_ENABLE 0x20
0679 #define FV_PLL2CLKEN_DISABLE 0x0
0680
0681 #define FB_PLLCTL_PLL1CLKEN 4
0682 #define FM_PLLCTL_PLL1CLKEN 0x10
0683 #define FV_PLL1CLKEN_ENABLE 0x10
0684 #define FV_PLL1CLKEN_DISABLE 0x0
0685
0686 #define FB_PLLCTL_BCLKSEL 2
0687 #define FM_PLLCTL_BCLKSEL 0xC
0688 #define FV_BCLKSEL_BCLK1 0x0
0689 #define FV_BCLKSEL_BCLK2 0x4
0690 #define FV_BCLKSEL_BCLK3 0x8
0691
0692 #define FB_PLLCTL_PLLISEL 0
0693 #define FM_PLLCTL_PLLISEL 0x3
0694 #define FV_PLLISEL_XTAL 0x0
0695 #define FV_PLLISEL_MCLK1 0x1
0696 #define FV_PLLISEL_MCLK2 0x2
0697 #define FV_PLLISEL_BCLK 0x3
0698
0699 #define PLLCTL_PU_PLL_PWR_UP 0x1
0700 #define PLLCTL_PU_PLL_PWR_DWN 0x0
0701 #define PLLCTL_PLLCLKEN_ENABLE 0x1
0702 #define PLLCTL_PLLCLKEN_DISABLE 0x0
0703
0704
0705 #define FB_ISRC_IBR 2
0706 #define FM_ISRC_IBR 0x4
0707 #define FV_IBR_44PT1 0x0
0708 #define FV_IBR_48 0x4
0709
0710 #define FB_ISRC_IBM 0
0711 #define FM_ISRC_IBM 0x3
0712 #define FV_IBM_0PT25 0x0
0713 #define FV_IBM_0PT5 0x1
0714 #define FV_IBM_1 0x2
0715 #define FV_IBM_2 0x3
0716
0717
0718 #define FB_SCLKCTL_ASDM 6
0719 #define FM_SCLKCTL_ASDM 0xC0
0720 #define FV_ASDM_HALF 0x40
0721 #define FV_ASDM_FULL 0x80
0722 #define FV_ASDM_AUTO 0xC0
0723
0724 #define FB_SCLKCTL_DSDM 4
0725 #define FM_SCLKCTL_DSDM 0x30
0726 #define FV_DSDM_HALF 0x10
0727 #define FV_DSDM_FULL 0x20
0728 #define FV_DSDM_AUTO 0x30
0729
0730
0731 #define FB_TIMEBASE_TIMEBASE 0
0732 #define FM_TIMEBASE_TIMEBASE 0xFF
0733
0734
0735 #define FB_I2SCMC_BCMP3 4
0736 #define FM_I2SCMC_BCMP3 0x30
0737 #define FV_BCMP3_AUTO 0x0
0738 #define FV_BCMP3_32X 0x10
0739 #define FV_BCMP3_40X 0x20
0740 #define FV_BCMP3_64X 0x30
0741
0742 #define FB_I2SCMC_BCMP2 2
0743 #define FM_I2SCMC_BCMP2 0xC
0744 #define FV_BCMP2_AUTO 0x0
0745 #define FV_BCMP2_32X 0x4
0746 #define FV_BCMP2_40X 0x8
0747 #define FV_BCMP2_64X 0xC
0748
0749 #define FB_I2SCMC_BCMP1 0
0750 #define FM_I2SCMC_BCMP1 0x3
0751 #define FV_BCMP1_AUTO 0x0
0752 #define FV_BCMP1_32X 0x1
0753 #define FV_BCMP1_40X 0x2
0754 #define FV_BCMP1_64X 0x3
0755
0756 #define I2SCMC_BCMP_AUTO 0x0
0757 #define I2SCMC_BCMP_32X 0x1
0758 #define I2SCMC_BCMP_40X 0x2
0759 #define I2SCMC_BCMP_64X 0x3
0760
0761
0762 #define FB_MCLK2PINC_SLEWOUT 4
0763 #define FM_MCLK2PINC_SLEWOUT 0xF0
0764
0765 #define FB_MCLK2PINC_MCLK2IO 2
0766 #define FM_MCLK2PINC_MCLK2IO 0x4
0767 #define FV_MCLK2IO_INPUT 0x0
0768 #define FV_MCLK2IO_OUTPUT 0x4
0769
0770 #define FB_MCLK2PINC_MCLK2OS 0
0771 #define FM_MCLK2PINC_MCLK2OS 0x3
0772 #define FV_MCLK2OS_24PT576 0x0
0773 #define FV_MCLK2OS_22PT5792 0x1
0774 #define FV_MCLK2OS_PLL2 0x2
0775
0776
0777 #define FB_I2SPINC0_SDO3TRI 7
0778 #define FM_I2SPINC0_SDO3TRI 0x80
0779
0780 #define FB_I2SPINC0_SDO2TRI 6
0781 #define FM_I2SPINC0_SDO2TRI 0x40
0782
0783 #define FB_I2SPINC0_SDO1TRI 5
0784 #define FM_I2SPINC0_SDO1TRI 0x20
0785
0786 #define FB_I2SPINC0_PCM3TRI 2
0787 #define FM_I2SPINC0_PCM3TRI 0x4
0788
0789 #define FB_I2SPINC0_PCM2TRI 1
0790 #define FM_I2SPINC0_PCM2TRI 0x2
0791
0792 #define FB_I2SPINC0_PCM1TRI 0
0793 #define FM_I2SPINC0_PCM1TRI 0x1
0794
0795
0796 #define FB_I2SPINC1_SDO3PDD 2
0797 #define FM_I2SPINC1_SDO3PDD 0x4
0798
0799 #define FB_I2SPINC1_SDO2PDD 1
0800 #define FM_I2SPINC1_SDO2PDD 0x2
0801
0802 #define FB_I2SPINC1_SDO1PDD 0
0803 #define FM_I2SPINC1_SDO1PDD 0x1
0804
0805
0806 #define FB_I2SPINC2_LR3PDD 5
0807 #define FM_I2SPINC2_LR3PDD 0x20
0808
0809 #define FB_I2SPINC2_BC3PDD 4
0810 #define FM_I2SPINC2_BC3PDD 0x10
0811
0812 #define FB_I2SPINC2_LR2PDD 3
0813 #define FM_I2SPINC2_LR2PDD 0x8
0814
0815 #define FB_I2SPINC2_BC2PDD 2
0816 #define FM_I2SPINC2_BC2PDD 0x4
0817
0818 #define FB_I2SPINC2_LR1PDD 1
0819 #define FM_I2SPINC2_LR1PDD 0x2
0820
0821 #define FB_I2SPINC2_BC1PDD 0
0822 #define FM_I2SPINC2_BC1PDD 0x1
0823
0824
0825 #define FB_GPIOCTL0_GPIO3INTP 7
0826 #define FM_GPIOCTL0_GPIO3INTP 0x80
0827
0828 #define FB_GPIOCTL0_GPIO2INTP 6
0829 #define FM_GPIOCTL0_GPIO2INTP 0x40
0830
0831 #define FB_GPIOCTL0_GPIO3CFG 5
0832 #define FM_GPIOCTL0_GPIO3CFG 0x20
0833
0834 #define FB_GPIOCTL0_GPIO2CFG 4
0835 #define FM_GPIOCTL0_GPIO2CFG 0x10
0836
0837 #define FB_GPIOCTL0_GPIO3IO 3
0838 #define FM_GPIOCTL0_GPIO3IO 0x8
0839
0840 #define FB_GPIOCTL0_GPIO2IO 2
0841 #define FM_GPIOCTL0_GPIO2IO 0x4
0842
0843 #define FB_GPIOCTL0_GPIO1IO 1
0844 #define FM_GPIOCTL0_GPIO1IO 0x2
0845
0846 #define FB_GPIOCTL0_GPIO0IO 0
0847 #define FM_GPIOCTL0_GPIO0IO 0x1
0848
0849
0850 #define FB_GPIOCTL1_GPIO3 7
0851 #define FM_GPIOCTL1_GPIO3 0x80
0852
0853 #define FB_GPIOCTL1_GPIO2 6
0854 #define FM_GPIOCTL1_GPIO2 0x40
0855
0856 #define FB_GPIOCTL1_GPIO1 5
0857 #define FM_GPIOCTL1_GPIO1 0x20
0858
0859 #define FB_GPIOCTL1_GPIO0 4
0860 #define FM_GPIOCTL1_GPIO0 0x10
0861
0862 #define FB_GPIOCTL1_GPIO3RD 3
0863 #define FM_GPIOCTL1_GPIO3RD 0x8
0864
0865 #define FB_GPIOCTL1_GPIO2RD 2
0866 #define FM_GPIOCTL1_GPIO2RD 0x4
0867
0868 #define FB_GPIOCTL1_GPIO1RD 1
0869 #define FM_GPIOCTL1_GPIO1RD 0x2
0870
0871 #define FB_GPIOCTL1_GPIO0RD 0
0872 #define FM_GPIOCTL1_GPIO0RD 0x1
0873
0874
0875 #define FB_ASRC_ASRCOBW 7
0876 #define FM_ASRC_ASRCOBW 0x80
0877
0878 #define FB_ASRC_ASRCIBW 6
0879 #define FM_ASRC_ASRCIBW 0x40
0880
0881 #define FB_ASRC_ASRCOB 5
0882 #define FM_ASRC_ASRCOB 0x20
0883 #define FV_ASRCOB_ACTIVE 0x0
0884 #define FV_ASRCOB_BYPASSED 0x20
0885
0886 #define FB_ASRC_ASRCIB 4
0887 #define FM_ASRC_ASRCIB 0x10
0888 #define FV_ASRCIB_ACTIVE 0x0
0889 #define FV_ASRCIB_BYPASSED 0x10
0890
0891 #define FB_ASRC_ASRCOL 3
0892 #define FM_ASRC_ASRCOL 0x8
0893
0894 #define FB_ASRC_ASRCIL 2
0895 #define FM_ASRC_ASRCIL 0x4
0896
0897
0898 #define FB_TDMCTL0_TDMMD 2
0899 #define FM_TDMCTL0_TDMMD 0x4
0900 #define FV_TDMMD_200 0x0
0901 #define FV_TDMMD_256 0x4
0902
0903 #define FB_TDMCTL0_SLSYNC 1
0904 #define FM_TDMCTL0_SLSYNC 0x2
0905 #define FV_SLSYNC_SHORT 0x0
0906 #define FV_SLSYNC_LONG 0x2
0907
0908 #define FB_TDMCTL0_BDELAY 0
0909 #define FM_TDMCTL0_BDELAY 0x1
0910 #define FV_BDELAY_NO_DELAY 0x0
0911 #define FV_BDELAY_1BCLK_DELAY 0x1
0912
0913
0914 #define FB_TDMCTL1_TDMSO 5
0915 #define FM_TDMCTL1_TDMSO 0x60
0916 #define FV_TDMSO_2 0x0
0917 #define FV_TDMSO_4 0x20
0918 #define FV_TDMSO_6 0x40
0919
0920 #define FB_TDMCTL1_TDMDSS 3
0921 #define FM_TDMCTL1_TDMDSS 0x18
0922 #define FV_TDMDSS_16 0x0
0923 #define FV_TDMDSS_24 0x10
0924 #define FV_TDMDSS_32 0x18
0925
0926 #define FB_TDMCTL1_TDMSI 0
0927 #define FM_TDMCTL1_TDMSI 0x3
0928 #define FV_TDMSI_2 0x0
0929 #define FV_TDMSI_4 0x1
0930 #define FV_TDMSI_6 0x2
0931
0932
0933 #define FB_PWRM0_INPROC3PU 6
0934 #define FM_PWRM0_INPROC3PU 0x40
0935
0936 #define FB_PWRM0_INPROC2PU 5
0937 #define FM_PWRM0_INPROC2PU 0x20
0938
0939 #define FB_PWRM0_INPROC1PU 4
0940 #define FM_PWRM0_INPROC1PU 0x10
0941
0942 #define FB_PWRM0_INPROC0PU 3
0943 #define FM_PWRM0_INPROC0PU 0x8
0944
0945 #define FB_PWRM0_MICB2PU 2
0946 #define FM_PWRM0_MICB2PU 0x4
0947
0948 #define FB_PWRM0_MICB1PU 1
0949 #define FM_PWRM0_MICB1PU 0x2
0950
0951 #define FB_PWRM0_MCLKPEN 0
0952 #define FM_PWRM0_MCLKPEN 0x1
0953
0954
0955 #define FB_PWRM1_SUBPU 7
0956 #define FM_PWRM1_SUBPU 0x80
0957
0958 #define FB_PWRM1_HPLPU 6
0959 #define FM_PWRM1_HPLPU 0x40
0960
0961 #define FB_PWRM1_HPRPU 5
0962 #define FM_PWRM1_HPRPU 0x20
0963
0964 #define FB_PWRM1_SPKLPU 4
0965 #define FM_PWRM1_SPKLPU 0x10
0966
0967 #define FB_PWRM1_SPKRPU 3
0968 #define FM_PWRM1_SPKRPU 0x8
0969
0970 #define FB_PWRM1_D2S2PU 2
0971 #define FM_PWRM1_D2S2PU 0x4
0972
0973 #define FB_PWRM1_D2S1PU 1
0974 #define FM_PWRM1_D2S1PU 0x2
0975
0976 #define FB_PWRM1_VREFPU 0
0977 #define FM_PWRM1_VREFPU 0x1
0978
0979
0980 #define FB_PWRM2_I2S3OPU 5
0981 #define FM_PWRM2_I2S3OPU 0x20
0982 #define FV_I2S3OPU_PWR_DOWN 0x0
0983 #define FV_I2S3OPU_PWR_UP 0x20
0984
0985 #define FB_PWRM2_I2S2OPU 4
0986 #define FM_PWRM2_I2S2OPU 0x10
0987 #define FV_I2S2OPU_PWR_DOWN 0x0
0988 #define FV_I2S2OPU_PWR_UP 0x10
0989
0990 #define FB_PWRM2_I2S1OPU 3
0991 #define FM_PWRM2_I2S1OPU 0x8
0992 #define FV_I2S1OPU_PWR_DOWN 0x0
0993 #define FV_I2S1OPU_PWR_UP 0x8
0994
0995 #define FB_PWRM2_I2S3IPU 2
0996 #define FM_PWRM2_I2S3IPU 0x4
0997 #define FV_I2S3IPU_PWR_DOWN 0x0
0998 #define FV_I2S3IPU_PWR_UP 0x4
0999
1000 #define FB_PWRM2_I2S2IPU 1
1001 #define FM_PWRM2_I2S2IPU 0x2
1002 #define FV_I2S2IPU_PWR_DOWN 0x0
1003 #define FV_I2S2IPU_PWR_UP 0x2
1004
1005 #define FB_PWRM2_I2S1IPU 0
1006 #define FM_PWRM2_I2S1IPU 0x1
1007 #define FV_I2S1IPU_PWR_DOWN 0x0
1008 #define FV_I2S1IPU_PWR_UP 0x1
1009
1010 #define PWRM2_I2SOPU_PWR_DOWN 0x0
1011 #define PWRM2_I2SOPU_PWR_UP 0x1
1012 #define PWRM2_I2SIPU_PWR_DOWN 0x0
1013 #define PWRM2_I2SIPU_PWR_UP 0x1
1014
1015
1016 #define FB_PWRM3_BGSBUP 6
1017 #define FM_PWRM3_BGSBUP 0x40
1018 #define FV_BGSBUP_ON 0x0
1019 #define FV_BGSBUP_OFF 0x40
1020
1021 #define FB_PWRM3_VGBAPU 5
1022 #define FM_PWRM3_VGBAPU 0x20
1023 #define FV_VGBAPU_ON 0x0
1024 #define FV_VGBAPU_OFF 0x20
1025
1026 #define FB_PWRM3_LLINEPU 4
1027 #define FM_PWRM3_LLINEPU 0x10
1028
1029 #define FB_PWRM3_RLINEPU 3
1030 #define FM_PWRM3_RLINEPU 0x8
1031
1032
1033 #define FB_PWRM4_OPSUBPU 4
1034 #define FM_PWRM4_OPSUBPU 0x10
1035
1036 #define FB_PWRM4_OPDACLPU 3
1037 #define FM_PWRM4_OPDACLPU 0x8
1038
1039 #define FB_PWRM4_OPDACRPU 2
1040 #define FM_PWRM4_OPDACRPU 0x4
1041
1042 #define FB_PWRM4_OPSPKLPU 1
1043 #define FM_PWRM4_OPSPKLPU 0x2
1044
1045 #define FB_PWRM4_OPSPKRPU 0
1046 #define FM_PWRM4_OPSPKRPU 0x1
1047
1048
1049 #define FB_I2SIDCTL_I2SI3DCTL 4
1050 #define FM_I2SIDCTL_I2SI3DCTL 0x30
1051
1052 #define FB_I2SIDCTL_I2SI2DCTL 2
1053 #define FM_I2SIDCTL_I2SI2DCTL 0xC
1054
1055 #define FB_I2SIDCTL_I2SI1DCTL 0
1056 #define FM_I2SIDCTL_I2SI1DCTL 0x3
1057
1058
1059 #define FB_I2SODCTL_I2SO3DCTL 4
1060 #define FM_I2SODCTL_I2SO3DCTL 0x30
1061
1062 #define FB_I2SODCTL_I2SO2DCTL 2
1063 #define FM_I2SODCTL_I2SO2DCTL 0xC
1064
1065 #define FB_I2SODCTL_I2SO1DCTL 0
1066 #define FM_I2SODCTL_I2SO1DCTL 0x3
1067
1068
1069 #define FB_AUDIOMUX1_ASRCIMUX 6
1070 #define FM_AUDIOMUX1_ASRCIMUX 0xC0
1071 #define FV_ASRCIMUX_NONE 0x0
1072 #define FV_ASRCIMUX_I2S1 0x40
1073 #define FV_ASRCIMUX_I2S2 0x80
1074 #define FV_ASRCIMUX_I2S3 0xC0
1075
1076 #define FB_AUDIOMUX1_I2S2MUX 3
1077 #define FM_AUDIOMUX1_I2S2MUX 0x38
1078 #define FV_I2S2MUX_I2S1 0x0
1079 #define FV_I2S2MUX_I2S2 0x8
1080 #define FV_I2S2MUX_I2S3 0x10
1081 #define FV_I2S2MUX_ADC_DMIC 0x18
1082 #define FV_I2S2MUX_DMIC2 0x20
1083 #define FV_I2S2MUX_CLASSD_DSP 0x28
1084 #define FV_I2S2MUX_DAC_DSP 0x30
1085 #define FV_I2S2MUX_SUB_DSP 0x38
1086
1087 #define FB_AUDIOMUX1_I2S1MUX 0
1088 #define FM_AUDIOMUX1_I2S1MUX 0x7
1089 #define FV_I2S1MUX_I2S1 0x0
1090 #define FV_I2S1MUX_I2S2 0x1
1091 #define FV_I2S1MUX_I2S3 0x2
1092 #define FV_I2S1MUX_ADC_DMIC 0x3
1093 #define FV_I2S1MUX_DMIC2 0x4
1094 #define FV_I2S1MUX_CLASSD_DSP 0x5
1095 #define FV_I2S1MUX_DAC_DSP 0x6
1096 #define FV_I2S1MUX_SUB_DSP 0x7
1097
1098 #define AUDIOMUX1_I2SMUX_I2S1 0x0
1099 #define AUDIOMUX1_I2SMUX_I2S2 0x1
1100 #define AUDIOMUX1_I2SMUX_I2S3 0x2
1101 #define AUDIOMUX1_I2SMUX_ADC_DMIC 0x3
1102 #define AUDIOMUX1_I2SMUX_DMIC2 0x4
1103 #define AUDIOMUX1_I2SMUX_CLASSD_DSP 0x5
1104 #define AUDIOMUX1_I2SMUX_DAC_DSP 0x6
1105 #define AUDIOMUX1_I2SMUX_SUB_DSP 0x7
1106
1107
1108 #define FB_AUDIOMUX2_ASRCOMUX 6
1109 #define FM_AUDIOMUX2_ASRCOMUX 0xC0
1110 #define FV_ASRCOMUX_NONE 0x0
1111 #define FV_ASRCOMUX_I2S1 0x40
1112 #define FV_ASRCOMUX_I2S2 0x80
1113 #define FV_ASRCOMUX_I2S3 0xC0
1114
1115 #define FB_AUDIOMUX2_DACMUX 3
1116 #define FM_AUDIOMUX2_DACMUX 0x38
1117 #define FV_DACMUX_I2S1 0x0
1118 #define FV_DACMUX_I2S2 0x8
1119 #define FV_DACMUX_I2S3 0x10
1120 #define FV_DACMUX_ADC_DMIC 0x18
1121 #define FV_DACMUX_DMIC2 0x20
1122 #define FV_DACMUX_CLASSD_DSP 0x28
1123 #define FV_DACMUX_DAC_DSP 0x30
1124 #define FV_DACMUX_SUB_DSP 0x38
1125
1126 #define FB_AUDIOMUX2_I2S3MUX 0
1127 #define FM_AUDIOMUX2_I2S3MUX 0x7
1128 #define FV_I2S3MUX_I2S1 0x0
1129 #define FV_I2S3MUX_I2S2 0x1
1130 #define FV_I2S3MUX_I2S3 0x2
1131 #define FV_I2S3MUX_ADC_DMIC 0x3
1132 #define FV_I2S3MUX_DMIC2 0x4
1133 #define FV_I2S3MUX_CLASSD_DSP 0x5
1134 #define FV_I2S3MUX_DAC_DSP 0x6
1135 #define FV_I2S3MUX_SUB_DSP 0x7
1136
1137
1138 #define FB_AUDIOMUX3_SUBMUX 3
1139 #define FM_AUDIOMUX3_SUBMUX 0xF8
1140 #define FV_SUBMUX_I2S1_L 0x0
1141 #define FV_SUBMUX_I2S1_R 0x8
1142 #define FV_SUBMUX_I2S1_LR 0x10
1143 #define FV_SUBMUX_I2S2_L 0x18
1144 #define FV_SUBMUX_I2S2_R 0x20
1145 #define FV_SUBMUX_I2S2_LR 0x28
1146 #define FV_SUBMUX_I2S3_L 0x30
1147 #define FV_SUBMUX_I2S3_R 0x38
1148 #define FV_SUBMUX_I2S3_LR 0x40
1149 #define FV_SUBMUX_ADC_DMIC_L 0x48
1150 #define FV_SUBMUX_ADC_DMIC_R 0x50
1151 #define FV_SUBMUX_ADC_DMIC_LR 0x58
1152 #define FV_SUBMUX_DMIC_L 0x60
1153 #define FV_SUBMUX_DMIC_R 0x68
1154 #define FV_SUBMUX_DMIC_LR 0x70
1155 #define FV_SUBMUX_CLASSD_DSP_L 0x78
1156 #define FV_SUBMUX_CLASSD_DSP_R 0x80
1157 #define FV_SUBMUX_CLASSD_DSP_LR 0x88
1158
1159 #define FB_AUDIOMUX3_CLSSDMUX 0
1160 #define FM_AUDIOMUX3_CLSSDMUX 0x7
1161 #define FV_CLSSDMUX_I2S1 0x0
1162 #define FV_CLSSDMUX_I2S2 0x1
1163 #define FV_CLSSDMUX_I2S3 0x2
1164 #define FV_CLSSDMUX_ADC_DMIC 0x3
1165 #define FV_CLSSDMUX_DMIC2 0x4
1166 #define FV_CLSSDMUX_CLASSD_DSP 0x5
1167 #define FV_CLSSDMUX_DAC_DSP 0x6
1168 #define FV_CLSSDMUX_SUB_DSP 0x7
1169
1170
1171 #define FB_HSDCTL1_HPJKTYPE 7
1172 #define FM_HSDCTL1_HPJKTYPE 0x80
1173
1174 #define FB_HSDCTL1_CON_DET_PWD 6
1175 #define FM_HSDCTL1_CON_DET_PWD 0x40
1176
1177 #define FB_HSDCTL1_DETCYC 4
1178 #define FM_HSDCTL1_DETCYC 0x30
1179
1180 #define FB_HSDCTL1_HPDLYBYP 3
1181 #define FM_HSDCTL1_HPDLYBYP 0x8
1182
1183 #define FB_HSDCTL1_HSDETPOL 2
1184 #define FM_HSDCTL1_HSDETPOL 0x4
1185
1186 #define FB_HSDCTL1_HPID_EN 1
1187 #define FM_HSDCTL1_HPID_EN 0x2
1188
1189 #define FB_HSDCTL1_GBLHS_EN 0
1190 #define FM_HSDCTL1_GBLHS_EN 0x1
1191
1192
1193 #define FB_HSDCTL2_FMICBIAS1 6
1194 #define FM_HSDCTL2_FMICBIAS1 0xC0
1195
1196 #define FB_HSDCTL2_MB1MODE 5
1197 #define FM_HSDCTL2_MB1MODE 0x20
1198 #define FV_MB1MODE_AUTO 0x0
1199 #define FV_MB1MODE_MANUAL 0x20
1200
1201 #define FB_HSDCTL2_FORCETRG 4
1202 #define FM_HSDCTL2_FORCETRG 0x10
1203
1204 #define FB_HSDCTL2_SWMODE 3
1205 #define FM_HSDCTL2_SWMODE 0x8
1206
1207 #define FB_HSDCTL2_GHSHIZ 2
1208 #define FM_HSDCTL2_GHSHIZ 0x4
1209
1210 #define FB_HSDCTL2_FPLUGTYPE 0
1211 #define FM_HSDCTL2_FPLUGTYPE 0x3
1212
1213
1214 #define FB_HSDSTAT_MBIAS1DRV 5
1215 #define FM_HSDSTAT_MBIAS1DRV 0x60
1216
1217 #define FB_HSDSTAT_HSDETSTAT 3
1218 #define FM_HSDSTAT_HSDETSTAT 0x8
1219
1220 #define FB_HSDSTAT_PLUGTYPE 1
1221 #define FM_HSDSTAT_PLUGTYPE 0x6
1222
1223 #define FB_HSDSTAT_HSDETDONE 0
1224 #define FM_HSDSTAT_HSDETDONE 0x1
1225
1226
1227 #define FB_HSDDELAY_T_STABLE 0
1228 #define FM_HSDDELAY_T_STABLE 0x7
1229
1230
1231 #define FB_BUTCTL_BPUSHSTAT 7
1232 #define FM_BUTCTL_BPUSHSTAT 0x80
1233
1234 #define FB_BUTCTL_BPUSHDET 6
1235 #define FM_BUTCTL_BPUSHDET 0x40
1236
1237 #define FB_BUTCTL_BPUSHEN 5
1238 #define FM_BUTCTL_BPUSHEN 0x20
1239
1240 #define FB_BUTCTL_BSTABLE_L 3
1241 #define FM_BUTCTL_BSTABLE_L 0x18
1242
1243 #define FB_BUTCTL_BSTABLE_S 0
1244 #define FM_BUTCTL_BSTABLE_S 0x7
1245
1246
1247 #define FB_CH0AIC_INSELL 6
1248 #define FM_CH0AIC_INSELL 0xC0
1249
1250 #define FB_CH0AIC_MICBST0 4
1251 #define FM_CH0AIC_MICBST0 0x30
1252
1253 #define FB_CH0AIC_LADCIN 2
1254 #define FM_CH0AIC_LADCIN 0xC
1255
1256 #define FB_CH0AIC_IN_BYPS_L_SEL 1
1257 #define FM_CH0AIC_IN_BYPS_L_SEL 0x2
1258
1259 #define FB_CH0AIC_IPCH0S 0
1260 #define FM_CH0AIC_IPCH0S 0x1
1261
1262
1263 #define FB_CH1AIC_INSELR 6
1264 #define FM_CH1AIC_INSELR 0xC0
1265
1266 #define FB_CH1AIC_MICBST1 4
1267 #define FM_CH1AIC_MICBST1 0x30
1268
1269 #define FB_CH1AIC_RADCIN 2
1270 #define FM_CH1AIC_RADCIN 0xC
1271
1272 #define FB_CH1AIC_IN_BYPS_R_SEL 1
1273 #define FM_CH1AIC_IN_BYPS_R_SEL 0x2
1274
1275 #define FB_CH1AIC_IPCH1S 0
1276 #define FM_CH1AIC_IPCH1S 0x1
1277
1278
1279 #define FB_ICTL0_IN1POL 7
1280 #define FM_ICTL0_IN1POL 0x80
1281
1282 #define FB_ICTL0_IN0POL 6
1283 #define FM_ICTL0_IN0POL 0x40
1284
1285 #define FB_ICTL0_INPCH10SEL 4
1286 #define FM_ICTL0_INPCH10SEL 0x30
1287
1288 #define FB_ICTL0_IN1MUTE 3
1289 #define FM_ICTL0_IN1MUTE 0x8
1290
1291 #define FB_ICTL0_IN0MUTE 2
1292 #define FM_ICTL0_IN0MUTE 0x4
1293
1294 #define FB_ICTL0_IN1HP 1
1295 #define FM_ICTL0_IN1HP 0x2
1296
1297 #define FB_ICTL0_IN0HP 0
1298 #define FM_ICTL0_IN0HP 0x1
1299
1300
1301 #define FB_ICTL1_IN3POL 7
1302 #define FM_ICTL1_IN3POL 0x80
1303
1304 #define FB_ICTL1_IN2POL 6
1305 #define FM_ICTL1_IN2POL 0x40
1306
1307 #define FB_ICTL1_INPCH32SEL 4
1308 #define FM_ICTL1_INPCH32SEL 0x30
1309
1310 #define FB_ICTL1_IN3MUTE 3
1311 #define FM_ICTL1_IN3MUTE 0x8
1312
1313 #define FB_ICTL1_IN2MUTE 2
1314 #define FM_ICTL1_IN2MUTE 0x4
1315
1316 #define FB_ICTL1_IN3HP 1
1317 #define FM_ICTL1_IN3HP 0x2
1318
1319 #define FB_ICTL1_IN2HP 0
1320 #define FM_ICTL1_IN2HP 0x1
1321
1322
1323 #define FB_MICBIAS_MICBOV2 4
1324 #define FM_MICBIAS_MICBOV2 0x30
1325
1326 #define FB_MICBIAS_MICBOV1 6
1327 #define FM_MICBIAS_MICBOV1 0xC0
1328
1329 #define FB_MICBIAS_SPARE1 2
1330 #define FM_MICBIAS_SPARE1 0xC
1331
1332 #define FB_MICBIAS_SPARE2 0
1333 #define FM_MICBIAS_SPARE2 0x3
1334
1335
1336 #define FB_PGAZ_INHPOR 1
1337 #define FM_PGAZ_INHPOR 0x2
1338
1339 #define FB_PGAZ_TOEN 0
1340 #define FM_PGAZ_TOEN 0x1
1341
1342
1343 #define FB_ASRCILVOL_ASRCILVOL 0
1344 #define FM_ASRCILVOL_ASRCILVOL 0xFF
1345
1346
1347 #define FB_ASRCIRVOL_ASRCIRVOL 0
1348 #define FM_ASRCIRVOL_ASRCIRVOL 0xFF
1349
1350
1351 #define FB_ASRCOLVOL_ASRCOLVOL 0
1352 #define FM_ASRCOLVOL_ASRCOLVOL 0xFF
1353
1354
1355 #define FB_ASRCORVOL_ASRCOLVOL 0
1356 #define FM_ASRCORVOL_ASRCOLVOL 0xFF
1357
1358
1359 #define FB_IVOLCTLU_IFADE 3
1360 #define FM_IVOLCTLU_IFADE 0x8
1361
1362 #define FB_IVOLCTLU_INPVOLU 2
1363 #define FM_IVOLCTLU_INPVOLU 0x4
1364
1365 #define FB_IVOLCTLU_PGAVOLU 1
1366 #define FM_IVOLCTLU_PGAVOLU 0x2
1367
1368 #define FB_IVOLCTLU_ASRCVOLU 0
1369 #define FM_IVOLCTLU_ASRCVOLU 0x1
1370
1371
1372 #define FB_ALCCTL0_ALCMODE 7
1373 #define FM_ALCCTL0_ALCMODE 0x80
1374
1375 #define FB_ALCCTL0_ALCREF 4
1376 #define FM_ALCCTL0_ALCREF 0x70
1377
1378 #define FB_ALCCTL0_ALCEN3 3
1379 #define FM_ALCCTL0_ALCEN3 0x8
1380
1381 #define FB_ALCCTL0_ALCEN2 2
1382 #define FM_ALCCTL0_ALCEN2 0x4
1383
1384 #define FB_ALCCTL0_ALCEN1 1
1385 #define FM_ALCCTL0_ALCEN1 0x2
1386
1387 #define FB_ALCCTL0_ALCEN0 0
1388 #define FM_ALCCTL0_ALCEN0 0x1
1389
1390
1391 #define FB_ALCCTL1_MAXGAIN 4
1392 #define FM_ALCCTL1_MAXGAIN 0x70
1393
1394 #define FB_ALCCTL1_ALCL 0
1395 #define FM_ALCCTL1_ALCL 0xF
1396
1397
1398 #define FB_ALCCTL2_ALCZC 7
1399 #define FM_ALCCTL2_ALCZC 0x80
1400
1401 #define FB_ALCCTL2_MINGAIN 4
1402 #define FM_ALCCTL2_MINGAIN 0x70
1403
1404 #define FB_ALCCTL2_HLD 0
1405 #define FM_ALCCTL2_HLD 0xF
1406
1407
1408 #define FB_ALCCTL3_DCY 4
1409 #define FM_ALCCTL3_DCY 0xF0
1410
1411 #define FB_ALCCTL3_ATK 0
1412 #define FM_ALCCTL3_ATK 0xF
1413
1414
1415 #define FB_NGATE_NGTH 3
1416 #define FM_NGATE_NGTH 0xF8
1417
1418 #define FB_NGATE_NGG 1
1419 #define FM_NGATE_NGG 0x6
1420
1421 #define FB_NGATE_NGAT 0
1422 #define FM_NGATE_NGAT 0x1
1423
1424
1425 #define FB_DMICCTL_DMIC2EN 7
1426 #define FM_DMICCTL_DMIC2EN 0x80
1427
1428 #define FB_DMICCTL_DMIC1EN 6
1429 #define FM_DMICCTL_DMIC1EN 0x40
1430
1431 #define FB_DMICCTL_DMONO 4
1432 #define FM_DMICCTL_DMONO 0x10
1433
1434 #define FB_DMICCTL_DMDCLK 2
1435 #define FM_DMICCTL_DMDCLK 0xC
1436
1437 #define FB_DMICCTL_DMRATE 0
1438 #define FM_DMICCTL_DMRATE 0x3
1439
1440
1441 #define FB_DACCTL_DACPOLR 7
1442 #define FM_DACCTL_DACPOLR 0x80
1443 #define FV_DACPOLR_NORMAL 0x0
1444 #define FV_DACPOLR_INVERTED 0x80
1445
1446 #define FB_DACCTL_DACPOLL 6
1447 #define FM_DACCTL_DACPOLL 0x40
1448 #define FV_DACPOLL_NORMAL 0x0
1449 #define FV_DACPOLL_INVERTED 0x40
1450
1451 #define FB_DACCTL_DACDITH 4
1452 #define FM_DACCTL_DACDITH 0x30
1453 #define FV_DACDITH_DYNAMIC_HALF 0x0
1454 #define FV_DACDITH_DYNAMIC_FULL 0x10
1455 #define FV_DACDITH_DISABLED 0x20
1456 #define FV_DACDITH_STATIC 0x30
1457
1458 #define FB_DACCTL_DACMUTE 3
1459 #define FM_DACCTL_DACMUTE 0x8
1460 #define FV_DACMUTE_ENABLE 0x8
1461 #define FV_DACMUTE_DISABLE 0x0
1462
1463 #define FB_DACCTL_DACDEM 2
1464 #define FM_DACCTL_DACDEM 0x4
1465 #define FV_DACDEM_ENABLE 0x4
1466 #define FV_DACDEM_DISABLE 0x0
1467
1468 #define FB_DACCTL_ABYPASS 0
1469 #define FM_DACCTL_ABYPASS 0x1
1470
1471
1472 #define FB_SPKCTL_SPKPOLR 7
1473 #define FM_SPKCTL_SPKPOLR 0x80
1474 #define FV_SPKPOLR_NORMAL 0x0
1475 #define FV_SPKPOLR_INVERTED 0x80
1476
1477 #define FB_SPKCTL_SPKPOLL 6
1478 #define FM_SPKCTL_SPKPOLL 0x40
1479 #define FV_SPKPOLL_NORMAL 0x0
1480 #define FV_SPKPOLL_INVERTED 0x40
1481
1482 #define FB_SPKCTL_SPKMUTE 3
1483 #define FM_SPKCTL_SPKMUTE 0x8
1484 #define FV_SPKMUTE_ENABLE 0x8
1485 #define FV_SPKMUTE_DISABLE 0x0
1486
1487 #define FB_SPKCTL_SPKDEM 2
1488 #define FM_SPKCTL_SPKDEM 0x4
1489 #define FV_SPKDEM_ENABLE 0x4
1490 #define FV_SPKDEM_DISABLE 0x0
1491
1492
1493 #define FB_SUBCTL_SUBPOL 7
1494 #define FM_SUBCTL_SUBPOL 0x80
1495
1496 #define FB_SUBCTL_SUBMUTE 3
1497 #define FM_SUBCTL_SUBMUTE 0x8
1498
1499 #define FB_SUBCTL_SUBDEM 2
1500 #define FM_SUBCTL_SUBDEM 0x4
1501
1502 #define FB_SUBCTL_SUBMUX 1
1503 #define FM_SUBCTL_SUBMUX 0x2
1504
1505 #define FB_SUBCTL_SUBILMDIS 0
1506 #define FM_SUBCTL_SUBILMDIS 0x1
1507
1508
1509 #define FB_DCCTL_SUBDCBYP 7
1510 #define FM_DCCTL_SUBDCBYP 0x80
1511
1512 #define FB_DCCTL_DACDCBYP 6
1513 #define FM_DCCTL_DACDCBYP 0x40
1514
1515 #define FB_DCCTL_SPKDCBYP 5
1516 #define FM_DCCTL_SPKDCBYP 0x20
1517
1518 #define FB_DCCTL_DCCOEFSEL 0
1519 #define FM_DCCTL_DCCOEFSEL 0x7
1520
1521
1522 #define FB_OVOLCTLU_OFADE 4
1523 #define FM_OVOLCTLU_OFADE 0x10
1524
1525 #define FB_OVOLCTLU_SUBVOLU 3
1526 #define FM_OVOLCTLU_SUBVOLU 0x8
1527
1528 #define FB_OVOLCTLU_MVOLU 2
1529 #define FM_OVOLCTLU_MVOLU 0x4
1530
1531 #define FB_OVOLCTLU_SPKVOLU 1
1532 #define FM_OVOLCTLU_SPKVOLU 0x2
1533
1534 #define FB_OVOLCTLU_HPVOLU 0
1535 #define FM_OVOLCTLU_HPVOLU 0x1
1536
1537
1538 #define FB_MUTEC_ZDSTAT 7
1539 #define FM_MUTEC_ZDSTAT 0x80
1540
1541 #define FB_MUTEC_ZDLEN 4
1542 #define FM_MUTEC_ZDLEN 0x30
1543
1544 #define FB_MUTEC_APWD 3
1545 #define FM_MUTEC_APWD 0x8
1546
1547 #define FB_MUTEC_AMUTE 2
1548 #define FM_MUTEC_AMUTE 0x4
1549
1550
1551 #define FB_MVOLL_MVOL_L 0
1552 #define FM_MVOLL_MVOL_L 0xFF
1553
1554
1555 #define FB_MVOLR_MVOL_R 0
1556 #define FM_MVOLR_MVOL_R 0xFF
1557
1558
1559 #define FB_HPVOLL_HPVOL_L 0
1560 #define FM_HPVOLL_HPVOL_L 0x7F
1561
1562
1563 #define FB_HPVOLR_HPVOL_R 0
1564 #define FM_HPVOLR_HPVOL_R 0x7F
1565
1566
1567 #define FB_SPKVOLL_SPKVOL_L 0
1568 #define FM_SPKVOLL_SPKVOL_L 0x7F
1569
1570
1571 #define FB_SPKVOLR_SPKVOL_R 0
1572 #define FM_SPKVOLR_SPKVOL_R 0x7F
1573
1574
1575 #define FB_SUBVOL_SUBVOL 0
1576 #define FM_SUBVOL_SUBVOL 0x7F
1577
1578
1579 #define FB_COP0_COPATTEN 7
1580 #define FM_COP0_COPATTEN 0x80
1581
1582 #define FB_COP0_COPGAIN 6
1583 #define FM_COP0_COPGAIN 0x40
1584
1585 #define FB_COP0_HDELTAEN 5
1586 #define FM_COP0_HDELTAEN 0x20
1587
1588 #define FB_COP0_COPTARGET 0
1589 #define FM_COP0_COPTARGET 0x1F
1590
1591
1592 #define FB_COP1_HDCOMPMODE 6
1593 #define FM_COP1_HDCOMPMODE 0x40
1594
1595 #define FB_COP1_AVGLENGTH 2
1596 #define FM_COP1_AVGLENGTH 0x3C
1597
1598 #define FB_COP1_MONRATE 0
1599 #define FM_COP1_MONRATE 0x3
1600
1601
1602 #define FB_COPSTAT_HDELTADET 7
1603 #define FM_COPSTAT_HDELTADET 0x80
1604
1605 #define FB_COPSTAT_UV 6
1606 #define FM_COPSTAT_UV 0x40
1607
1608 #define FB_COPSTAT_COPADJ 0
1609 #define FM_COPSTAT_COPADJ 0x3F
1610
1611
1612 #define FB_PWM0_SCTO 6
1613 #define FM_PWM0_SCTO 0xC0
1614
1615 #define FB_PWM0_UVLO 5
1616 #define FM_PWM0_UVLO 0x20
1617
1618 #define FB_PWM0_BFDIS 3
1619 #define FM_PWM0_BFDIS 0x8
1620
1621 #define FB_PWM0_PWMMODE 2
1622 #define FM_PWM0_PWMMODE 0x4
1623
1624 #define FB_PWM0_NOOFFSET 0
1625 #define FM_PWM0_NOOFFSET 0x1
1626
1627
1628 #define FB_PWM1_DITHPOS 4
1629 #define FM_PWM1_DITHPOS 0x70
1630
1631 #define FB_PWM1_DYNDITH 1
1632 #define FM_PWM1_DYNDITH 0x2
1633
1634 #define FB_PWM1_DITHDIS 0
1635 #define FM_PWM1_DITHDIS 0x1
1636
1637
1638
1639 #define FB_PWM3_PWMMUX 6
1640 #define FM_PWM3_PWMMUX 0xC0
1641
1642 #define FB_PWM3_CVALUE 0
1643 #define FM_PWM3_CVALUE 0x7
1644
1645
1646 #define FB_HPSW_HPDETSTATE 4
1647 #define FM_HPSW_HPDETSTATE 0x10
1648
1649 #define FB_HPSW_HPSWEN 2
1650 #define FM_HPSW_HPSWEN 0xC
1651
1652 #define FB_HPSW_HPSWPOL 1
1653 #define FM_HPSW_HPSWPOL 0x2
1654
1655 #define FB_HPSW_TSDEN 0
1656 #define FM_HPSW_TSDEN 0x1
1657
1658
1659 #define FB_THERMTS_TRIPHS 7
1660 #define FM_THERMTS_TRIPHS 0x80
1661
1662 #define FB_THERMTS_TRIPLS 6
1663 #define FM_THERMTS_TRIPLS 0x40
1664
1665 #define FB_THERMTS_TRIPSPLIT 4
1666 #define FM_THERMTS_TRIPSPLIT 0x30
1667
1668 #define FB_THERMTS_TRIPSHIFT 2
1669 #define FM_THERMTS_TRIPSHIFT 0xC
1670
1671 #define FB_THERMTS_TSPOLL 0
1672 #define FM_THERMTS_TSPOLL 0x3
1673
1674
1675 #define FB_THERMSPK1_FORCEPWD 7
1676 #define FM_THERMSPK1_FORCEPWD 0x80
1677
1678 #define FB_THERMSPK1_INSTCUTMODE 6
1679 #define FM_THERMSPK1_INSTCUTMODE 0x40
1680
1681 #define FB_THERMSPK1_INCRATIO 4
1682 #define FM_THERMSPK1_INCRATIO 0x30
1683
1684 #define FB_THERMSPK1_INCSTEP 2
1685 #define FM_THERMSPK1_INCSTEP 0xC
1686
1687 #define FB_THERMSPK1_DECSTEP 0
1688 #define FM_THERMSPK1_DECSTEP 0x3
1689
1690
1691 #define FB_THERMSTAT_FPWDS 7
1692 #define FM_THERMSTAT_FPWDS 0x80
1693
1694 #define FB_THERMSTAT_VOLSTAT 0
1695 #define FM_THERMSTAT_VOLSTAT 0x7F
1696
1697
1698 #define FB_SCSTAT_ESDF 3
1699 #define FM_SCSTAT_ESDF 0x18
1700
1701 #define FB_SCSTAT_CPF 2
1702 #define FM_SCSTAT_CPF 0x4
1703
1704 #define FB_SCSTAT_CLSDF 0
1705 #define FM_SCSTAT_CLSDF 0x3
1706
1707
1708 #define FB_SDMON_SDFORCE 7
1709 #define FM_SDMON_SDFORCE 0x80
1710
1711 #define FB_SDMON_SDVALUE 0
1712 #define FM_SDMON_SDVALUE 0x1F
1713
1714
1715 #define FB_SPKEQFILT_EQ2EN 7
1716 #define FM_SPKEQFILT_EQ2EN 0x80
1717 #define FV_EQ2EN_ENABLE 0x80
1718 #define FV_EQ2EN_DISABLE 0x0
1719
1720 #define FB_SPKEQFILT_EQ2BE 4
1721 #define FM_SPKEQFILT_EQ2BE 0x70
1722
1723 #define FB_SPKEQFILT_EQ1EN 3
1724 #define FM_SPKEQFILT_EQ1EN 0x8
1725 #define FV_EQ1EN_ENABLE 0x8
1726 #define FV_EQ1EN_DISABLE 0x0
1727
1728 #define FB_SPKEQFILT_EQ1BE 0
1729 #define FM_SPKEQFILT_EQ1BE 0x7
1730
1731 #define SPKEQFILT_EQEN_ENABLE 0x1
1732 #define SPKEQFILT_EQEN_DISABLE 0x0
1733
1734
1735 #define FB_SPKCRWDL_WDATA_L 0
1736 #define FM_SPKCRWDL_WDATA_L 0xFF
1737
1738
1739 #define FB_SPKCRWDM_WDATA_M 0
1740 #define FM_SPKCRWDM_WDATA_M 0xFF
1741
1742
1743 #define FB_SPKCRWDH_WDATA_H 0
1744 #define FM_SPKCRWDH_WDATA_H 0xFF
1745
1746
1747 #define FB_SPKCRRDL_RDATA_L 0
1748 #define FM_SPKCRRDL_RDATA_L 0xFF
1749
1750
1751 #define FB_SPKCRRDM_RDATA_M 0
1752 #define FM_SPKCRRDM_RDATA_M 0xFF
1753
1754
1755 #define FB_SPKCRRDH_RDATA_H 0
1756 #define FM_SPKCRRDH_RDATA_H 0xFF
1757
1758
1759 #define FB_SPKCRADD_ADDRESS 0
1760 #define FM_SPKCRADD_ADDRESS 0xFF
1761
1762
1763 #define FB_SPKCRS_ACCSTAT 7
1764 #define FM_SPKCRS_ACCSTAT 0x80
1765
1766
1767 #define FB_SPKMBCEN_MBCEN3 2
1768 #define FM_SPKMBCEN_MBCEN3 0x4
1769 #define FV_MBCEN3_ENABLE 0x4
1770 #define FV_MBCEN3_DISABLE 0x0
1771
1772 #define FB_SPKMBCEN_MBCEN2 1
1773 #define FM_SPKMBCEN_MBCEN2 0x2
1774 #define FV_MBCEN2_ENABLE 0x2
1775 #define FV_MBCEN2_DISABLE 0x0
1776
1777 #define FB_SPKMBCEN_MBCEN1 0
1778 #define FM_SPKMBCEN_MBCEN1 0x1
1779 #define FV_MBCEN1_ENABLE 0x1
1780 #define FV_MBCEN1_DISABLE 0x0
1781
1782 #define SPKMBCEN_MBCEN_ENABLE 0x1
1783 #define SPKMBCEN_MBCEN_DISABLE 0x0
1784
1785
1786 #define FB_SPKMBCCTL_LVLMODE3 5
1787 #define FM_SPKMBCCTL_LVLMODE3 0x20
1788
1789 #define FB_SPKMBCCTL_WINSEL3 4
1790 #define FM_SPKMBCCTL_WINSEL3 0x10
1791
1792 #define FB_SPKMBCCTL_LVLMODE2 3
1793 #define FM_SPKMBCCTL_LVLMODE2 0x8
1794
1795 #define FB_SPKMBCCTL_WINSEL2 2
1796 #define FM_SPKMBCCTL_WINSEL2 0x4
1797
1798 #define FB_SPKMBCCTL_LVLMODE1 1
1799 #define FM_SPKMBCCTL_LVLMODE1 0x2
1800
1801 #define FB_SPKMBCCTL_WINSEL1 0
1802 #define FM_SPKMBCCTL_WINSEL1 0x1
1803
1804
1805 #define FB_SPKCLECTL_LVLMODE 4
1806 #define FM_SPKCLECTL_LVLMODE 0x10
1807
1808 #define FB_SPKCLECTL_WINSEL 3
1809 #define FM_SPKCLECTL_WINSEL 0x8
1810
1811 #define FB_SPKCLECTL_EXPEN 2
1812 #define FM_SPKCLECTL_EXPEN 0x4
1813 #define FV_EXPEN_ENABLE 0x4
1814 #define FV_EXPEN_DISABLE 0x0
1815
1816 #define FB_SPKCLECTL_LIMEN 1
1817 #define FM_SPKCLECTL_LIMEN 0x2
1818 #define FV_LIMEN_ENABLE 0x2
1819 #define FV_LIMEN_DISABLE 0x0
1820
1821 #define FB_SPKCLECTL_COMPEN 0
1822 #define FM_SPKCLECTL_COMPEN 0x1
1823 #define FV_COMPEN_ENABLE 0x1
1824 #define FV_COMPEN_DISABLE 0x0
1825
1826
1827 #define FB_SPKCLEMUG_MUGAIN 0
1828 #define FM_SPKCLEMUG_MUGAIN 0x1F
1829
1830
1831 #define FB_SPKCOMPTHR_THRESH 0
1832 #define FM_SPKCOMPTHR_THRESH 0xFF
1833
1834
1835 #define FB_SPKCOMPRAT_RATIO 0
1836 #define FM_SPKCOMPRAT_RATIO 0x1F
1837
1838
1839 #define FB_SPKCOMPATKL_TCATKL 0
1840 #define FM_SPKCOMPATKL_TCATKL 0xFF
1841
1842
1843 #define FB_SPKCOMPATKH_TCATKH 0
1844 #define FM_SPKCOMPATKH_TCATKH 0xFF
1845
1846
1847 #define FB_SPKCOMPRELL_TCRELL 0
1848 #define FM_SPKCOMPRELL_TCRELL 0xFF
1849
1850
1851 #define FB_SPKCOMPRELH_TCRELH 0
1852 #define FM_SPKCOMPRELH_TCRELH 0xFF
1853
1854
1855 #define FB_SPKLIMTHR_THRESH 0
1856 #define FM_SPKLIMTHR_THRESH 0xFF
1857
1858
1859 #define FB_SPKLIMTGT_TARGET 0
1860 #define FM_SPKLIMTGT_TARGET 0xFF
1861
1862
1863 #define FB_SPKLIMATKL_TCATKL 0
1864 #define FM_SPKLIMATKL_TCATKL 0xFF
1865
1866
1867 #define FB_SPKLIMATKH_TCATKH 0
1868 #define FM_SPKLIMATKH_TCATKH 0xFF
1869
1870
1871 #define FB_SPKLIMRELL_TCRELL 0
1872 #define FM_SPKLIMRELL_TCRELL 0xFF
1873
1874
1875 #define FB_SPKLIMRELH_TCRELH 0
1876 #define FM_SPKLIMRELH_TCRELH 0xFF
1877
1878
1879 #define FB_SPKEXPTHR_THRESH 0
1880 #define FM_SPKEXPTHR_THRESH 0xFF
1881
1882
1883 #define FB_SPKEXPRAT_RATIO 0
1884 #define FM_SPKEXPRAT_RATIO 0x7
1885
1886
1887 #define FB_SPKEXPATKL_TCATKL 0
1888 #define FM_SPKEXPATKL_TCATKL 0xFF
1889
1890
1891 #define FB_SPKEXPATKH_TCATKH 0
1892 #define FM_SPKEXPATKH_TCATKH 0xFF
1893
1894
1895 #define FB_SPKEXPRELL_TCRELL 0
1896 #define FM_SPKEXPRELL_TCRELL 0xFF
1897
1898
1899 #define FB_SPKEXPRELH_TCRELH 0
1900 #define FM_SPKEXPRELH_TCRELH 0xFF
1901
1902
1903 #define FB_SPKFXCTL_3DEN 4
1904 #define FM_SPKFXCTL_3DEN 0x10
1905
1906 #define FB_SPKFXCTL_TEEN 3
1907 #define FM_SPKFXCTL_TEEN 0x8
1908
1909 #define FB_SPKFXCTL_TNLFBYP 2
1910 #define FM_SPKFXCTL_TNLFBYP 0x4
1911
1912 #define FB_SPKFXCTL_BEEN 1
1913 #define FM_SPKFXCTL_BEEN 0x2
1914
1915 #define FB_SPKFXCTL_BNLFBYP 0
1916 #define FM_SPKFXCTL_BNLFBYP 0x1
1917
1918
1919 #define FB_DACEQFILT_EQ2EN 7
1920 #define FM_DACEQFILT_EQ2EN 0x80
1921 #define FV_EQ2EN_ENABLE 0x80
1922 #define FV_EQ2EN_DISABLE 0x0
1923
1924 #define FB_DACEQFILT_EQ2BE 4
1925 #define FM_DACEQFILT_EQ2BE 0x70
1926
1927 #define FB_DACEQFILT_EQ1EN 3
1928 #define FM_DACEQFILT_EQ1EN 0x8
1929 #define FV_EQ1EN_ENABLE 0x8
1930 #define FV_EQ1EN_DISABLE 0x0
1931
1932 #define FB_DACEQFILT_EQ1BE 0
1933 #define FM_DACEQFILT_EQ1BE 0x7
1934
1935 #define DACEQFILT_EQEN_ENABLE 0x1
1936 #define DACEQFILT_EQEN_DISABLE 0x0
1937
1938
1939 #define FB_DACCRWDL_WDATA_L 0
1940 #define FM_DACCRWDL_WDATA_L 0xFF
1941
1942
1943 #define FB_DACCRWDM_WDATA_M 0
1944 #define FM_DACCRWDM_WDATA_M 0xFF
1945
1946
1947 #define FB_DACCRWDH_WDATA_H 0
1948 #define FM_DACCRWDH_WDATA_H 0xFF
1949
1950
1951 #define FB_DACCRRDL_RDATA_L 0
1952 #define FM_DACCRRDL_RDATA_L 0xFF
1953
1954
1955 #define FB_DACCRRDM_RDATA_M 0
1956 #define FM_DACCRRDM_RDATA_M 0xFF
1957
1958
1959 #define FB_DACCRRDH_RDATA_H 0
1960 #define FM_DACCRRDH_RDATA_H 0xFF
1961
1962
1963 #define FB_DACCRADD_ADDRESS 0
1964 #define FM_DACCRADD_ADDRESS 0xFF
1965
1966
1967 #define FB_DACCRS_ACCSTAT 7
1968 #define FM_DACCRS_ACCSTAT 0x80
1969
1970
1971 #define FB_DACMBCEN_MBCEN3 2
1972 #define FM_DACMBCEN_MBCEN3 0x4
1973 #define FV_MBCEN3_ENABLE 0x4
1974 #define FV_MBCEN3_DISABLE 0x0
1975
1976 #define FB_DACMBCEN_MBCEN2 1
1977 #define FM_DACMBCEN_MBCEN2 0x2
1978 #define FV_MBCEN2_ENABLE 0x2
1979 #define FV_MBCEN2_DISABLE 0x0
1980
1981 #define FB_DACMBCEN_MBCEN1 0
1982 #define FM_DACMBCEN_MBCEN1 0x1
1983 #define FV_MBCEN1_ENABLE 0x1
1984 #define FV_MBCEN1_DISABLE 0x0
1985
1986 #define DACMBCEN_MBCEN_ENABLE 0x1
1987 #define DACMBCEN_MBCEN_DISABLE 0x0
1988
1989
1990 #define FB_DACMBCCTL_LVLMODE3 5
1991 #define FM_DACMBCCTL_LVLMODE3 0x20
1992
1993 #define FB_DACMBCCTL_WINSEL3 4
1994 #define FM_DACMBCCTL_WINSEL3 0x10
1995
1996 #define FB_DACMBCCTL_LVLMODE2 3
1997 #define FM_DACMBCCTL_LVLMODE2 0x8
1998
1999 #define FB_DACMBCCTL_WINSEL2 2
2000 #define FM_DACMBCCTL_WINSEL2 0x4
2001
2002 #define FB_DACMBCCTL_LVLMODE1 1
2003 #define FM_DACMBCCTL_LVLMODE1 0x2
2004
2005 #define FB_DACMBCCTL_WINSEL1 0
2006 #define FM_DACMBCCTL_WINSEL1 0x1
2007
2008
2009 #define FB_DACCLECTL_LVLMODE 4
2010 #define FM_DACCLECTL_LVLMODE 0x10
2011
2012 #define FB_DACCLECTL_WINSEL 3
2013 #define FM_DACCLECTL_WINSEL 0x8
2014
2015 #define FB_DACCLECTL_EXPEN 2
2016 #define FM_DACCLECTL_EXPEN 0x4
2017 #define FV_EXPEN_ENABLE 0x4
2018 #define FV_EXPEN_DISABLE 0x0
2019
2020 #define FB_DACCLECTL_LIMEN 1
2021 #define FM_DACCLECTL_LIMEN 0x2
2022 #define FV_LIMEN_ENABLE 0x2
2023 #define FV_LIMEN_DISABLE 0x0
2024
2025 #define FB_DACCLECTL_COMPEN 0
2026 #define FM_DACCLECTL_COMPEN 0x1
2027 #define FV_COMPEN_ENABLE 0x1
2028 #define FV_COMPEN_DISABLE 0x0
2029
2030
2031 #define FB_DACCLEMUG_MUGAIN 0
2032 #define FM_DACCLEMUG_MUGAIN 0x1F
2033
2034
2035 #define FB_DACCOMPTHR_THRESH 0
2036 #define FM_DACCOMPTHR_THRESH 0xFF
2037
2038
2039 #define FB_DACCOMPRAT_RATIO 0
2040 #define FM_DACCOMPRAT_RATIO 0x1F
2041
2042
2043 #define FB_DACCOMPATKL_TCATKL 0
2044 #define FM_DACCOMPATKL_TCATKL 0xFF
2045
2046
2047 #define FB_DACCOMPATKH_TCATKH 0
2048 #define FM_DACCOMPATKH_TCATKH 0xFF
2049
2050
2051 #define FB_DACCOMPRELL_TCRELL 0
2052 #define FM_DACCOMPRELL_TCRELL 0xFF
2053
2054
2055 #define FB_DACCOMPRELH_TCRELH 0
2056 #define FM_DACCOMPRELH_TCRELH 0xFF
2057
2058
2059 #define FB_DACLIMTHR_THRESH 0
2060 #define FM_DACLIMTHR_THRESH 0xFF
2061
2062
2063 #define FB_DACLIMTGT_TARGET 0
2064 #define FM_DACLIMTGT_TARGET 0xFF
2065
2066
2067 #define FB_DACLIMATKL_TCATKL 0
2068 #define FM_DACLIMATKL_TCATKL 0xFF
2069
2070
2071 #define FB_DACLIMATKH_TCATKH 0
2072 #define FM_DACLIMATKH_TCATKH 0xFF
2073
2074
2075 #define FB_DACLIMRELL_TCRELL 0
2076 #define FM_DACLIMRELL_TCRELL 0xFF
2077
2078
2079 #define FB_DACLIMRELH_TCRELH 0
2080 #define FM_DACLIMRELH_TCRELH 0xFF
2081
2082
2083 #define FB_DACEXPTHR_THRESH 0
2084 #define FM_DACEXPTHR_THRESH 0xFF
2085
2086
2087 #define FB_DACEXPRAT_RATIO 0
2088 #define FM_DACEXPRAT_RATIO 0x7
2089
2090
2091 #define FB_DACEXPATKL_TCATKL 0
2092 #define FM_DACEXPATKL_TCATKL 0xFF
2093
2094
2095 #define FB_DACEXPATKH_TCATKH 0
2096 #define FM_DACEXPATKH_TCATKH 0xFF
2097
2098
2099 #define FB_DACEXPRELL_TCRELL 0
2100 #define FM_DACEXPRELL_TCRELL 0xFF
2101
2102
2103 #define FB_DACEXPRELH_TCRELH 0
2104 #define FM_DACEXPRELH_TCRELH 0xFF
2105
2106
2107 #define FB_DACFXCTL_3DEN 4
2108 #define FM_DACFXCTL_3DEN 0x10
2109
2110 #define FB_DACFXCTL_TEEN 3
2111 #define FM_DACFXCTL_TEEN 0x8
2112
2113 #define FB_DACFXCTL_TNLFBYP 2
2114 #define FM_DACFXCTL_TNLFBYP 0x4
2115
2116 #define FB_DACFXCTL_BEEN 1
2117 #define FM_DACFXCTL_BEEN 0x2
2118
2119 #define FB_DACFXCTL_BNLFBYP 0
2120 #define FM_DACFXCTL_BNLFBYP 0x1
2121
2122
2123 #define FB_SUBEQFILT_EQ2EN 7
2124 #define FM_SUBEQFILT_EQ2EN 0x80
2125 #define FV_EQ2EN_ENABLE 0x80
2126 #define FV_EQ2EN_DISABLE 0x0
2127
2128 #define FB_SUBEQFILT_EQ2BE 4
2129 #define FM_SUBEQFILT_EQ2BE 0x70
2130
2131 #define FB_SUBEQFILT_EQ1EN 3
2132 #define FM_SUBEQFILT_EQ1EN 0x8
2133 #define FV_EQ1EN_ENABLE 0x8
2134 #define FV_EQ1EN_DISABLE 0x0
2135
2136 #define FB_SUBEQFILT_EQ1BE 0
2137 #define FM_SUBEQFILT_EQ1BE 0x7
2138
2139 #define SUBEQFILT_EQEN_ENABLE 0x1
2140 #define SUBEQFILT_EQEN_DISABLE 0x0
2141
2142
2143 #define FB_SUBCRWDL_WDATA_L 0
2144 #define FM_SUBCRWDL_WDATA_L 0xFF
2145
2146
2147 #define FB_SUBCRWDM_WDATA_M 0
2148 #define FM_SUBCRWDM_WDATA_M 0xFF
2149
2150
2151 #define FB_SUBCRWDH_WDATA_H 0
2152 #define FM_SUBCRWDH_WDATA_H 0xFF
2153
2154
2155 #define FB_SUBCRRDL_RDATA_L 0
2156 #define FM_SUBCRRDL_RDATA_L 0xFF
2157
2158
2159 #define FB_SUBCRRDM_RDATA_M 0
2160 #define FM_SUBCRRDM_RDATA_M 0xFF
2161
2162
2163 #define FB_SUBCRRDH_RDATA_H 0
2164 #define FM_SUBCRRDH_RDATA_H 0xFF
2165
2166
2167 #define FB_SUBCRADD_ADDRESS 0
2168 #define FM_SUBCRADD_ADDRESS 0xFF
2169
2170
2171 #define FB_SUBCRS_ACCSTAT 7
2172 #define FM_SUBCRS_ACCSTAT 0x80
2173
2174
2175 #define FB_SUBMBCEN_MBCEN3 2
2176 #define FM_SUBMBCEN_MBCEN3 0x4
2177 #define FV_MBCEN3_ENABLE 0x4
2178 #define FV_MBCEN3_DISABLE 0x0
2179
2180 #define FB_SUBMBCEN_MBCEN2 1
2181 #define FM_SUBMBCEN_MBCEN2 0x2
2182 #define FV_MBCEN2_ENABLE 0x2
2183 #define FV_MBCEN2_DISABLE 0x0
2184
2185 #define FB_SUBMBCEN_MBCEN1 0
2186 #define FM_SUBMBCEN_MBCEN1 0x1
2187 #define FV_MBCEN1_ENABLE 0x1
2188 #define FV_MBCEN1_DISABLE 0x0
2189
2190 #define SUBMBCEN_MBCEN_ENABLE 0x1
2191 #define SUBMBCEN_MBCEN_DISABLE 0x0
2192
2193
2194 #define FB_SUBMBCCTL_LVLMODE3 5
2195 #define FM_SUBMBCCTL_LVLMODE3 0x20
2196
2197 #define FB_SUBMBCCTL_WINSEL3 4
2198 #define FM_SUBMBCCTL_WINSEL3 0x10
2199
2200 #define FB_SUBMBCCTL_LVLMODE2 3
2201 #define FM_SUBMBCCTL_LVLMODE2 0x8
2202
2203 #define FB_SUBMBCCTL_WINSEL2 2
2204 #define FM_SUBMBCCTL_WINSEL2 0x4
2205
2206 #define FB_SUBMBCCTL_LVLMODE1 1
2207 #define FM_SUBMBCCTL_LVLMODE1 0x2
2208
2209 #define FB_SUBMBCCTL_WINSEL1 0
2210 #define FM_SUBMBCCTL_WINSEL1 0x1
2211
2212
2213 #define FB_SUBCLECTL_LVLMODE 4
2214 #define FM_SUBCLECTL_LVLMODE 0x10
2215
2216 #define FB_SUBCLECTL_WINSEL 3
2217 #define FM_SUBCLECTL_WINSEL 0x8
2218
2219 #define FB_SUBCLECTL_EXPEN 2
2220 #define FM_SUBCLECTL_EXPEN 0x4
2221 #define FV_EXPEN_ENABLE 0x4
2222 #define FV_EXPEN_DISABLE 0x0
2223
2224 #define FB_SUBCLECTL_LIMEN 1
2225 #define FM_SUBCLECTL_LIMEN 0x2
2226 #define FV_LIMEN_ENABLE 0x2
2227 #define FV_LIMEN_DISABLE 0x0
2228
2229 #define FB_SUBCLECTL_COMPEN 0
2230 #define FM_SUBCLECTL_COMPEN 0x1
2231 #define FV_COMPEN_ENABLE 0x1
2232 #define FV_COMPEN_DISABLE 0x0
2233
2234
2235 #define FB_SUBCLEMUG_MUGAIN 0
2236 #define FM_SUBCLEMUG_MUGAIN 0x1F
2237
2238
2239 #define FB_SUBCOMPTHR_THRESH 0
2240 #define FM_SUBCOMPTHR_THRESH 0xFF
2241
2242
2243 #define FB_SUBCOMPRAT_RATIO 0
2244 #define FM_SUBCOMPRAT_RATIO 0x1F
2245
2246
2247 #define FB_SUBCOMPATKL_TCATKL 0
2248 #define FM_SUBCOMPATKL_TCATKL 0xFF
2249
2250
2251 #define FB_SUBCOMPATKH_TCATKH 0
2252 #define FM_SUBCOMPATKH_TCATKH 0xFF
2253
2254
2255 #define FB_SUBCOMPRELL_TCRELL 0
2256 #define FM_SUBCOMPRELL_TCRELL 0xFF
2257
2258
2259 #define FB_SUBCOMPRELH_TCRELH 0
2260 #define FM_SUBCOMPRELH_TCRELH 0xFF
2261
2262
2263 #define FB_SUBLIMTHR_THRESH 0
2264 #define FM_SUBLIMTHR_THRESH 0xFF
2265
2266
2267 #define FB_SUBLIMTGT_TARGET 0
2268 #define FM_SUBLIMTGT_TARGET 0xFF
2269
2270
2271 #define FB_SUBLIMATKL_TCATKL 0
2272 #define FM_SUBLIMATKL_TCATKL 0xFF
2273
2274
2275 #define FB_SUBLIMATKH_TCATKH 0
2276 #define FM_SUBLIMATKH_TCATKH 0xFF
2277
2278
2279 #define FB_SUBLIMRELL_TCRELL 0
2280 #define FM_SUBLIMRELL_TCRELL 0xFF
2281
2282
2283 #define FB_SUBLIMRELH_TCRELH 0
2284 #define FM_SUBLIMRELH_TCRELH 0xFF
2285
2286
2287 #define FB_SUBEXPTHR_THRESH 0
2288 #define FM_SUBEXPTHR_THRESH 0xFF
2289
2290
2291 #define FB_SUBEXPRAT_RATIO 0
2292 #define FM_SUBEXPRAT_RATIO 0x7
2293
2294
2295 #define FB_SUBEXPATKL_TCATKL 0
2296 #define FM_SUBEXPATKL_TCATKL 0xFF
2297
2298
2299 #define FB_SUBEXPATKH_TCATKH 0
2300 #define FM_SUBEXPATKH_TCATKH 0xFF
2301
2302
2303 #define FB_SUBEXPRELL_TCRELL 0
2304 #define FM_SUBEXPRELL_TCRELL 0xFF
2305
2306
2307 #define FB_SUBEXPRELH_TCRELH 0
2308 #define FM_SUBEXPRELH_TCRELH 0xFF
2309
2310
2311 #define FB_SUBFXCTL_TEEN 3
2312 #define FM_SUBFXCTL_TEEN 0x8
2313
2314 #define FB_SUBFXCTL_TNLFBYP 2
2315 #define FM_SUBFXCTL_TNLFBYP 0x4
2316
2317 #define FB_SUBFXCTL_BEEN 1
2318 #define FM_SUBFXCTL_BEEN 0x2
2319
2320 #define FB_SUBFXCTL_BNLFBYP 0
2321 #define FM_SUBFXCTL_BNLFBYP 0x1
2322
2323 #endif