Регистры Allwinner H616

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


PF_DRV0
9.6.4. PF Multi-Driving Register 0 - адрес: 0x300b0c8 (смещение: 0x00C8)

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



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

  Unused

Bits 31 : 14

  PF6_DRV

Bits 13 : 12
R/W
0x1

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


  PF5_DRV

Bits 11 : 10
R/W
0x1

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


  PF4_DRV

Bits 9 : 8
R/W
0x1

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


  PF3_DRV

Bits 7 : 6
R/W
0x1

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


  PF2_DRV

Bits 5 : 4
R/W
0x1

PF2 Multi-Driving Select
00: Level 0--180?
01: Level 1--120?
10: Level 2--100?
11: Level 3--50?


  PF1_DRV

Bits 3 : 2
R/W
0x1

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


  PF0_DRV

Bits 1 : 0
R/W
0x1

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



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

md 300b0c8 1



Bit fields structure

typedef union  pf_drv0
{
  struct
  {
   unsigned pf0_drv : 2;
   unsigned pf1_drv : 2;
   unsigned pf2_drv : 2;
   unsigned pf3_drv : 2;
   unsigned pf4_drv : 2;
   unsigned pf5_drv : 2;
   unsigned pf6_drv : 2;
   unsigned unused0 : 18;
  } b;
   unsigned long w;
} PF_DRV0
   

Allwinner H616 Manual