spi: dw-mid: get a proper clock frequency for SPI2
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 22 Jan 2015 15:59:34 +0000 (17:59 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 27 Jan 2015 12:04:29 +0000 (12:04 +0000)
commitd9c14743a330315b6e2186cafc4812fe91a1fa8f
tree40622433c4f5fd1676e4ea4917e898f0afc34069
parentd58cf5ff6500522880683ce90d9caa79af385ed8
spi: dw-mid: get a proper clock frequency for SPI2

The clock information is being kept in the custom register on Intel MID
platforms. Each controller has its own dedicated custom register for that.
Thus, to get a proper frequency we have to read value from the specific offset
to the register block. This patch makes this happen.

Fixes: d58cf5ff6500 (spi: dw-pci: describe Intel MID controllers better)
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw-mid.c
drivers/spi/spi-dw-pci.c