summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/s5l8700.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/export/s5l8700.h b/firmware/export/s5l8700.h
index 853b672..dc03553 100644
--- a/firmware/export/s5l8700.h
+++ b/firmware/export/s5l8700.h
@@ -304,8 +304,9 @@
#define TDDATA1 (*(REG32_PTR_T)(0x3C70006C)) /* Data1 Register */
#define TDPRE (*(REG32_PTR_T)(0x3C700070)) /* Pre-scale register */
#define TDCNT (*(REG32_PTR_T)(0x3C700074)) /* Counter register */
-#define USEC_TIMER (((*(REG32_PTR_T)(0x3C700080) << 32) \
- | *(REG32_PTR_T)(0x3C700084)) * 5) /* 64bit 5usec timer */
+#define FIVE_USEC_TIMER ((*(REG32_PTR_T)(0x3C700080) << 32) \
+ | *(REG32_PTR_T)(0x3C700084)) /* 64bit 5usec timer */
+#define USEC_TIMER (*(REG32_PTR_T)(0x3C700084) * 5) /* lower 32 bits of the above as a usec timer */
/* 12. NAND FLASH CONTROLER */
#if CONFIG_CPU==S5L8701