MSI MS-99A1 User Manual page 52

Qseven carrier board
Table of Contents

Advertisement

WDT & GPIO
mov dx, SIO_DATA_Port
mov al, SIO_LDN_GPIO
out dx, al
; Get GPI 0 Pin Status Register
mov dx, SIO_INDEX_Port
mov al, SIO_GPIO_Status
out dx, al
mov dx, SIO_DATA_Port
in al, dx ;al bit0 = GPI 0 status
; Exit SIO
mov al, SIO_CONFIG_MODE_EXIT_VALUE
out dx, al
#2 : Set GPO 0/GPO 2 to high status
; Enable config mode
mov dx, SIO_INDEX_Port
mov al, SIO_UnLock_Value
out dx, al
jmp short $+2 ;Io_delay
jmp short $+2 ;Io_delay
out dx, al
; Switch GPIO Configuration for SIO LDN 0x06
mov dx, SIO_INDEX_Port
mov al, 07h
out dx, al
mov dx, SIO_DATA_Port
mov al, SIO_LDN_GPIO
out dx, al
; Set GPO 0 to high
mov dx, SIO_INDEX_Port
mov al, SIO_GPIO_Data
out dx, al
mov dx, SIO_DATA_Port
in al, dx
and al, not GPO_0
or al, GPO_0
out dx, al
; Set GPO 2 to high
mov dx, SIO_INDEX_Port
mov al, SIO_GPIO_Data
out dx, al
mov dx, SIO_DATA_Port
in al, dx
and al, not GPO_2
or al, GPO_2
out dx, al
; Exit SIO
mov al, SIO_CONFIG_MODE_EXIT_VALUE
out dx, al
A-4

Advertisement

Table of Contents
loading

Table of Contents