]> 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)
committerMatthew Pedro <mapedro@nvidia.com>
Tue, 5 Aug 2014 15:43:38 +0000 (08:43 -0700)
commit48a336337e8c2a006c35b6845fe34040521ef4d2
tree928af99ccb8fc426454c7547c24b34b7cb912e7b
parent0ef2d043a94be1637533829afee2d6a3427201e1
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
(cherry picked from commit ada2f21676de75332ad906fa2386a74f9d58f94a)
Reviewed-on: http://git-master/r/448072
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
drivers/pci/host/pci-tegra.c