spi/bcm63xx-hsspi: allow providing clock rate through a second clock
authorJonas Gorski <jonas.gorski@gmail.com>
Wed, 1 Mar 2017 09:08:12 +0000 (10:08 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 13 Mar 2017 15:51:10 +0000 (15:51 +0000)
commitff18e1ef04e2073889569b07a5ddd54a6527917f
treeb953274f65612dd956ffca587acdcbc64ad888bc
parentccd0657c33b2c3701c5b14725284b7e671d3fb93
spi/bcm63xx-hsspi: allow providing clock rate through a second clock

The HSSPI block actually has two clock inputs, one for gating the block,
and one for the PLL rate. To allow these to be represented as two clocks,
add support for retrieving the rate from a separate "pll" clock, if the
"hsspi" clock does not provide one.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm63xx-hsspi.c