Регистры Allwinner H616

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


OWA_TX_CHSTA1
8.3.4. OWA TX Channel Status Reg - адрес: 0x5093030 (смещение: 0x0030)

Контроллер последовательной аудио-шины: список регистров



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

  Unused

Bits 31 : 10

  CGMS_A

Bits 9 : 8
R/W
0x0

00: Copying is permitted without restriction
01: One generation of copies may be made
10: Condition not be used
11: No copying is permitted


  ORIG_FREQ

Bits 7 : 4
R/W
0x0

Original Sampling Frequency
0000: Not indicated
0001: 192 kHz
0010: 12 kHz
0011: 176.4 kHz
0100: Reserved
0101: 96 kHz
0110: 8 kHz
0111: 88.2 kHz
1000: 16 kHz
1001: 24 kHz
1010: 11.025 kHz
1011: 22.05 kHz
1100: 32 kHz
1101: 48 kHz
1110: Reserved
1111: 44.1 kHz


  WORD_LENGTH

Bits 3 : 1
R/W
0x0

Sample Word Length
For bit 0 = \"0\":
000: Not indicated
001: 16 bit
010: 18 bit
100: 19 bit
101: 20 bit
110: 17 bit
111: Reserved

For bit 0 = \"1\":
000: Not indicated
001: 20 bit
010: 22 bit
100: 23 bit
101: 24 bit
110: 21 bit
111: Reserved


  MAX_WORD_LENGTH

Bit 0
R/W
0x0

Max Word Length
0: Maximum audio sample word length is 20 bits
1: Maximum audio sample word length is 24 bits



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

md 5093030 1



Bit fields structure

typedef union  owa_tx_chsta1
{
  struct
  {
   unsigned max_word_length : 1;
   unsigned word_length : 3;
   unsigned orig_freq : 4;
   unsigned cgms_a : 2;
   unsigned unused0 : 22;
  } b;
   unsigned long w;
} OWA_TX_CHSTA1
   

Allwinner H616 Manual