struct cpsw_cpts {
u32 idver; /* Identification and version */
u32 control; /* Time sync control */
u32 rftclk_sel; /* Reference Clock Select Register */
u32 ts_push; /* Time stamp event push */
u32 ts_load_val; /* Time stamp load value */
u32 ts_load_en; /* Time stamp load enable */
u32 res2[2];
u32 intstat_raw; /* Time sync interrupt status raw */
u32 intstat_masked; /* Time sync interrupt status masked */
u32 int_enable; /* Time sync interrupt enable */
u32 res3;
u32 event_pop; /* Event interrupt pop */
u32 event_low; /* 32 Bit Event Time Stamp */
u32 event_high; /* Event Type Fields */
};
/* Bit definitions for the IDVER register */ #define TX_IDENT_SHIFT (16) /* TX Identification Value */ #define TX_IDENT_MASK (0xffff) #define RTL_VER_SHIFT (11) /* RTL Version Value */ #define RTL_VER_MASK (0x1f) #define MAJOR_VER_SHIFT (8) /* Major Version Value */ #define MAJOR_VER_MASK (0x7) #define MINOR_VER_SHIFT (0) /* Minor Version Value */ #define MINOR_VER_MASK (0xff)
/* Bit definitions for the CONTROL register */ #define HW4_TS_PUSH_EN (1<<11) /* Hardware push 4 enable */ #define HW3_TS_PUSH_EN (1<<10) /* Hardware push 3 enable */ #define HW2_TS_PUSH_EN (1<<9) /* Hardware push 2 enable */ #define HW1_TS_PUSH_EN (1<<8) /* Hardware push 1 enable */ #define INT_TEST (1<<1) /* Interrupt Test */ #define CPTS_EN (1<<0) /* Time Sync Enable */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.