• Home
  • Raw
  • Download

Lines Matching refs:dc_chan

530 void ipu_dc_init(int dc_chan, int di, unsigned char interlaced)  in ipu_dc_init()  argument
534 if ((dc_chan == 1) || (dc_chan == 5)) { in ipu_dc_init()
536 ipu_dc_link_event(dc_chan, DC_EVT_NL, 0, 3); in ipu_dc_init()
537 ipu_dc_link_event(dc_chan, DC_EVT_EOL, 0, 2); in ipu_dc_init()
538 ipu_dc_link_event(dc_chan, DC_EVT_NEW_DATA, 0, 1); in ipu_dc_init()
541 ipu_dc_link_event(dc_chan, DC_EVT_NL, 2, 3); in ipu_dc_init()
542 ipu_dc_link_event(dc_chan, DC_EVT_EOL, 3, 2); in ipu_dc_init()
543 ipu_dc_link_event(dc_chan, DC_EVT_NEW_DATA, in ipu_dc_init()
546 ipu_dc_link_event(dc_chan, DC_EVT_NL, 5, 3); in ipu_dc_init()
547 ipu_dc_link_event(dc_chan, DC_EVT_EOL, 6, 2); in ipu_dc_init()
548 ipu_dc_link_event(dc_chan, DC_EVT_NEW_DATA, in ipu_dc_init()
552 ipu_dc_link_event(dc_chan, DC_EVT_NF, 0, 0); in ipu_dc_init()
553 ipu_dc_link_event(dc_chan, DC_EVT_NFIELD, 0, 0); in ipu_dc_init()
554 ipu_dc_link_event(dc_chan, DC_EVT_EOF, 0, 0); in ipu_dc_init()
555 ipu_dc_link_event(dc_chan, DC_EVT_EOFIELD, 0, 0); in ipu_dc_init()
556 ipu_dc_link_event(dc_chan, DC_EVT_NEW_CHAN, 0, 0); in ipu_dc_init()
557 ipu_dc_link_event(dc_chan, DC_EVT_NEW_ADDR, 0, 0); in ipu_dc_init()
564 } else if ((dc_chan == 8) || (dc_chan == 9)) { in ipu_dc_init()
566 ipu_dc_link_event(dc_chan, DC_EVT_NEW_DATA_W_0, 0x64, 1); in ipu_dc_init()
567 ipu_dc_link_event(dc_chan, DC_EVT_NEW_DATA_W_1, 0x64, 1); in ipu_dc_init()
572 __raw_writel(reg, DC_WR_CH_CONF(dc_chan)); in ipu_dc_init()
574 __raw_writel(0x00000000, DC_WR_CH_ADDR(dc_chan)); in ipu_dc_init()
579 void ipu_dc_uninit(int dc_chan) in ipu_dc_uninit() argument
581 if ((dc_chan == 1) || (dc_chan == 5)) { in ipu_dc_uninit()
582 ipu_dc_link_event(dc_chan, DC_EVT_NL, 0, 0); in ipu_dc_uninit()
583 ipu_dc_link_event(dc_chan, DC_EVT_EOL, 0, 0); in ipu_dc_uninit()
584 ipu_dc_link_event(dc_chan, DC_EVT_NEW_DATA, 0, 0); in ipu_dc_uninit()
585 ipu_dc_link_event(dc_chan, DC_EVT_NF, 0, 0); in ipu_dc_uninit()
586 ipu_dc_link_event(dc_chan, DC_EVT_NFIELD, 0, 0); in ipu_dc_uninit()
587 ipu_dc_link_event(dc_chan, DC_EVT_EOF, 0, 0); in ipu_dc_uninit()
588 ipu_dc_link_event(dc_chan, DC_EVT_EOFIELD, 0, 0); in ipu_dc_uninit()
589 ipu_dc_link_event(dc_chan, DC_EVT_NEW_CHAN, 0, 0); in ipu_dc_uninit()
590 ipu_dc_link_event(dc_chan, DC_EVT_NEW_ADDR, 0, 0); in ipu_dc_uninit()
591 } else if ((dc_chan == 8) || (dc_chan == 9)) { in ipu_dc_uninit()
592 ipu_dc_link_event(dc_chan, DC_EVT_NEW_ADDR_W_0, 0, 0); in ipu_dc_uninit()
593 ipu_dc_link_event(dc_chan, DC_EVT_NEW_ADDR_W_1, 0, 0); in ipu_dc_uninit()
594 ipu_dc_link_event(dc_chan, DC_EVT_NEW_CHAN_W_0, 0, 0); in ipu_dc_uninit()
595 ipu_dc_link_event(dc_chan, DC_EVT_NEW_CHAN_W_1, 0, 0); in ipu_dc_uninit()
596 ipu_dc_link_event(dc_chan, DC_EVT_NEW_DATA_W_0, 0, 0); in ipu_dc_uninit()
597 ipu_dc_link_event(dc_chan, DC_EVT_NEW_DATA_W_1, 0, 0); in ipu_dc_uninit()
598 ipu_dc_link_event(dc_chan, DC_EVT_NEW_ADDR_R_0, 0, 0); in ipu_dc_uninit()
599 ipu_dc_link_event(dc_chan, DC_EVT_NEW_ADDR_R_1, 0, 0); in ipu_dc_uninit()
600 ipu_dc_link_event(dc_chan, DC_EVT_NEW_CHAN_R_0, 0, 0); in ipu_dc_uninit()
601 ipu_dc_link_event(dc_chan, DC_EVT_NEW_CHAN_R_1, 0, 0); in ipu_dc_uninit()
602 ipu_dc_link_event(dc_chan, DC_EVT_NEW_DATA_R_0, 0, 0); in ipu_dc_uninit()
603 ipu_dc_link_event(dc_chan, DC_EVT_NEW_DATA_R_1, 0, 0); in ipu_dc_uninit()
611 uint32_t dc_chan; in ipu_dp_dc_enable() local
614 dc_chan = 1; in ipu_dp_dc_enable()
616 dc_chan = 5; in ipu_dp_dc_enable()
630 di = g_dc_di_assignment[dc_chan]; in ipu_dp_dc_enable()
633 reg = __raw_readl(DC_WR_CH_CONF(6 - dc_chan)); in ipu_dp_dc_enable()
637 __raw_writel(reg, DC_WR_CH_CONF(6 - dc_chan)); in ipu_dp_dc_enable()
640 reg = __raw_readl(DC_WR_CH_CONF(dc_chan)); in ipu_dp_dc_enable()
642 __raw_writel(reg, DC_WR_CH_CONF(dc_chan)); in ipu_dp_dc_enable()
653 uint32_t dc_chan = 0; in ipu_dp_dc_disable() local
660 dc_chan = 1; in ipu_dp_dc_disable()
663 dc_chan = 5; in ipu_dp_dc_disable()
667 dc_chan = 5; in ipu_dp_dc_disable()
686 if (g_dc_di_assignment[dc_chan] == 0) in ipu_dp_dc_disable()
694 else if (g_dc_di_assignment[dc_chan] == 1) in ipu_dp_dc_disable()
709 reg = __raw_readl(DC_WR_CH_CONF(dc_chan)); in ipu_dp_dc_disable()
710 __raw_writel(reg, DC_WR_CH_CONF(6 - dc_chan)); in ipu_dp_dc_disable()
713 __raw_writel(reg, DC_WR_CH_CONF(dc_chan)); in ipu_dp_dc_disable()
721 reg = __raw_readl(DC_WR_CH_CONF(dc_chan)); in ipu_dp_dc_disable()
723 __raw_writel(reg, DC_WR_CH_CONF(dc_chan)); in ipu_dp_dc_disable()
726 if (g_dc_di_assignment[dc_chan]) in ipu_dp_dc_disable()
734 clk_disable(g_pixel_clk[g_dc_di_assignment[dc_chan]]); in ipu_dp_dc_disable()