1 1.1 jmcneill /* $Id: imx23_digfiltreg.h,v 1.1 2015/01/10 12:16:28 jmcneill Exp $ */ 2 1.1 jmcneill 3 1.1 jmcneill /* 4 1.1 jmcneill * Copyright (c) 2014 The NetBSD Foundation, Inc. 5 1.1 jmcneill * All rights reserved. 6 1.1 jmcneill * 7 1.1 jmcneill * This code is derived from software contributed to The NetBSD Foundation 8 1.1 jmcneill * by Petri Laakso. 9 1.1 jmcneill * 10 1.1 jmcneill * Redistribution and use in source and binary forms, with or without 11 1.1 jmcneill * modification, are permitted provided that the following conditions 12 1.1 jmcneill * are met: 13 1.1 jmcneill * 1. Redistributions of source code must retain the above copyright 14 1.1 jmcneill * notice, this list of conditions and the following disclaimer. 15 1.1 jmcneill * 2. Redistributions in binary form must reproduce the above copyright 16 1.1 jmcneill * notice, this list of conditions and the following disclaimer in the 17 1.1 jmcneill * documentation and/or other materials provided with the distribution. 18 1.1 jmcneill * 19 1.1 jmcneill * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20 1.1 jmcneill * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21 1.1 jmcneill * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22 1.1 jmcneill * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23 1.1 jmcneill * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24 1.1 jmcneill * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25 1.1 jmcneill * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26 1.1 jmcneill * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27 1.1 jmcneill * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28 1.1 jmcneill * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 1.1 jmcneill * POSSIBILITY OF SUCH DAMAGE. 30 1.1 jmcneill */ 31 1.1 jmcneill 32 1.1 jmcneill #ifndef _ARM_IMX_IMX23_AUDIOOUTREG_H_ 33 1.1 jmcneill #define _ARM_IMX_IMX23_AUDIOOUTREG_H_ 34 1.1 jmcneill 35 1.1 jmcneill #include <sys/cdefs.h> 36 1.1 jmcneill 37 1.1 jmcneill #define HW_DIGFILT_BASE 0x80048000 38 1.1 jmcneill #define HW_DIGFILT_SIZE 0x8000 /* 32 kB */ 39 1.1 jmcneill 40 1.1 jmcneill #define HW_AUDIOOUT_BASE 0x80048000 41 1.1 jmcneill #define HW_AUDIOOUT_SIZE 0x2000 /* 8 kB */ 42 1.1 jmcneill 43 1.1 jmcneill #define HW_AUDIOIN_BASE 0x8004C000 44 1.1 jmcneill #define HW_AUDIOIN_SIZE 0x2000 /* 8 kB */ 45 1.1 jmcneill 46 1.1 jmcneill /* 47 1.1 jmcneill * AUDIOIN Control Register. 48 1.1 jmcneill */ 49 1.1 jmcneill #define HW_AUDIOIN_CTRL 0x000 50 1.1 jmcneill #define HW_AUDIOIN_CTRL_SET 0x004 51 1.1 jmcneill #define HW_AUDIOIN_CTRL_CLR 0x008 52 1.1 jmcneill #define HW_AUDIOIN_CTRL_TOG 0x00C 53 1.1 jmcneill 54 1.1 jmcneill #define HW_AUDIOIN_CTRL_SFTRST __BIT(31) 55 1.1 jmcneill #define HW_AUDIOIN_CTRL_CLKGATE __BIT(30) 56 1.1 jmcneill #define HW_AUDIOIN_CTRL_RSRVD3 __BITS(29, 21) 57 1.1 jmcneill #define HW_AUDIOIN_CTRL_DMAWAIT_COUNT __BITS(20, 16) 58 1.1 jmcneill #define HW_AUDIOIN_CTRL_RSRVD1 __BITS(15, 11) 59 1.1 jmcneill #define HW_AUDIOIN_CTRL_LR_SWAP __BIT(10) 60 1.1 jmcneill #define HW_AUDIOIN_CTRL_EDGE_SYNC __BIT(9) 61 1.1 jmcneill #define HW_AUDIOIN_CTRL_INVERT_1BIT __BIT(8) 62 1.1 jmcneill #define HW_AUDIOIN_CTRL_OFFSET_ENABLE __BIT(7) 63 1.1 jmcneill #define HW_AUDIOIN_CTRL_HPF_ENABLE __BIT(6) 64 1.1 jmcneill #define HW_AUDIOIN_CTRL_WORD_LENGTH __BIT(5) 65 1.1 jmcneill #define HW_AUDIOIN_CTRL_LOOPBACK __BIT(4) 66 1.1 jmcneill #define HW_AUDIOIN_CTRL_FIFO_UNDERFLOW_IRQ __BIT(3) 67 1.1 jmcneill #define HW_AUDIOIN_CTRL_FIFO_OVERFLOW_IRQ __BIT(2) 68 1.1 jmcneill #define HW_AUDIOIN_CTRL_FIFO_ERROR_IRQ_EN __BIT(1) 69 1.1 jmcneill #define HW_AUDIOIN_CTRL_RUN __BIT(0) 70 1.1 jmcneill 71 1.1 jmcneill /* 72 1.1 jmcneill * AUDIOOUT Control Register. 73 1.1 jmcneill */ 74 1.1 jmcneill #define HW_AUDIOOUT_CTRL 0x000 75 1.1 jmcneill #define HW_AUDIOOUT_CTRL_SET 0x004 76 1.1 jmcneill #define HW_AUDIOOUT_CTRL_CLR 0x008 77 1.1 jmcneill 78 1.1 jmcneill #define HW_AUDIOOUT_CTRL_SFTRST __BIT(31) 79 1.1 jmcneill #define HW_AUDIOOUT_CTRL_CLKGATE __BIT(30) 80 1.1 jmcneill #define HW_AUDIOOUT_CTRL_RSRVD4 __BITS(29, 21) 81 1.1 jmcneill #define HW_AUDIOOUT_CTRL_DMAWAIT_COUNT __BITS(20, 16) 82 1.1 jmcneill #define HW_AUDIOOUT_CTRL_RSRVD3 __BIT(15) 83 1.1 jmcneill #define HW_AUDIOOUT_CTRL_LR_SWAP __BIT(14) 84 1.1 jmcneill #define HW_AUDIOOUT_CTRL_EDGE_SYNC __BIT(13) 85 1.1 jmcneill #define HW_AUDIOOUT_CTRL_INVERT_1BIT __BIT(12) 86 1.1 jmcneill #define HW_AUDIOOUT_CTRL_RSRVD2 __BITS(11, 10) 87 1.1 jmcneill #define HW_AUDIOOUT_CTRL_SS3D_EFFECT __BITS(9, 8) 88 1.1 jmcneill #define HW_AUDIOOUT_CTRL_RSRVD1 __BIT(7) 89 1.1 jmcneill #define HW_AUDIOOUT_CTRL_WORD_LENGTH __BIT(6) 90 1.1 jmcneill #define HW_AUDIOOUT_CTRL_DAC_ZERO_ENABLE __BIT(5) 91 1.1 jmcneill #define HW_AUDIOOUT_CTRL_LOOPBACK __BIT(4) 92 1.1 jmcneill #define HW_AUDIOOUT_CTRL_FIFO_UNDERFLOW_IRQ __BIT(3) 93 1.1 jmcneill #define HW_AUDIOOUT_CTRL_FIFO_OVERFLOW_IRQ __BIT(2) 94 1.1 jmcneill #define HW_AUDIOOUT_CTRL_FIFO_ERROR_IRQ_EN __BIT(1) 95 1.1 jmcneill #define HW_AUDIOOUT_CTRL_RUN __BIT(0) 96 1.1 jmcneill 97 1.1 jmcneill /* 98 1.1 jmcneill * AUDIOOUT Status Register. 99 1.1 jmcneill */ 100 1.1 jmcneill #define HW_AUDIOOUT_STAT 0x010 101 1.1 jmcneill #define HW_AUDIOOUT_STAT_SET 0x014 102 1.1 jmcneill #define HW_AUDIOOUT_STAT_CLR 0x018 103 1.1 jmcneill #define HW_AUDIOOUT_STAT_TOG 0x01C 104 1.1 jmcneill 105 1.1 jmcneill #define HW_AUDIOOUT_STAT_DAC_PRESENT __BIT(31) 106 1.1 jmcneill #define HW_AUDIOOUT_STAT_RSRVD1 __BITS(30, 0) 107 1.1 jmcneill 108 1.1 jmcneill /* 109 1.1 jmcneill * AUDIOOUT Sample Rate Register. 110 1.1 jmcneill */ 111 1.1 jmcneill #define HW_AUDIOOUT_DACSRR 0x020 112 1.1 jmcneill #define HW_AUDIOOUT_DACSRR_SET 0x024 113 1.1 jmcneill #define HW_AUDIOOUT_DACSRR_CLR 0x028 114 1.1 jmcneill #define HW_AUDIOOUT_DACSRR_TOG 0x02C 115 1.1 jmcneill 116 1.1 jmcneill #define HW_AUDIOOUT_DACSRR_OSR __BIT(31) 117 1.1 jmcneill #define HW_AUDIOOUT_DACSRR_BASEMULT __BITS(30, 28) 118 1.1 jmcneill #define HW_AUDIOOUT_DACSRR_RSRVD2 __BIT(27) 119 1.1 jmcneill #define HW_AUDIOOUT_DACSRR_SRC_HOLD __BITS(26, 24) 120 1.1 jmcneill #define HW_AUDIOOUT_DACSRR_RSRVD1 __BITS(23, 21) 121 1.1 jmcneill #define HW_AUDIOOUT_DACSRR_SRC_INT __BITS(20, 16) 122 1.1 jmcneill #define HW_AUDIOOUT_DACSRR_RSRVD0 __BITS(15, 13) 123 1.1 jmcneill #define HW_AUDIOOUT_DACSRR_SRC_FRAC __BITS(12, 0) 124 1.1 jmcneill 125 1.1 jmcneill /* 126 1.1 jmcneill * AUDIOOUT Volume Register. 127 1.1 jmcneill */ 128 1.1 jmcneill #define HW_AUDIOOUT_DACVOLUME 0x030 129 1.1 jmcneill #define HW_AUDIOOUT_DACVOLUME_SET 0x034 130 1.1 jmcneill #define HW_AUDIOOUT_DACVOLUME_CLR 0x038 131 1.1 jmcneill #define HW_AUDIOOUT_DACVOLUME_TOG 0x03C 132 1.1 jmcneill 133 1.1 jmcneill #define HW_AUDIOOUT_DACVOLUME_RSRVD4 __BITS(31, 29) 134 1.1 jmcneill #define HW_AUDIOOUT_DACVOLUME_VOLUME_UPDATE_LEFT __BIT(28) 135 1.1 jmcneill #define HW_AUDIOOUT_DACVOLUME_RSRVD3 __BITS(27, 26) 136 1.1 jmcneill #define HW_AUDIOOUT_DACVOLUME_EN_ZCD __BIT(25) 137 1.1 jmcneill #define HW_AUDIOOUT_DACVOLUME_MUTE_LEFT __BIT(24) 138 1.1 jmcneill #define HW_AUDIOOUT_DACVOLUME_VOLUME_LEFT __BITS(23, 16) 139 1.1 jmcneill #define HW_AUDIOOUT_DACVOLUME_RSRVD2 __BITS(15, 13) 140 1.1 jmcneill #define HW_AUDIOOUT_DACVOLUME_VOLUME_UPDATE_RIGHT __BIT(12) 141 1.1 jmcneill #define HW_AUDIOOUT_DACVOLUME_RSRVD1 __BITS(11, 9) 142 1.1 jmcneill #define HW_AUDIOOUT_DACVOLUME_MUTE_RIGHT __BIT(8) 143 1.1 jmcneill #define HW_AUDIOOUT_DACVOLUME_VOLUME_RIGHT __BITS(7, 0) 144 1.1 jmcneill 145 1.1 jmcneill /* 146 1.1 jmcneill * AUDIOOUT Debug Register. 147 1.1 jmcneill */ 148 1.1 jmcneill #define HW_AUDIOOUT_DACDEBUG 0x040 149 1.1 jmcneill #define HW_AUDIOOUT_DACDEBUG_SET 0x044 150 1.1 jmcneill #define HW_AUDIOOUT_DACDEBUG_CLR 0x048 151 1.1 jmcneill #define HW_AUDIOOUT_DACDEBUG_TOG 0x04C 152 1.1 jmcneill 153 1.1 jmcneill #define HW_AUDIOOUT_DACDEBUG_ENABLE_DACDMA __BIT(31) 154 1.1 jmcneill #define HW_AUDIOOUT_DACDEBUG_RSRVD2 __BITS(30, 12) 155 1.1 jmcneill #define HW_AUDIOOUT_DACDEBUG_RAM_SS __BITS(11, 8) 156 1.1 jmcneill #define HW_AUDIOOUT_DACDEBUG_RSRVD1 __BITS(7, 6) 157 1.1 jmcneill #define HW_AUDIOOUT_DACDEBUG_SET_INTERRUPT1_CLK_CROSS __BIT(5) 158 1.1 jmcneill #define HW_AUDIOOUT_DACDEBUG_SET_INTERRUPT0_CLK_CROSS __BIT(4) 159 1.1 jmcneill #define HW_AUDIOOUT_DACDEBUG_SET_INTERRUPT1_HAND_SHAKE __BIT(3) 160 1.1 jmcneill #define HW_AUDIOOUT_DACDEBUG_SET_INTERRUPT0_HAND_SHAKE __BIT(2) 161 1.1 jmcneill #define HW_AUDIOOUT_DACDEBUG_DMA_PREQ __BIT(1) 162 1.1 jmcneill #define HW_AUDIOOUT_DACDEBUG_FIFO_STATUS __BIT(0) 163 1.1 jmcneill 164 1.1 jmcneill /* 165 1.1 jmcneill * Headphone Volume and Select Control Register. 166 1.1 jmcneill */ 167 1.1 jmcneill #define HW_AUDIOOUT_HPVOL 0x050 168 1.1 jmcneill #define HW_AUDIOOUT_HPVOL_SET 0x054 169 1.1 jmcneill #define HW_AUDIOOUT_HPVOL_CLR 0x058 170 1.1 jmcneill #define HW_AUDIOOUT_HPVOL_TOG 0x05C 171 1.1 jmcneill 172 1.1 jmcneill #define HW_AUDIOOUT_HPVOL_RSRVD5 __BITS(31, 29) 173 1.1 jmcneill #define HW_AUDIOOUT_HPVOL_VOLUME_UPDATE_PENDING __BIT(28) 174 1.1 jmcneill #define HW_AUDIOOUT_HPVOL_RSRVD4 __BITS(27, 26) 175 1.1 jmcneill #define HW_AUDIOOUT_HPVOL_EN_MSTR_ZCD __BIT(25) 176 1.1 jmcneill #define HW_AUDIOOUT_HPVOL_MUTE __BIT(24) 177 1.1 jmcneill #define HW_AUDIOOUT_HPVOL_RSRVD3 __BITS(23, 17) 178 1.1 jmcneill #define HW_AUDIOOUT_HPVOL_SELECT __BIT(16) 179 1.1 jmcneill #define HW_AUDIOOUT_HPVOL_RSRVD2 __BIT(15) 180 1.1 jmcneill #define HW_AUDIOOUT_HPVOL_VOL_LEFT __BITS(14, 8) 181 1.1 jmcneill #define HW_AUDIOOUT_HPVOL_RSRVD1 __BIT(7) 182 1.1 jmcneill #define HW_AUDIOOUT_HPVOL_VOL_RIGHT __BITS(6, 0) 183 1.1 jmcneill 184 1.1 jmcneill /* 185 1.1 jmcneill * Reserved Register. 186 1.1 jmcneill */ 187 1.1 jmcneill #define HW_AUDIOOUT_RESERVED 0x060 188 1.1 jmcneill #define HW_AUDIOOUT_RESERVED_SET 0x064 189 1.1 jmcneill #define HW_AUDIOOUT_RESERVED_CLR 0x068 190 1.1 jmcneill #define HW_AUDIOOUT_RESERVED_TOG 0x06C 191 1.1 jmcneill 192 1.1 jmcneill #define HW_AUDIOOUT_RESERVED_RSRVD1 __BITS(31, 0) 193 1.1 jmcneill 194 1.1 jmcneill /* 195 1.1 jmcneill * Audio Power-Down Control Register. 196 1.1 jmcneill */ 197 1.1 jmcneill #define HW_AUDIOOUT_PWRDN 0x070 198 1.1 jmcneill #define HW_AUDIOOUT_PWRDN_SET 0x074 199 1.1 jmcneill #define HW_AUDIOOUT_PWRDN_CLR 0x078 200 1.1 jmcneill #define HW_AUDIOOUT_PWRDN_TOG 0x07C 201 1.1 jmcneill 202 1.1 jmcneill #define HW_AUDIOOUT_PWRDN_RSRVD7 __BITS(31, 25) 203 1.1 jmcneill #define HW_AUDIOOUT_PWRDN_SPEAKER __BIT(24) 204 1.1 jmcneill #define HW_AUDIOOUT_PWRDN_RSRVD6 __BITS(23, 21) 205 1.1 jmcneill #define HW_AUDIOOUT_PWRDN_SELFBIAS __BIT(20) 206 1.1 jmcneill #define HW_AUDIOOUT_PWRDN_RSRVD5 __BITS(19, 17) 207 1.1 jmcneill #define HW_AUDIOOUT_PWRDN_RIGHT_ADC __BIT(16) 208 1.1 jmcneill #define HW_AUDIOOUT_PWRDN_RSRVD4 __BITS(15, 13) 209 1.1 jmcneill #define HW_AUDIOOUT_PWRDN_DAC __BIT(12) 210 1.1 jmcneill #define HW_AUDIOOUT_PWRDN_RSRVD3 __BITS(11, 9) 211 1.1 jmcneill #define HW_AUDIOOUT_PWRDN_ADC __BIT(8) 212 1.1 jmcneill #define HW_AUDIOOUT_PWRDN_RSRVD2 __BITS(7, 5) 213 1.1 jmcneill #define HW_AUDIOOUT_PWRDN_CAPLESS __BIT(4) 214 1.1 jmcneill #define HW_AUDIOOUT_PWRDN_RSRVD1 __BITS(3, 1) 215 1.1 jmcneill #define HW_AUDIOOUT_PWRDN_HEADPHONE __BIT(0) 216 1.1 jmcneill 217 1.1 jmcneill /* 218 1.1 jmcneill * AUDIOOUT Reference Control Register. 219 1.1 jmcneill */ 220 1.1 jmcneill #define HW_AUDIOOUT_REFCTRL 0x080 221 1.1 jmcneill #define HW_AUDIOOUT_REFCTRL_SET 0x084 222 1.1 jmcneill #define HW_AUDIOOUT_REFCTRL_CLR 0x088 223 1.1 jmcneill #define HW_AUDIOOUT_REFCTRL_TOG 0x08C 224 1.1 jmcneill 225 1.1 jmcneill #define HW_AUDIOOUT_REFCTRL_RSRVD4 __BITS(31, 27) 226 1.1 jmcneill #define HW_AUDIOOUT_REFCTRL_FASTSETTLING __BIT(26) 227 1.1 jmcneill #define HW_AUDIOOUT_REFCTRL_RAISE_REF __BIT(25) 228 1.1 jmcneill #define HW_AUDIOOUT_REFCTRL_XTAL_BGR_BIAS __BIT(24) 229 1.1 jmcneill #define HW_AUDIOOUT_REFCTRL_RSRVD3 __BIT(23) 230 1.1 jmcneill #define HW_AUDIOOUT_REFCTRL_VBG_ADJ __BITS(22, 20) 231 1.1 jmcneill #define HW_AUDIOOUT_REFCTRL_LOW_PWR __BIT(19) 232 1.1 jmcneill #define HW_AUDIOOUT_REFCTRL_LW_REF __BIT(18) 233 1.1 jmcneill #define HW_AUDIOOUT_REFCTRL_BIAS_CTRL __BITS(17, 16) 234 1.1 jmcneill #define HW_AUDIOOUT_REFCTRL_RSRVD2 __BIT(15) 235 1.1 jmcneill #define HW_AUDIOOUT_REFCTRL_VDDXTAL_TO_VDDD __BIT(14) 236 1.1 jmcneill #define HW_AUDIOOUT_REFCTRL_ADJ_ADC __BIT(13) 237 1.1 jmcneill #define HW_AUDIOOUT_REFCTRL_ADJ_VAG __BIT(12) 238 1.1 jmcneill #define HW_AUDIOOUT_REFCTRL_ADC_REFVAL __BITS(11, 8) 239 1.1 jmcneill #define HW_AUDIOOUT_REFCTRL_VAG_VAL __BITS(7, 4) 240 1.1 jmcneill #define HW_AUDIOOUT_REFCTRL_RSRVD1 __BIT(3) 241 1.1 jmcneill #define HW_AUDIOOUT_REFCTRL_DAC_ADJ __BIT(2, 0) 242 1.1 jmcneill 243 1.1 jmcneill /* 244 1.1 jmcneill * Miscellaneous Audio Controls Register. 245 1.1 jmcneill */ 246 1.1 jmcneill #define HW_AUDIOOUT_ANACTRL 0x090 247 1.1 jmcneill #define HW_AUDIOOUT_ANACTRL_SET 0x094 248 1.1 jmcneill #define HW_AUDIOOUT_ANACTRL_CLR 0x098 249 1.1 jmcneill #define HW_AUDIOOUT_ANACTRL_TOG 0x09C 250 1.1 jmcneill 251 1.1 jmcneill #define HW_AUDIOOUT_ANACTRL_RSRVD8 __BITS(31, 29) 252 1.1 jmcneill #define HW_AUDIOOUT_ANACTRL_SHORT_CM_STS __BIT(28) 253 1.1 jmcneill #define HW_AUDIOOUT_ANACTRL_RSRVD7 __BITS(27, 25) 254 1.1 jmcneill #define HW_AUDIOOUT_ANACTRL_SHORT_LR_STS __BIT(24) 255 1.1 jmcneill #define HW_AUDIOOUT_ANACTRL_RSRVD6 __BITS(23, 22) 256 1.1 jmcneill #define HW_AUDIOOUT_ANACTRL_SHORTMODE_CM __BIT(21, 20) 257 1.1 jmcneill #define HW_AUDIOOUT_ANACTRL_RSRVD5 __BIT(19) 258 1.1 jmcneill #define HW_AUDIOOUT_ANACTRL_SHORTMODE_LR __BITS(18, 17) 259 1.1 jmcneill #define HW_AUDIOOUT_ANACTRL_RSRVD4 __BITS(16, 15) 260 1.1 jmcneill #define HW_AUDIOOUT_ANACTRL_SHORT_LVLADJL __BITS(14, 12) 261 1.1 jmcneill #define HW_AUDIOOUT_ANACTRL_RSRVD3 __BIT(11) 262 1.1 jmcneill #define HW_AUDIOOUT_ANACTRL_SHORT_LVLADJR __BITS(10, 8) 263 1.1 jmcneill #define HW_AUDIOOUT_ANACTRL_RSRVD2 __BITS(7, 6) 264 1.1 jmcneill #define HW_AUDIOOUT_ANACTRL_HP_HOLD_GND __BIT(5) 265 1.1 jmcneill #define HW_AUDIOOUT_ANACTRL_HP_CLASSAB __BIT(4) 266 1.1 jmcneill #define HW_AUDIOOUT_ANACTRL_RSRVD1 __BITS(3, 0) 267 1.1 jmcneill 268 1.1 jmcneill /* 269 1.1 jmcneill * Miscellaneous Test Audio Controls Register. 270 1.1 jmcneill */ 271 1.1 jmcneill #define HW_AUDIOOUT_TEST 0x0a0 272 1.1 jmcneill #define HW_AUDIOOUT_TEST_SET 0x0a4 273 1.1 jmcneill #define HW_AUDIOOUT_TEST_CLR 0x0a8 274 1.1 jmcneill #define HW_AUDIOOUT_TEST_TOG 0x0aC 275 1.1 jmcneill 276 1.1 jmcneill #define HW_AUDIOOUT_TEST_RSRVD4 __BIT(31) 277 1.1 jmcneill #define HW_AUDIOOUT_TEST_HP_ANTIPOP __BITS(30, 28) 278 1.1 jmcneill #define HW_AUDIOOUT_TEST_RSRVD3 __BIT(27) 279 1.1 jmcneill #define HW_AUDIOOUT_TEST_TM_ADCIN_TOHP __BIT(26) 280 1.1 jmcneill #define HW_AUDIOOUT_TEST_TM_LOOP __BIT(25) 281 1.1 jmcneill #define HW_AUDIOOUT_TEST_TM_HPCOMMON __BIT(24) 282 1.1 jmcneill #define HW_AUDIOOUT_TEST_HP_I1_ADJ __BITS(23, 22) 283 1.1 jmcneill #define HW_AUDIOOUT_TEST_HP_IALL_ADJ __BITS(21, 20) 284 1.1 jmcneill #define HW_AUDIOOUT_TEST_RSRVD2 __BITS(19, 14) 285 1.1 jmcneill #define HW_AUDIOOUT_TEST_VAG_CLASSA __BIT(13) 286 1.1 jmcneill #define HW_AUDIOOUT_TEST_VAG_DOUBLE_I __BIT(12) 287 1.1 jmcneill #define HW_AUDIOOUT_TEST_RSRVD1 __BITS(11, 4) 288 1.1 jmcneill #define HW_AUDIOOUT_TEST_ADCTODAC_LOOP __BIT(3) 289 1.1 jmcneill #define HW_AUDIOOUT_TEST_DAC_CLASSA __BIT(2) 290 1.1 jmcneill #define HW_AUDIOOUT_TEST_DAC_DOUBLE_I __BIT(1) 291 1.1 jmcneill #define HW_AUDIOOUT_TEST_DAC_DIS_RTZ __BIT(0) 292 1.1 jmcneill 293 1.1 jmcneill /* 294 1.1 jmcneill * BIST Control and Status Register. 295 1.1 jmcneill */ 296 1.1 jmcneill #define HW_AUDIOOUT_BISTCTRL 0x0b0 297 1.1 jmcneill #define HW_AUDIOOUT_BISTCTRL_SET 0x0b4 298 1.1 jmcneill #define HW_AUDIOOUT_BISTCTRL_CLR 0x0b8 299 1.1 jmcneill #define HW_AUDIOOUT_BISTCTRL_TOG 0x0bC 300 1.1 jmcneill 301 1.1 jmcneill #define HW_AUDIOOUT_BISTCTRL_RSVD0 __BITS(31, 4) 302 1.1 jmcneill #define HW_AUDIOOUT_BISTCTRL_FAIL __BIT(3) 303 1.1 jmcneill #define HW_AUDIOOUT_BISTCTRL_PASS __BIT(2) 304 1.1 jmcneill #define HW_AUDIOOUT_BISTCTRL_DONE __BIT(1) 305 1.1 jmcneill #define HW_AUDIOOUT_BISTCTRL_START __BIT(0) 306 1.1 jmcneill 307 1.1 jmcneill /* 308 1.1 jmcneill * Hardware BIST Status 0 Register. 309 1.1 jmcneill */ 310 1.1 jmcneill #define HW_AUDIOOUT_BISTSTAT0 0x0c0 311 1.1 jmcneill #define HW_AUDIOOUT_BISTSTAT0_SET 0x0c4 312 1.1 jmcneill #define HW_AUDIOOUT_BISTSTAT0_CLR 0x0c8 313 1.1 jmcneill #define HW_AUDIOOUT_BISTSTAT0_TOG 0x0cC 314 1.1 jmcneill 315 1.1 jmcneill #define HW_AUDIOOUT_BISTSTAT0_RSVD0 __BITS(31, 24) 316 1.1 jmcneill #define HW_AUDIOOUT_BISTSTAT0_DATA __BITS(23, 0) 317 1.1 jmcneill 318 1.1 jmcneill /* 319 1.1 jmcneill * Hardware AUDIOUT BIST Status 1 Register. 320 1.1 jmcneill */ 321 1.1 jmcneill #define HW_AUDIOOUT_BISTSTAT1 0x0d0 322 1.1 jmcneill #define HW_AUDIOOUT_BISTSTAT1_SET 0x0d4 323 1.1 jmcneill #define HW_AUDIOOUT_BISTSTAT1_CLR 0x0d8 324 1.1 jmcneill #define HW_AUDIOOUT_BISTSTAT1_TOG 0x0dC 325 1.1 jmcneill 326 1.1 jmcneill #define HW_AUDIOOUT_BISTSTAT1_RSVD1 __BITS(31, 29) 327 1.1 jmcneill #define HW_AUDIOOUT_BISTSTAT1_STATE __BITS(28, 24) 328 1.1 jmcneill #define HW_AUDIOOUT_BISTSTAT1_RSVD0 __BITS(23, 8) 329 1.1 jmcneill #define HW_AUDIOOUT_BISTSTAT1_ADDR __BITS(7, 0) 330 1.1 jmcneill 331 1.1 jmcneill /* 332 1.1 jmcneill * Analog Clock Control Register. 333 1.1 jmcneill */ 334 1.1 jmcneill #define HW_AUDIOOUT_ANACLKCTRL 0x0e0 335 1.1 jmcneill #define HW_AUDIOOUT_ANACLKCTRL_SET 0x0e4 336 1.1 jmcneill #define HW_AUDIOOUT_ANACLKCTRL_CLR 0x0e8 337 1.1 jmcneill #define HW_AUDIOOUT_ANACLKCTRL_TOG 0x0eC 338 1.1 jmcneill 339 1.1 jmcneill #define HW_AUDIOOUT_ANACLKCTRL_CLKGATE __BIT(31) 340 1.1 jmcneill #define HW_AUDIOOUT_ANACLKCTRL_RSRVD3 __BITS(30, 5) 341 1.1 jmcneill #define HW_AUDIOOUT_ANACLKCTRL_INVERT_DACCLK __BIT(4) 342 1.1 jmcneill #define HW_AUDIOOUT_ANACLKCTRL_RSRVD2 __BIT(3) 343 1.1 jmcneill #define HW_AUDIOOUT_ANACLKCTRL_DACDIV __BITS(2, 0) 344 1.1 jmcneill 345 1.1 jmcneill /* 346 1.1 jmcneill * AUDIOOUT Write Data Register. 347 1.1 jmcneill */ 348 1.1 jmcneill #define HW_AUDIOOUT_DATA 0x0f0 349 1.1 jmcneill #define HW_AUDIOOUT_DATA_SET 0x0f4 350 1.1 jmcneill #define HW_AUDIOOUT_DATA_CLR 0x0f8 351 1.1 jmcneill #define HW_AUDIOOUT_DATA_TOG 0x0fC 352 1.1 jmcneill 353 1.1 jmcneill #define HW_AUDIOOUT_DATA_HIGH __BITS(31, 16) 354 1.1 jmcneill #define HW_AUDIOOUT_DATA_LOW __BITS(15, 0) 355 1.1 jmcneill 356 1.1 jmcneill /* 357 1.1 jmcneill * AUDIOOUT Speaker Control Register. 358 1.1 jmcneill */ 359 1.1 jmcneill #define HW_AUDIOOUT_SPEAKERCTRL 0x100 360 1.1 jmcneill #define HW_AUDIOOUT_SPEAKERCTRL_SET 0x104 361 1.1 jmcneill #define HW_AUDIOOUT_SPEAKERCTRL_CLR 0x108 362 1.1 jmcneill #define HW_AUDIOOUT_SPEAKERCTRL_TOG 0x10C 363 1.1 jmcneill 364 1.1 jmcneill #define HW_AUDIOOUT_SPEAKERCTRL_RSRVD2 __BITS(31, 25) 365 1.1 jmcneill #define HW_AUDIOOUT_SPEAKERCTRL_MUTE __BIT(24) 366 1.1 jmcneill #define HW_AUDIOOUT_SPEAKERCTRL_I1_ADJ __BITS(23, 22) 367 1.1 jmcneill #define HW_AUDIOOUT_SPEAKERCTRL_IALL_ADJ __BITS(21, 20) 368 1.1 jmcneill #define HW_AUDIOOUT_SPEAKERCTRL_RSRVD1 __BITS(19, 16) 369 1.1 jmcneill #define HW_AUDIOOUT_SPEAKERCTRL_POSDRIVER __BITS(15, 14) 370 1.1 jmcneill #define HW_AUDIOOUT_SPEAKERCTRL_NEGDRIVER __BITS(13, 12) 371 1.1 jmcneill #define HW_AUDIOOUT_SPEAKERCTRL_RSRVD0 __BITS(11, 0) 372 1.1 jmcneill 373 1.1 jmcneill /* 374 1.1 jmcneill * AUDIOOUT Version Register. 375 1.1 jmcneill */ 376 1.1 jmcneill #define HW_AUDIOOUT_VERSION 0x200 377 1.1 jmcneill 378 1.1 jmcneill #define HW_AUDIOOUT_VERSION_MAJOR __BITS(31, 24) 379 1.1 jmcneill #define HW_AUDIOOUT_VERSION_MINOR __BITS(23, 16) 380 1.1 jmcneill #define HW_AUDIOOUT_VERSION_STEP __BITS(15, 0) 381 1.1 jmcneill 382 1.1 jmcneill #endif /* !_ARM_IMX_IMX23_AUDIOOUTREG_H_ */ 383