summaryrefslogtreecommitdiff
path: root/Omap35xxPkg/Flash
diff options
context:
space:
mode:
authorandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>2010-04-03 00:34:19 +0000
committerandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>2010-04-03 00:34:19 +0000
commit43263288dd20d9c9d1c1426010c7ea00a6eaeeef (patch)
tree7aa27c5c974ceca7be20ad3d2d7cb269fce5642d /Omap35xxPkg/Flash
parent1f44ee1077d27dbfa8765decc54856b912c8c938 (diff)
downloadedk2-platforms-43263288dd20d9c9d1c1426010c7ea00a6eaeeef.tar.xz
Added DebugAgentTimerLib. Cleaned up .h files and other code.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10332 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Omap35xxPkg/Flash')
-rw-r--r--Omap35xxPkg/Flash/Flash.c2
-rw-r--r--Omap35xxPkg/Flash/Flash.h4
-rw-r--r--Omap35xxPkg/Flash/Flash.inf2
3 files changed, 4 insertions, 4 deletions
diff --git a/Omap35xxPkg/Flash/Flash.c b/Omap35xxPkg/Flash/Flash.c
index c8c34c9a41..1bd781ded0 100644
--- a/Omap35xxPkg/Flash/Flash.c
+++ b/Omap35xxPkg/Flash/Flash.c
@@ -271,7 +271,7 @@ NandCalculateEcc (
for (Index = 0; Index < gNum512BytesChunks; Index++) {
- EccResult = MmioRead32(EccResultRegister);
+ EccResult = MmioRead32 (EccResultRegister);
//Calculate ECC code from 32-bit ECC result value.
//NOTE: Following calculation is not part of TRM. We got this information
diff --git a/Omap35xxPkg/Flash/Flash.h b/Omap35xxPkg/Flash/Flash.h
index 2e95b96bb9..a1a4349ebd 100644
--- a/Omap35xxPkg/Flash/Flash.h
+++ b/Omap35xxPkg/Flash/Flash.h
@@ -74,10 +74,10 @@
//Nand status register bit definition
#define NAND_SUCCESS (0x0UL << 0)
-#define NAND_FAILURE (0x1UL << 0)
+#define NAND_FAILURE BIT0
#define NAND_BUSY (0x0UL << 6)
-#define NAND_READY (0x1UL << 6)
+#define NAND_READY BIT6
#define NAND_RESET_STATUS (0x60UL << 0)
diff --git a/Omap35xxPkg/Flash/Flash.inf b/Omap35xxPkg/Flash/Flash.inf
index 31732994c2..113f5c28cd 100644
--- a/Omap35xxPkg/Flash/Flash.inf
+++ b/Omap35xxPkg/Flash/Flash.inf
@@ -42,7 +42,7 @@
gEfiCpuArchProtocolGuid
[Pcd]
- gOmap35xxTokenSpaceGuid.PcdBeagleGpmcOffset
+ gOmap35xxTokenSpaceGuid.PcdOmap35xxGpmcOffset
[depex]
TRUE \ No newline at end of file