Skip to content

Commit

Permalink
[POWERPC] spi: Support non-QE processors
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Korsgaard authored and Kumar Gala committed Oct 8, 2007
1 parent 803dedb commit 082ea86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/powerpc/sysdev/fsl_soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 082ea86

Please sign in to comment.