Lines Matching refs:dcrtc
19 static int armada510_crtc_init(struct armada_crtc *dcrtc, struct device *dev) in armada510_crtc_init() argument
29 dcrtc->variant_data = v; in armada510_crtc_init()
69 dcrtc->base + LCD_CFG_RDREG4F); in armada510_crtc_init()
73 dcrtc->base + LCD_SPU_ADV_REG); in armada510_crtc_init()
100 static int armada510_crtc_compute_clock(struct armada_crtc *dcrtc, in armada510_crtc_compute_clock() argument
103 struct armada510_variant_data *v = dcrtc->variant_data; in armada510_crtc_compute_clock()
108 idx = armada_crtc_select_clock(dcrtc, &res, &armada510_clocking, in armada510_crtc_compute_clock()
125 swap(dcrtc->clk, res.clk); in armada510_crtc_compute_clock()
133 static void armada510_crtc_disable(struct armada_crtc *dcrtc) in armada510_crtc_disable() argument
135 if (dcrtc->clk) { in armada510_crtc_disable()
136 clk_disable_unprepare(dcrtc->clk); in armada510_crtc_disable()
137 dcrtc->clk = NULL; in armada510_crtc_disable()
141 static void armada510_crtc_enable(struct armada_crtc *dcrtc, in armada510_crtc_enable() argument
144 struct armada510_variant_data *v = dcrtc->variant_data; in armada510_crtc_enable()
146 if (!dcrtc->clk && v->sel_clk) { in armada510_crtc_enable()
148 dcrtc->clk = v->sel_clk; in armada510_crtc_enable()