tegra124: Program PWM1 to drive panel backlight
commit7f0cb159994985dffe76ff034aae5a844386b447
authorAndrew Chew <achew@nvidia.com>
Tue, 11 Feb 2014 00:44:18 +0000 (10 16:44 -0800)
committerMarc Jones <marc.jones@se-eng.com>
Wed, 12 Nov 2014 19:16:43 +0000 (12 20:16 +0100)
treebaa2a38b2b123df06562340ff643191ab771e2bc
parent372a5bbd66cb247abed173685d4a6fe0a3188246
tegra124: Program PWM1 to drive panel backlight

Repurpose config->pwm to mean the particular PWM device (we use PWM1 on
nyan), and add code to program the PWM device.

BUG=none
TEST=emerge-nyan chromeos-coreboot-nyan, regenerate bootimage, and boot.
See that the backlight comes up in the bootloader, and brightness can be
adjusted via pwm_bl driver in the kernel.

Original-Change-Id: I2db047e5ef23c0e8fb66dd05ad6339d60918d493
Original-Signed-off-by: Andrew Chew <achew@nvidia.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/185772
Original-Reviewed-by: Andrew Bresticker <abrestic@chromium.org>
(cherry picked from commit 0dee98dd0c8510ecd630b5c6cb9ea49724dc8b55)
Signed-off-by: Marc Jones <marc.jones@se-eng.com>
Change-Id: Ie53610f3afa30b2d8f484685fb0e8c0b12cd8241
Reviewed-on: http://review.coreboot.org/7402
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
src/mainboard/google/nyan/devicetree.cb
src/mainboard/google/nyan_big/devicetree.cb
src/soc/nvidia/tegra124/display.c