Re: [PATCH] fsl_spi_init: Support non-QE processors

2007-10-08 Thread Kumar Gala
On Oct 6, 2007, at 3:06 PM, Peter Korsgaard wrote: >> "Kumar" == Kumar Gala <[EMAIL PROTECTED]> writes: > > Kumar> On Oct 3, 2007, at 11:01 PM, Stephen Rothwell wrote: > >>> On Wed, 03 Oct 2007 17:43:50 +0200 Peter Korsgaard >>> <[EMAIL PROTECTED]> wrote: @@ -1220,14 +1220,17 @@ in

Re: [PATCH] fsl_spi_init: Support non-QE processors

2007-10-06 Thread Peter Korsgaard
> "Kumar" == Kumar Gala <[EMAIL PROTECTED]> writes: Kumar> On Oct 3, 2007, at 11:01 PM, Stephen Rothwell wrote: >> On Wed, 03 Oct 2007 17:43:50 +0200 Peter Korsgaard >> <[EMAIL PROTECTED]> wrote: >>> >>> @@ -1220,14 +1220,17 @@ int __init fsl_spi_init(struct >>> spi_board_info *board_i

Re: [PATCH] fsl_spi_init: Support non-QE processors

2007-10-05 Thread Kumar Gala
On Oct 3, 2007, at 11:01 PM, Stephen Rothwell wrote: > On Wed, 03 Oct 2007 17:43:50 +0200 Peter Korsgaard > <[EMAIL PROTECTED]> wrote: >> >> @@ -1220,14 +1220,17 @@ int __init fsl_spi_init(struct >> spi_board_info *board_infos, >> { >> struct device_node *np; >> unsigned int i; >>

Re: [PATCH] fsl_spi_init: Support non-QE processors

2007-10-03 Thread Stephen Rothwell
On Wed, 03 Oct 2007 17:43:50 +0200 Peter Korsgaard <[EMAIL PROTECTED]> wrote: > > @@ -1220,14 +1220,17 @@ int __init fsl_spi_init(struct spi_board_info > *board_infos, > { > struct device_node *np; > unsigned int i; > - const u32 *sysclk; > + const u32 *qe_sysclk = 0, *soc_sys

Re: [PATCH] fsl_spi_init: Support non-QE processors

2007-10-03 Thread Kumar Gala
On Oct 3, 2007, at 1:17 PM, Grant Likely wrote: > On 10/3/07, Peter Korsgaard <[EMAIL PROTECTED]> wrote: >>> "Grant" == Grant Likely <[EMAIL PROTECTED]> writes: >> >> Hi, >> >> Grant> Why not just: >> >> Grant> np = of_find_node_by_type(NULL, "qe"); >> Grant> + if (!np) >> G

Re: [PATCH] fsl_spi_init: Support non-QE processors

2007-10-03 Thread Grant Likely
On 10/3/07, Peter Korsgaard <[EMAIL PROTECTED]> wrote: > > "Grant" == Grant Likely <[EMAIL PROTECTED]> writes: > > Hi, > > Grant> Why not just: > > Grant> np = of_find_node_by_type(NULL, "qe"); > Grant> + if (!np) > Grant> + np = of_find_node_by_type(NULL, "soc")

Re: [PATCH] fsl_spi_init: Support non-QE processors

2007-10-03 Thread Peter Korsgaard
> "Grant" == Grant Likely <[EMAIL PROTECTED]> writes: Hi, Grant> Why not just: Grant> np = of_find_node_by_type(NULL, "qe"); Grant> + if (!np) Grant> + np = of_find_node_by_type(NULL, "soc"); Grant> if (!np) Grant> return -ENODEV; My

Re: [PATCH] fsl_spi_init: Support non-QE processors

2007-10-03 Thread Grant Likely
On 10/3/07, Peter Korsgaard <[EMAIL PROTECTED]> wrote: > On non-QE processors (mpc831x/mpc834x) the SPI clock is the SoC clock. > > Signed-off-by: Peter Korsgaard <[EMAIL PROTECTED]> > --- > arch/powerpc/sysdev/fsl_soc.c | 27 +++ > 1 files changed, 19 insertions(+), 8 de