summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/fsl_soc.c
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2007-10-06 22:06:40 +0200
committerKumar Gala <galak@kernel.crashing.org>2007-10-08 16:05:30 +0200
commit082ea86fce463f8c2f1ce059cc959f21dc1ef24a (patch)
treef0cb57dbe4c01cf44ed48347db0b555b36f83607 /arch/powerpc/sysdev/fsl_soc.c
parent[POWERPC] 85xx: mpc85xx_mds - reset UCC ethernet properly (diff)
downloadlinux-082ea86fce463f8c2f1ce059cc959f21dc1ef24a.tar.xz
linux-082ea86fce463f8c2f1ce059cc959f21dc1ef24a.zip
[POWERPC] spi: Support non-QE processors
On non-QE processors (mpc831x/mpc834x) the SPI clock is the SoC clock. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/sysdev/fsl_soc.c')
-rw-r--r--arch/powerpc/sysdev/fsl_soc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c
index be5e0bda2318..3ace7474809e 100644
--- a/arch/powerpc/sysdev/fsl_soc.c
+++ b/arch/powerpc/sysdev/fsl_soc.c
@@ -1222,8 +1222,12 @@ int __init fsl_spi_init(struct spi_board_info *board_infos,
unsigned int i;
const u32 *sysclk;
+ /* SPI controller is either clocked from QE or SoC clock */
np = of_find_node_by_type(NULL, "qe");
if (!np)
+ np = of_find_node_by_type(NULL, "soc");
+
+ if (!np)
return -ENODEV;
sysclk = of_get_property(np, "bus-frequency", NULL);