Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=082ea86fce463f8c2f1ce059cc959f21dc1ef24a
Commit:     082ea86fce463f8c2f1ce059cc959f21dc1ef24a
Parent:     803dedb60849a8e4ec38e66ca41f51188c18a87d
Author:     Peter Korsgaard <[EMAIL PROTECTED]>
AuthorDate: Sat Oct 6 22:06:40 2007 +0200
Committer:  Kumar Gala <[EMAIL PROTECTED]>
CommitDate: Mon Oct 8 09:05:30 2007 -0500

    [POWERPC] spi: Support non-QE processors
    
    On non-QE processors (mpc831x/mpc834x) the SPI clock is the SoC clock.
    
    Signed-off-by: Peter Korsgaard <[EMAIL PROTECTED]>
    Signed-off-by: Kumar Gala <[EMAIL PROTECTED]>
---
 arch/powerpc/sysdev/fsl_soc.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c
index be5e0bd..3ace747 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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to