Регистры Allwinner H616

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


PI_CFG1
9.6.4. PI Configure Register 1 - адрес: 0x300b124 (смещение: 0x0124)

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



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

  Unused

Bit 31

  PI15_SELECT

Bits 30 : 28
R/W
0x7

000:Input
001:Output
010:MDIO
011:UART4_RTS
100:TS0_D6
101:CLK_FANOUT0
110:PI_EINT15
111:IO Disable


  Unused

Bit 27

  PI14_SELECT

Bits 26 : 24
R/W
0x7

000:Input
001:Output
010:MDC
011:UART4_RX
100:TS0_D5
101:PWM4
110:PI_EINT14
111:IO Disable


  Unused

Bit 23

  PI13_SELECT

Bits 22 : 20
R/W
0x7

000:Input
001:Output
010:RGMII_CLKIN/RMII_NULL
011:UART4_TX
100:TS0_D4
101:PWM3
110:PI_EINT13
111:IO Disable


  Unused

Bit 19

  PI12_SELECT

Bits 18 : 16
R/W
0x7

000:Input
001:Output
010:RGMII_TXCTL/RMII_TXEN
011:UART3_CTS
100:TS0_D3
101:PWM2
110:PI_EINT12
111:IO Disable


  Unused

Bit 15

  PI11_SELECT

Bits 14 : 12
R/W
0x7

000:Input
001:Output
010:RGMII_TXCK/RMII_TXCK
011:UART3_RTS
100:TS0_D2
101:PWM1
110:PI_EINT11
111:IO Disable


  Unused

Bit 11

  PI10_SELECT

Bits 10 : 8
R/W
0x7

000:Input
001:Output
010:RGMII_TXD0/RMII_TXD0
011:UART3_RX
100:TS0_D1
101:TWI2_SDA
110:PI_EINT10
111:IO Disable


  Unused

Bit 7

  PI9_SELECT

Bits 6 : 4
R/W
0x7

000:Input
001:Output
010:RGMII_TXD1/RMII_TXD1
011:UART3_TX
100:TS0_D0
101:TWI2_SCK
110:PI_EINT9
111:IO Disable


  Unused

Bit 3

  PI8_SELECT

Bits 2 : 0
R/W
0x7

000:Input
001:Output
010:RGMII_TXD2/RMII_NULL
011:UART2_RTS
100:TS0_DVLD
101:TWI1_SDA
110:PI_EINT8
111:IO Disable



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

md 300b124 1



Bit fields structure

typedef union  pi_cfg1
{
  struct
  {
   unsigned pi8_select : 3;
   unsigned unused0 : 1;
   unsigned pi9_select : 3;
   unsigned unused1 : 1;
   unsigned pi10_select : 3;
   unsigned unused2 : 1;
   unsigned pi11_select : 3;
   unsigned unused3 : 1;
   unsigned pi12_select : 3;
   unsigned unused4 : 1;
   unsigned pi13_select : 3;
   unsigned unused5 : 1;
   unsigned pi14_select : 3;
   unsigned unused6 : 1;
   unsigned pi15_select : 3;
   unsigned unused7 : 1;
  } b;
   unsigned long w;
} PI_CFG1
   

Allwinner H616 Manual