
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@gmail.com wrote:
On Tue, Jun 24, 2014 at 11:45:29AM +0900, Alexandre Courbot wrote:
From: Bryan Wu pengw@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@nvidia.com Signed-off-by: Jimmy Zhang jimmzhang@nvidia.com Signed-off-by: Bryan Wu pengw@nvidia.com [acourbot: ensure write went through, vpr.c style changes] Signed-off-by: Alexandre Courbot acourbot@nvidia.com Reviewed-by: Stephen Warren swarren@nvidia.com Cc: Tom Warren TWarren@nvidia.com Cc: Stephen Warren swarren@nvidia.com Cc: Terje Bergstrom tbergstrom@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@nvidia.com