]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Omap35xxPkg/Gpio/Gpio.c
Program SD Cards into 4-bit mode (support for this is required in the spec). This...
[mirror_edk2.git] / Omap35xxPkg / Gpio / Gpio.c
index 7bc5478933d03cc80c5d2bdd72c085904b55e833..33786aeeee86d4cf4a4ae84f28d7e5a12523a2be 100644 (file)
@@ -1,8 +1,8 @@
 /** @file
 
-  Copyright (c) 2008-2009, Apple Inc. All rights reserved.
+  Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
   
-  All rights reserved. This program and the accompanying materials
+  This program and the accompanying materials
   are licensed and made available under the terms and conditions of the BSD License
   which accompanies this distribution.  The full text of the license may be found at
   http://opensource.org/licenses/bsd-license.php
@@ -43,7 +43,7 @@ Get (
 
   DataInRegister = GpioBase(Port) + GPIO_DATAIN;
 
-  if (MmioRead32(DataInRegister) & GPIO_DATAIN_MASK(Pin)) {
+  if (MmioRead32 (DataInRegister) & GPIO_DATAIN_MASK(Pin)) {
     *Value = 1;
   } else {
     *Value = 0;
@@ -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;