spi_mpc83xx: use brg-frequency for SPI in QE
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Thu, 24 Jan 2008 15:40:03 +0000 (18:40 +0300)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 28 Jan 2008 14:32:57 +0000 (08:32 -0600)
commit59a0ea5091d309fa8338954b84cf5307dbd83ec9
treec1e1f43de7cdfa3ddde7d8f445eac008b08c60de
parentd0a2f82da949283027a7da6a8b2a70ada46e7b55
spi_mpc83xx: use brg-frequency for SPI in QE

In case of QE we can use brg-frequency (which is qeclk/2).
Thus no need to divide sysclk in the spi_mpc83xx.

This patch also adds code to use get_brgfreq() on QE chips.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/fsl_soc.c
drivers/spi/spi_mpc83xx.c