]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
spi: omap2-mcspi: Support divide-by-n clock dividers
authorStefan Sørensen <stefan.sorensen@spectralink.com>
Sun, 2 Feb 2014 15:24:25 +0000 (16:24 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 3 Feb 2014 18:25:48 +0000 (18:25 +0000)
commitfaee9b05f69f22e4d65fb2c24f82eea9c6fe4062
treefbc15171ad4b68792f21f77667dabc80e49611bb
parent2bd16e3e23d9df41592c6b257c59b6860a9cc3ea
spi: omap2-mcspi: Support divide-by-n clock dividers

Currently a divide-by-2^n clock is used, causing a very coarse
clock selection, i.e. a 10MHz device will need to use a 6MHz
clock. The McSPI can also use a divide-by-n clock, this patch
adds support for selecting that when possible.

Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-omap2-mcspi.c