Changeset 1540

Show
Ignore:
Timestamp:
04/20/09 23:22:27 (15 years ago)
Author:
jwoithe
Message:

RME: some additional register bit definitions

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/rme/fireface_def.h

    r1537 r1540  
    9999 
    100100 
    101 /* Defines for components of the control register */ 
     101/* Defines for components of the control registers */ 
    102102/* FIXME: flesh this out once the details of how this gets used have been  
    103103 * finalised 
    104104 */ 
    105 #define CR_FREQ0      0x00000002 
    106 #define CR_FREQ1      0x00000004 
    107 #define CR_DS         0x00000008 
    108 #define CR_QS         0x00000010 
     105#define CR2_CLOCKMODE_MASTER    0x00000000 
     106#define CR2_CLOCKMODE_AUTOSYNC  0x00000001 
     107#define CR2_FREQ0               0x00000002 
     108#define CR2_FREQ1               0x00000004 
     109#define CR2_DSPEED              0x00000008 
     110#define CR2_QSSPEED             0x00000010 
     111#define CR2_SPDIF_OUT_PRO       0x00000020 
     112#define CR2_SPDIF_OUT_EMP       0x00000040 
     113#define CR2_SPDIF_OUT_NONAUDIO  0x00000080 
     114#define CR2_SPDIF_OUT_ADAT2     0x00000100 
     115#define CR2_SPDIF_IN_COAX       0x00000000 
     116#define CR2_SPDIF_IN_ADAT2      0x00000200 
     117#define CR2_SYNC_REF0           0x00000400 
     118#define CR2_SYNC_REF1           0x00000800 
     119#define CR2_SYNC_REF2           0x00001000 
     120#define CR2_WORD_CLOCK_1x       0x00002000 
     121#define CR2_TOGGLE_TCO          0x00004000  // Normally set to 0 
     122#define CR2_P12DB_AN0           0x00010000  // Normally set to 0 
     123#define CR2_FF400_BIT           0x04000000  // Set on FF400, clear on FF800 
     124#define CR2_TMS                 0x40000000  // Unit option, normally 0 
     125#define CR2_DROP_AND_STOP       0x80000000  // Normally set to 1 
    109126 
     127#define CR2_SYNC_ADAT1          0x0 
     128#define CR2_SYNC_ADAT2          (CR2_SYNC_REF0) 
     129#define CR2_SYNC_SPDIF          (CR2_SYNC_REF0 | CR2_SYNC_REF1) 
     130#define CR2_SYNC_WORDCLOCK      (CR2_SYNC_REF2) 
     131#define CR2_SYNC_TCO            (CR2_SYNC_REF0 | CR2_SYNC_REF2) 
    110132 
    111133/* Structure used to store device settings in the device flash RAM.  This