Lines Matching refs:pps

155 					struct intel_lvds_pps *pps)  in intel_lvds_pps_get_hw_state()  argument
159 pps->powerdown_on_reset = I915_READ(PP_CONTROL(0)) & PANEL_POWER_RESET; in intel_lvds_pps_get_hw_state()
162 pps->port = REG_FIELD_GET(PANEL_PORT_SELECT_MASK, val); in intel_lvds_pps_get_hw_state()
163 pps->t1_t2 = REG_FIELD_GET(PANEL_POWER_UP_DELAY_MASK, val); in intel_lvds_pps_get_hw_state()
164 pps->t5 = REG_FIELD_GET(PANEL_LIGHT_ON_DELAY_MASK, val); in intel_lvds_pps_get_hw_state()
167 pps->t3 = REG_FIELD_GET(PANEL_POWER_DOWN_DELAY_MASK, val); in intel_lvds_pps_get_hw_state()
168 pps->tx = REG_FIELD_GET(PANEL_LIGHT_OFF_DELAY_MASK, val); in intel_lvds_pps_get_hw_state()
171 pps->divider = REG_FIELD_GET(PP_REFERENCE_DIVIDER_MASK, val); in intel_lvds_pps_get_hw_state()
181 pps->t4 = val * 1000; in intel_lvds_pps_get_hw_state()
184 pps->t1_t2 == 0 && pps->t5 == 0 && pps->t3 == 0 && pps->tx == 0) { in intel_lvds_pps_get_hw_state()
188 pps->t1_t2 = 40 * 10; in intel_lvds_pps_get_hw_state()
189 pps->t5 = 200 * 10; in intel_lvds_pps_get_hw_state()
191 pps->t3 = 35 * 10; in intel_lvds_pps_get_hw_state()
192 pps->tx = 200 * 10; in intel_lvds_pps_get_hw_state()
197 pps->t1_t2, pps->t3, pps->t4, pps->t5, pps->tx, in intel_lvds_pps_get_hw_state()
198 pps->divider, pps->port, pps->powerdown_on_reset); in intel_lvds_pps_get_hw_state()
202 struct intel_lvds_pps *pps) in intel_lvds_pps_init_hw() argument
208 if (pps->powerdown_on_reset) in intel_lvds_pps_init_hw()
213 REG_FIELD_PREP(PANEL_PORT_SELECT_MASK, pps->port) | in intel_lvds_pps_init_hw()
214 REG_FIELD_PREP(PANEL_POWER_UP_DELAY_MASK, pps->t1_t2) | in intel_lvds_pps_init_hw()
215 REG_FIELD_PREP(PANEL_LIGHT_ON_DELAY_MASK, pps->t5)); in intel_lvds_pps_init_hw()
218 REG_FIELD_PREP(PANEL_POWER_DOWN_DELAY_MASK, pps->t3) | in intel_lvds_pps_init_hw()
219 REG_FIELD_PREP(PANEL_LIGHT_OFF_DELAY_MASK, pps->tx)); in intel_lvds_pps_init_hw()
222 REG_FIELD_PREP(PP_REFERENCE_DIVIDER_MASK, pps->divider) | in intel_lvds_pps_init_hw()
224 DIV_ROUND_UP(pps->t4, 1000) + 1)); in intel_lvds_pps_init_hw()