]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
pcie: tegra: dynamic link speed & clock setting
authorBibek Basu <bbasu@nvidia.com>
Mon, 7 Jul 2014 10:38:59 +0000 (16:08 +0530)
committerBibek Basu <bbasu@nvidia.com>
Fri, 18 Jul 2014 04:19:30 +0000 (21:19 -0700)
commitada2f21676de75332ad906fa2386a74f9d58f94a
tree2644d57c5c0a5ab9243d56c9dd3f2f4b388dd7a9
parenteb097a07915ef922f9f3c2b2f67515e718185ef0
pcie: tegra: dynamic link speed & clock setting

Based on the capability of card, we should dynamically
set the mselect, pciex clock and link speed selection.
Clocks will be set to support the highest capable card
This patch:
1. enable the clocks to minimal value during boot
2. Based on card capability, it boosts the clocks
3. And train the link

Bug 1483608

Change-Id: Iaf90f9b06846f8e23e4f60d1670a1db9ec562257
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/437560
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Brower <ebrower@nvidia.com>
Reviewed-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
drivers/pci/host/pci-tegra.c