Re: [Intel-gfx] [PATCH v4] drivers: i915: Default backlight PWM frequency

2012-01-17 Thread Daniel Vetter
On Tue, Nov 15, 2011 at 07:47:58PM +0100, Takashi Iwai wrote: > At Fri, 11 Nov 2011 14:12:58 -0800, > Simon Que wrote: > > > > If the firmware did not initialize the backlight PWM registers, set up a > > default PWM frequency of 200 Hz. This is determined using the following > > formula: > > > >

Re: [Intel-gfx] [PATCH v4] drivers: i915: Default backlight PWM frequency

2011-11-15 Thread Takashi Iwai
At Fri, 11 Nov 2011 14:12:58 -0800, Simon Que wrote: > > If the firmware did not initialize the backlight PWM registers, set up a > default PWM frequency of 200 Hz. This is determined using the following > formula: > > freq = refclk / (128 * pwm_max) > > The PWM register allows the max PWM va

Re: [Intel-gfx] [PATCH v4] drivers: i915: Default backlight PWM frequency

2011-11-11 Thread Matthew Garrett
On Fri, Nov 11, 2011 at 02:17:20PM -0800, Olof Johansson wrote: > On Fri, Nov 11, 2011 at 02:12:58PM -0800, Simon Que wrote: > > If the firmware did not initialize the backlight PWM registers, set up a > > default PWM frequency of 200 Hz. This is determined using the following > > formula: > > >

Re: [Intel-gfx] [PATCH v4] drivers: i915: Default backlight PWM frequency

2011-11-11 Thread Olof Johansson
On Fri, Nov 11, 2011 at 02:12:58PM -0800, Simon Que wrote: > If the firmware did not initialize the backlight PWM registers, set up a > default PWM frequency of 200 Hz. This is determined using the following > formula: > > freq = refclk / (128 * pwm_max) > > The PWM register allows the max PWM

[Intel-gfx] [PATCH v4] drivers: i915: Default backlight PWM frequency

2011-11-11 Thread Simon Que
If the firmware did not initialize the backlight PWM registers, set up a default PWM frequency of 200 Hz. This is determined using the following formula: freq = refclk / (128 * pwm_max) The PWM register allows the max PWM value to be set. So we want to use the formula, where freq = 200: pw