aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf518/include/mach/defBF518.h
diff options
context:
space:
mode:
authorBarry Song <barry.song@analog.com>2009-09-17 03:50:23 -0400
committerMike Frysinger <vapier@gentoo.org>2009-10-07 04:47:57 -0400
commit6206f709d9dfc6722d9213b36a7779ae56072899 (patch)
tree2fce4c696b805ec4e25b3329adca060dd8495a9e /arch/blackfin/mach-bf518/include/mach/defBF518.h
parent96f1050d3df105c9ae6c6ac224f370199ea82fcd (diff)
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 @@
624 624
625#define RWR 0x1 /* Read Wait Request */ 625#define RWR 0x1 /* Read Wait Request */
626 626
627/* Bit masks for EMAC_PTP_CTL */
628
629#define PTP_EN 0x1 /* Enable the PTP_TSYNC module */
630#define TL 0x2 /* Timestamp lock control */
631#define ASEN 0x10 /* Auxiliary snapshot control */
632#define PPSEN 0x80 /* Pulse-per-second (PPS) control */
633#define CKOEN 0x2000 /* Clock output control */
634
635/* Bit masks for EMAC_PTP_IE */
636
637#define ALIE 0x1 /* Alarm interrupt enable */
638#define RXEIE 0x2 /* Receive event interrupt enable */
639#define RXGIE 0x4 /* Receive general interrupt enable */
640#define TXIE 0x8 /* Transmit interrupt enable */
641#define RXOVE 0x10 /* Receive overrun error interrupt enable */
642#define TXOVE 0x20 /* Transmit overrun error interrupt enable */
643#define ASIE 0x40 /* Auxiliary snapshot interrupt enable */
644
645/* Bit masks for EMAC_PTP_ISTAT */
646
647#define ALS 0x1 /* Alarm status */
648#define RXEL 0x2 /* Receive event interrupt status */
649#define RXGL 0x4 /* Receive general interrupt status */
650#define TXTL 0x8 /* Transmit snapshot status */
651#define RXOV 0x10 /* Receive snapshot overrun status */
652#define TXOV 0x20 /* Transmit snapshot overrun status */
653#define ASL 0x40 /* Auxiliary snapshot interrupt status */
654
627#endif /* _DEF_BF518_H */ 655#endif /* _DEF_BF518_H */