Lines Matching refs:dc_chan
532 void ipu_dc_init(int dc_chan, int di, unsigned char interlaced) in ipu_dc_init() argument
536 if ((dc_chan == 1) || (dc_chan == 5)) { in ipu_dc_init()
538 ipu_dc_link_event(dc_chan, DC_EVT_NL, 0, 3); in ipu_dc_init()
539 ipu_dc_link_event(dc_chan, DC_EVT_EOL, 0, 2); in ipu_dc_init()
540 ipu_dc_link_event(dc_chan, DC_EVT_NEW_DATA, 0, 1); in ipu_dc_init()
543 ipu_dc_link_event(dc_chan, DC_EVT_NL, 2, 3); in ipu_dc_init()
544 ipu_dc_link_event(dc_chan, DC_EVT_EOL, 3, 2); in ipu_dc_init()
545 ipu_dc_link_event(dc_chan, DC_EVT_NEW_DATA, in ipu_dc_init()
548 ipu_dc_link_event(dc_chan, DC_EVT_NL, 5, 3); in ipu_dc_init()
549 ipu_dc_link_event(dc_chan, DC_EVT_EOL, 6, 2); in ipu_dc_init()
550 ipu_dc_link_event(dc_chan, DC_EVT_NEW_DATA, in ipu_dc_init()
554 ipu_dc_link_event(dc_chan, DC_EVT_NF, 0, 0); in ipu_dc_init()
555 ipu_dc_link_event(dc_chan, DC_EVT_NFIELD, 0, 0); in ipu_dc_init()
556 ipu_dc_link_event(dc_chan, DC_EVT_EOF, 0, 0); in ipu_dc_init()
557 ipu_dc_link_event(dc_chan, DC_EVT_EOFIELD, 0, 0); in ipu_dc_init()
558 ipu_dc_link_event(dc_chan, DC_EVT_NEW_CHAN, 0, 0); in ipu_dc_init()
559 ipu_dc_link_event(dc_chan, DC_EVT_NEW_ADDR, 0, 0); in ipu_dc_init()
566 } else if ((dc_chan == 8) || (dc_chan == 9)) { in ipu_dc_init()
568 ipu_dc_link_event(dc_chan, DC_EVT_NEW_DATA_W_0, 0x64, 1); in ipu_dc_init()
569 ipu_dc_link_event(dc_chan, DC_EVT_NEW_DATA_W_1, 0x64, 1); in ipu_dc_init()
574 __raw_writel(reg, DC_WR_CH_CONF(dc_chan)); in ipu_dc_init()
576 __raw_writel(0x00000000, DC_WR_CH_ADDR(dc_chan)); in ipu_dc_init()
581 void ipu_dc_uninit(int dc_chan) in ipu_dc_uninit() argument
583 if ((dc_chan == 1) || (dc_chan == 5)) { in ipu_dc_uninit()
584 ipu_dc_link_event(dc_chan, DC_EVT_NL, 0, 0); in ipu_dc_uninit()
585 ipu_dc_link_event(dc_chan, DC_EVT_EOL, 0, 0); in ipu_dc_uninit()
586 ipu_dc_link_event(dc_chan, DC_EVT_NEW_DATA, 0, 0); in ipu_dc_uninit()
587 ipu_dc_link_event(dc_chan, DC_EVT_NF, 0, 0); in ipu_dc_uninit()
588 ipu_dc_link_event(dc_chan, DC_EVT_NFIELD, 0, 0); in ipu_dc_uninit()
589 ipu_dc_link_event(dc_chan, DC_EVT_EOF, 0, 0); in ipu_dc_uninit()
590 ipu_dc_link_event(dc_chan, DC_EVT_EOFIELD, 0, 0); in ipu_dc_uninit()
591 ipu_dc_link_event(dc_chan, DC_EVT_NEW_CHAN, 0, 0); in ipu_dc_uninit()
592 ipu_dc_link_event(dc_chan, DC_EVT_NEW_ADDR, 0, 0); in ipu_dc_uninit()
593 } else if ((dc_chan == 8) || (dc_chan == 9)) { in ipu_dc_uninit()
594 ipu_dc_link_event(dc_chan, DC_EVT_NEW_ADDR_W_0, 0, 0); in ipu_dc_uninit()
595 ipu_dc_link_event(dc_chan, DC_EVT_NEW_ADDR_W_1, 0, 0); in ipu_dc_uninit()
596 ipu_dc_link_event(dc_chan, DC_EVT_NEW_CHAN_W_0, 0, 0); in ipu_dc_uninit()
597 ipu_dc_link_event(dc_chan, DC_EVT_NEW_CHAN_W_1, 0, 0); in ipu_dc_uninit()
598 ipu_dc_link_event(dc_chan, DC_EVT_NEW_DATA_W_0, 0, 0); in ipu_dc_uninit()
599 ipu_dc_link_event(dc_chan, DC_EVT_NEW_DATA_W_1, 0, 0); in ipu_dc_uninit()
600 ipu_dc_link_event(dc_chan, DC_EVT_NEW_ADDR_R_0, 0, 0); in ipu_dc_uninit()
601 ipu_dc_link_event(dc_chan, DC_EVT_NEW_ADDR_R_1, 0, 0); in ipu_dc_uninit()
602 ipu_dc_link_event(dc_chan, DC_EVT_NEW_CHAN_R_0, 0, 0); in ipu_dc_uninit()
603 ipu_dc_link_event(dc_chan, DC_EVT_NEW_CHAN_R_1, 0, 0); in ipu_dc_uninit()
604 ipu_dc_link_event(dc_chan, DC_EVT_NEW_DATA_R_0, 0, 0); in ipu_dc_uninit()
605 ipu_dc_link_event(dc_chan, DC_EVT_NEW_DATA_R_1, 0, 0); in ipu_dc_uninit()
613 uint32_t dc_chan; in ipu_dp_dc_enable() local
616 dc_chan = 1; in ipu_dp_dc_enable()
618 dc_chan = 5; in ipu_dp_dc_enable()
632 di = g_dc_di_assignment[dc_chan]; in ipu_dp_dc_enable()
635 reg = __raw_readl(DC_WR_CH_CONF(6 - dc_chan)); in ipu_dp_dc_enable()
639 __raw_writel(reg, DC_WR_CH_CONF(6 - dc_chan)); in ipu_dp_dc_enable()
642 reg = __raw_readl(DC_WR_CH_CONF(dc_chan)); in ipu_dp_dc_enable()
644 __raw_writel(reg, DC_WR_CH_CONF(dc_chan)); in ipu_dp_dc_enable()
655 uint32_t dc_chan = 0; in ipu_dp_dc_disable() local
662 dc_chan = 1; in ipu_dp_dc_disable()
665 dc_chan = 5; in ipu_dp_dc_disable()
669 dc_chan = 5; in ipu_dp_dc_disable()
688 if (g_dc_di_assignment[dc_chan] == 0) in ipu_dp_dc_disable()
696 else if (g_dc_di_assignment[dc_chan] == 1) in ipu_dp_dc_disable()
711 reg = __raw_readl(DC_WR_CH_CONF(dc_chan)); in ipu_dp_dc_disable()
712 __raw_writel(reg, DC_WR_CH_CONF(6 - dc_chan)); in ipu_dp_dc_disable()
715 __raw_writel(reg, DC_WR_CH_CONF(dc_chan)); in ipu_dp_dc_disable()
723 reg = __raw_readl(DC_WR_CH_CONF(dc_chan)); in ipu_dp_dc_disable()
725 __raw_writel(reg, DC_WR_CH_CONF(dc_chan)); in ipu_dp_dc_disable()
728 if (g_dc_di_assignment[dc_chan]) in ipu_dp_dc_disable()
736 clk_disable(g_pixel_clk[g_dc_di_assignment[dc_chan]]); in ipu_dp_dc_disable()