Mario Schwalbe c78a628849 backlight: Add support for MacBook 5, MacBook Air 2, and MacBook Pro 5
This patch adds support for the new Apple models incorporating an Nvidia
chipset.  Apple still uses the same protocol as on older models, but the
registers moved to a different address. To do this, two sets of functions
are added for the Intel/Nvidia chipset models and passed by the DMI_MATCH
function.

The initial code has been contributed by Hu Gang <hugang@soulinfo.com>.

The driver is known to work on MacBook Pro 3, MacBook Pro 4 and MacBook
Pro 5.

Its known to work with limitations on MacBook 5 / MacBook Air 2. Changing
brightness within X doesn't work, if using Nvidia's proprietary graphics
driver with no known fix at present. Changing brightness on a text console
or using the open-source driver does work.

MacBook Pro 5 has a known bug where the initial brightness after bootup is
the last recently used brightness (in Mac OSX), while the firmware reports
maximum. Impossible to fix.

[akpm@linux-foundation.org: build fix]
[rpurdie@linux.intel.com: Rebased the patch against latest git]
Signed-off-by: Mario Schwalbe <schwalbe@inf.tu-dresden.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-04-06 16:06:55 +01:00
..
2009-04-01 08:59:34 -07:00
2009-03-16 07:55:37 -07:00
2008-10-16 11:21:45 -07:00
2008-03-10 18:01:20 -07:00
2008-07-24 10:47:37 -07:00
2009-04-01 08:59:32 -07:00
2009-04-01 08:59:31 -07:00
2009-04-01 08:59:31 -07:00
2009-04-01 08:59:32 -07:00
2009-04-01 08:59:32 -07:00
2009-02-22 09:23:02 -08:00
2009-01-12 20:56:32 +01:00
2008-07-24 10:47:34 -07:00
2009-04-01 08:59:29 -07:00
2008-05-18 13:28:49 -07:00
2009-04-01 08:59:34 -07:00
2009-04-01 08:59:29 -07:00
2008-02-06 10:41:16 -08:00
2009-03-27 14:51:15 +01:00
2008-04-28 08:58:41 -07:00
2009-01-06 15:59:27 -08:00
2009-01-06 15:59:27 -08:00
2009-03-17 09:30:36 +09:00
2009-04-01 08:59:31 -07:00
2009-04-01 08:59:31 -07:00
2009-04-01 08:59:30 -07:00
2008-10-16 11:21:42 -07:00
2008-07-04 10:40:08 -07:00