diff options
| author | a1205z <a1205z@motorola.com> | 2013-12-06 10:42:32 -0600 |
|---|---|---|
| committer | James Wylder <jwylder@motorola.com> | 2014-03-05 17:46:54 -0600 |
| commit | 0504d30099c68e913ddeab439f1b1098077a0157 (patch) | |
| tree | 8d1d46de14a30377aadcb2833f533aa3324c6bf7 /drivers/spi/spi-omap2-mcspi.c | |
| parent | 2e5af2a26f6d12942c752dcc8aa288367dc7090c (diff) | |
| download | olio-linux-3.10-0504d30099c68e913ddeab439f1b1098077a0157.tar.xz olio-linux-3.10-0504d30099c68e913ddeab439f1b1098077a0157.zip | |
IKG5-1477: bring up the regulators for TPS65912 PMIC
bring up the regulators for TPS65912 PMIC
Change-Id: Ib5033000b7ad04880663631b9b946c17f0a65547
Signed-off-by: a1205z <a1205z@motorola.com>
Reviewed-on: http://gerrit.pcs.mot.com/587264
SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Douglas Zobel <dzobel1@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
Diffstat (limited to 'drivers/spi/spi-omap2-mcspi.c')
| -rw-r--r-- | drivers/spi/spi-omap2-mcspi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index 86d2158946b..126289d99e1 100644 --- a/drivers/spi/spi-omap2-mcspi.c +++ b/drivers/spi/spi-omap2-mcspi.c @@ -1070,6 +1070,9 @@ static int omap2_mcspi_transfer_one_message(struct spi_master *master, const void *tx_buf = t->tx_buf; void *rx_buf = t->rx_buf; unsigned len = t->len; + if ((t->speed_hz < (OMAP2_MCSPI_MAX_FREQ >> 15)) || + t->speed_hz > OMAP2_MCSPI_MAX_FREQ) + t->speed_hz = 1000000; if (t->speed_hz > OMAP2_MCSPI_MAX_FREQ || (len && !(rx_buf || tx_buf)) |