Регистры Allwinner H616

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


I2Sn_CTRL
8.1.6. I2Sn Control - адрес: 0x20050a7003 (смещение: 0x0200+n*0x0100(n=0~3))

Аудио-концентратор: список регистров



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

  Unused

Bits 31 : 24

  LOOPBACK3

Bit 23
R/W
0x0

Loop back test
0: Normal mode
1: Loopback test
When set 1 , connecting the SDO0 with the SDI3


  LOOPBACK2

Bit 22
R/W
0x0

Loop back test
0: Normal mode
1: Loopback test
When set 1 , connecting the SDO0 with the SDI2


  LOOPBACK1

Bit 21
R/W
0x0

Loop back test
0: Normal mode
1: Loopback test
When set 1 , connecting the SDO0 with the SDI1


  LOOPBACK0

Bit 20
R/W
0x0

Loop back test
0: Normal mode
1: Loopback test
When set 1 , connecting the SDO0 with the SDI0


  Unused

Bit 19

  BCLK_LRCK_DIRECTION

Bit 18
R/W
0x1

0:Input
1:Output


  Unused

Bits 17 : 16

  SDI3_EN

Bit 15
R/W
0x0

0:Disable, Hi-Z state
1:Enable


  SDI2_EN

Bit 14
R/W
0x0

0:Disable, Hi-Z state
1:Enable


  SDI1_EN

Bit 13
R/W
0x0

0:Disable, Hi-Z state
1:Enable


  SDI0_EN

Bit 12
R/W
0x0

0:Disable, Hi-Z state
1:Enable


  SDO3_EN

Bit 11
R/W
0x0

0:Disable, Hi-Z state
1:Enable


  SDO2_EN

Bit 10
R/W
0x0

0:Disable, Hi-Z state
1:Enable


  SDO1_EN

Bit 9
R/W
0x0

0:Disable, Hi-Z state
1:Enable


  SDO0_EN

Bit 8
R/W
0x0

0:Disable, Hi-Z state
1:Enable


  Unused

Bit 7

  OUT_MUTE

Bit 6
R/W
0x0

0: Normal transfer
1: Force DOUT to output 0


  MODE_SEL

Bits 5 : 4
R/W
0x0

Mode Selection
00: PCM mode(offset 0: DSP_B; offset 1: DSP_A)
01: Left mode(offset 0: L-J Mode; offset 1: I2S mode)
10: Right-Justified mode
11: Reserved


  LOOPBACK

Bit 3
R/W
0x0

Loop back test
0: Normal mode
1: Loopback test
When set 1 , connecting the SDO0 with the SDI


  TXEN

Bit 2
R/W
0x0

Transmitter Block Enable
0: Disable
1: Enable


  RXEN

Bit 1
R/W
0x0

Receiver Block Enable
0: Disable
1: Enable


  GEN

Bit 0
R/W
0x0

Globe Enable
A disable on this bit overrides any other block or channel enables.
0: Disable
1: Enable



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

md 20050a7003 1



Bit fields structure

typedef union  i2sn_ctrl
{
  struct
  {
   unsigned gen : 1;
   unsigned rxen : 1;
   unsigned txen : 1;
   unsigned loopback : 1;
   unsigned mode_sel : 2;
   unsigned out_mute : 1;
   unsigned unused0 : 1;
   unsigned sdo0_en : 1;
   unsigned sdo1_en : 1;
   unsigned sdo2_en : 1;
   unsigned sdo3_en : 1;
   unsigned sdi0_en : 1;
   unsigned sdi1_en : 1;
   unsigned sdi2_en : 1;
   unsigned sdi3_en : 1;
   unsigned unused1 : 2;
   unsigned bclk_lrck_direction : 1;
   unsigned unused2 : 1;
   unsigned loopback0 : 1;
   unsigned loopback1 : 1;
   unsigned loopback2 : 1;
   unsigned loopback3 : 1;
   unsigned unused3 : 8;
  } b;
   unsigned long w;
} I2Sn_CTRL
   

Allwinner H616 Manual