 |
AM62L FreeRTOS SDK
11.00.00
|
|
Go to the documentation of this file.
49 #ifndef CSL_DSSCOMMON_H_
50 #define CSL_DSSCOMMON_H_
80 #define CSL_DSS_DISPC_INTR_VIDL1_MASK ((uint32_t) 0x20U)
82 #define CSL_DSS_DISPC_INTR_VP1_MASK ((uint32_t) 0x01U)
92 #define CSL_DSS_VID_PIPE_INTR_SAFETYVIOLATION_MASK \
93 ((uint32_t) CSL_DSS_COMMON_VID_IRQENABLE_1_SAFETYREGION_EN_MASK)
95 #define CSL_DSS_VID_PIPE_INTR_WINDOWEND_MASK \
96 ((uint32_t) CSL_DSS_COMMON_VID_IRQENABLE_1_VIDENDWINDOW_EN_MASK)
98 #define CSL_DSS_VID_PIPE_INTR_BUFUNDERFLOW_MASK \
99 ((uint32_t) CSL_DSS_COMMON_VID_IRQENABLE_1_VIDBUFFERUNDERFLOW_EN_MASK)
101 #define CSL_DSS_VID_PIPE_INTR_ALL_MASK \
102 (CSL_DSS_VID_PIPE_INTR_SAFETYVIOLATION_MASK | \
103 CSL_DSS_VID_PIPE_INTR_WINDOWEND_MASK | \
104 CSL_DSS_VID_PIPE_INTR_BUFUNDERFLOW_MASK)
114 #define CSL_DSS_VP_INTR_FRAMEDONE_MASK \
115 ((uint32_t) CSL_DSS_COMMON_VP_IRQENABLE_0_VPFRAMEDONE_EN_MASK)
117 #define CSL_DSS_VP_INTR_VSYNC_MASK \
118 ((uint32_t) CSL_DSS_COMMON_VP_IRQENABLE_0_VPVSYNC_EN_MASK)
120 #define CSL_DSS_VP_INTR_ODDVSYNC_MASK \
121 ((uint32_t) CSL_DSS_COMMON_VP_IRQENABLE_0_VPVSYNC_ODD_EN_MASK)
123 #define CSL_DSS_VP_INTR_PROGLINENUM_MASK \
124 ((uint32_t) CSL_DSS_COMMON_VP_IRQENABLE_0_VPPROGRAMMEDLINENUMBER_EN_MASK)
126 #define CSL_DSS_VP_INTR_SYNCLOST_MASK \
127 ((uint32_t) CSL_DSS_COMMON_VP_IRQENABLE_0_VPSYNCLOST_EN_MASK)
129 #define CSL_DSS_VP_INTR_ACBIASCOUNT_MASK \
130 ((uint32_t) CSL_DSS_COMMON_VP_IRQENABLE_0_ACBIASCOUNTSTATUS_EN_MASK)
132 #define CSL_DSS_VP_INTR_SAFETYVIOLATION_REGION0_MASK \
135 #define CSL_DSS_VP_INTR_SAFETYVIOLATION_REGION1_MASK \
138 #define CSL_DSS_VP_INTR_SAFETYVIOLATION_REGION2_MASK \
141 #define CSL_DSS_VP_INTR_SAFETYVIOLATION_REGION3_MASK \
144 #define CSL_DSS_VP_INTR_SECURITYVIOLATION_MASK \
145 ((uint32_t) CSL_DSS_COMMON_VP_IRQENABLE_0_SECURITYVIOLATION_EN_MASK)
147 #define CSL_DSS_VP_INTR_GOBITCLEAR_MASK \
148 ((uint32_t) CSL_DSS_COMMON_VP_IRQENABLE_0_VPSYNC_EN_MASK)
150 #define CSL_DSS_VP_INTR_ALL_MASK \
151 (CSL_DSS_VP_INTR_FRAMEDONE_MASK | \
152 CSL_DSS_VP_INTR_VSYNC_MASK | \
153 CSL_DSS_VP_INTR_ODDVSYNC_MASK | \
154 CSL_DSS_VP_INTR_PROGLINENUM_MASK | \
155 CSL_DSS_VP_INTR_SYNCLOST_MASK | \
156 CSL_DSS_VP_INTR_ACBIASCOUNT_MASK | \
157 CSL_DSS_VP_INTR_SAFETYVIOLATION_REGION0_MASK | \
158 CSL_DSS_VP_INTR_SAFETYVIOLATION_REGION1_MASK | \
159 CSL_DSS_VP_INTR_SAFETYVIOLATION_REGION2_MASK | \
160 CSL_DSS_VP_INTR_SAFETYVIOLATION_REGION3_MASK | \
161 CSL_DSS_VP_INTR_SECURITYVIOLATION_MASK | \
162 CSL_DSS_VP_INTR_GOBITCLEAR_MASK)
172 #define CSL_DSS_MFLAG_START_NORMAL \
173 ((uint32_t) CSL_DSS_COMMON_DISPC_GLOBAL_MFLAG_ATTRIBUTE_MFLAG_START_VAL_MFLAGNORMALSTARTMODE)
175 #define CSL_DSS_MFLAG_START_FORCED \
176 ((uint32_t) CSL_DSS_COMMON_DISPC_GLOBAL_MFLAG_ATTRIBUTE_MFLAG_START_VAL_MFLAGFORCESTARTMODE)
186 #define CSL_DSS_MFLAG_CTRL_DISABLED \
187 ((uint32_t) CSL_DSS_COMMON_DISPC_GLOBAL_MFLAG_ATTRIBUTE_MFLAG_CTRL_VAL_MFLAGDIS)
189 #define CSL_DSS_MFLAG_CTRL_FORCE_ENABLE \
190 ((uint32_t) CSL_DSS_COMMON_DISPC_GLOBAL_MFLAG_ATTRIBUTE_MFLAG_CTRL_VAL_MFLAGFORCE)
192 #define CSL_DSS_MFLAG_CTRL_DYNAMIC \
193 ((uint32_t) CSL_DSS_COMMON_DISPC_GLOBAL_MFLAG_ATTRIBUTE_MFLAG_CTRL_VAL_MFLAGEN)
265 uint32_t intrEnable);
285 uint32_t intrEnable);
305 uint32_t intrEnable);
429 uint32_t portIdMask);
void CSL_dssSetCbaConfig(CSL_dss_commRegs *commRegs, const CSL_DssCbaCfg *cbaCfg)
Set the CBA configuration.
void CSL_dssGlobalVpGoBitEnable(CSL_dss_commRegs *commRegs, uint32_t portIdMask)
Enable the global VP go bit. This allows setting multiple outputs synchronously. The 'OR' result of d...
static void CSL_dssCbaCfgInit(CSL_DssCbaCfg *cbaCfg)
CSL_DssCbaCfg structure init function.
Definition: csl_dssCommon.h:479
void CSL_dssModuleReset(CSL_dss_commRegs *commRegs)
Reset the DSS Module. Application should make sure Video Ports are disabled before calling this API.
#define CSL_DSS_MFLAG_CTRL_DISABLED
Mflag is disabled.
Definition: csl_dssCommon.h:186
uint32_t priLow
Definition: csl_dssCommon.h:222
void CSL_dssClearPipeIntr(CSL_dss_commRegs *commRegs, uint32_t vidPipeId, uint32_t intrMask)
Clear the interrupts for Video Pipe.
#define NULL
Define NULL if not defined.
Definition: csl_types.h:100
CSL_dss_commonRegs CSL_dss_commRegs
DSS Common Registers.
Definition: csl_dssCommon.h:71
uint32_t priHigh
Definition: csl_dssCommon.h:219
uint32_t CSL_dssGetPipeIntrStatus(const CSL_dss_commRegs *commRegs, uint32_t vidPipeId)
Get the interrupt status of Video Pipe.
uint32_t CSL_dssIsOldiResetDone(const CSL_dss_commRegs *commRegs)
Get OLDI reset status.
Definition: cslr_dss.h:55
void CSL_dssEnablePipeIntr(CSL_dss_commRegs *commRegs, uint32_t vidPipeId, uint32_t intrMask, uint32_t intrEnable)
Enable/disable the interrupts for Video Pipe.
static void CSL_dssGlobalMFlagCfgInit(CSL_DssGlobalMFlagCfg *mflagCfg)
CSL_DssGlobalMFlagCfg structure init function.
Definition: csl_dssCommon.h:469
uint32_t CSL_dssGetVpIntrStatus(const CSL_dss_commRegs *commRegs, uint32_t portId)
Get the interrupt status of Video Port.
#define CSL_DSS_MFLAG_START_NORMAL
Mflag of each pipe is kept at 0 until preload is reached.
Definition: csl_dssCommon.h:172
void CSL_dssEnableVpIntr(CSL_dss_commRegs *commRegs, uint32_t portId, uint32_t intrMask, uint32_t intrEnable)
Enable/disable the interrupts for Video Port.
DSS Global MFLAG Config parameters.
Definition: csl_dssCommon.h:204
void CSL_dssEnableDispcIntr(CSL_dss_commRegs *commRegs, uint32_t intrMask, uint32_t intrEnable)
Enable/disable the interrupts at DSS top level.
void CSL_dssClearDispcIntr(CSL_dss_commRegs *commRegs, uint32_t intrMask)
Clear the interrupts at DSS top level.
uint32_t globalMflagCtrl
Definition: csl_dssCommon.h:209
uint32_t globalMflagStart
Definition: csl_dssCommon.h:205
void CSL_dssGlobalVpEnable(CSL_dss_commRegs *commRegs, uint32_t portIdMask, uint32_t enable)
Enable the global VP enable bit. This allows setting multiple outputs synchronously....
DSS CBA Config parameters.
Definition: csl_dssCommon.h:218
void CSL_dssClearVpIntr(CSL_dss_commRegs *commRegs, uint32_t portId, uint32_t intrMask)
Clear the interrupts for Video Port.
uint32_t CSL_dssGetDispcIntrStatus(const CSL_dss_commRegs *commRegs)
Get the top level interrupt status of DSS.
void CSL_dssSetGlobalMflagConfig(CSL_dss_commRegs *commRegs, const CSL_DssGlobalMFlagCfg *mflagCfg)
Set the global MFLAG configuration.