Регистры Allwinner H616

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


PC_DRV0
9.6.4. PC Multi-Driving Register 0 - адрес: 0x300b05c (смещение: 0x005C)

Контроллер портов ввода-вывода (GPIO): список регистров



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

  PC15_DRV

Bits 31 : 30
R/W
0x1

PC15 Multi-Driving Select
00: Level 0
01: Level 1
10: Level 2
11: Level 3


  PC14_DRV

Bits 29 : 28
R/W
0x1

PC14 Multi-Driving Select
00: Level 0
01: Level 1
10: Level 2
11: Level 3


  PC13_DRV

Bits 27 : 26
R/W
0x1

PC13 Multi-Driving Select
00: Level 0
01: Level 1
10: Level 2
11: Level 3


  PC12_DRV

Bits 25 : 24
R/W
0x1

PC12 Multi-Driving Select
00: Level 0
01: Level 1
10: Level 2
11: Level 3


  PC11_DRV

Bits 23 : 22
R/W
0x1

PC11 Multi-Driving Select
00: Level 0
01: Level 1
10: Level 2
11: Level 3


  PC10_DRV

Bits 21 : 20
R/W
0x1

PC10 Multi-Driving Select
00: Level 0
01: Level 1
10: Level 2
11: Level 3


  PC9_DRV

Bits 19 : 18
R/W
0x1

PC9 Multi-Driving Select
00: Level 0
01: Level 1
10: Level 2
11: Level 3


  PC8_DRV

Bits 17 : 16
R/W
0x1

PC8 Multi-Driving Select
00: Level 0
01: Level 1
10: Level 2
11: Level 3


  PC7_DRV

Bits 15 : 14
R/W
0x1

PC7 Multi-Driving Select
00: Level 0
01: Level 1
10: Level 2
11: Level 3


  PC6_DRV

Bits 13 : 12
R/W
0x1

PC6 Multi-Driving Select
00: Level 0
01: Level 1
10: Level 2
11: Level 3


  PC5_DRV

Bits 11 : 10
R/W
0x1

PC5 Multi-Driving Select
00: Level 0
01: Level 1
10: Level 2
11: Level 3


  PC4_DRV

Bits 9 : 8
R/W
0x1

PC4 Multi-Driving Select
00: Level 0
01: Level 1
10: Level 2
11: Level 3


  PC3_DRV

Bits 7 : 6
R/W
0x1

PC3 Multi-Driving Select
00: Level 0
01: Level 1
10: Level 2
11: Level 3


  PC2_DRV

Bits 5 : 4
R/W
0x1

PC2 Multi-Driving Select
00: Level 0
01: Level 1
10: Level 2
11: Level 3


  PC1_DRV

Bits 3 : 2
R/W
0x1

PC1 Multi-Driving Select
00: Level 0
01: Level 1
10: Level 2
11: Level 3


  PC0_DRV

Bits 1 : 0
R/W
0x1

PC0 Multi-Driving Select
00: Level 0
01: Level 1
10: Level 2
11: Level 3



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

md 300b05c 1



Bit fields structure

typedef union  pc_drv0
{
  struct
  {
   unsigned pc0_drv : 2;
   unsigned pc1_drv : 2;
   unsigned pc2_drv : 2;
   unsigned pc3_drv : 2;
   unsigned pc4_drv : 2;
   unsigned pc5_drv : 2;
   unsigned pc6_drv : 2;
   unsigned pc7_drv : 2;
   unsigned pc8_drv : 2;
   unsigned pc9_drv : 2;
   unsigned pc10_drv : 2;
   unsigned pc11_drv : 2;
   unsigned pc12_drv : 2;
   unsigned pc13_drv : 2;
   unsigned pc14_drv : 2;
   unsigned pc15_drv : 2;
  } b;
   unsigned long w;
} PC_DRV0
   

Allwinner H616 Manual