From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Fri, 24 Jan 2014 11:29:19 -0700 Subject: [U-Boot] [PATCH V2 08/13] ARM: tegra: add SPL/AVP (arm720t) CPU files for Tegra124 In-Reply-To: <20140124154453.GH25720@ulmo.nvidia.com> References: <1390524180-15008-1-git-send-email-swarren@wwwdotorg.org> <1390524180-15008-8-git-send-email-swarren@wwwdotorg.org> <20140124154453.GH25720@ulmo.nvidia.com> Message-ID: <52E2B0FF.3010207@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 01/24/2014 08:44 AM, Thierry Reding wrote: > On Thu, Jan 23, 2014 at 05:42:55PM -0700, Stephen Warren wrote: >> diff --git a/arch/arm/cpu/arm720t/tegra124/cpu.c b/arch/arm/cpu/arm720t/tegra124/cpu.c > [...] >> +static void enable_cpu_power_rail(void) >> +{ > [...] >> + /* un-tristate PWR_I2C SCL/SDA, rest of the defaults are correct */ >> + pinmux_tristate_disable(PINGRP_PWR_I2C_SCL); >> + pinmux_tristate_disable(PINGRP_PWR_I2C_SDA); >> + >> + pmic_enable_cpu_vdd(); > > Should the pinmux changes perhaps be moved to the pmic_enable_cpu_vdd() > function? That function is implemented inside the PMIC "driver", so shouldn't know anything about Tegra pinmux. I guess this special case is required, since this code is part of the SPL, which doesn't do any of the board-specific pinmuxing; that is deferred to the main U-Boot which runs on the main CPU. > I guess it doesn't really matter since it should be pretty safe to > assume that all boards will always use the power I2C to talk to the > PMU? One would hope so; it's a pretty core part of the Tegra chip architecture.