summaryrefslogtreecommitdiff
path: root/arch/blackfin/mach-bf518/include/mach/defBF518.h
diff options
context:
space:
mode:
authorBarry Song <barry.song@analog.com>2009-09-17 11:50:23 +0400
committerMike Frysinger <vapier@gentoo.org>2009-10-07 12:47:57 +0400
commit6206f709d9dfc6722d9213b36a7779ae56072899 (patch)
tree2fce4c696b805ec4e25b3329adca060dd8495a9e /arch/blackfin/mach-bf518/include/mach/defBF518.h
parent96f1050d3df105c9ae6c6ac224f370199ea82fcd (diff)
downloadlinux-6206f709d9dfc6722d9213b36a7779ae56072899.tar.xz
Blackfin: BF51x: add PTP MMR defines
Diffstat (limited to 'arch/blackfin/mach-bf518/include/mach/defBF518.h')
-rw-r--r--arch/blackfin/mach-bf518/include/mach/defBF518.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf518/include/mach/defBF518.h b/arch/blackfin/mach-bf518/include/mach/defBF518.h
index 16b7eeff6012..794cf06eb5ba 100644
--- a/arch/blackfin/mach-bf518/include/mach/defBF518.h
+++ b/arch/blackfin/mach-bf518/include/mach/defBF518.h
@@ -624,4 +624,32 @@
#define RWR 0x1 /* Read Wait Request */
+/* Bit masks for EMAC_PTP_CTL */
+
+#define PTP_EN 0x1 /* Enable the PTP_TSYNC module */
+#define TL 0x2 /* Timestamp lock control */
+#define ASEN 0x10 /* Auxiliary snapshot control */
+#define PPSEN 0x80 /* Pulse-per-second (PPS) control */
+#define CKOEN 0x2000 /* Clock output control */
+
+/* Bit masks for EMAC_PTP_IE */
+
+#define ALIE 0x1 /* Alarm interrupt enable */
+#define RXEIE 0x2 /* Receive event interrupt enable */
+#define RXGIE 0x4 /* Receive general interrupt enable */
+#define TXIE 0x8 /* Transmit interrupt enable */
+#define RXOVE 0x10 /* Receive overrun error interrupt enable */
+#define TXOVE 0x20 /* Transmit overrun error interrupt enable */
+#define ASIE 0x40 /* Auxiliary snapshot interrupt enable */
+
+/* Bit masks for EMAC_PTP_ISTAT */
+
+#define ALS 0x1 /* Alarm status */
+#define RXEL 0x2 /* Receive event interrupt status */
+#define RXGL 0x4 /* Receive general interrupt status */
+#define TXTL 0x8 /* Transmit snapshot status */
+#define RXOV 0x10 /* Receive snapshot overrun status */
+#define TXOV 0x20 /* Transmit snapshot overrun status */
+#define ASL 0x40 /* Auxiliary snapshot interrupt status */
+
#endif /* _DEF_BF518_H */