Регистры Allwinner H616

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


DMA_CFG_REG
3.9.5. DMA Channel Configuration Register(N=0~15) - адрес: 0x100000700200c (смещение: 0x0100+N*0x0040+0x000C)

Прямой доступ к памяти: список регистров



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

  Unused

Bits 31 : 27

  DMA_DEST_DATA_WIDTH

Bits 26 : 25
R
0x0

DMA Destination Data Width
00: 8-bit
01: 16-bit
10: 32-bit
11: 64-bit


  DMA_ADDR_MODE

Bit 24
R
0x0

DMA Destination Address Mode
0: Linear Mode
1: IO Mode


  DMA_DEST_BLOCK_SIZE

Bits 23 : 22
R
0x0

DMA Destination Block Size
00: 1
01: 4
10: 8
11: 16


  DMA_DEST_DRQ_TYPE

Bits 21 : 16
R
0x0

DMA Destination DRQ Type
The details in DRQ Type and Port Corresponding Relation.


  Unused

Bits 15 : 11

  DMA_SRC_DATA_WIDTH

Bits 10 : 9
R
0x0

DMA Source Data Width
00: 8-bit
01: 16-bit
10: 32-bit
11: 64-bit


  DMA_SRC_ADDR_MODE

Bit 8
R
0x0

DMA Source Address Mode
0: Linear Mode
1: IO Mode


  DMA_SRC_BLOCK_SIZE

Bits 7 : 6
R
0x0

DMA Source Block Size
00: 1
01: 4
10: 8
11: 16


  DMA_SRC_DRQ_TYPE

Bits 5 : 0
R
0x0

DMA Source DRQ Type
The details in DRQ Type and Port Corresponding Relation.



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

md 100000700200c 1



Bit fields structure

typedef union  dma_cfg_reg
{
  struct
  {
   unsigned dma_src_drq_type : 6;
   unsigned dma_src_block_size : 2;
   unsigned dma_src_addr_mode : 1;
   unsigned dma_src_data_width : 2;
   unsigned unused0 : 5;
   unsigned dma_dest_drq_type : 6;
   unsigned dma_dest_block_size : 2;
   unsigned dma_addr_mode : 1;
   unsigned dma_dest_data_width : 2;
   unsigned unused1 : 5;
  } b;
   unsigned long w;
} DMA_CFG_REG
   

Allwinner H616 Manual