Регистры Allwinner H616

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


PG_PULL0
9.6.4. PG Pull Register 0 - адрес: 0x300b0f4 (смещение: 0x00F4)

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



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

  PG15_PULL

Bits 31 : 30
R/W
0x0

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


  PG14_PULL

Bits 29 : 28
R/W
0x0

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


  PG13_PULL

Bits 27 : 26
R/W
0x0

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


  PG12_PULL

Bits 25 : 24
R/W
0x0

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


  PG11_PULL

Bits 23 : 22
R/W
0x0

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


  PG10_PULL

Bits 21 : 20
R/W
0x0

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


  PG9_PULL

Bits 19 : 18
R/W
0x0

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


  PG8_PULL

Bits 17 : 16
R/W
0x0

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


  PG7_PULL

Bits 15 : 14
R/W
0x0

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


  PG6_PULL

Bits 13 : 12
R/W
0x0

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


  PG5_PULL

Bits 11 : 10
R/W
0x1

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


  PG4_PULL

Bits 9 : 8
R/W
0x1

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


  PG3_PULL

Bits 7 : 6
R/W
0x1

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


  PG2_PULL

Bits 5 : 4
R/W
0x1

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


  PG1_PULL

Bits 3 : 2
R/W
0x1

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


  PG0_PULL

Bits 1 : 0
R/W
0x0

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



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

md 300b0f4 1



Bit fields structure

typedef union  pg_pull0
{
  struct
  {
   unsigned pg0_pull : 2;
   unsigned pg1_pull : 2;
   unsigned pg2_pull : 2;
   unsigned pg3_pull : 2;
   unsigned pg4_pull : 2;
   unsigned pg5_pull : 2;
   unsigned pg6_pull : 2;
   unsigned pg7_pull : 2;
   unsigned pg8_pull : 2;
   unsigned pg9_pull : 2;
   unsigned pg10_pull : 2;
   unsigned pg11_pull : 2;
   unsigned pg12_pull : 2;
   unsigned pg13_pull : 2;
   unsigned pg14_pull : 2;
   unsigned pg15_pull : 2;
  } b;
   unsigned long w;
} PG_PULL0
   

Allwinner H616 Manual