Регистры Allwinner H616

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


DMIC_CH_MAP
8.2.4. DMIC Channel Mapping Register - адрес: 0x5095028 (смещение: 0x0028)

Контроллер микрофона: список регистров



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

  DMIC_CH7_MAP

Bits 31 : 28
R/W
0x7

DMIC Channel 7 Mapping
0000: DATA0 Left Channel
0001: DATA0 Right Channel

0010: DATA1 Left Channel
0011: DATA1 Right Channel
0100: DATA2 Left Channel
0101: DATA2 Right Channel
0110: DATA3 Left Channel
0111: DATA3 Right Channel


  DMIC_CH6_MAP

Bits 27 : 24
R/W
0x6

DMIC Channel 6 Mapping
0000: DATA0 Left Channel
0001: DATA0 Right Channel

0010: DATA1 Left Channel
0011: DATA1 Right Channel
0100: DATA2 Left Channel
0101: DATA2 Right Channel
0110: DATA3 Left Channel
0111: DATA3 Right Channel


  DMIC_CH5_MAP

Bits 23 : 20
R/W
0x5

DMIC Channel 5 Mapping
0000: DATA0 Left Channel
0001: DATA0 Right Channel
0010: DATA1 Left Channel
0011: DATA1 Right Channel
0100: DATA2 Left Channel
0101: DATA2 Right Channel
0110: DATA3 Left Channel
0111: DATA3 Right Channel


  DMIC_CH4_MAP

Bits 19 : 16
R/W
0x4

DMIC Channel 4 Mapping
0000: DATA0 Left Channel
0001: DATA0 Right Channel
0010: DATA1 Left Channel
0011: DATA1 Right Channel
0100: DATA2 Left Channel
0101: DATA2 Right Channel
0110: DATA3 Left Channel
0111: DATA3 Right Channel


  DMIC_CH3_MAP

Bits 15 : 12
R/W
0x3

DMIC Channel 3 Mapping
0000: DATA0 Left Channel
0001: DATA0 Right Channel
0010: DATA1 Left Channel
0011: DATA1 Right Channel
0100: DATA2 Left Channel
0101: DATA2 Right Channel
0110: DATA3 Left Channel
0111: DATA3 Right Channel


  DMIC_CH2_MAP

Bits 11 : 8
R/W
0x2

DMIC Channel 2 Mapping
0000: DATA0 Left Channel
0001: DATA0 Right Channel

0010: DATA1 Left Channel
0011: DATA1 Right Channel
0100: DATA2 Left Channel
0101: DATA2 Right Channel
0110: DATA3 Left Channel
0111: DATA3 Right Channel


  DMIC_CH1_MAP

Bits 7 : 4
R/W
0x1

DMIC Channel 1 Mapping
0000: DATA0 Left Channel
0001: DATA0 Right Channel
0010: DATA1 Left Channel
0011: DATA1 Right Channel
0100: DATA2 Left Channel
0101: DATA2 Right Channel
0110: DATA3 Left Channel
0111: DATA3 Right Channel


  DMIC_CH0_MAP

Bits 3 : 0
R/W
0x0DMIC

0000: DATA0 Left Channel
0001: DATA0 Right Channel
0010: DATA1 Left Channel
0011: DATA1 Right Channel
0100: DATA2 Left Channel
0101: DATA2 Right Channel
0110: DATA3 Left Channel
0111: DATA3 Right Channel



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

md 5095028 1



Bit fields structure

typedef union  dmic_ch_map
{
  struct
  {
   unsigned dmic_ch0_map : 4;
   unsigned dmic_ch1_map : 4;
   unsigned dmic_ch2_map : 4;
   unsigned dmic_ch3_map : 4;
   unsigned dmic_ch4_map : 4;
   unsigned dmic_ch5_map : 4;
   unsigned dmic_ch6_map : 4;
   unsigned dmic_ch7_map : 4;
  } b;
   unsigned long w;
} DMIC_CH_MAP
   

Allwinner H616 Manual