Cleanup SerailIO drivers to have a device path and use PCD settings for various stuff. Also clean up a few coding convention items.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10009 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -79,12 +79,12 @@ Set (
|
||||
break;
|
||||
|
||||
case GPIO_MODE_OUTPUT_0:
|
||||
MmioWrite32(ClearDataOutRegister, GPIO_CLEARDATAOUT_BIT(Pin));
|
||||
MmioWrite32 (ClearDataOutRegister, GPIO_CLEARDATAOUT_BIT(Pin));
|
||||
MmioAndThenOr32(OutputEnableRegister, ~GPIO_OE_MASK(Pin), GPIO_OE_OUTPUT(Pin));
|
||||
break;
|
||||
|
||||
case GPIO_MODE_OUTPUT_1:
|
||||
MmioWrite32(SetDataOutRegister, GPIO_SETDATAOUT_BIT(Pin));
|
||||
MmioWrite32 (SetDataOutRegister, GPIO_SETDATAOUT_BIT(Pin));
|
||||
MmioAndThenOr32(OutputEnableRegister, ~GPIO_OE_MASK(Pin), GPIO_OE_OUTPUT(Pin));
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user