Copyright © 2019 NEXCOM International Co., Ltd. All Rights Reserved.
57
NISE 505 User Manual
Appendix B: EC Command Documentation
4. GPIO Control
This command set is used to control GPIO. System sends HW pin number
which is taken from the dynamic control table to EC. Then EC uses this code
to control real pin. System can read/write/set direction/set internal pull up/
down GPIO. Only GPIO type device id in the dynamic control table can be
a controller. EC does not allow system to control other pins which are not
defined in the table.
4.1 Command Register and Address Description:
Command
Description
0x10
Write pin number into index
0x11
According to index, get GPIO pin status. 1-active, 0-unactive, 0xFF-fail
0x12
According to index, change GPIO pin status. 1-active, 0-unactive
0x1D
According to index, get GPIO input/output type. 1-output, 0-input,
0xFF-fail
Bit7 & Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
0x10 Input
0x10Pull-up
0x01 Output
0x01Pull-dn
0x1E
According to index, change GPIO input/output type. 1-output, 0-input
Bit7 & Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
0x10 Input
0x10Pull-up
0x01 Output
0x01Pull-dn
4.2 GPIO Default Table
There are 8 alternate GPIOs in the COM specification. The system can use
commands to control these pins. The system can also set up a default table
to configure these GPIO behaviors when power resumes for the first time.
This table can be stored into the EEPROM for first time use. The addresses in
the ACPI RAM are as follows:
Default Table in ACPI RAM
GPIO0 start address: 0xD8
GPIO4 start address: 0xE4
GPIO1 start address: 0xDB
GPIO5 start address: 0xE7
GPIO2 start address: 0xDE
GPIO6 start address: 0xEA
GPIO3 start address: 0xE1
GPIO7 start address: 0xED
Offset
Name
Description
0x00
Pin
HW pin number. EC will set up this value.
0x01
Type
control
Value type is same as command 0x1D.
0x02
Default
control
Set up default pin behavior
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
HiLow
HiLow – If type control is input type, 1-high active and 0-low
active.
If type control is output type, 1-default output high and
0-default output low.