PCI: keystone: Set device ID based on SoC to support multiple ports
authorMurali Karicheri <m-karicheri2@ti.com>
Wed, 10 Sep 2014 17:12:39 +0000 (13:12 -0400)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 16 Sep 2014 21:45:46 +0000 (15:45 -0600)
commit8665a482dbb5dd4cba44f46e3099e783a3695027
treed8e7b416e714ed3439a58269207aaced1ef65430
parent4455efc90855ff5a6065caea835b0d13a284c5a1
PCI: keystone: Set device ID based on SoC to support multiple ports

K2E SoC has two PCI ports.  The SATA controller is connected to second PCI
port (port 1).  To support multiple port handling in Keystone PCI driver,
read the PCI device ID dynamically by iomap/read/unmap during probe and
save it in driver's private data and update it in host init code.  The PCI
device ID field in the RC's config space is not filled by default by the
hardware and has to be updated by the PCI driver by reading the same from
the SoC register indicated by reg index #2 in DT bindings.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pci-keystone.c
drivers/pci/host/pci-keystone.h
This page took 0.026022 seconds and 5 git commands to generate.