]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
pci: tegra: correctly program PADS_REFCLK registers
authorStephen Warren <swarren@nvidia.com>
Tue, 21 Jun 2016 18:47:51 +0000 (12:47 -0600)
committerTom Warren <twarren@nvidia.com>
Tue, 5 Jul 2016 18:14:32 +0000 (11:14 -0700)
commit3cfc6be4a85c722e9e0a657c7696f5fa1ac2ed48
treec34ca1fbedea557e3860b9dce28a6a50560703c4
parente8009beff6d5c55c1bf1ae8184791f167e6378b0
pci: tegra: correctly program PADS_REFCLK registers

The value that should be programmed into the PADS_REFCLK register varies
per SoC. Fix the Tegra PCIe driver to program the correct values. Future
SoCs will require different values in cfg0/1, so the two values are stored
separately in the per-SoC data structures.

For reference, the values are all documented in NV bug 1771116 comment 20.
The Tegra210 value doesn't match the current TRM, but I've filed a bug to
get the TRM fixed. Earlier TRMs don't document the value this register
should contain, but the ASIC team has validated all these values, except
for the Tegra20 value which is simply left unchanged in this patch.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
drivers/pci/pci_tegra.c