Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 082ea86f authored by Peter Korsgaard's avatar Peter Korsgaard Committed by Kumar Gala
Browse files

[POWERPC] spi: Support non-QE processors



On non-QE processors (mpc831x/mpc834x) the SPI clock is the SoC clock.

Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 803dedb6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;