From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Thu, 20 Aug 2015 14:05:13 -0600 Subject: [U-Boot] [PATCH 2/5] arm: tegra20: video: ifdef gate hard-coded ugly Tegra20 pin muxing In-Reply-To: <1440070152-27094-3-git-send-email-marcel.ziswiler@toradex.com> References: <1440070152-27094-1-git-send-email-marcel.ziswiler@toradex.com> <1440070152-27094-3-git-send-email-marcel.ziswiler@toradex.com> Message-ID: <55D632F9.1020103@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 08/20/2015 05:29 AM, Marcel Ziswiler wrote: > 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. > diff --git 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 That option doesn't seem to exist, except in arch/arm/include/asm/mach-types.h where I think it's the name of an unrelated board. Do you mean CONFIG_TEGRA20, as defined by arch/arm/mach-tegra/tegra20/Kconfig?