Регистры Allwinner H616

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


PC_CFG1
9.6.4. PC Configure Register 1 - адрес: 0x300b04c (смещение: 0x004C)

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



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

  Unused

Bit 31

  PC15_SELECT

Bits 30 : 28
R/W
0x7

000:Input
001:Output
010:NAND_DQ1
011:SDC2_D2
100:SPI0_WP
101:Reserved
110:PC_EINT15
111:IO Disable


  Unused

Bit 27

  PC14_SELECT

Bits 26 : 24
R/W
0x7

000:Input
001:Output
010:NAND_DQ2
011:SDC2_D6
100:Reserved
101:Reserved
110:PC_EINT14
111:IO Disable


  Unused

Bit 23

  PC13_SELECT

Bits 22 : 20
R/W
0x7

000:Input
001:Output
010:NAND_DQ3
011:SDC2_D1
100:Reserved
101:Reserved
110:PC_EINT13
111:IO Disable


  Unused

Bit 19

  PC12_SELECT

Bits 18 : 16
R/W
0x7

000:Input
001:Output
010:NAND_DQS
011:Reserved
100:Reserved
101:Reserved
110:PC_EINT12
111:IO Disable


  Unused

Bit 15

  PC11_SELECT

Bits 14 : 12
R/W
0x7

000:Input
001:Output
010:NAND_DQ4
011:SDC2_D5
100:Reserved
101:Reserved
110:PC_EINT11
111:IO Disable


  Unused

Bit 11

  PC10_SELECT

Bits 10 : 8
R/W
0x7

000:Input
001:Output
010:NAND_DQ5
011:SDC2_D0
100:Reserved
101:Reserved
110:PC_EINT10
111:IO Disable


  Unused

Bit 7

  PC9_SELECT

Bits 6 : 4
R/W
0x7

000:Input
001:Output
010:NAND_DQ6
011:SDC2_D4
100:Reserved
101:Reserved
110:PC_EINT9
111:IO Disable


  Unused

Bit 3

  PC8_SELECT

Bits 2 : 0
R/W
0x7

000:Input
001:Output
010:NAND_DQ7
011:SDC2_D3
100:Reserved
101:Reserved
110:PC_EINT8
111:IO Disable



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

md 300b04c 1



Bit fields structure

typedef union  pc_cfg1
{
  struct
  {
   unsigned pc8_select : 3;
   unsigned unused0 : 1;
   unsigned pc9_select : 3;
   unsigned unused1 : 1;
   unsigned pc10_select : 3;
   unsigned unused2 : 1;
   unsigned pc11_select : 3;
   unsigned unused3 : 1;
   unsigned pc12_select : 3;
   unsigned unused4 : 1;
   unsigned pc13_select : 3;
   unsigned unused5 : 1;
   unsigned pc14_select : 3;
   unsigned unused6 : 1;
   unsigned pc15_select : 3;
   unsigned unused7 : 1;
  } b;
   unsigned long w;
} PC_CFG1
   

Allwinner H616 Manual