PCI: faraday: Add clock handling
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 15 May 2017 17:23:24 +0000 (19:23 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Sun, 2 Jul 2017 23:42:35 +0000 (18:42 -0500)
commit2eeb02b28579fc317504a691f3acb0b9bf94b42b
tree8525fc52b4e719504ae0070871adcc058492ce2b
parentd1ef28900d6607ea7a25c39a3bd1ce152f6ab24a
PCI: faraday: Add clock handling

Add some optional clock handling to the Faraday FTPCI100.  We just get and
prepare+enable the clocks right now, if they exist.  We can add more
elaborate clock handling later.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
[bhelgaas: folded in "Make clocks compulsory" fix from
http://lkml.kernel.org/r/20170621085730.28804-1-linus.walleij@linaro.org
Also folded in the clock max/cur speed fixes from
http://lkml.kernel.org/r/20170621162651.25315-1-linus.walleij@linaro.org]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pci-ftpci100.c