500 lines
35 KiB
C
500 lines
35 KiB
C
|
/***************************************************************************
|
||
|
* __________ __ ___.
|
||
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||
|
* \/ \/ \/ \/ \/
|
||
|
* This file was automatically generated by headergen, DO NOT EDIT it.
|
||
|
* headergen version: 3.0.0
|
||
|
* stmp3600 version: 2.4.0
|
||
|
* stmp3600 authors: Amaury Pouly
|
||
|
*
|
||
|
* Copyright (C) 2015 by the authors
|
||
|
*
|
||
|
* This program is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU General Public License
|
||
|
* as published by the Free Software Foundation; either version 2
|
||
|
* of the License, or (at your option) any later version.
|
||
|
*
|
||
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||
|
* KIND, either express or implied.
|
||
|
*
|
||
|
****************************************************************************/
|
||
|
#ifndef __HEADERGEN_STMP3600_AUDIOIN_H__
|
||
|
#define __HEADERGEN_STMP3600_AUDIOIN_H__
|
||
|
|
||
|
#define HW_AUDIOIN_CTRL HW(AUDIOIN_CTRL)
|
||
|
#define HWA_AUDIOIN_CTRL (0x8004c000 + 0x0)
|
||
|
#define HWT_AUDIOIN_CTRL HWIO_32_RW
|
||
|
#define HWN_AUDIOIN_CTRL AUDIOIN_CTRL
|
||
|
#define HWI_AUDIOIN_CTRL
|
||
|
#define HW_AUDIOIN_CTRL_SET HW(AUDIOIN_CTRL_SET)
|
||
|
#define HWA_AUDIOIN_CTRL_SET (HWA_AUDIOIN_CTRL + 0x4)
|
||
|
#define HWT_AUDIOIN_CTRL_SET HWIO_32_WO
|
||
|
#define HWN_AUDIOIN_CTRL_SET AUDIOIN_CTRL
|
||
|
#define HWI_AUDIOIN_CTRL_SET
|
||
|
#define HW_AUDIOIN_CTRL_CLR HW(AUDIOIN_CTRL_CLR)
|
||
|
#define HWA_AUDIOIN_CTRL_CLR (HWA_AUDIOIN_CTRL + 0x8)
|
||
|
#define HWT_AUDIOIN_CTRL_CLR HWIO_32_WO
|
||
|
#define HWN_AUDIOIN_CTRL_CLR AUDIOIN_CTRL
|
||
|
#define HWI_AUDIOIN_CTRL_CLR
|
||
|
#define HW_AUDIOIN_CTRL_TOG HW(AUDIOIN_CTRL_TOG)
|
||
|
#define HWA_AUDIOIN_CTRL_TOG (HWA_AUDIOIN_CTRL + 0xc)
|
||
|
#define HWT_AUDIOIN_CTRL_TOG HWIO_32_WO
|
||
|
#define HWN_AUDIOIN_CTRL_TOG AUDIOIN_CTRL
|
||
|
#define HWI_AUDIOIN_CTRL_TOG
|
||
|
#define BP_AUDIOIN_CTRL_SFTRST 31
|
||
|
#define BM_AUDIOIN_CTRL_SFTRST 0x80000000
|
||
|
#define BF_AUDIOIN_CTRL_SFTRST(v) (((v) & 0x1) << 31)
|
||
|
#define BFM_AUDIOIN_CTRL_SFTRST(v) BM_AUDIOIN_CTRL_SFTRST
|
||
|
#define BF_AUDIOIN_CTRL_SFTRST_V(e) BF_AUDIOIN_CTRL_SFTRST(BV_AUDIOIN_CTRL_SFTRST__##e)
|
||
|
#define BFM_AUDIOIN_CTRL_SFTRST_V(v) BM_AUDIOIN_CTRL_SFTRST
|
||
|
#define BP_AUDIOIN_CTRL_CLKGATE 30
|
||
|
#define BM_AUDIOIN_CTRL_CLKGATE 0x40000000
|
||
|
#define BF_AUDIOIN_CTRL_CLKGATE(v) (((v) & 0x1) << 30)
|
||
|
#define BFM_AUDIOIN_CTRL_CLKGATE(v) BM_AUDIOIN_CTRL_CLKGATE
|
||
|
#define BF_AUDIOIN_CTRL_CLKGATE_V(e) BF_AUDIOIN_CTRL_CLKGATE(BV_AUDIOIN_CTRL_CLKGATE__##e)
|
||
|
#define BFM_AUDIOIN_CTRL_CLKGATE_V(v) BM_AUDIOIN_CTRL_CLKGATE
|
||
|
#define BP_AUDIOIN_CTRL_DMAWAIT_COUNT 16
|
||
|
#define BM_AUDIOIN_CTRL_DMAWAIT_COUNT 0x1f0000
|
||
|
#define BF_AUDIOIN_CTRL_DMAWAIT_COUNT(v) (((v) & 0x1f) << 16)
|
||
|
#define BFM_AUDIOIN_CTRL_DMAWAIT_COUNT(v) BM_AUDIOIN_CTRL_DMAWAIT_COUNT
|
||
|
#define BF_AUDIOIN_CTRL_DMAWAIT_COUNT_V(e) BF_AUDIOIN_CTRL_DMAWAIT_COUNT(BV_AUDIOIN_CTRL_DMAWAIT_COUNT__##e)
|
||
|
#define BFM_AUDIOIN_CTRL_DMAWAIT_COUNT_V(v) BM_AUDIOIN_CTRL_DMAWAIT_COUNT
|
||
|
#define BP_AUDIOIN_CTRL_LR_SWAP 10
|
||
|
#define BM_AUDIOIN_CTRL_LR_SWAP 0x400
|
||
|
#define BF_AUDIOIN_CTRL_LR_SWAP(v) (((v) & 0x1) << 10)
|
||
|
#define BFM_AUDIOIN_CTRL_LR_SWAP(v) BM_AUDIOIN_CTRL_LR_SWAP
|
||
|
#define BF_AUDIOIN_CTRL_LR_SWAP_V(e) BF_AUDIOIN_CTRL_LR_SWAP(BV_AUDIOIN_CTRL_LR_SWAP__##e)
|
||
|
#define BFM_AUDIOIN_CTRL_LR_SWAP_V(v) BM_AUDIOIN_CTRL_LR_SWAP
|
||
|
#define BP_AUDIOIN_CTRL_EDGE_SYNC 9
|
||
|
#define BM_AUDIOIN_CTRL_EDGE_SYNC 0x200
|
||
|
#define BF_AUDIOIN_CTRL_EDGE_SYNC(v) (((v) & 0x1) << 9)
|
||
|
#define BFM_AUDIOIN_CTRL_EDGE_SYNC(v) BM_AUDIOIN_CTRL_EDGE_SYNC
|
||
|
#define BF_AUDIOIN_CTRL_EDGE_SYNC_V(e) BF_AUDIOIN_CTRL_EDGE_SYNC(BV_AUDIOIN_CTRL_EDGE_SYNC__##e)
|
||
|
#define BFM_AUDIOIN_CTRL_EDGE_SYNC_V(v) BM_AUDIOIN_CTRL_EDGE_SYNC
|
||
|
#define BP_AUDIOIN_CTRL_INVERT_1BIT 8
|
||
|
#define BM_AUDIOIN_CTRL_INVERT_1BIT 0x100
|
||
|
#define BF_AUDIOIN_CTRL_INVERT_1BIT(v) (((v) & 0x1) << 8)
|
||
|
#define BFM_AUDIOIN_CTRL_INVERT_1BIT(v) BM_AUDIOIN_CTRL_INVERT_1BIT
|
||
|
#define BF_AUDIOIN_CTRL_INVERT_1BIT_V(e) BF_AUDIOIN_CTRL_INVERT_1BIT(BV_AUDIOIN_CTRL_INVERT_1BIT__##e)
|
||
|
#define BFM_AUDIOIN_CTRL_INVERT_1BIT_V(v) BM_AUDIOIN_CTRL_INVERT_1BIT
|
||
|
#define BP_AUDIOIN_CTRL_OFFSET_ENABLE 7
|
||
|
#define BM_AUDIOIN_CTRL_OFFSET_ENABLE 0x80
|
||
|
#define BF_AUDIOIN_CTRL_OFFSET_ENABLE(v) (((v) & 0x1) << 7)
|
||
|
#define BFM_AUDIOIN_CTRL_OFFSET_ENABLE(v) BM_AUDIOIN_CTRL_OFFSET_ENABLE
|
||
|
#define BF_AUDIOIN_CTRL_OFFSET_ENABLE_V(e) BF_AUDIOIN_CTRL_OFFSET_ENABLE(BV_AUDIOIN_CTRL_OFFSET_ENABLE__##e)
|
||
|
#define BFM_AUDIOIN_CTRL_OFFSET_ENABLE_V(v) BM_AUDIOIN_CTRL_OFFSET_ENABLE
|
||
|
#define BP_AUDIOIN_CTRL_HPF_ENABLE 6
|
||
|
#define BM_AUDIOIN_CTRL_HPF_ENABLE 0x40
|
||
|
#define BF_AUDIOIN_CTRL_HPF_ENABLE(v) (((v) & 0x1) << 6)
|
||
|
#define BFM_AUDIOIN_CTRL_HPF_ENABLE(v) BM_AUDIOIN_CTRL_HPF_ENABLE
|
||
|
#define BF_AUDIOIN_CTRL_HPF_ENABLE_V(e) BF_AUDIOIN_CTRL_HPF_ENABLE(BV_AUDIOIN_CTRL_HPF_ENABLE__##e)
|
||
|
#define BFM_AUDIOIN_CTRL_HPF_ENABLE_V(v) BM_AUDIOIN_CTRL_HPF_ENABLE
|
||
|
#define BP_AUDIOIN_CTRL_WORD_LENGTH 5
|
||
|
#define BM_AUDIOIN_CTRL_WORD_LENGTH 0x20
|
||
|
#define BF_AUDIOIN_CTRL_WORD_LENGTH(v) (((v) & 0x1) << 5)
|
||
|
#define BFM_AUDIOIN_CTRL_WORD_LENGTH(v) BM_AUDIOIN_CTRL_WORD_LENGTH
|
||
|
#define BF_AUDIOIN_CTRL_WORD_LENGTH_V(e) BF_AUDIOIN_CTRL_WORD_LENGTH(BV_AUDIOIN_CTRL_WORD_LENGTH__##e)
|
||
|
#define BFM_AUDIOIN_CTRL_WORD_LENGTH_V(v) BM_AUDIOIN_CTRL_WORD_LENGTH
|
||
|
#define BP_AUDIOIN_CTRL_LOOPBACK 4
|
||
|
#define BM_AUDIOIN_CTRL_LOOPBACK 0x10
|
||
|
#define BF_AUDIOIN_CTRL_LOOPBACK(v) (((v) & 0x1) << 4)
|
||
|
#define BFM_AUDIOIN_CTRL_LOOPBACK(v) BM_AUDIOIN_CTRL_LOOPBACK
|
||
|
#define BF_AUDIOIN_CTRL_LOOPBACK_V(e) BF_AUDIOIN_CTRL_LOOPBACK(BV_AUDIOIN_CTRL_LOOPBACK__##e)
|
||
|
#define BFM_AUDIOIN_CTRL_LOOPBACK_V(v) BM_AUDIOIN_CTRL_LOOPBACK
|
||
|
#define BP_AUDIOIN_CTRL_FIFO_UNDERFLOW_IRQ 3
|
||
|
#define BM_AUDIOIN_CTRL_FIFO_UNDERFLOW_IRQ 0x8
|
||
|
#define BF_AUDIOIN_CTRL_FIFO_UNDERFLOW_IRQ(v) (((v) & 0x1) << 3)
|
||
|
#define BFM_AUDIOIN_CTRL_FIFO_UNDERFLOW_IRQ(v) BM_AUDIOIN_CTRL_FIFO_UNDERFLOW_IRQ
|
||
|
#define BF_AUDIOIN_CTRL_FIFO_UNDERFLOW_IRQ_V(e) BF_AUDIOIN_CTRL_FIFO_UNDERFLOW_IRQ(BV_AUDIOIN_CTRL_FIFO_UNDERFLOW_IRQ__##e)
|
||
|
#define BFM_AUDIOIN_CTRL_FIFO_UNDERFLOW_IRQ_V(v) BM_AUDIOIN_CTRL_FIFO_UNDERFLOW_IRQ
|
||
|
#define BP_AUDIOIN_CTRL_FIFO_OVERFLOW_IRQ 2
|
||
|
#define BM_AUDIOIN_CTRL_FIFO_OVERFLOW_IRQ 0x4
|
||
|
#define BF_AUDIOIN_CTRL_FIFO_OVERFLOW_IRQ(v) (((v) & 0x1) << 2)
|
||
|
#define BFM_AUDIOIN_CTRL_FIFO_OVERFLOW_IRQ(v) BM_AUDIOIN_CTRL_FIFO_OVERFLOW_IRQ
|
||
|
#define BF_AUDIOIN_CTRL_FIFO_OVERFLOW_IRQ_V(e) BF_AUDIOIN_CTRL_FIFO_OVERFLOW_IRQ(BV_AUDIOIN_CTRL_FIFO_OVERFLOW_IRQ__##e)
|
||
|
#define BFM_AUDIOIN_CTRL_FIFO_OVERFLOW_IRQ_V(v) BM_AUDIOIN_CTRL_FIFO_OVERFLOW_IRQ
|
||
|
#define BP_AUDIOIN_CTRL_FIFO_ERROR_IRQ_EN 1
|
||
|
#define BM_AUDIOIN_CTRL_FIFO_ERROR_IRQ_EN 0x2
|
||
|
#define BF_AUDIOIN_CTRL_FIFO_ERROR_IRQ_EN(v) (((v) & 0x1) << 1)
|
||
|
#define BFM_AUDIOIN_CTRL_FIFO_ERROR_IRQ_EN(v) BM_AUDIOIN_CTRL_FIFO_ERROR_IRQ_EN
|
||
|
#define BF_AUDIOIN_CTRL_FIFO_ERROR_IRQ_EN_V(e) BF_AUDIOIN_CTRL_FIFO_ERROR_IRQ_EN(BV_AUDIOIN_CTRL_FIFO_ERROR_IRQ_EN__##e)
|
||
|
#define BFM_AUDIOIN_CTRL_FIFO_ERROR_IRQ_EN_V(v) BM_AUDIOIN_CTRL_FIFO_ERROR_IRQ_EN
|
||
|
#define BP_AUDIOIN_CTRL_RUN 0
|
||
|
#define BM_AUDIOIN_CTRL_RUN 0x1
|
||
|
#define BF_AUDIOIN_CTRL_RUN(v) (((v) & 0x1) << 0)
|
||
|
#define BFM_AUDIOIN_CTRL_RUN(v) BM_AUDIOIN_CTRL_RUN
|
||
|
#define BF_AUDIOIN_CTRL_RUN_V(e) BF_AUDIOIN_CTRL_RUN(BV_AUDIOIN_CTRL_RUN__##e)
|
||
|
#define BFM_AUDIOIN_CTRL_RUN_V(v) BM_AUDIOIN_CTRL_RUN
|
||
|
|
||
|
#define HW_AUDIOIN_STAT HW(AUDIOIN_STAT)
|
||
|
#define HWA_AUDIOIN_STAT (0x8004c000 + 0x10)
|
||
|
#define HWT_AUDIOIN_STAT HWIO_32_RW
|
||
|
#define HWN_AUDIOIN_STAT AUDIOIN_STAT
|
||
|
#define HWI_AUDIOIN_STAT
|
||
|
#define BP_AUDIOIN_STAT_ADC_PRESENT 31
|
||
|
#define BM_AUDIOIN_STAT_ADC_PRESENT 0x80000000
|
||
|
#define BF_AUDIOIN_STAT_ADC_PRESENT(v) (((v) & 0x1) << 31)
|
||
|
#define BFM_AUDIOIN_STAT_ADC_PRESENT(v) BM_AUDIOIN_STAT_ADC_PRESENT
|
||
|
#define BF_AUDIOIN_STAT_ADC_PRESENT_V(e) BF_AUDIOIN_STAT_ADC_PRESENT(BV_AUDIOIN_STAT_ADC_PRESENT__##e)
|
||
|
#define BFM_AUDIOIN_STAT_ADC_PRESENT_V(v) BM_AUDIOIN_STAT_ADC_PRESENT
|
||
|
|
||
|
#define HW_AUDIOIN_ADCSRR HW(AUDIOIN_ADCSRR)
|
||
|
#define HWA_AUDIOIN_ADCSRR (0x8004c000 + 0x20)
|
||
|
#define HWT_AUDIOIN_ADCSRR HWIO_32_RW
|
||
|
#define HWN_AUDIOIN_ADCSRR AUDIOIN_ADCSRR
|
||
|
#define HWI_AUDIOIN_ADCSRR
|
||
|
#define HW_AUDIOIN_ADCSRR_SET HW(AUDIOIN_ADCSRR_SET)
|
||
|
#define HWA_AUDIOIN_ADCSRR_SET (HWA_AUDIOIN_ADCSRR + 0x4)
|
||
|
#define HWT_AUDIOIN_ADCSRR_SET HWIO_32_WO
|
||
|
#define HWN_AUDIOIN_ADCSRR_SET AUDIOIN_ADCSRR
|
||
|
#define HWI_AUDIOIN_ADCSRR_SET
|
||
|
#define HW_AUDIOIN_ADCSRR_CLR HW(AUDIOIN_ADCSRR_CLR)
|
||
|
#define HWA_AUDIOIN_ADCSRR_CLR (HWA_AUDIOIN_ADCSRR + 0x8)
|
||
|
#define HWT_AUDIOIN_ADCSRR_CLR HWIO_32_WO
|
||
|
#define HWN_AUDIOIN_ADCSRR_CLR AUDIOIN_ADCSRR
|
||
|
#define HWI_AUDIOIN_ADCSRR_CLR
|
||
|
#define HW_AUDIOIN_ADCSRR_TOG HW(AUDIOIN_ADCSRR_TOG)
|
||
|
#define HWA_AUDIOIN_ADCSRR_TOG (HWA_AUDIOIN_ADCSRR + 0xc)
|
||
|
#define HWT_AUDIOIN_ADCSRR_TOG HWIO_32_WO
|
||
|
#define HWN_AUDIOIN_ADCSRR_TOG AUDIOIN_ADCSRR
|
||
|
#define HWI_AUDIOIN_ADCSRR_TOG
|
||
|
#define BP_AUDIOIN_ADCSRR_OSR 31
|
||
|
#define BM_AUDIOIN_ADCSRR_OSR 0x80000000
|
||
|
#define BV_AUDIOIN_ADCSRR_OSR__OSR6 0x0
|
||
|
#define BV_AUDIOIN_ADCSRR_OSR__OSR12 0x1
|
||
|
#define BF_AUDIOIN_ADCSRR_OSR(v) (((v) & 0x1) << 31)
|
||
|
#define BFM_AUDIOIN_ADCSRR_OSR(v) BM_AUDIOIN_ADCSRR_OSR
|
||
|
#define BF_AUDIOIN_ADCSRR_OSR_V(e) BF_AUDIOIN_ADCSRR_OSR(BV_AUDIOIN_ADCSRR_OSR__##e)
|
||
|
#define BFM_AUDIOIN_ADCSRR_OSR_V(v) BM_AUDIOIN_ADCSRR_OSR
|
||
|
#define BP_AUDIOIN_ADCSRR_BASEMULT 28
|
||
|
#define BM_AUDIOIN_ADCSRR_BASEMULT 0x70000000
|
||
|
#define BV_AUDIOIN_ADCSRR_BASEMULT__SINGLE_RATE 0x1
|
||
|
#define BV_AUDIOIN_ADCSRR_BASEMULT__DOUBLE_RATE 0x2
|
||
|
#define BV_AUDIOIN_ADCSRR_BASEMULT__QUAD_RATE 0x4
|
||
|
#define BF_AUDIOIN_ADCSRR_BASEMULT(v) (((v) & 0x7) << 28)
|
||
|
#define BFM_AUDIOIN_ADCSRR_BASEMULT(v) BM_AUDIOIN_ADCSRR_BASEMULT
|
||
|
#define BF_AUDIOIN_ADCSRR_BASEMULT_V(e) BF_AUDIOIN_ADCSRR_BASEMULT(BV_AUDIOIN_ADCSRR_BASEMULT__##e)
|
||
|
#define BFM_AUDIOIN_ADCSRR_BASEMULT_V(v) BM_AUDIOIN_ADCSRR_BASEMULT
|
||
|
#define BP_AUDIOIN_ADCSRR_SRC_HOLD 24
|
||
|
#define BM_AUDIOIN_ADCSRR_SRC_HOLD 0x7000000
|
||
|
#define BF_AUDIOIN_ADCSRR_SRC_HOLD(v) (((v) & 0x7) << 24)
|
||
|
#define BFM_AUDIOIN_ADCSRR_SRC_HOLD(v) BM_AUDIOIN_ADCSRR_SRC_HOLD
|
||
|
#define BF_AUDIOIN_ADCSRR_SRC_HOLD_V(e) BF_AUDIOIN_ADCSRR_SRC_HOLD(BV_AUDIOIN_ADCSRR_SRC_HOLD__##e)
|
||
|
#define BFM_AUDIOIN_ADCSRR_SRC_HOLD_V(v) BM_AUDIOIN_ADCSRR_SRC_HOLD
|
||
|
#define BP_AUDIOIN_ADCSRR_SRC_INT 16
|
||
|
#define BM_AUDIOIN_ADCSRR_SRC_INT 0x1f0000
|
||
|
#define BF_AUDIOIN_ADCSRR_SRC_INT(v) (((v) & 0x1f) << 16)
|
||
|
#define BFM_AUDIOIN_ADCSRR_SRC_INT(v) BM_AUDIOIN_ADCSRR_SRC_INT
|
||
|
#define BF_AUDIOIN_ADCSRR_SRC_INT_V(e) BF_AUDIOIN_ADCSRR_SRC_INT(BV_AUDIOIN_ADCSRR_SRC_INT__##e)
|
||
|
#define BFM_AUDIOIN_ADCSRR_SRC_INT_V(v) BM_AUDIOIN_ADCSRR_SRC_INT
|
||
|
#define BP_AUDIOIN_ADCSRR_SRC_FRAC 0
|
||
|
#define BM_AUDIOIN_ADCSRR_SRC_FRAC 0x1fff
|
||
|
#define BF_AUDIOIN_ADCSRR_SRC_FRAC(v) (((v) & 0x1fff) << 0)
|
||
|
#define BFM_AUDIOIN_ADCSRR_SRC_FRAC(v) BM_AUDIOIN_ADCSRR_SRC_FRAC
|
||
|
#define BF_AUDIOIN_ADCSRR_SRC_FRAC_V(e) BF_AUDIOIN_ADCSRR_SRC_FRAC(BV_AUDIOIN_ADCSRR_SRC_FRAC__##e)
|
||
|
#define BFM_AUDIOIN_ADCSRR_SRC_FRAC_V(v) BM_AUDIOIN_ADCSRR_SRC_FRAC
|
||
|
|
||
|
#define HW_AUDIOIN_ADCVOLUME HW(AUDIOIN_ADCVOLUME)
|
||
|
#define HWA_AUDIOIN_ADCVOLUME (0x8004c000 + 0x30)
|
||
|
#define HWT_AUDIOIN_ADCVOLUME HWIO_32_RW
|
||
|
#define HWN_AUDIOIN_ADCVOLUME AUDIOIN_ADCVOLUME
|
||
|
#define HWI_AUDIOIN_ADCVOLUME
|
||
|
#define HW_AUDIOIN_ADCVOLUME_SET HW(AUDIOIN_ADCVOLUME_SET)
|
||
|
#define HWA_AUDIOIN_ADCVOLUME_SET (HWA_AUDIOIN_ADCVOLUME + 0x4)
|
||
|
#define HWT_AUDIOIN_ADCVOLUME_SET HWIO_32_WO
|
||
|
#define HWN_AUDIOIN_ADCVOLUME_SET AUDIOIN_ADCVOLUME
|
||
|
#define HWI_AUDIOIN_ADCVOLUME_SET
|
||
|
#define HW_AUDIOIN_ADCVOLUME_CLR HW(AUDIOIN_ADCVOLUME_CLR)
|
||
|
#define HWA_AUDIOIN_ADCVOLUME_CLR (HWA_AUDIOIN_ADCVOLUME + 0x8)
|
||
|
#define HWT_AUDIOIN_ADCVOLUME_CLR HWIO_32_WO
|
||
|
#define HWN_AUDIOIN_ADCVOLUME_CLR AUDIOIN_ADCVOLUME
|
||
|
#define HWI_AUDIOIN_ADCVOLUME_CLR
|
||
|
#define HW_AUDIOIN_ADCVOLUME_TOG HW(AUDIOIN_ADCVOLUME_TOG)
|
||
|
#define HWA_AUDIOIN_ADCVOLUME_TOG (HWA_AUDIOIN_ADCVOLUME + 0xc)
|
||
|
#define HWT_AUDIOIN_ADCVOLUME_TOG HWIO_32_WO
|
||
|
#define HWN_AUDIOIN_ADCVOLUME_TOG AUDIOIN_ADCVOLUME
|
||
|
#define HWI_AUDIOIN_ADCVOLUME_TOG
|
||
|
#define BP_AUDIOIN_ADCVOLUME_VOLUME_UPDATE_LEFT 28
|
||
|
#define BM_AUDIOIN_ADCVOLUME_VOLUME_UPDATE_LEFT 0x10000000
|
||
|
#define BF_AUDIOIN_ADCVOLUME_VOLUME_UPDATE_LEFT(v) (((v) & 0x1) << 28)
|
||
|
#define BFM_AUDIOIN_ADCVOLUME_VOLUME_UPDATE_LEFT(v) BM_AUDIOIN_ADCVOLUME_VOLUME_UPDATE_LEFT
|
||
|
#define BF_AUDIOIN_ADCVOLUME_VOLUME_UPDATE_LEFT_V(e) BF_AUDIOIN_ADCVOLUME_VOLUME_UPDATE_LEFT(BV_AUDIOIN_ADCVOLUME_VOLUME_UPDATE_LEFT__##e)
|
||
|
#define BFM_AUDIOIN_ADCVOLUME_VOLUME_UPDATE_LEFT_V(v) BM_AUDIOIN_ADCVOLUME_VOLUME_UPDATE_LEFT
|
||
|
#define BP_AUDIOIN_ADCVOLUME_EN_ZCD 25
|
||
|
#define BM_AUDIOIN_ADCVOLUME_EN_ZCD 0x2000000
|
||
|
#define BF_AUDIOIN_ADCVOLUME_EN_ZCD(v) (((v) & 0x1) << 25)
|
||
|
#define BFM_AUDIOIN_ADCVOLUME_EN_ZCD(v) BM_AUDIOIN_ADCVOLUME_EN_ZCD
|
||
|
#define BF_AUDIOIN_ADCVOLUME_EN_ZCD_V(e) BF_AUDIOIN_ADCVOLUME_EN_ZCD(BV_AUDIOIN_ADCVOLUME_EN_ZCD__##e)
|
||
|
#define BFM_AUDIOIN_ADCVOLUME_EN_ZCD_V(v) BM_AUDIOIN_ADCVOLUME_EN_ZCD
|
||
|
#define BP_AUDIOIN_ADCVOLUME_VOLUME_LEFT 16
|
||
|
#define BM_AUDIOIN_ADCVOLUME_VOLUME_LEFT 0xff0000
|
||
|
#define BF_AUDIOIN_ADCVOLUME_VOLUME_LEFT(v) (((v) & 0xff) << 16)
|
||
|
#define BFM_AUDIOIN_ADCVOLUME_VOLUME_LEFT(v) BM_AUDIOIN_ADCVOLUME_VOLUME_LEFT
|
||
|
#define BF_AUDIOIN_ADCVOLUME_VOLUME_LEFT_V(e) BF_AUDIOIN_ADCVOLUME_VOLUME_LEFT(BV_AUDIOIN_ADCVOLUME_VOLUME_LEFT__##e)
|
||
|
#define BFM_AUDIOIN_ADCVOLUME_VOLUME_LEFT_V(v) BM_AUDIOIN_ADCVOLUME_VOLUME_LEFT
|
||
|
#define BP_AUDIOIN_ADCVOLUME_VOLUME_UPDATE_RIGHT 12
|
||
|
#define BM_AUDIOIN_ADCVOLUME_VOLUME_UPDATE_RIGHT 0x1000
|
||
|
#define BF_AUDIOIN_ADCVOLUME_VOLUME_UPDATE_RIGHT(v) (((v) & 0x1) << 12)
|
||
|
#define BFM_AUDIOIN_ADCVOLUME_VOLUME_UPDATE_RIGHT(v) BM_AUDIOIN_ADCVOLUME_VOLUME_UPDATE_RIGHT
|
||
|
#define BF_AUDIOIN_ADCVOLUME_VOLUME_UPDATE_RIGHT_V(e) BF_AUDIOIN_ADCVOLUME_VOLUME_UPDATE_RIGHT(BV_AUDIOIN_ADCVOLUME_VOLUME_UPDATE_RIGHT__##e)
|
||
|
#define BFM_AUDIOIN_ADCVOLUME_VOLUME_UPDATE_RIGHT_V(v) BM_AUDIOIN_ADCVOLUME_VOLUME_UPDATE_RIGHT
|
||
|
#define BP_AUDIOIN_ADCVOLUME_VOLUME_RIGHT 0
|
||
|
#define BM_AUDIOIN_ADCVOLUME_VOLUME_RIGHT 0xff
|
||
|
#define BF_AUDIOIN_ADCVOLUME_VOLUME_RIGHT(v) (((v) & 0xff) << 0)
|
||
|
#define BFM_AUDIOIN_ADCVOLUME_VOLUME_RIGHT(v) BM_AUDIOIN_ADCVOLUME_VOLUME_RIGHT
|
||
|
#define BF_AUDIOIN_ADCVOLUME_VOLUME_RIGHT_V(e) BF_AUDIOIN_ADCVOLUME_VOLUME_RIGHT(BV_AUDIOIN_ADCVOLUME_VOLUME_RIGHT__##e)
|
||
|
#define BFM_AUDIOIN_ADCVOLUME_VOLUME_RIGHT_V(v) BM_AUDIOIN_ADCVOLUME_VOLUME_RIGHT
|
||
|
|
||
|
#define HW_AUDIOIN_ADCDEBUG HW(AUDIOIN_ADCDEBUG)
|
||
|
#define HWA_AUDIOIN_ADCDEBUG (0x8004c000 + 0x40)
|
||
|
#define HWT_AUDIOIN_ADCDEBUG HWIO_32_RW
|
||
|
#define HWN_AUDIOIN_ADCDEBUG AUDIOIN_ADCDEBUG
|
||
|
#define HWI_AUDIOIN_ADCDEBUG
|
||
|
#define HW_AUDIOIN_ADCDEBUG_SET HW(AUDIOIN_ADCDEBUG_SET)
|
||
|
#define HWA_AUDIOIN_ADCDEBUG_SET (HWA_AUDIOIN_ADCDEBUG + 0x4)
|
||
|
#define HWT_AUDIOIN_ADCDEBUG_SET HWIO_32_WO
|
||
|
#define HWN_AUDIOIN_ADCDEBUG_SET AUDIOIN_ADCDEBUG
|
||
|
#define HWI_AUDIOIN_ADCDEBUG_SET
|
||
|
#define HW_AUDIOIN_ADCDEBUG_CLR HW(AUDIOIN_ADCDEBUG_CLR)
|
||
|
#define HWA_AUDIOIN_ADCDEBUG_CLR (HWA_AUDIOIN_ADCDEBUG + 0x8)
|
||
|
#define HWT_AUDIOIN_ADCDEBUG_CLR HWIO_32_WO
|
||
|
#define HWN_AUDIOIN_ADCDEBUG_CLR AUDIOIN_ADCDEBUG
|
||
|
#define HWI_AUDIOIN_ADCDEBUG_CLR
|
||
|
#define HW_AUDIOIN_ADCDEBUG_TOG HW(AUDIOIN_ADCDEBUG_TOG)
|
||
|
#define HWA_AUDIOIN_ADCDEBUG_TOG (HWA_AUDIOIN_ADCDEBUG + 0xc)
|
||
|
#define HWT_AUDIOIN_ADCDEBUG_TOG HWIO_32_WO
|
||
|
#define HWN_AUDIOIN_ADCDEBUG_TOG AUDIOIN_ADCDEBUG
|
||
|
#define HWI_AUDIOIN_ADCDEBUG_TOG
|
||
|
#define BP_AUDIOIN_ADCDEBUG_ENABLE_ADCDMA 31
|
||
|
#define BM_AUDIOIN_ADCDEBUG_ENABLE_ADCDMA 0x80000000
|
||
|
#define BF_AUDIOIN_ADCDEBUG_ENABLE_ADCDMA(v) (((v) & 0x1) << 31)
|
||
|
#define BFM_AUDIOIN_ADCDEBUG_ENABLE_ADCDMA(v) BM_AUDIOIN_ADCDEBUG_ENABLE_ADCDMA
|
||
|
#define BF_AUDIOIN_ADCDEBUG_ENABLE_ADCDMA_V(e) BF_AUDIOIN_ADCDEBUG_ENABLE_ADCDMA(BV_AUDIOIN_ADCDEBUG_ENABLE_ADCDMA__##e)
|
||
|
#define BFM_AUDIOIN_ADCDEBUG_ENABLE_ADCDMA_V(v) BM_AUDIOIN_ADCDEBUG_ENABLE_ADCDMA
|
||
|
#define BP_AUDIOIN_ADCDEBUG_ADC_DMA_REQ_HAND_SHAKE_CLK_CROSS 3
|
||
|
#define BM_AUDIOIN_ADCDEBUG_ADC_DMA_REQ_HAND_SHAKE_CLK_CROSS 0x8
|
||
|
#define BF_AUDIOIN_ADCDEBUG_ADC_DMA_REQ_HAND_SHAKE_CLK_CROSS(v) (((v) & 0x1) << 3)
|
||
|
#define BFM_AUDIOIN_ADCDEBUG_ADC_DMA_REQ_HAND_SHAKE_CLK_CROSS(v) BM_AUDIOIN_ADCDEBUG_ADC_DMA_REQ_HAND_SHAKE_CLK_CROSS
|
||
|
#define BF_AUDIOIN_ADCDEBUG_ADC_DMA_REQ_HAND_SHAKE_CLK_CROSS_V(e) BF_AUDIOIN_ADCDEBUG_ADC_DMA_REQ_HAND_SHAKE_CLK_CROSS(BV_AUDIOIN_ADCDEBUG_ADC_DMA_REQ_HAND_SHAKE_CLK_CROSS__##e)
|
||
|
#define BFM_AUDIOIN_ADCDEBUG_ADC_DMA_REQ_HAND_SHAKE_CLK_CROSS_V(v) BM_AUDIOIN_ADCDEBUG_ADC_DMA_REQ_HAND_SHAKE_CLK_CROSS
|
||
|
#define BP_AUDIOIN_ADCDEBUG_SET_INTERRUPT3_HAND_SHAKE 2
|
||
|
#define BM_AUDIOIN_ADCDEBUG_SET_INTERRUPT3_HAND_SHAKE 0x4
|
||
|
#define BF_AUDIOIN_ADCDEBUG_SET_INTERRUPT3_HAND_SHAKE(v) (((v) & 0x1) << 2)
|
||
|
#define BFM_AUDIOIN_ADCDEBUG_SET_INTERRUPT3_HAND_SHAKE(v) BM_AUDIOIN_ADCDEBUG_SET_INTERRUPT3_HAND_SHAKE
|
||
|
#define BF_AUDIOIN_ADCDEBUG_SET_INTERRUPT3_HAND_SHAKE_V(e) BF_AUDIOIN_ADCDEBUG_SET_INTERRUPT3_HAND_SHAKE(BV_AUDIOIN_ADCDEBUG_SET_INTERRUPT3_HAND_SHAKE__##e)
|
||
|
#define BFM_AUDIOIN_ADCDEBUG_SET_INTERRUPT3_HAND_SHAKE_V(v) BM_AUDIOIN_ADCDEBUG_SET_INTERRUPT3_HAND_SHAKE
|
||
|
#define BP_AUDIOIN_ADCDEBUG_DMA_PREQ 1
|
||
|
#define BM_AUDIOIN_ADCDEBUG_DMA_PREQ 0x2
|
||
|
#define BF_AUDIOIN_ADCDEBUG_DMA_PREQ(v) (((v) & 0x1) << 1)
|
||
|
#define BFM_AUDIOIN_ADCDEBUG_DMA_PREQ(v) BM_AUDIOIN_ADCDEBUG_DMA_PREQ
|
||
|
#define BF_AUDIOIN_ADCDEBUG_DMA_PREQ_V(e) BF_AUDIOIN_ADCDEBUG_DMA_PREQ(BV_AUDIOIN_ADCDEBUG_DMA_PREQ__##e)
|
||
|
#define BFM_AUDIOIN_ADCDEBUG_DMA_PREQ_V(v) BM_AUDIOIN_ADCDEBUG_DMA_PREQ
|
||
|
#define BP_AUDIOIN_ADCDEBUG_FIFO_STATUS 0
|
||
|
#define BM_AUDIOIN_ADCDEBUG_FIFO_STATUS 0x1
|
||
|
#define BF_AUDIOIN_ADCDEBUG_FIFO_STATUS(v) (((v) & 0x1) << 0)
|
||
|
#define BFM_AUDIOIN_ADCDEBUG_FIFO_STATUS(v) BM_AUDIOIN_ADCDEBUG_FIFO_STATUS
|
||
|
#define BF_AUDIOIN_ADCDEBUG_FIFO_STATUS_V(e) BF_AUDIOIN_ADCDEBUG_FIFO_STATUS(BV_AUDIOIN_ADCDEBUG_FIFO_STATUS__##e)
|
||
|
#define BFM_AUDIOIN_ADCDEBUG_FIFO_STATUS_V(v) BM_AUDIOIN_ADCDEBUG_FIFO_STATUS
|
||
|
|
||
|
#define HW_AUDIOIN_ADCVOL HW(AUDIOIN_ADCVOL)
|
||
|
#define HWA_AUDIOIN_ADCVOL (0x8004c000 + 0x50)
|
||
|
#define HWT_AUDIOIN_ADCVOL HWIO_32_RW
|
||
|
#define HWN_AUDIOIN_ADCVOL AUDIOIN_ADCVOL
|
||
|
#define HWI_AUDIOIN_ADCVOL
|
||
|
#define HW_AUDIOIN_ADCVOL_SET HW(AUDIOIN_ADCVOL_SET)
|
||
|
#define HWA_AUDIOIN_ADCVOL_SET (HWA_AUDIOIN_ADCVOL + 0x4)
|
||
|
#define HWT_AUDIOIN_ADCVOL_SET HWIO_32_WO
|
||
|
#define HWN_AUDIOIN_ADCVOL_SET AUDIOIN_ADCVOL
|
||
|
#define HWI_AUDIOIN_ADCVOL_SET
|
||
|
#define HW_AUDIOIN_ADCVOL_CLR HW(AUDIOIN_ADCVOL_CLR)
|
||
|
#define HWA_AUDIOIN_ADCVOL_CLR (HWA_AUDIOIN_ADCVOL + 0x8)
|
||
|
#define HWT_AUDIOIN_ADCVOL_CLR HWIO_32_WO
|
||
|
#define HWN_AUDIOIN_ADCVOL_CLR AUDIOIN_ADCVOL
|
||
|
#define HWI_AUDIOIN_ADCVOL_CLR
|
||
|
#define HW_AUDIOIN_ADCVOL_TOG HW(AUDIOIN_ADCVOL_TOG)
|
||
|
#define HWA_AUDIOIN_ADCVOL_TOG (HWA_AUDIOIN_ADCVOL + 0xc)
|
||
|
#define HWT_AUDIOIN_ADCVOL_TOG HWIO_32_WO
|
||
|
#define HWN_AUDIOIN_ADCVOL_TOG AUDIOIN_ADCVOL
|
||
|
#define HWI_AUDIOIN_ADCVOL_TOG
|
||
|
#define BP_AUDIOIN_ADCVOL_SELECT_LEFT 28
|
||
|
#define BM_AUDIOIN_ADCVOL_SELECT_LEFT 0x30000000
|
||
|
#define BF_AUDIOIN_ADCVOL_SELECT_LEFT(v) (((v) & 0x3) << 28)
|
||
|
#define BFM_AUDIOIN_ADCVOL_SELECT_LEFT(v) BM_AUDIOIN_ADCVOL_SELECT_LEFT
|
||
|
#define BF_AUDIOIN_ADCVOL_SELECT_LEFT_V(e) BF_AUDIOIN_ADCVOL_SELECT_LEFT(BV_AUDIOIN_ADCVOL_SELECT_LEFT__##e)
|
||
|
#define BFM_AUDIOIN_ADCVOL_SELECT_LEFT_V(v) BM_AUDIOIN_ADCVOL_SELECT_LEFT
|
||
|
#define BP_AUDIOIN_ADCVOL_SELECT_RIGHT 24
|
||
|
#define BM_AUDIOIN_ADCVOL_SELECT_RIGHT 0x3000000
|
||
|
#define BF_AUDIOIN_ADCVOL_SELECT_RIGHT(v) (((v) & 0x3) << 24)
|
||
|
#define BFM_AUDIOIN_ADCVOL_SELECT_RIGHT(v) BM_AUDIOIN_ADCVOL_SELECT_RIGHT
|
||
|
#define BF_AUDIOIN_ADCVOL_SELECT_RIGHT_V(e) BF_AUDIOIN_ADCVOL_SELECT_RIGHT(BV_AUDIOIN_ADCVOL_SELECT_RIGHT__##e)
|
||
|
#define BFM_AUDIOIN_ADCVOL_SELECT_RIGHT_V(v) BM_AUDIOIN_ADCVOL_SELECT_RIGHT
|
||
|
#define BP_AUDIOIN_ADCVOL_MUTE 8
|
||
|
#define BM_AUDIOIN_ADCVOL_MUTE 0x100
|
||
|
#define BF_AUDIOIN_ADCVOL_MUTE(v) (((v) & 0x1) << 8)
|
||
|
#define BFM_AUDIOIN_ADCVOL_MUTE(v) BM_AUDIOIN_ADCVOL_MUTE
|
||
|
#define BF_AUDIOIN_ADCVOL_MUTE_V(e) BF_AUDIOIN_ADCVOL_MUTE(BV_AUDIOIN_ADCVOL_MUTE__##e)
|
||
|
#define BFM_AUDIOIN_ADCVOL_MUTE_V(v) BM_AUDIOIN_ADCVOL_MUTE
|
||
|
#define BP_AUDIOIN_ADCVOL_GAIN_LEFT 4
|
||
|
#define BM_AUDIOIN_ADCVOL_GAIN_LEFT 0xf0
|
||
|
#define BF_AUDIOIN_ADCVOL_GAIN_LEFT(v) (((v) & 0xf) << 4)
|
||
|
#define BFM_AUDIOIN_ADCVOL_GAIN_LEFT(v) BM_AUDIOIN_ADCVOL_GAIN_LEFT
|
||
|
#define BF_AUDIOIN_ADCVOL_GAIN_LEFT_V(e) BF_AUDIOIN_ADCVOL_GAIN_LEFT(BV_AUDIOIN_ADCVOL_GAIN_LEFT__##e)
|
||
|
#define BFM_AUDIOIN_ADCVOL_GAIN_LEFT_V(v) BM_AUDIOIN_ADCVOL_GAIN_LEFT
|
||
|
#define BP_AUDIOIN_ADCVOL_GAIN_RIGHT 0
|
||
|
#define BM_AUDIOIN_ADCVOL_GAIN_RIGHT 0xf
|
||
|
#define BF_AUDIOIN_ADCVOL_GAIN_RIGHT(v) (((v) & 0xf) << 0)
|
||
|
#define BFM_AUDIOIN_ADCVOL_GAIN_RIGHT(v) BM_AUDIOIN_ADCVOL_GAIN_RIGHT
|
||
|
#define BF_AUDIOIN_ADCVOL_GAIN_RIGHT_V(e) BF_AUDIOIN_ADCVOL_GAIN_RIGHT(BV_AUDIOIN_ADCVOL_GAIN_RIGHT__##e)
|
||
|
#define BFM_AUDIOIN_ADCVOL_GAIN_RIGHT_V(v) BM_AUDIOIN_ADCVOL_GAIN_RIGHT
|
||
|
|
||
|
#define HW_AUDIOIN_MICLINE HW(AUDIOIN_MICLINE)
|
||
|
#define HWA_AUDIOIN_MICLINE (0x8004c000 + 0x60)
|
||
|
#define HWT_AUDIOIN_MICLINE HWIO_32_RW
|
||
|
#define HWN_AUDIOIN_MICLINE AUDIOIN_MICLINE
|
||
|
#define HWI_AUDIOIN_MICLINE
|
||
|
#define HW_AUDIOIN_MICLINE_SET HW(AUDIOIN_MICLINE_SET)
|
||
|
#define HWA_AUDIOIN_MICLINE_SET (HWA_AUDIOIN_MICLINE + 0x4)
|
||
|
#define HWT_AUDIOIN_MICLINE_SET HWIO_32_WO
|
||
|
#define HWN_AUDIOIN_MICLINE_SET AUDIOIN_MICLINE
|
||
|
#define HWI_AUDIOIN_MICLINE_SET
|
||
|
#define HW_AUDIOIN_MICLINE_CLR HW(AUDIOIN_MICLINE_CLR)
|
||
|
#define HWA_AUDIOIN_MICLINE_CLR (HWA_AUDIOIN_MICLINE + 0x8)
|
||
|
#define HWT_AUDIOIN_MICLINE_CLR HWIO_32_WO
|
||
|
#define HWN_AUDIOIN_MICLINE_CLR AUDIOIN_MICLINE
|
||
|
#define HWI_AUDIOIN_MICLINE_CLR
|
||
|
#define HW_AUDIOIN_MICLINE_TOG HW(AUDIOIN_MICLINE_TOG)
|
||
|
#define HWA_AUDIOIN_MICLINE_TOG (HWA_AUDIOIN_MICLINE + 0xc)
|
||
|
#define HWT_AUDIOIN_MICLINE_TOG HWIO_32_WO
|
||
|
#define HWN_AUDIOIN_MICLINE_TOG AUDIOIN_MICLINE
|
||
|
#define HWI_AUDIOIN_MICLINE_TOG
|
||
|
#define BP_AUDIOIN_MICLINE_ATTEN_LINE 30
|
||
|
#define BM_AUDIOIN_MICLINE_ATTEN_LINE 0x40000000
|
||
|
#define BF_AUDIOIN_MICLINE_ATTEN_LINE(v) (((v) & 0x1) << 30)
|
||
|
#define BFM_AUDIOIN_MICLINE_ATTEN_LINE(v) BM_AUDIOIN_MICLINE_ATTEN_LINE
|
||
|
#define BF_AUDIOIN_MICLINE_ATTEN_LINE_V(e) BF_AUDIOIN_MICLINE_ATTEN_LINE(BV_AUDIOIN_MICLINE_ATTEN_LINE__##e)
|
||
|
#define BFM_AUDIOIN_MICLINE_ATTEN_LINE_V(v) BM_AUDIOIN_MICLINE_ATTEN_LINE
|
||
|
#define BP_AUDIOIN_MICLINE_DIVIDE_LINE1 29
|
||
|
#define BM_AUDIOIN_MICLINE_DIVIDE_LINE1 0x20000000
|
||
|
#define BF_AUDIOIN_MICLINE_DIVIDE_LINE1(v) (((v) & 0x1) << 29)
|
||
|
#define BFM_AUDIOIN_MICLINE_DIVIDE_LINE1(v) BM_AUDIOIN_MICLINE_DIVIDE_LINE1
|
||
|
#define BF_AUDIOIN_MICLINE_DIVIDE_LINE1_V(e) BF_AUDIOIN_MICLINE_DIVIDE_LINE1(BV_AUDIOIN_MICLINE_DIVIDE_LINE1__##e)
|
||
|
#define BFM_AUDIOIN_MICLINE_DIVIDE_LINE1_V(v) BM_AUDIOIN_MICLINE_DIVIDE_LINE1
|
||
|
#define BP_AUDIOIN_MICLINE_DIVIDE_LINE2 28
|
||
|
#define BM_AUDIOIN_MICLINE_DIVIDE_LINE2 0x10000000
|
||
|
#define BF_AUDIOIN_MICLINE_DIVIDE_LINE2(v) (((v) & 0x1) << 28)
|
||
|
#define BFM_AUDIOIN_MICLINE_DIVIDE_LINE2(v) BM_AUDIOIN_MICLINE_DIVIDE_LINE2
|
||
|
#define BF_AUDIOIN_MICLINE_DIVIDE_LINE2_V(e) BF_AUDIOIN_MICLINE_DIVIDE_LINE2(BV_AUDIOIN_MICLINE_DIVIDE_LINE2__##e)
|
||
|
#define BFM_AUDIOIN_MICLINE_DIVIDE_LINE2_V(v) BM_AUDIOIN_MICLINE_DIVIDE_LINE2
|
||
|
#define BP_AUDIOIN_MICLINE_MIC_SELECT 24
|
||
|
#define BM_AUDIOIN_MICLINE_MIC_SELECT 0x1000000
|
||
|
#define BF_AUDIOIN_MICLINE_MIC_SELECT(v) (((v) & 0x1) << 24)
|
||
|
#define BFM_AUDIOIN_MICLINE_MIC_SELECT(v) BM_AUDIOIN_MICLINE_MIC_SELECT
|
||
|
#define BF_AUDIOIN_MICLINE_MIC_SELECT_V(e) BF_AUDIOIN_MICLINE_MIC_SELECT(BV_AUDIOIN_MICLINE_MIC_SELECT__##e)
|
||
|
#define BFM_AUDIOIN_MICLINE_MIC_SELECT_V(v) BM_AUDIOIN_MICLINE_MIC_SELECT
|
||
|
#define BP_AUDIOIN_MICLINE_MIC_RESISTOR 20
|
||
|
#define BM_AUDIOIN_MICLINE_MIC_RESISTOR 0x300000
|
||
|
#define BV_AUDIOIN_MICLINE_MIC_RESISTOR__Off 0x0
|
||
|
#define BV_AUDIOIN_MICLINE_MIC_RESISTOR__2KOhm 0x1
|
||
|
#define BV_AUDIOIN_MICLINE_MIC_RESISTOR__4KOhm 0x2
|
||
|
#define BV_AUDIOIN_MICLINE_MIC_RESISTOR__8KOhm 0x3
|
||
|
#define BF_AUDIOIN_MICLINE_MIC_RESISTOR(v) (((v) & 0x3) << 20)
|
||
|
#define BFM_AUDIOIN_MICLINE_MIC_RESISTOR(v) BM_AUDIOIN_MICLINE_MIC_RESISTOR
|
||
|
#define BF_AUDIOIN_MICLINE_MIC_RESISTOR_V(e) BF_AUDIOIN_MICLINE_MIC_RESISTOR(BV_AUDIOIN_MICLINE_MIC_RESISTOR__##e)
|
||
|
#define BFM_AUDIOIN_MICLINE_MIC_RESISTOR_V(v) BM_AUDIOIN_MICLINE_MIC_RESISTOR
|
||
|
#define BP_AUDIOIN_MICLINE_MIC_BIAS 16
|
||
|
#define BM_AUDIOIN_MICLINE_MIC_BIAS 0x70000
|
||
|
#define BF_AUDIOIN_MICLINE_MIC_BIAS(v) (((v) & 0x7) << 16)
|
||
|
#define BFM_AUDIOIN_MICLINE_MIC_BIAS(v) BM_AUDIOIN_MICLINE_MIC_BIAS
|
||
|
#define BF_AUDIOIN_MICLINE_MIC_BIAS_V(e) BF_AUDIOIN_MICLINE_MIC_BIAS(BV_AUDIOIN_MICLINE_MIC_BIAS__##e)
|
||
|
#define BFM_AUDIOIN_MICLINE_MIC_BIAS_V(v) BM_AUDIOIN_MICLINE_MIC_BIAS
|
||
|
#define BP_AUDIOIN_MICLINE_FORCE_MICAMP_PWRUP 8
|
||
|
#define BM_AUDIOIN_MICLINE_FORCE_MICAMP_PWRUP 0x100
|
||
|
#define BF_AUDIOIN_MICLINE_FORCE_MICAMP_PWRUP(v) (((v) & 0x1) << 8)
|
||
|
#define BFM_AUDIOIN_MICLINE_FORCE_MICAMP_PWRUP(v) BM_AUDIOIN_MICLINE_FORCE_MICAMP_PWRUP
|
||
|
#define BF_AUDIOIN_MICLINE_FORCE_MICAMP_PWRUP_V(e) BF_AUDIOIN_MICLINE_FORCE_MICAMP_PWRUP(BV_AUDIOIN_MICLINE_FORCE_MICAMP_PWRUP__##e)
|
||
|
#define BFM_AUDIOIN_MICLINE_FORCE_MICAMP_PWRUP_V(v) BM_AUDIOIN_MICLINE_FORCE_MICAMP_PWRUP
|
||
|
#define BP_AUDIOIN_MICLINE_MIC_GAIN 0
|
||
|
#define BM_AUDIOIN_MICLINE_MIC_GAIN 0x3
|
||
|
#define BV_AUDIOIN_MICLINE_MIC_GAIN__0dB 0x0
|
||
|
#define BV_AUDIOIN_MICLINE_MIC_GAIN__20dB 0x1
|
||
|
#define BV_AUDIOIN_MICLINE_MIC_GAIN__30dB 0x2
|
||
|
#define BV_AUDIOIN_MICLINE_MIC_GAIN__40dB 0x3
|
||
|
#define BF_AUDIOIN_MICLINE_MIC_GAIN(v) (((v) & 0x3) << 0)
|
||
|
#define BFM_AUDIOIN_MICLINE_MIC_GAIN(v) BM_AUDIOIN_MICLINE_MIC_GAIN
|
||
|
#define BF_AUDIOIN_MICLINE_MIC_GAIN_V(e) BF_AUDIOIN_MICLINE_MIC_GAIN(BV_AUDIOIN_MICLINE_MIC_GAIN__##e)
|
||
|
#define BFM_AUDIOIN_MICLINE_MIC_GAIN_V(v) BM_AUDIOIN_MICLINE_MIC_GAIN
|
||
|
|
||
|
#define HW_AUDIOIN_ANACLKCTRL HW(AUDIOIN_ANACLKCTRL)
|
||
|
#define HWA_AUDIOIN_ANACLKCTRL (0x8004c000 + 0x70)
|
||
|
#define HWT_AUDIOIN_ANACLKCTRL HWIO_32_RW
|
||
|
#define HWN_AUDIOIN_ANACLKCTRL AUDIOIN_ANACLKCTRL
|
||
|
#define HWI_AUDIOIN_ANACLKCTRL
|
||
|
#define HW_AUDIOIN_ANACLKCTRL_SET HW(AUDIOIN_ANACLKCTRL_SET)
|
||
|
#define HWA_AUDIOIN_ANACLKCTRL_SET (HWA_AUDIOIN_ANACLKCTRL + 0x4)
|
||
|
#define HWT_AUDIOIN_ANACLKCTRL_SET HWIO_32_WO
|
||
|
#define HWN_AUDIOIN_ANACLKCTRL_SET AUDIOIN_ANACLKCTRL
|
||
|
#define HWI_AUDIOIN_ANACLKCTRL_SET
|
||
|
#define HW_AUDIOIN_ANACLKCTRL_CLR HW(AUDIOIN_ANACLKCTRL_CLR)
|
||
|
#define HWA_AUDIOIN_ANACLKCTRL_CLR (HWA_AUDIOIN_ANACLKCTRL + 0x8)
|
||
|
#define HWT_AUDIOIN_ANACLKCTRL_CLR HWIO_32_WO
|
||
|
#define HWN_AUDIOIN_ANACLKCTRL_CLR AUDIOIN_ANACLKCTRL
|
||
|
#define HWI_AUDIOIN_ANACLKCTRL_CLR
|
||
|
#define HW_AUDIOIN_ANACLKCTRL_TOG HW(AUDIOIN_ANACLKCTRL_TOG)
|
||
|
#define HWA_AUDIOIN_ANACLKCTRL_TOG (HWA_AUDIOIN_ANACLKCTRL + 0xc)
|
||
|
#define HWT_AUDIOIN_ANACLKCTRL_TOG HWIO_32_WO
|
||
|
#define HWN_AUDIOIN_ANACLKCTRL_TOG AUDIOIN_ANACLKCTRL
|
||
|
#define HWI_AUDIOIN_ANACLKCTRL_TOG
|
||
|
#define BP_AUDIOIN_ANACLKCTRL_CLKGATE 31
|
||
|
#define BM_AUDIOIN_ANACLKCTRL_CLKGATE 0x80000000
|
||
|
#define BF_AUDIOIN_ANACLKCTRL_CLKGATE(v) (((v) & 0x1) << 31)
|
||
|
#define BFM_AUDIOIN_ANACLKCTRL_CLKGATE(v) BM_AUDIOIN_ANACLKCTRL_CLKGATE
|
||
|
#define BF_AUDIOIN_ANACLKCTRL_CLKGATE_V(e) BF_AUDIOIN_ANACLKCTRL_CLKGATE(BV_AUDIOIN_ANACLKCTRL_CLKGATE__##e)
|
||
|
#define BFM_AUDIOIN_ANACLKCTRL_CLKGATE_V(v) BM_AUDIOIN_ANACLKCTRL_CLKGATE
|
||
|
#define BP_AUDIOIN_ANACLKCTRL_DITHER_ENABLE 6
|
||
|
#define BM_AUDIOIN_ANACLKCTRL_DITHER_ENABLE 0x40
|
||
|
#define BF_AUDIOIN_ANACLKCTRL_DITHER_ENABLE(v) (((v) & 0x1) << 6)
|
||
|
#define BFM_AUDIOIN_ANACLKCTRL_DITHER_ENABLE(v) BM_AUDIOIN_ANACLKCTRL_DITHER_ENABLE
|
||
|
#define BF_AUDIOIN_ANACLKCTRL_DITHER_ENABLE_V(e) BF_AUDIOIN_ANACLKCTRL_DITHER_ENABLE(BV_AUDIOIN_ANACLKCTRL_DITHER_ENABLE__##e)
|
||
|
#define BFM_AUDIOIN_ANACLKCTRL_DITHER_ENABLE_V(v) BM_AUDIOIN_ANACLKCTRL_DITHER_ENABLE
|
||
|
#define BP_AUDIOIN_ANACLKCTRL_SLOW_DITHER 5
|
||
|
#define BM_AUDIOIN_ANACLKCTRL_SLOW_DITHER 0x20
|
||
|
#define BF_AUDIOIN_ANACLKCTRL_SLOW_DITHER(v) (((v) & 0x1) << 5)
|
||
|
#define BFM_AUDIOIN_ANACLKCTRL_SLOW_DITHER(v) BM_AUDIOIN_ANACLKCTRL_SLOW_DITHER
|
||
|
#define BF_AUDIOIN_ANACLKCTRL_SLOW_DITHER_V(e) BF_AUDIOIN_ANACLKCTRL_SLOW_DITHER(BV_AUDIOIN_ANACLKCTRL_SLOW_DITHER__##e)
|
||
|
#define BFM_AUDIOIN_ANACLKCTRL_SLOW_DITHER_V(v) BM_AUDIOIN_ANACLKCTRL_SLOW_DITHER
|
||
|
#define BP_AUDIOIN_ANACLKCTRL_INVERT_ADCCLK 4
|
||
|
#define BM_AUDIOIN_ANACLKCTRL_INVERT_ADCCLK 0x10
|
||
|
#define BF_AUDIOIN_ANACLKCTRL_INVERT_ADCCLK(v) (((v) & 0x1) << 4)
|
||
|
#define BFM_AUDIOIN_ANACLKCTRL_INVERT_ADCCLK(v) BM_AUDIOIN_ANACLKCTRL_INVERT_ADCCLK
|
||
|
#define BF_AUDIOIN_ANACLKCTRL_INVERT_ADCCLK_V(e) BF_AUDIOIN_ANACLKCTRL_INVERT_ADCCLK(BV_AUDIOIN_ANACLKCTRL_INVERT_ADCCLK__##e)
|
||
|
#define BFM_AUDIOIN_ANACLKCTRL_INVERT_ADCCLK_V(v) BM_AUDIOIN_ANACLKCTRL_INVERT_ADCCLK
|
||
|
#define BP_AUDIOIN_ANACLKCTRL_ADCDIV 0
|
||
|
#define BM_AUDIOIN_ANACLKCTRL_ADCDIV 0x7
|
||
|
#define BF_AUDIOIN_ANACLKCTRL_ADCDIV(v) (((v) & 0x7) << 0)
|
||
|
#define BFM_AUDIOIN_ANACLKCTRL_ADCDIV(v) BM_AUDIOIN_ANACLKCTRL_ADCDIV
|
||
|
#define BF_AUDIOIN_ANACLKCTRL_ADCDIV_V(e) BF_AUDIOIN_ANACLKCTRL_ADCDIV(BV_AUDIOIN_ANACLKCTRL_ADCDIV__##e)
|
||
|
#define BFM_AUDIOIN_ANACLKCTRL_ADCDIV_V(v) BM_AUDIOIN_ANACLKCTRL_ADCDIV
|
||
|
|
||
|
#define HW_AUDIOIN_DATA HW(AUDIOIN_DATA)
|
||
|
#define HWA_AUDIOIN_DATA (0x8004c000 + 0x80)
|
||
|
#define HWT_AUDIOIN_DATA HWIO_32_RW
|
||
|
#define HWN_AUDIOIN_DATA AUDIOIN_DATA
|
||
|
#define HWI_AUDIOIN_DATA
|
||
|
#define BP_AUDIOIN_DATA_HIGH 16
|
||
|
#define BM_AUDIOIN_DATA_HIGH 0xffff0000
|
||
|
#define BF_AUDIOIN_DATA_HIGH(v) (((v) & 0xffff) << 16)
|
||
|
#define BFM_AUDIOIN_DATA_HIGH(v) BM_AUDIOIN_DATA_HIGH
|
||
|
#define BF_AUDIOIN_DATA_HIGH_V(e) BF_AUDIOIN_DATA_HIGH(BV_AUDIOIN_DATA_HIGH__##e)
|
||
|
#define BFM_AUDIOIN_DATA_HIGH_V(v) BM_AUDIOIN_DATA_HIGH
|
||
|
#define BP_AUDIOIN_DATA_LOW 0
|
||
|
#define BM_AUDIOIN_DATA_LOW 0xffff
|
||
|
#define BF_AUDIOIN_DATA_LOW(v) (((v) & 0xffff) << 0)
|
||
|
#define BFM_AUDIOIN_DATA_LOW(v) BM_AUDIOIN_DATA_LOW
|
||
|
#define BF_AUDIOIN_DATA_LOW_V(e) BF_AUDIOIN_DATA_LOW(BV_AUDIOIN_DATA_LOW__##e)
|
||
|
#define BFM_AUDIOIN_DATA_LOW_V(v) BM_AUDIOIN_DATA_LOW
|
||
|
|
||
|
#endif /* __HEADERGEN_STMP3600_AUDIOIN_H__*/
|