diff options
author | raywu <raywu@aaeon.com.tw> | 2019-01-17 14:35:48 +0800 |
---|---|---|
committer | raywu <raywu@aaeon.com.tw> | 2019-01-17 14:35:48 +0800 |
commit | 99a4b9db65e3d40ddd355996a23071a9fcee52d9 (patch) | |
tree | ff3c35fd43f378bb59c678951fcf263c0a18a6a6 /Board/IO/F81866 | |
parent | 502fd72377459ff1fd69e35fce20a2bc8dea75fa (diff) | |
download | zprj-99a4b9db65e3d40ddd355996a23071a9fcee52d9.tar.xz |
DW01 - Fixed COM Port will not be disable normally (still appeared under Windows Device Management)
Diffstat (limited to 'Board/IO/F81866')
-rw-r--r-- | Board/IO/F81866/F81866.ASL | 6 | ||||
-rw-r--r-- | Board/IO/F81866/F81866DXE.C | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/Board/IO/F81866/F81866.ASL b/Board/IO/F81866/F81866.ASL index ae13582..3459f4d 100644 --- a/Board/IO/F81866/F81866.ASL +++ b/Board/IO/F81866/F81866.ASL @@ -348,6 +348,7 @@ Device(SIO1) { ENFG(CGLD(Arg0)) //Enter Config Mode, Select LDN Store(ACTR, Local0) + Or(ShiftLeft(IOAH, 8),IOAL,Local1) EXFG() //Exit Config Mode If(LEqual(Local0, 0xFF)) {Return(0x0)} //LDN's not decoded, Device not present. @@ -371,10 +372,11 @@ Device(SIO1) { Else{ Return(0x00)} // Device not present } Else{//by Base1 & Base2 check - Or(ShiftLeft(IOAH, 8),IOAL,Local0) - If(Local0) { Return(0x0D)} // Device Detected & Not Active +// Or(ShiftLeft(IOAH, 8),IOAL,Local0) +// If(Local0) { Return(0x0D)} // Device Detected & Not Active // Or(ShiftLeft(IOH2, 8),IOL2,Local0) // If(Local0) { Return(0x0D)} // Device Detected & Not Active + If(Local1) { Return(0x0D)} // Device Detected & Not Active Return(0x00) // Device not present } } //Exit Config Mode diff --git a/Board/IO/F81866/F81866DXE.C b/Board/IO/F81866/F81866DXE.C index d1ce887..ed434f5 100644 --- a/Board/IO/F81866/F81866DXE.C +++ b/Board/IO/F81866/F81866DXE.C @@ -627,10 +627,10 @@ static EFI_STATUS COM_Init( switch (InitStep) { case isGetSetupData: -// if((!dev->DeviceInfo->Implemented) || (!dev->NvData.DevEnable)) { + if((!dev->DeviceInfo->Implemented) || (!dev->NvData.DevEnable)) { // LoopCspIoDecodeListInit(NULL,AmiSio); -// ClearDevResource(dev); -// } + ClearDevResource(dev); + } break; case isPrsSelect: |