[U-Boot] [PATCH v3] ARM: tegra: Disable VPR

Alexandre Courbot gnurou at gmail.com
Wed Jul 2 04:17:22 CEST 2014


Tom, is this patch ok for you? If yes, do you plan to merge it?

On Sat, Jun 28, 2014 at 1:21 AM, Thierry Reding
<thierry.reding at gmail.com> wrote:
> On Tue, Jun 24, 2014 at 11:45:29AM +0900, Alexandre Courbot wrote:
>> From: Bryan Wu <pengw at nvidia.com>
>>
>> On Tegra114 and Tegra124 platforms, certain display-related registers cannot
>> be accessed unless the VPR registers are programmed.  For bootloader, we
>> probably don't care about VPR, so we disable it (which counts as programming
>> it, and allows those display-related registers to be accessed.
>>
>> This patch is based on the commit 5f499646c83ba08079f3fdff6591f638a0ce4c0c
>> in Chromium OS U-Boot project.
>>
>> Signed-off-by: Andrew Chew <achew at nvidia.com>
>> Signed-off-by: Jimmy Zhang <jimmzhang at nvidia.com>
>> Signed-off-by: Bryan Wu <pengw at nvidia.com>
>> [acourbot: ensure write went through, vpr.c style changes]
>> Signed-off-by: Alexandre Courbot <acourbot at nvidia.com>
>> Reviewed-by: Stephen Warren <swarren at nvidia.com>
>> Cc: Tom Warren <TWarren at nvidia.com>
>> Cc: Stephen Warren <swarren at nvidia.com>
>> Cc: Terje Bergstrom <tbergstrom at nvidia.com>
>> ---
>> Changes since v2:
>> - Remove useless switch case
>>
>> Changes since v1:
>> - Use proper defines for fields values
>> - Move MC layout to T124 arch as it is exclusive to it
>> - Only compile VPR support if T124 is enabled
>>
>>  arch/arm/cpu/tegra-common/Makefile      |  1 +
>>  arch/arm/cpu/tegra-common/ap.c          |  3 ++
>>  arch/arm/cpu/tegra-common/vpr.c         | 35 +++++++++++++++++++++++
>>  arch/arm/include/asm/arch-tegra/ap.h    |  9 ++++++
>>  arch/arm/include/asm/arch-tegra124/mc.h | 49 +++++++++++++++++++++++++++++++++
>>  5 files changed, 97 insertions(+)
>>  create mode 100644 arch/arm/cpu/tegra-common/vpr.c
>>  create mode 100644 arch/arm/include/asm/arch-tegra124/mc.h
>
> Tested-by: Thierry Reding <treding at nvidia.com>


More information about the U-Boot mailing list