summaryrefslogtreecommitdiff
path: root/Omap35xxPkg/Flash
diff options
context:
space:
mode:
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 c8c34c9a4..1bd781ded 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 2e95b96bb..a1a4349eb 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 31732994c..113f5c28c 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