From: Peter Korsgaard Date: Fri, 26 Aug 2016 16:15:56 +0200 Subject: [U-Boot] [PATCH v2] sunxi: display: Use PWM to drive backlight where applicable In-Reply-To: <20160826140155.1364-1-hdegoede@redhat.com> (Hans de Goede's message of "Fri, 26 Aug 2016 16:01:55 +0200") References: <20160826140155.1364-1-hdegoede@redhat.com> Message-ID: <8760qnd3ab.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de >>>>> "Hans" == Hans de Goede writes: > 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. > +++ b/drivers/video/sunxi_display.c > @@ -12,6 +12,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -34,7 +35,6 @@ > #define PWM_ON 1 > #define PWM_OFF 0 > #endif > - Unrelated white space change. Other than that: Reviewed by: Peter Korsgaard -- Bye, Peter Korsgaard