Регистры Allwinner H616

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


PG_CFG0
9.6.4. PG Configure Register 0 - адрес: 0x300b0d8 (смещение: 0x00D8)

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



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

  Unused

Bit 31

  PG7_SELECT

Bits 30 : 28
R/W
0x7

000:Input
001:Output
010:UART1_RX
011:Reserved
100:JTAG_CK
101:Reserved
110:PG_EINT7
111:IO Disable


  Unused

Bit 27

  PG6_SELECT

Bits 26 : 24
R/W
0x7

000:Input
001:Output
010:UART1_TX
011:Reserved
100:JTAG_MS
101:Reserved
110:PG_EINT6
111:IO Disable


  Unused

Bit 23

  PG5_SELECT

Bits 22 : 20
R/W
0x7

000:Input
001:Output
010:SDC1_D3
011:Reserved
100:Reserved
101:Reserved
110:PG_EINT5
111:IO Disable


  Unused

Bit 19

  PG4_SELECT

Bits 18 : 16
R/W
0x7

000:Input
001:Output
010:SDC1_D2
011:Reserved
100:Reserved
101:Reserved
110:PG_EINT4
111:IO Disable


  Unused

Bit 15

  PG3_SELECT

Bits 14 : 12
R/W
0x7

000:Input
001:Output
010:SDC1_D1
011:Reserved
100:Reserved
101:Reserved
110:PG_EINT3
111:IO Disable


  Unused

Bit 11

  PG2_SELECT

Bits 10 : 8
R/W
0x7

000:Input
001:Output
010:SDC1_D0
011:Reserved
100:Reserved
101:Reserved
110:PG_EINT2
111:IO Disable


  Unused

Bit 7

  PG1_SELECT

Bits 6 : 4
R/W
0x7

000:Input
001:Output
010:SDC1_CMD
011:Reserved
100:Reserved
101:Reserved
110:PG_EINT1
111:IO Disable


  Unused

Bit 3

  PG0_SELECT

Bits 2 : 0
R/W
0x7

000:Input
001:Output
010:SDC1_CLK
011:Reserved
100:Reserved
101:Reserved
110:PG_EINT0
111:IO Disable



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

md 300b0d8 1



Bit fields structure

typedef union  pg_cfg0
{
  struct
  {
   unsigned pg0_select : 3;
   unsigned unused0 : 1;
   unsigned pg1_select : 3;
   unsigned unused1 : 1;
   unsigned pg2_select : 3;
   unsigned unused2 : 1;
   unsigned pg3_select : 3;
   unsigned unused3 : 1;
   unsigned pg4_select : 3;
   unsigned unused4 : 1;
   unsigned pg5_select : 3;
   unsigned unused5 : 1;
   unsigned pg6_select : 3;
   unsigned unused6 : 1;
   unsigned pg7_select : 3;
   unsigned unused7 : 1;
  } b;
   unsigned long w;
} PG_CFG0
   

Allwinner H616 Manual