• Hans de Goede's avatar
    sunxi: display: Use PWM to drive backlight where applicable · 421c98d7
    Hans de Goede authored
    When the backlight's pwm input is connected to a pwm output of the SoC,
    actually use pwm to drive the backlight.
    
    The mean reason for doing this is to fix the backlight turning off
    for aprox. 1 second while the kernel is booting. This is caused by
    the kernel actually using pwm to drive the backlight, so that it
    can dim the backlight. First the pwm driver loads and switches the
    pinmux for the pin driving the backlight's pwm input to the pwm
    controller. Then about 1s later the actual backlight driver loads
    and tells the pwm driver to actually update the pwm settings, which
    have a power-on-reset value of "off".
    
    An additional advantage is that this allows us to initatiate the
    backlight at 80%, which is the kernel default, avoiding a brightness
    change while the kernel loads.
    Signed-off-by: 's avatarHans de Goede <hdegoede@redhat.com>
    Reviewed by: Peter Korsgaard <peter@korsgaard.com>
    421c98d7
Name
Last commit
Last update
..
bridge Loading commit data...
exynos Loading commit data...
fonts Loading commit data...
rockchip Loading commit data...
tegra124 Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
am335x-fb.c Loading commit data...
am335x-fb.h Loading commit data...
anx9804.c Loading commit data...
anx9804.h Loading commit data...
ati_ids.h Loading commit data...
ati_radeon_fb.c Loading commit data...
ati_radeon_fb.h Loading commit data...
atmel_hlcdfb.c Loading commit data...
atmel_lcdfb.c Loading commit data...
backlight-uclass.c Loading commit data...
bcm2835.c Loading commit data...
broadwell_igd.c Loading commit data...
bus_vcxk.c Loading commit data...
cfb_console.c Loading commit data...
console_normal.c Loading commit data...
console_rotate.c Loading commit data...
console_truetype.c Loading commit data...
coreboot_fb.c Loading commit data...
ct69000.c Loading commit data...
da8xx-fb.c Loading commit data...
da8xx-fb.h Loading commit data...
display-uclass.c Loading commit data...
formike.c Loading commit data...
fsl_dcu_fb.c Loading commit data...
fsl_diu_fb.c Loading commit data...
hitachi_tx18d42vm_lcd.c Loading commit data...
hitachi_tx18d42vm_lcd.h Loading commit data...
i915_reg.h Loading commit data...
imx25lcdc.c Loading commit data...
ipu.h Loading commit data...
ipu_common.c Loading commit data...
ipu_disp.c Loading commit data...
ipu_regs.h Loading commit data...
l5f31188.c Loading commit data...
ld9040.c Loading commit data...
lg4573.c Loading commit data...
mb862xx.c Loading commit data...
mpc8xx_lcd.c Loading commit data...
mvebu_lcd.c Loading commit data...
mx3fb.c Loading commit data...
mxc_ipuv3_fb.c Loading commit data...
mxcfb.h Loading commit data...
mxsfb.c Loading commit data...
omap3_dss.c Loading commit data...
panel-uclass.c Loading commit data...
pwm_backlight.c Loading commit data...
pxa_lcd.c Loading commit data...
s3c-fb.c Loading commit data...
s6e63d6.c Loading commit data...
s6e8ax0.c Loading commit data...
sandbox_sdl.c Loading commit data...
scf0403_lcd.c Loading commit data...
sed13806.c Loading commit data...
sed156x.c Loading commit data...
simple_panel.c Loading commit data...
sm501.c Loading commit data...
smiLynxEM.c Loading commit data...
ssd2828.c Loading commit data...
ssd2828.h Loading commit data...
stb_truetype.h Loading commit data...
sunxi_display.c Loading commit data...
tegra.c Loading commit data...
vesa_fb.c Loading commit data...
vidconsole-uclass.c Loading commit data...
video-uclass.c Loading commit data...
video_bmp.c Loading commit data...
videomodes.c Loading commit data...
videomodes.h Loading commit data...