mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 08:43:31 +00:00
[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>
This commit is contained in:
parent
803dedb608
commit
082ea86fce
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue