Subversion Repositories Kolibri OS

Rev

Rev 5060 | Rev 5354 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5060 Rev 5097
Line 794... Line 794...
794
		intel_pipe_to_cpu_transcoder(dev_priv, pipe);
794
		intel_pipe_to_cpu_transcoder(dev_priv, pipe);
795
	u32 cpu_ctl2, pch_ctl1, pch_ctl2;
795
	u32 cpu_ctl2, pch_ctl1, pch_ctl2;
Line 796... Line 796...
796
 
796
 
797
	cpu_ctl2 = I915_READ(BLC_PWM_CPU_CTL2);
797
	cpu_ctl2 = I915_READ(BLC_PWM_CPU_CTL2);
798
	if (cpu_ctl2 & BLM_PWM_ENABLE) {
798
	if (cpu_ctl2 & BLM_PWM_ENABLE) {
799
		WARN(1, "cpu backlight already enabled\n");
799
		DRM_DEBUG_KMS("cpu backlight already enabled\n");
800
		cpu_ctl2 &= ~BLM_PWM_ENABLE;
800
		cpu_ctl2 &= ~BLM_PWM_ENABLE;
801
		I915_WRITE(BLC_PWM_CPU_CTL2, cpu_ctl2);
801
		I915_WRITE(BLC_PWM_CPU_CTL2, cpu_ctl2);
Line 802... Line 802...
802
	}
802
	}
Line 838... Line 838...
838
	struct intel_panel *panel = &connector->panel;
838
	struct intel_panel *panel = &connector->panel;
839
	u32 ctl, freq;
839
	u32 ctl, freq;
Line 840... Line 840...
840
 
840
 
841
	ctl = I915_READ(BLC_PWM_CTL);
841
	ctl = I915_READ(BLC_PWM_CTL);
842
	if (ctl & BACKLIGHT_DUTY_CYCLE_MASK_PNV) {
842
	if (ctl & BACKLIGHT_DUTY_CYCLE_MASK_PNV) {
843
		WARN(1, "backlight already enabled\n");
843
		DRM_DEBUG_KMS("backlight already enabled\n");
844
		I915_WRITE(BLC_PWM_CTL, 0);
844
		I915_WRITE(BLC_PWM_CTL, 0);
Line 845... Line 845...
845
	}
845
	}
846
 
846
 
Line 869... Line 869...
869
	enum pipe pipe = intel_get_pipe_from_connector(connector);
869
	enum pipe pipe = intel_get_pipe_from_connector(connector);
870
	u32 ctl, ctl2, freq;
870
	u32 ctl, ctl2, freq;
Line 871... Line 871...
871
 
871
 
872
	ctl2 = I915_READ(BLC_PWM_CTL2);
872
	ctl2 = I915_READ(BLC_PWM_CTL2);
873
	if (ctl2 & BLM_PWM_ENABLE) {
873
	if (ctl2 & BLM_PWM_ENABLE) {
874
		WARN(1, "backlight already enabled\n");
874
		DRM_DEBUG_KMS("backlight already enabled\n");
875
		ctl2 &= ~BLM_PWM_ENABLE;
875
		ctl2 &= ~BLM_PWM_ENABLE;
876
		I915_WRITE(BLC_PWM_CTL2, ctl2);
876
		I915_WRITE(BLC_PWM_CTL2, ctl2);
Line 877... Line 877...
877
		}
877
		}
Line 903... Line 903...
903
	enum pipe pipe = intel_get_pipe_from_connector(connector);
903
	enum pipe pipe = intel_get_pipe_from_connector(connector);
904
	u32 ctl, ctl2;
904
	u32 ctl, ctl2;
Line 905... Line 905...
905
 
905
 
906
	ctl2 = I915_READ(VLV_BLC_PWM_CTL2(pipe));
906
	ctl2 = I915_READ(VLV_BLC_PWM_CTL2(pipe));
907
	if (ctl2 & BLM_PWM_ENABLE) {
907
	if (ctl2 & BLM_PWM_ENABLE) {
908
		WARN(1, "backlight already enabled\n");
908
		DRM_DEBUG_KMS("backlight already enabled\n");
909
		ctl2 &= ~BLM_PWM_ENABLE;
909
		ctl2 &= ~BLM_PWM_ENABLE;
910
		I915_WRITE(VLV_BLC_PWM_CTL2(pipe), ctl2);
910
		I915_WRITE(VLV_BLC_PWM_CTL2(pipe), ctl2);
Line 911... Line 911...
911
	}
911
	}