]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Omap35xxPkg/Include/Omap3530/Omap3530Gpmc.h
Added DebugAgentTimerLib. Cleaned up .h files and other code.
[mirror_edk2.git] / Omap35xxPkg / Include / Omap3530 / Omap3530Gpmc.h
index 907806c37879e7a4537cbb46cae9cb0ba6638c26..d5a47fec698ff2c9142cc365cc79ed6be3e45fc3 100644 (file)
 #define GPMC_IRQENABLE        (GPMC_BASE + 0x1C)
 
 #define GPMC_TIMEOUT_CONTROL  (GPMC_BASE + 0x40)
-#define TIMEOUTENABLE         (0x1UL << 0)
+#define TIMEOUTENABLE         BIT0
 #define TIMEOUTDISABLE        (0x0UL << 0)
 
 #define GPMC_ERR_ADDRESS      (GPMC_BASE + 0x44)
 #define GPMC_ERR_TYPE         (GPMC_BASE + 0x48)
 
 #define GPMC_CONFIG           (GPMC_BASE + 0x50)
-#define WRITEPROTECT_HIGH     (0x1UL << 4)
+#define WRITEPROTECT_HIGH     BIT4
 #define WRITEPROTECT_LOW      (0x0UL << 4)
 
 #define GPMC_STATUS           (GPMC_BASE + 0x54)
@@ -42,7 +42,7 @@
 #define DEVICETYPE_NOR        (0x0UL << 10)
 #define DEVICETYPE_NAND       (0x2UL << 10)
 #define DEVICESIZE_X8         (0x0UL << 12)
-#define DEVICESIZE_X16        (0x1UL << 12)
+#define DEVICESIZE_X16        BIT12
 
 #define GPMC_CONFIG2_0        (GPMC_BASE + 0x64)
 #define CSONTIME              (0x0UL << 0)
 #define ADVWROFFTIME          (0x14UL << 16)
 
 #define GPMC_CONFIG4_0        (GPMC_BASE + 0x6C)
-#define OEONTIME              (0x1UL << 0)
+#define OEONTIME              BIT0
 #define OEOFFTIME             (0xFUL << 8)
-#define WEONTIME              (0x1UL << 16)
+#define WEONTIME              BIT16
 #define WEOFFTIME             (0xFUL << 24)
 
 #define GPMC_CONFIG5_0        (GPMC_BASE + 0x70)
 #define RDCYCLETIME           (0x14UL << 0)
 #define WRCYCLETIME           (0x14UL << 8)
 #define RDACCESSTIME          (0xCUL << 16)
-#define PAGEBURSTACCESSTIME   (0x1UL << 24)
+#define PAGEBURSTACCESSTIME   BIT24
 
 #define GPMC_CONFIG6_0        (GPMC_BASE + 0x74)
-#define CYCLE2CYCLESAMECSEN   (0x1UL << 7)
+#define CYCLE2CYCLESAMECSEN   BIT7
 #define CYCLE2CYCLEDELAY      (0xAUL << 8)
 #define WRDATAONADMUXBUS      (0xFUL << 16)
-#define WRACCESSTIME          (0x1FUL << 24)
+#define WRACCESSTIME          BIT24
 
 #define GPMC_CONFIG7_0        (GPMC_BASE + 0x78)
 #define BASEADDRESS           (0x30UL << 0)
-#define CSVALID               (0x1UL << 6)
+#define CSVALID               BIT6
 #define MASKADDRESS_128MB     (0x8UL << 8)
 
 #define GPMC_NAND_COMMAND_0   (GPMC_BASE + 0x7C)
 #define GPMC_NAND_DATA_0      (GPMC_BASE + 0x84)
 
 #define GPMC_ECC_CONFIG       (GPMC_BASE + 0x1F4)
-#define ECCENABLE             (0x1UL << 0)
+#define ECCENABLE             BIT0
 #define ECCDISABLE            (0x0UL << 0)
 #define ECCCS_0               (0x0UL << 1)
-#define ECC16B                (0x1UL << 7)
+#define ECC16B                BIT7
 
 #define GPMC_ECC_CONTROL      (GPMC_BASE + 0x1F8)
-#define ECCPOINTER_REG1       (0x1UL << 0)
-#define ECCCLEAR              (0x1UL << 8)
+#define ECCPOINTER_REG1       BIT0
+#define ECCCLEAR              BIT8
 
 #define GPMC_ECC_SIZE_CONFIG  (GPMC_BASE + 0x1FC)
 #define ECCSIZE0_512BYTES     (0xFFUL << 12)