Author: wmb Date: Sat Aug 6 00:26:44 2011 New Revision: 2419 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2419
Log: Fixed backlight control for Intel Pineview display driver.
Modified: dev/intel/graphics/pineview.fth
Modified: dev/intel/graphics/pineview.fth ============================================================================== --- dev/intel/graphics/pineview.fth Sat Aug 6 00:25:44 2011 (r2418) +++ dev/intel/graphics/pineview.fth Sat Aug 6 00:26:44 2011 (r2419) @@ -297,15 +297,20 @@ wait-vblank ;
+d# 100 constant backlight-min-period false value backlight-inverse? : set-backlight ( percentage -- ) h# 61254 mmio@ lwsplit nip ( percent max ) + backlight-min-period max ( percent max' ) 1 invert and >r ( percent r: max' ) + d# 20 max ( percentage' r: max ) r@ * d# 100 / ( duty-cycle r: max ) + backlight-inverse? if ( duty-cycle r: max ) r@ swap - ( duty-cycle' ) then ( duty-cycle r: max ) + 1 invert and ( duty-cycle r: max ) \ Low bit must be 0 r> wljoin h# 61254 mmio! ( ) \ BLC_PWM_CTL ;
openfirmware@openfirmware.info