From 7f0cb159994985dffe76ff034aae5a844386b447 Mon Sep 17 00:00:00 2001 From: Andrew Chew Date: Mon, 10 Feb 2014 16:44:18 -0800 Subject: 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 Original-Reviewed-on: https://chromium-review.googlesource.com/185772 Original-Reviewed-by: Andrew Bresticker (cherry picked from commit 0dee98dd0c8510ecd630b5c6cb9ea49724dc8b55) Signed-off-by: Marc Jones Change-Id: Ie53610f3afa30b2d8f484685fb0e8c0b12cd8241 Reviewed-on: http://review.coreboot.org/7402 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan --- src/mainboard/google/nyan_big/devicetree.cb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mainboard/google/nyan_big') diff --git a/src/mainboard/google/nyan_big/devicetree.cb b/src/mainboard/google/nyan_big/devicetree.cb index cb55b72b93..9541ce9c9d 100644 --- a/src/mainboard/google/nyan_big/devicetree.cb +++ b/src/mainboard/google/nyan_big/devicetree.cb @@ -38,7 +38,7 @@ chip soc/nvidia/tegra124 register "lvds_shutdown_gpio" = "0" register "backlight_vdd_gpio" = "GPIO(P2)" register "panel_vdd_gpio" = "0" - register "pwm" = "GPIO(H1)" + register "pwm" = "1" # taken from u-boot; these look wrong however. register "vdd_delay" = "400" -- cgit v1.2.3