1 #ifndef CM9780_H_INCLUDED 2 #define CM9780_H_INCLUDED 3 4 #define CM9780_JACK 0x62 5 #define CM9780_MIXER 0x64 6 #define CM9780_GPIO_SETUP 0x70 7 #define CM9780_GPIO_STATUS 0x72 8 9 /* jack control */ 10 #define CM9780_RSOE 0x0001 11 #define CM9780_CBOE 0x0002 12 #define CM9780_SSOE 0x0004 13 #define CM9780_FROE 0x0008 14 #define CM9780_HP2FMICOE 0x0010 15 #define CM9780_CB2MICOE 0x0020 16 #define CM9780_FMIC2LI 0x0040 17 #define CM9780_FMIC2MIC 0x0080 18 #define CM9780_HP2LI 0x0100 19 #define CM9780_HP2MIC 0x0200 20 #define CM9780_MIC2LI 0x0400 21 #define CM9780_MIC2MIC 0x0800 22 #define CM9780_LI2LI 0x1000 23 #define CM9780_LI2MIC 0x2000 24 #define CM9780_LO2LI 0x4000 25 #define CM9780_LO2MIC 0x8000 26 27 /* mixer control */ 28 #define CM9780_BSTSEL 0x0001 29 #define CM9780_STRO_MIC 0x0002 30 #define CM9780_SPDI_FREX 0x0004 31 #define CM9780_SPDI_SSEX 0x0008 32 #define CM9780_SPDI_CBEX 0x0010 33 #define CM9780_SPDI_RSEX 0x0020 34 #define CM9780_MIX2FR 0x0040 35 #define CM9780_MIX2SS 0x0080 36 #define CM9780_MIX2CB 0x0100 37 #define CM9780_MIX2RS 0x0200 38 #define CM9780_MIX2FR_EX 0x0400 39 #define CM9780_MIX2SS_EX 0x0800 40 #define CM9780_MIX2CB_EX 0x1000 41 #define CM9780_MIX2RS_EX 0x2000 42 #define CM9780_P47_IO 0x4000 43 #define CM9780_PCBSW 0x8000 44 45 /* GPIO setup */ 46 #define CM9780_GPI0EN 0x0001 47 #define CM9780_GPI1EN 0x0002 48 #define CM9780_SENSE_P 0x0004 49 #define CM9780_LOCK_P 0x0008 50 #define CM9780_GPIO0P 0x0010 51 #define CM9780_GPIO1P 0x0020 52 #define CM9780_GPIO0IO 0x0100 53 #define CM9780_GPIO1IO 0x0200 54 55 /* GPIO status */ 56 #define CM9780_GPO0 0x0001 57 #define CM9780_GPO1 0x0002 58 #define CM9780_GPIO0S 0x0010 59 #define CM9780_GPIO1S 0x0020 60 #define CM9780_GPII0S 0x0100 61 #define CM9780_GPII1S 0x0200 62 63 #endif 64