Lines Matching refs:dcrtc
20 static int armada510_crtc_init(struct armada_crtc *dcrtc, struct device *dev) in armada510_crtc_init() argument
30 dcrtc->variant_data = v; in armada510_crtc_init()
70 dcrtc->base + LCD_CFG_RDREG4F); in armada510_crtc_init()
74 dcrtc->base + LCD_SPU_ADV_REG); in armada510_crtc_init()
101 static int armada510_crtc_compute_clock(struct armada_crtc *dcrtc, in armada510_crtc_compute_clock() argument
104 struct armada510_variant_data *v = dcrtc->variant_data; in armada510_crtc_compute_clock()
109 idx = armada_crtc_select_clock(dcrtc, &res, &armada510_clocking, in armada510_crtc_compute_clock()
126 swap(dcrtc->clk, res.clk); in armada510_crtc_compute_clock()
134 static void armada510_crtc_disable(struct armada_crtc *dcrtc) in armada510_crtc_disable() argument
136 if (dcrtc->clk) { in armada510_crtc_disable()
137 clk_disable_unprepare(dcrtc->clk); in armada510_crtc_disable()
138 dcrtc->clk = NULL; in armada510_crtc_disable()
142 static void armada510_crtc_enable(struct armada_crtc *dcrtc, in armada510_crtc_enable() argument
145 struct armada510_variant_data *v = dcrtc->variant_data; in armada510_crtc_enable()
147 if (!dcrtc->clk && v->sel_clk) { in armada510_crtc_enable()
149 dcrtc->clk = v->sel_clk; in armada510_crtc_enable()