Go to the documentation of this file. 1 #ifndef _INC_PMCC4_CPLD_H_
2 #define _INC_PMCC4_CPLD_H_
24 #include <linux/types.h>
48 #define PMCC4_CPLD_MCSR_IND 0
50 #define PMCC4_CPLD_MCSR_CMT_1 1
52 #define PMCC4_CPLD_MCSR_CMT_2 2
54 #define PMCC4_CPLD_MCSR_CMT_3 3
56 #define PMCC4_CPLD_MCSR_CMT_4 4
59 #define PMCC4_CPLD_MCLK_MASK 0x0f
60 #define PMCC4_CPLD_MCLK_P1 0x1
61 #define PMCC4_CPLD_MCLK_P2 0x2
62 #define PMCC4_CPLD_MCLK_P3 0x4
63 #define PMCC4_CPLD_MCLK_P4 0x8
64 #define PMCC4_CPLD_MCLK_T1 0x00
65 #define PMCC4_CPLD_MCLK_P1_E1 0x01
66 #define PMCC4_CPLD_MCLK_P2_E1 0x02
67 #define PMCC4_CPLD_MCLK_P3_E1 0x04
68 #define PMCC4_CPLD_MCLK_P4_E1 0x08
70 #define PMCC4_CPLD_LED_OFF 0
71 #define PMCC4_CPLD_LED_ON 1
72 #define PMCC4_CPLD_LED_GP0 0x01
73 #define PMCC4_CPLD_LED_YP0 0x02
74 #define PMCC4_CPLD_LED_GP1 0x04
75 #define PMCC4_CPLD_LED_YP1 0x08
76 #define PMCC4_CPLD_LED_GP2 0x10
77 #define PMCC4_CPLD_LED_YP2 0x20
78 #define PMCC4_CPLD_LED_GP3 0x40
79 #define PMCC4_CPLD_LED_YP3 0x80
80 #define PMCC4_CPLD_LED_GREEN (PMCC4_CPLD_LED_GP0 | PMCC4_CPLD_LED_GP1 | \
81 PMCC4_CPLD_LED_GP2 | PMCC4_CPLD_LED_GP3 )
82 #define PMCC4_CPLD_LED_YELLOW (PMCC4_CPLD_LED_YP0 | PMCC4_CPLD_LED_YP1 | \
83 PMCC4_CPLD_LED_YP2 | PMCC4_CPLD_LED_YP3)
85 #define PMCC4_CPLD_INTR_MASK 0x0f
86 #define PMCC4_CPLD_INTR_CMT_1 0x01
87 #define PMCC4_CPLD_INTR_CMT_2 0x02
88 #define PMCC4_CPLD_INTR_CMT_3 0x04
89 #define PMCC4_CPLD_INTR_CMT_4 0x08