Регистры Allwinner H616

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


PC_PULL0
9.6.4. PC Pull Register 0 - адрес: 0x300b064 (смещение: 0x0064)

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



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

  PC15_PULL

Bits 31 : 30
R/W
0x0

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


  PC14_PULL

Bits 29 : 28
R/W
0x0

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


  PC13_PULL

Bits 27 : 26
R/W
0x0

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


  PC12_PULL

Bits 25 : 24
R/W
0x0

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


  PC11_PULL

Bits 23 : 22
R/W
0x0

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


  PC10_PULL

Bits 21 : 20
R/W
0x0

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


  PC9_PULL

Bits 19 : 18
R/W
0x0

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


  PC8_PULL

Bits 17 : 16
R/W
0x0

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


  PC7_PULL

Bits 15 : 14
R/W
0x1

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


  PC6_PULL

Bits 13 : 12
R/W
0x1

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


  PC5_PULL

Bits 11 : 10
R/W
0x1

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


  PC4_PULL

Bits 9 : 8
R/W
0x1

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


  PC3_PULL

Bits 7 : 6
R/W
0x1

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


  PC2_PULL

Bits 5 : 4
R/W
0x0

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


  PC1_PULL

Bits 3 : 2
R/W
0x0

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


  PC0_PULL

Bits 1 : 0
R/W
0x0

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



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

md 300b064 1



Bit fields structure

typedef union  pc_pull0
{
  struct
  {
   unsigned pc0_pull : 2;
   unsigned pc1_pull : 2;
   unsigned pc2_pull : 2;
   unsigned pc3_pull : 2;
   unsigned pc4_pull : 2;
   unsigned pc5_pull : 2;
   unsigned pc6_pull : 2;
   unsigned pc7_pull : 2;
   unsigned pc8_pull : 2;
   unsigned pc9_pull : 2;
   unsigned pc10_pull : 2;
   unsigned pc11_pull : 2;
   unsigned pc12_pull : 2;
   unsigned pc13_pull : 2;
   unsigned pc14_pull : 2;
   unsigned pc15_pull : 2;
  } b;
   unsigned long w;
} PC_PULL0
   

Allwinner H616 Manual