浏览代码

[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>
Peter Korsgaard 17 年之前
父节点
当前提交
082ea86fce
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      arch/powerpc/sysdev/fsl_soc.c

+ 4 - 0
arch/powerpc/sysdev/fsl_soc.c

@@ -1222,7 +1222,11 @@ 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;