Регистры Allwinner H616

Сокращения  |  Дерево шин  |  Карта памяти


AC_DAC_DG
8.4.5. DAC Debug Register - адрес: 0x5096028 (смещение: 0x0028)

Аудиокодек: список регистров



31 ||||||||||||||||| 16
15 ||||||||||||||||| 00

  Unused

Bits 31 : 12

  DAC_MODU_SELECT

Bit 11
R/W
0x0

DAC Modulator Debug
0: DAC Modulator Normal Mode
1: DAC Modulator Debug Mode


  DAC_PATTERN_SELECT

Bits 10 : 9
R/W
0x0

DAC Pattern Select
00: Normal (Audio Sample from TX FIFO)
01: -6 dB Sin wave
10: -60 dB Sin wave
11: Silent wave


  CODEC_CLK_SELECT

Bit 8
R/W
0x0

CODEC Clock Source Select
0: CODEC Clock from PLL
1: CODEC Clock from OSC (for Debug)


  Unused

Bit 7

  DA_SWP

Bit 6
R/W
0x0

DAC Output Channel Swap Enable
0:Disable
1:Enable


  Unused

Bits 5 : 2

  ADDA_LOOP_MODE

Bits 1 : 0
R/W
0x0

ADDA Loop Mode Select
00: Disable
01: ADDA LOOP MODE DACL/DACR connect to ADCL/ADCR
10: ADDA LOOP MODE DACL/DACR connect to ADCX/ADCY
11: Reserved



Команда U-Boot для чтения регистра

md 5096028 1



Bit fields structure

typedef union  ac_dac_dg
{
  struct
  {
   unsigned adda_loop_mode : 2;
   unsigned unused0 : 4;
   unsigned da_swp : 1;
   unsigned unused1 : 1;
   unsigned codec_clk_select : 1;
   unsigned dac_pattern_select : 2;
   unsigned dac_modu_select : 1;
   unsigned unused2 : 20;
  } b;
   unsigned long w;
} AC_DAC_DG
   

Allwinner H616 Manual