Регистры Allwinner H616

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


PI_PULL0
9.6.4. PI Pull Register 0 - адрес: 0x300b13c (смещение: 0x013C)

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



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

  PI15_PULL

Bits 31 : 30
R/W
0x0

PI15 Pull-up/down Select
00: Pull-up/down disable
01: Pull-up
10: Pull-down
11: Reserved


  PI14_PULL

Bits 29 : 28
R/W
0x0

PI14 Pull-up/down Select
00: Pull-up/down disable
01: Pull-up
10: Pull-down
11: Reserved


  PI13_PULL

Bits 27 : 26
R/W
0x0

PI13 Pull-up/down Select
00: Pull-up/down disable
01: Pull-up
10: Pull-down
11: Reserved


  PI12_PULL

Bits 25 : 24
R/W
0x0

PI12 Pull-up/down Select
00: Pull-up/down disable
01: Pull-up
10: Pull-down
11: Reserved


  PI11_PULL

Bits 23 : 22
R/W
0x0

PI11 Pull-up/down Select
00: Pull-up/down disable
01: Pull-up
10: Pull-down
11: Reserved


  PI10_PULL

Bits 21 : 20
R/W
0x0

PI10 Pull-up/down Select
00: Pull-up/down disable
01: Pull-up
10: Pull-down
11: Reserved


  PI9_PULL

Bits 19 : 18
R/W
0x0

PI9 Pull-up/down Select
00: Pull-up/down disable
01: Pull-up
10: Pull-down
11: Reserved


  PI8_PULL

Bits 17 : 16
R/W
0x0

PI8 Pull-up/down Select
00: Pull-up/down disable
01: Pull-up
10: Pull-down
11: Reserved


  PI7_PULL

Bits 15 : 14
R/W
0x0

PI7 Pull-up/down Select
00: Pull-up/down disable
01: Pull-up
10: Pull-down
11: Reserved


  PI6_PULL

Bits 13 : 12
R/W
0x0

PI6 Pull-up/down Select
00: Pull-up/down disable
01: Pull-up
10: Pull-down
11: Reserved


  PI5_PULL

Bits 11 : 10
R/W
0x0

PI5 Pull-up/down Select
00: Pull-up/down disable
01: Pull-up
10: Pull-down
11: Reserved


  PI4_PULL

Bits 9 : 8
R/W
0x0

PI4 Pull-up/down Select
00: Pull-up/down disable
01: Pull-up
10: Pull-down
11: Reserved


  PI3_PULL

Bits 7 : 6
R/W
0x0

PI3 Pull-up/down Select
00: Pull-up/down disable
01: Pull-up
10: Pull-down
11: Reserved


  PI2_PULL

Bits 5 : 4
R/W
0x0

PI2 Pull-up/down Select
00: Pull-up/down disable
01: Pull-up
10: Pull-down
11: Reserved


  PI1_PULL

Bits 3 : 2
R/W
0x0

PI1 Pull-up/down Select
00: Pull-up/down disable
01: Pull-up
10: Pull-down
11: Reserved


  PI0_PULL

Bits 1 : 0
R/W
0x0

PI0 Pull-up/down Select
00: Pull-up/down disable
01: Pull-up
10: Pull-down
11: Reserved



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

md 300b13c 1



Bit fields structure

typedef union  pi_pull0
{
  struct
  {
   unsigned pi0_pull : 2;
   unsigned pi1_pull : 2;
   unsigned pi2_pull : 2;
   unsigned pi3_pull : 2;
   unsigned pi4_pull : 2;
   unsigned pi5_pull : 2;
   unsigned pi6_pull : 2;
   unsigned pi7_pull : 2;
   unsigned pi8_pull : 2;
   unsigned pi9_pull : 2;
   unsigned pi10_pull : 2;
   unsigned pi11_pull : 2;
   unsigned pi12_pull : 2;
   unsigned pi13_pull : 2;
   unsigned pi14_pull : 2;
   unsigned pi15_pull : 2;
  } b;
   unsigned long w;
} PI_PULL0
   

Allwinner H616 Manual