gfx: display: initialize backlight PWM frequency
authorJani Nikula <jani.nikula@intel.com>
Thu, 1 Mar 2012 14:49:25 +0000 (16:49 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Jul 2012 09:30:17 +0000 (12:30 +0300)
commitd2c4025de87f3f38cfa627ff8523f459f6651a20
treef9dea22405c5fa3b498840d63f81d2b554cbe344
parent1299a9bee8b37325a30767ee73bb840640863c2c
gfx: display: initialize backlight PWM frequency

Some DV1s, and DV1.5s and later use I2C to adjust the backlight. We have
PWM based backlight control enabled for compatibility with older, non-CABC
devices. The PWM clock divider was not initialized, causing the PWM signal
to run at the base clock frequency of 19.2 MHz.

Initialize the clock divider, setting the PWM frequency to 9600 Hz. The
panel specification has no recommendation on the frequency, but the bug
ANDROID-1342 has this experimental value.

Issue: ANDROID-1342
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
drivers/staging/mrst/drv/mdfld_dsi_output.c
drivers/staging/mrst/drv/tc35876x-dsi-lvds.c