Регистры Allwinner H616

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


OWA_TX_CFIG
8.3.4. OWA TX Configuration Register - адрес: 0x5093004 (смещение: 0x0004)

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



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

  TX_SINGLE_MODE

Bit 31
R/W
0x0

Tx Single Channel Mode
0: Disable
1: Enable


  Unused

Bits 30 : 18

  ASS

Bit 17
R/W
0x0

Audio Sample Select with TX FIFO Underrun when
0: Sending 0
1: Sending the last audio
Note: This bit is only valid in PCM mode.


  TX_AUDIO

Bit 16
R/W
0x0

TX Data Type
0: Linear PCM (Valid bit of both sub-frame set to 0 )
1: Non-audio(Valid bit of both sub-frame set to 1)


  Unused

Bits 15 : 9

  TX_RATIO

Bits 8 : 4
R/W
0xF

TX Clock Divide Ratio
Clock divide ratio = TX_TATIO +1
Fs = PLL_AUDIO/[(TX_TATIO +1)*64*2]


  TX_SF

Bits 3 : 2
R/W
0x0

TX Sample Format
00: 16 bits
01: 20 bits
10: 24 bits
11: Reserved


  TX_CHM

Bit 1
R/W
0x0

0: Channel status A&B set to 0
1: Channel status A&B generated from TX_CHSTA


  TXEN

Bit 0
R/W
0x0

0: Disabled
1: Enabled



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

md 5093004 1



Bit fields structure

typedef union  owa_tx_cfig
{
  struct
  {
   unsigned txen : 1;
   unsigned tx_chm : 1;
   unsigned tx_sf : 2;
   unsigned tx_ratio : 5;
   unsigned unused0 : 7;
   unsigned tx_audio : 1;
   unsigned ass : 1;
   unsigned unused1 : 13;
   unsigned tx_single_mode : 1;
  } b;
   unsigned long w;
} OWA_TX_CFIG
   

Allwinner H616 Manual