Lines Matching +full:gen +full:- +full:2
1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Porting to u-boot:
10 * (C) Copyright 2005-2009 Freescale Semiconductor, Inc.
56 #define DC_EVT_EOF 2
66 #define DC_EVT_NEW_CHAN_W_0 2
131 DI_PIN13 = 2,
143 DI_SYNC_NONE = -1,
146 DI_SYNC_HSYNC = 2,
162 u32 fs_disp_flow[2];
172 u32 ch_db_mode_sel[2];
174 u32 alt_ch_db_mode_sel[2];
175 u32 reserved2[2];
176 u32 ch_trb_mode_sel[2];
181 u32 ch_en[2];
184 u32 ch_pri[2];
185 u32 wm_en[2];
186 u32 lock_en[2];
188 u32 bndm_en[2];
189 u32 sc_cord[2];
191 u32 ch_busy[2];
203 u32 dp_csc_async[2];
215 u32 csc_sync[2];
217 struct ipu_com_async async[2];
242 u32 cur_buf[2];
249 u32 ch_buf0_rdy[2];
250 u32 ch_buf1_rdy[2];
251 u32 alt_ch_buf0_rdy[2];
252 u32 alt_ch_buf1_rdy[2];
253 u32 ch_buf2_rdy[2];
266 struct ipu_dc_ch dc_ch5_6[2];
271 u32 gen; member
274 u32 di0_conf[2];
275 u32 di1_conf[2];
279 u32 lla[2];
280 u32 r_lla[2];
291 u32 general[2];
301 #define IPU_CONF (&IPU_CM_REG->conf)
302 #define IPU_SRM_PRI1 (&IPU_CM_REG->srm_pri1)
303 #define IPU_SRM_PRI2 (&IPU_CM_REG->srm_pri2)
304 #define IPU_FS_PROC_FLOW1 (&IPU_CM_REG->fs_proc_flow[0])
305 #define IPU_FS_PROC_FLOW2 (&IPU_CM_REG->fs_proc_flow[1])
306 #define IPU_FS_PROC_FLOW3 (&IPU_CM_REG->fs_proc_flow[2])
307 #define IPU_FS_DISP_FLOW1 (&IPU_CM_REG->fs_disp_flow[0])
308 #define IPU_DISP_GEN (&IPU_CM_REG->disp_gen)
309 #define IPU_MEM_RST (&IPU_CM_REG->mem_rst)
310 #define IPU_GPR (&IPU_CM_REG->gpr)
311 #define IPU_CHA_DB_MODE_SEL(ch) (&IPU_CM_REG->ch_db_mode_sel[ch / 32])
315 #define IPU_INT_STAT(n) (&IPU_STAT->int_stat[(n) - 1])
316 #define IPU_CHA_CUR_BUF(ch) (&IPU_STAT->cur_buf[ch / 32])
317 #define IPU_CHA_BUF0_RDY(ch) (&IPU_STAT->ch_buf0_rdy[ch / 32])
318 #define IPU_CHA_BUF1_RDY(ch) (&IPU_STAT->ch_buf1_rdy[ch / 32])
322 #define IPU_INT_CTRL(n) (&IPU_CM_REG->int_ctrl[(n) - 1])
326 #define IDMAC_CONF (&IDMAC_REG->conf)
327 #define IDMAC_CHA_EN(ch) (&IDMAC_REG->ch_en[ch / 32])
328 #define IDMAC_CHA_PRI(ch) (&IDMAC_REG->ch_pri[ch / 32])
333 #define DI_GENERAL(di) (&DI_REG(di)->general)
334 #define DI_BS_CLKGEN0(di) (&DI_REG(di)->bs_clkgen0)
335 #define DI_BS_CLKGEN1(di) (&DI_REG(di)->bs_clkgen1)
337 #define DI_SW_GEN0(di, gen) (&DI_REG(di)->sw_gen0[gen - 1]) argument
338 #define DI_SW_GEN1(di, gen) (&DI_REG(di)->sw_gen1[gen - 1]) argument
339 #define DI_STP_REP(di, gen) (&DI_REG(di)->stp_rep[(gen - 1) / 2]) argument
340 #define DI_STP_REP9(di) (&DI_REG(di)->stp_rep9)
341 #define DI_SYNC_AS_GEN(di) (&DI_REG(di)->sync_as)
342 #define DI_DW_GEN(di, gen) (&DI_REG(di)->dw_gen[gen]) argument
343 #define DI_DW_SET(di, gen, set) (&DI_REG(di)->dw_set[gen + 12 * set]) argument
344 #define DI_POL(di) (&DI_REG(di)->pol)
345 #define DI_SCR_CONF(di) (&DI_REG(di)->scr_conf)
349 #define DMFC_WR_CHAN (&DMFC_REG->wr_chan)
350 #define DMFC_WR_CHAN_DEF (&DMFC_REG->wr_chan_def)
351 #define DMFC_DP_CHAN (&DMFC_REG->dp_chan)
352 #define DMFC_DP_CHAN_DEF (&DMFC_REG->dp_chan_def)
353 #define DMFC_GENERAL1 (&DMFC_REG->general[0])
354 #define DMFC_IC_CTRL (&DMFC_REG->ic_ctrl)
359 #define DC_MAP_CONF_PTR(n) (&DC_REG->dc_map_ptr[n / 2])
360 #define DC_MAP_CONF_VAL(n) (&DC_REG->dc_map_val[n / 2])
368 case 2: in dc_ch_offset()
369 return &DC_REG->dc_ch0_1_2[ch]; in dc_ch_offset()
372 return &DC_REG->dc_ch5_6[ch - 5]; in dc_ch_offset()
374 return &DC_REG->dc_ch8; in dc_ch_offset()
376 return &DC_REG->dc_ch9; in dc_ch_offset()
384 #define DC_RL_CH(ch, evt) (&dc_ch_offset(ch)->rl[evt / 2])
386 #define DC_WR_CH_CONF(ch) (&dc_ch_offset(ch)->wr_ch_conf)
387 #define DC_WR_CH_ADDR(ch) (&dc_ch_offset(ch)->wr_ch_addr)
392 #define DC_GEN (&DC_REG->gen)
393 #define DC_DISP_CONF2(disp) (&DC_REG->disp_conf2[disp])
394 #define DC_STAT (&DC_REG->stat)
402 #define DP_COM_CONF() (&DP_REG->com_conf_sync)
403 #define DP_GRAPH_WIND_CTRL() (&DP_REG->graph_wind_ctrl_sync)
404 #define DP_CSC_A_0() (&DP_REG->csca_sync[0])
405 #define DP_CSC_A_1() (&DP_REG->csca_sync[1])
406 #define DP_CSC_A_2() (&DP_REG->csca_sync[2])
407 #define DP_CSC_A_3() (&DP_REG->csca_sync[3])
409 #define DP_CSC_0() (&DP_REG->csc_sync[0])
410 #define DP_CSC_1() (&DP_REG->csc_sync[1])