]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Omap35xxPkg/Flash/Flash.c
ARM Packages: Removed trailing spaces
[mirror_edk2.git] / Omap35xxPkg / Flash / Flash.c
index b33c9badf70fec23344ab3ff3f4303157385e457..b8de109d87b4d3bf9d3fe6fefbdb443db6e6e0ce 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 \r
   Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
-  \r
+\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -227,7 +227,7 @@ NandConfigureEcc (
   MmioWrite32 (GPMC_ECC_SIZE_CONFIG, (ECCSIZE0_512BYTES | ECCSIZE1_512BYTES));\r
 }\r
 \r
-VOID \r
+VOID\r
 NandEnableEcc (\r
   VOID\r
   )\r
@@ -268,7 +268,7 @@ NandCalculateEcc (
     EccResult = MmioRead32 (EccResultRegister);\r
 \r
     //Calculate ECC code from 32-bit ECC result value.\r
-    //NOTE: Following calculation is not part of TRM. We got this information \r
+    //NOTE: Following calculation is not part of TRM. We got this information\r
     //from Beagleboard mailing list.\r
     gEccCode[Index * 3] = EccResult & 0xFF;\r
     gEccCode[(Index * 3) + 1] = (EccResult >> 16) & 0xFF;\r
@@ -380,7 +380,7 @@ NandWritePage (
     MmioWrite16(GPMC_NAND_DATA_0, *MainAreaWordBuffer++);\r
 \r
     //After each write access, device has to wait to accept data.\r
-    //Currently we may not be programming proper timing parameters to \r
+    //Currently we may not be programming proper timing parameters to\r
     //the GPMC_CONFIGi_0 registers and we would need to figure that out.\r
     //Without following delay, page programming fails.\r
     gBS->Stall(1);\r
@@ -544,7 +544,7 @@ NandFlashReset (
 \r
   //Send RESET command to device.\r
   NandSendCommand(RESET_CMD);\r
-  \r
+\r
   //Wait for 1ms before we check status register.\r
   gBS->Stall(1000);\r
 \r
@@ -562,7 +562,7 @@ NandFlashReset (
       ResetBusyTimeout--;\r
     }\r
   }\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
@@ -585,12 +585,12 @@ NandFlashReadBlocks (
     Status = EFI_INVALID_PARAMETER;\r
     goto exit;\r
   }\r
-  \r
+\r
   if (Lba > LAST_BLOCK) {\r
     Status = EFI_INVALID_PARAMETER;\r
     goto exit;\r
   }\r
-  \r
+\r
   if ((BufferSize % gNandFlashInfo->BlockSize) != 0) {\r
     Status = EFI_BAD_BUFFER_SIZE;\r
     goto exit;\r
@@ -640,12 +640,12 @@ NandFlashWriteBlocks (
     Status = EFI_INVALID_PARAMETER;\r
     goto exit;\r
   }\r
-  \r
+\r
   if (Lba > LAST_BLOCK) {\r
     Status = EFI_INVALID_PARAMETER;\r
     goto exit;\r
   }\r
-  \r
+\r
   if ((BufferSize % gNandFlashInfo->BlockSize) != 0) {\r
     Status = EFI_BAD_BUFFER_SIZE;\r
     goto exit;\r
@@ -668,7 +668,7 @@ NandFlashWriteBlocks (
       goto exit;\r
     }\r
   }\r
-  \r
+\r
   // Program data\r
   Status = NandWriteBlock((UINTN)Lba, EndBlockIndex, Buffer, SpareBuffer);\r
   if (EFI_ERROR(Status)) {\r
@@ -708,7 +708,7 @@ EFI_BLOCK_IO_MEDIA gNandFlashMedia = {
   0                                         // LastBlock\r
 };\r
 \r
-EFI_BLOCK_IO_PROTOCOL BlockIo = \r
+EFI_BLOCK_IO_PROTOCOL BlockIo =\r
 {\r
   EFI_BLOCK_IO_INTERFACE_REVISION,  // Revision\r
   &gNandFlashMedia,                  // *Media\r
@@ -725,7 +725,7 @@ NandFlashInitialize (
   )\r
 {\r
   EFI_STATUS  Status;\r
-  \r
+\r
   gNandFlashInfo = (NAND_FLASH_INFO *)AllocateZeroPool (sizeof(NAND_FLASH_INFO));\r
 \r
   //Initialize GPMC module.\r
@@ -764,9 +764,9 @@ NandFlashInitialize (
 \r
   //Publish BlockIO.\r
   Status = gBS->InstallMultipleProtocolInterfaces (\r
-                  &ImageHandle, \r
+                  &ImageHandle,\r
                   &gEfiBlockIoProtocolGuid, &BlockIo,\r
-                  &gEfiDevicePathProtocolGuid, &gDevicePath, \r
+                  &gEfiDevicePathProtocolGuid, &gDevicePath,\r
                   NULL\r
                   );\r
   return Status;\r