Add patch to fix PCI-e on Jetson TK1
This commit is contained in:
parent
c0ae3b6ff3
commit
25b1986fc2
59
0001-ARM-tegra-rm-Jetson-TK1-PMIC-GPIO-programming.patch
Normal file
59
0001-ARM-tegra-rm-Jetson-TK1-PMIC-GPIO-programming.patch
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
From 85e3926adef34b6ea22275f040efbbd7b1f63a20 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Peter Robinson <pbrobinson@gmail.com>
|
||||||
|
Date: Tue, 19 Jan 2016 07:26:15 +0000
|
||||||
|
Subject: [PATCH] ARM: tegra: rm Jetson TK1 PMIC GPIO programming
|
||||||
|
|
||||||
|
From: Stephen Warren <swarren@nvidia.com>
|
||||||
|
|
||||||
|
The PMIC is configured such that its GPIOs have the correct configuration
|
||||||
|
at power-up, so no programming is required.
|
||||||
|
|
||||||
|
In fact, the current programming is actively wrong, since:
|
||||||
|
|
||||||
|
(a) the AS3722 driver configures the GPIO to be an output before setting
|
||||||
|
its output value, which causes a 0v glitch on the output.
|
||||||
|
|
||||||
|
(b) the AS3722 driver configures the GPIO to drive a high voltage from its
|
||||||
|
VSUP_GPIO power source rather than its VDD_GPIO_LV power source, so the pin
|
||||||
|
drives 5V not 1.8V as desired.
|
||||||
|
|
||||||
|
Solve these problems by removing the code which configures the PMIC GPIOs.
|
||||||
|
|
||||||
|
Note that this patch was tested directly on top of v2016.01; since then,
|
||||||
|
commit 96350f729c42 "dm: tegra: net: Convert tegra boards to driver model
|
||||||
|
for Ethernet" prevents PCIe from being initialized. Alternatively, simply
|
||||||
|
revert that commit to get PCIe Ethernet working again, then apply this
|
||||||
|
patch to test.
|
||||||
|
|
||||||
|
Signed-off-by: Stephen Warren <swarren@nvidia.com>
|
||||||
|
---
|
||||||
|
board/nvidia/jetson-tk1/jetson-tk1.c | 13 -------------
|
||||||
|
1 file changed, 13 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/board/nvidia/jetson-tk1/jetson-tk1.c b/board/nvidia/jetson-tk1/jetson-tk1.c
|
||||||
|
index 52425a8..fdc61ea 100644
|
||||||
|
--- a/board/nvidia/jetson-tk1/jetson-tk1.c
|
||||||
|
+++ b/board/nvidia/jetson-tk1/jetson-tk1.c
|
||||||
|
@@ -58,19 +58,6 @@ int tegra_pcie_board_init(void)
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
|
- err = as3722_gpio_configure(pmic, 1, AS3722_GPIO_OUTPUT_VDDH |
|
||||||
|
- AS3722_GPIO_INVERT);
|
||||||
|
- if (err < 0) {
|
||||||
|
- error("failed to configure GPIO#1 as output: %d\n", err);
|
||||||
|
- return err;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- err = as3722_gpio_direction_output(pmic, 2, 1);
|
||||||
|
- if (err < 0) {
|
||||||
|
- error("failed to set GPIO#2 high: %d\n", err);
|
||||||
|
- return err;
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.5.0
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: uboot-tools
|
Name: uboot-tools
|
||||||
Version: 2016.01
|
Version: 2016.01
|
||||||
Release: 1%{?candidate:.%{candidate}}%{?dist}
|
Release: 2%{?candidate:.%{candidate}}%{?dist}
|
||||||
Summary: U-Boot utilities
|
Summary: U-Boot utilities
|
||||||
|
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
@ -14,6 +14,7 @@ Source1: armv7-boards
|
|||||||
Patch1: 0004-Add-BOOTENV_INIT_COMMAND-for-commands-that-may-be-ne.patch
|
Patch1: 0004-Add-BOOTENV_INIT_COMMAND-for-commands-that-may-be-ne.patch
|
||||||
Patch2: 0005-port-utilite-to-distro-generic-boot-commands.patch
|
Patch2: 0005-port-utilite-to-distro-generic-boot-commands.patch
|
||||||
Patch3: 0001-am335x-BeagleBones-enable-CONFIG_AUTOBOOT_KEYED.patch
|
Patch3: 0001-am335x-BeagleBones-enable-CONFIG_AUTOBOOT_KEYED.patch
|
||||||
|
Patch4: 0001-ARM-tegra-rm-Jetson-TK1-PMIC-GPIO-programming.patch
|
||||||
|
|
||||||
BuildRequires: bc
|
BuildRequires: bc
|
||||||
BuildRequires: dtc
|
BuildRequires: dtc
|
||||||
@ -163,6 +164,10 @@ install -p -m 0644 tools/env/fw_env.config $RPM_BUILD_ROOT%{_sysconfdir}
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 19 2016 Peter Robinson <pbrobinson@fedoraproject.org> 2016.01-2
|
||||||
|
- Add patch to fix PCI-e on Jetson TK1
|
||||||
|
- Add patch fo serial junk on BeagleBone
|
||||||
|
|
||||||
* Tue Jan 12 2016 Peter Robinson <pbrobinson@fedoraproject.org> 2016.01-1
|
* Tue Jan 12 2016 Peter Robinson <pbrobinson@fedoraproject.org> 2016.01-1
|
||||||
- Update to 2016.01 GA
|
- Update to 2016.01 GA
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user