[U-Boot] [PATCH 2/5] arm: tegra20: video: ifdef gate hard-coded ugly Tegra20 pin muxing

Marcel Ziswiler marcel.ziswiler at toradex.com
Thu Aug 20 13:29:09 CEST 2015


As a preparatory step make sure the display driver is buildable for
Tegra30 as well by ifdef gating any hard-coded ugly Tegra20 pin muxing
stuff.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler at toradex.com>
---

 drivers/video/tegra.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/video/tegra.c b/drivers/video/tegra.c
index 33c6103..3946e6e 100644
--- a/drivers/video/tegra.c
+++ b/drivers/video/tegra.c
@@ -215,8 +215,10 @@ static int handle_stage(const void *blob)
 		break;
 	case STAGE_PWM:
 		/* Enable PWM at 15/16 high, 32768 Hz with divider 1 */
+#ifdef CONFIG_MACH_T20
 		pinmux_set_func(PMUX_PINGRP_GPU, PMUX_FUNC_PWM);
 		pinmux_tristate_disable(PMUX_PINGRP_GPU);
+#endif
 
 		pwm_enable(config.pwm_channel, 32768, 0xdf, 1);
 		break;
-- 
2.4.3



More information about the U-Boot mailing list