MIPS: TXx9: Fix spi-baseclk value

TXx9 SPI bit rate is calculated by:
fBR = fSPI / 2 / (n + 1)
(fSPI is SPI master clock freq, i.e. imbusclk freq.)
So use imbus_clk / 2 as a spi-baseclk.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by Atsushi Nemoto and committed by Ralf Baechle fcc152f3 2b5b9b78

+1 -1
+1 -1
arch/mips/txx9/generic/setup.c
··· 85 85 struct clk *clk_get(struct device *dev, const char *id) 86 86 { 87 87 if (!strcmp(id, "spi-baseclk")) 88 - return (struct clk *)((unsigned long)txx9_gbus_clock / 2 / 4); 88 + return (struct clk *)((unsigned long)txx9_gbus_clock / 2 / 2); 89 89 if (!strcmp(id, "imbus_clk")) 90 90 return (struct clk *)((unsigned long)txx9_gbus_clock / 2); 91 91 return ERR_PTR(-ENOENT);