Patchwork [U-Boot] powerpc/mpc85xx: add setting of clock-frequency for mpic node

login
register
mail settings
Submitter Dongsheng Wang
Date Jan. 31, 2013, 4:51 a.m.
Message ID <1359607912-7170-1-git-send-email-dongsheng.wang@freescale.com>
Download mbox | patch
Permalink /patch/217104/
State Accepted, archived
Delegated to: Andy Fleming
Headers show

Comments

Dongsheng Wang - Jan. 31, 2013, 4:51 a.m.
Set the device tree property associated with the mpic source
frequency. The frequency is used for mpic timer.

Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com>
---
 arch/powerpc/cpu/mpc85xx/fdt.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

--
1.7.5.1
Wang Dongsheng-B40534 - Feb. 25, 2013, 6:21 a.m.
Hi Andy,

Could you ack this patch?

Thanks.

> -----Original Message-----
> From: Wang Dongsheng-B40534
> Sent: Thursday, January 31, 2013 12:52 PM
> To: u-boot@lists.denx.de
> Cc: Wang Dongsheng-B40534
> Subject: [PATCH] powerpc/mpc85xx: add setting of clock-frequency for mpic
> node
> 
> Set the device tree property associated with the mpic source
> frequency. The frequency is used for mpic timer.
> 
> Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com>
> ---
>  arch/powerpc/cpu/mpc85xx/fdt.c |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/powerpc/cpu/mpc85xx/fdt.c
> b/arch/powerpc/cpu/mpc85xx/fdt.c
> index 3a268aa..f07d1cf 100644
> --- a/arch/powerpc/cpu/mpc85xx/fdt.c
> +++ b/arch/powerpc/cpu/mpc85xx/fdt.c
> @@ -663,6 +663,11 @@ void ft_cpu_setup(void *blob, bd_t *bd)
>  #ifdef CONFIG_FSL_CORENET
>  	do_fixup_by_compat_u32(blob, "fsl,qoriq-clockgen-1.0",
>  		"clock-frequency", CONFIG_SYS_CLK_FREQ, 1);
> +	do_fixup_by_compat_u32(blob, "fsl,mpic",
> +		"clock-frequency", get_bus_freq(0)/2, 1);
> +#else
> +	do_fixup_by_compat_u32(blob, "fsl,mpic",
> +		"clock-frequency", get_bus_freq(0), 1);
>  #endif
> 
>  	fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);
> --
> 1.7.5.1
Wang Dongsheng-B40534 - March 5, 2013, 2:14 a.m.
Hi york,

Could you ack this patch?

Thanks.

> -----Original Message-----
> From: Wang Dongsheng-B40534
> Sent: Monday, February 25, 2013 2:22 PM
> To: Fleming Andy-AFLEMING
> Cc: u-boot@lists.denx.de
> Subject: RE: [PATCH] powerpc/mpc85xx: add setting of clock-frequency for
> mpic node
> 
> Hi Andy,
> 
> Could you ack this patch?
> 
> Thanks.
> 
> > -----Original Message-----
> > From: Wang Dongsheng-B40534
> > Sent: Thursday, January 31, 2013 12:52 PM
> > To: u-boot@lists.denx.de
> > Cc: Wang Dongsheng-B40534
> > Subject: [PATCH] powerpc/mpc85xx: add setting of clock-frequency for
> mpic
> > node
> >
> > Set the device tree property associated with the mpic source
> > frequency. The frequency is used for mpic timer.
> >
> > Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com>
> > ---
> >  arch/powerpc/cpu/mpc85xx/fdt.c |    5 +++++
> >  1 files changed, 5 insertions(+), 0 deletions(-)
> >
> > diff --git a/arch/powerpc/cpu/mpc85xx/fdt.c
> > b/arch/powerpc/cpu/mpc85xx/fdt.c
> > index 3a268aa..f07d1cf 100644
> > --- a/arch/powerpc/cpu/mpc85xx/fdt.c
> > +++ b/arch/powerpc/cpu/mpc85xx/fdt.c
> > @@ -663,6 +663,11 @@ void ft_cpu_setup(void *blob, bd_t *bd)
> >  #ifdef CONFIG_FSL_CORENET
> >  	do_fixup_by_compat_u32(blob, "fsl,qoriq-clockgen-1.0",
> >  		"clock-frequency", CONFIG_SYS_CLK_FREQ, 1);
> > +	do_fixup_by_compat_u32(blob, "fsl,mpic",
> > +		"clock-frequency", get_bus_freq(0)/2, 1);
> > +#else
> > +	do_fixup_by_compat_u32(blob, "fsl,mpic",
> > +		"clock-frequency", get_bus_freq(0), 1);
> >  #endif
> >
> >  	fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);
> > --
> > 1.7.5.1
Wang Dongsheng-B40534 - March 11, 2013, 9:31 a.m.
Hi Andy,

Could you please apply this patch?

- dongsheng

> -----Original Message-----
> From: Wang Dongsheng-B40534
> Sent: Tuesday, March 05, 2013 10:14 AM
> To: 'yorksun@freescale.com'
> Cc: Fleming Andy-AFLEMING; 'u-boot@lists.denx.de'
> Subject: RE: [PATCH] powerpc/mpc85xx: add setting of clock-frequency for
> mpic node
> 
> Hi york,
> 
> Could you ack this patch?
> 
> Thanks.
> 
> > -----Original Message-----
> > From: Wang Dongsheng-B40534
> > Sent: Monday, February 25, 2013 2:22 PM
> > To: Fleming Andy-AFLEMING
> > Cc: u-boot@lists.denx.de
> > Subject: RE: [PATCH] powerpc/mpc85xx: add setting of clock-frequency
> > for mpic node
> >
> > Hi Andy,
> >
> > Could you ack this patch?
> >
> > Thanks.
> >
> > > -----Original Message-----
> > > From: Wang Dongsheng-B40534
> > > Sent: Thursday, January 31, 2013 12:52 PM
> > > To: u-boot@lists.denx.de
> > > Cc: Wang Dongsheng-B40534
> > > Subject: [PATCH] powerpc/mpc85xx: add setting of clock-frequency for
> > mpic
> > > node
> > >
> > > Set the device tree property associated with the mpic source
> > > frequency. The frequency is used for mpic timer.
> > >
> > > Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com>
> > > ---
> > >  arch/powerpc/cpu/mpc85xx/fdt.c |    5 +++++
> > >  1 files changed, 5 insertions(+), 0 deletions(-)
> > >
> > > diff --git a/arch/powerpc/cpu/mpc85xx/fdt.c
> > > b/arch/powerpc/cpu/mpc85xx/fdt.c index 3a268aa..f07d1cf 100644
> > > --- a/arch/powerpc/cpu/mpc85xx/fdt.c
> > > +++ b/arch/powerpc/cpu/mpc85xx/fdt.c
> > > @@ -663,6 +663,11 @@ void ft_cpu_setup(void *blob, bd_t *bd)  #ifdef
> > > CONFIG_FSL_CORENET
> > >  	do_fixup_by_compat_u32(blob, "fsl,qoriq-clockgen-1.0",
> > >  		"clock-frequency", CONFIG_SYS_CLK_FREQ, 1);
> > > +	do_fixup_by_compat_u32(blob, "fsl,mpic",
> > > +		"clock-frequency", get_bus_freq(0)/2, 1); #else
> > > +	do_fixup_by_compat_u32(blob, "fsl,mpic",
> > > +		"clock-frequency", get_bus_freq(0), 1);
> > >  #endif
> > >
> > >  	fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);
> > > --
> > > 1.7.5.1
Wang Dongsheng-B40534 - May 2, 2013, 2:50 a.m.
Hi Andy,

Could you please apply this patch?

http://patchwork.ozlabs.org/patch/217104/

Thanks.

- dongsheng

> -----Original Message-----
> From: Wang Dongsheng-B40534
> Sent: Monday, March 11, 2013 5:31 PM
> To: Fleming Andy-AFLEMING
> Cc: 'u-boot@lists.denx.de'
> Subject: RE: [PATCH] powerpc/mpc85xx: add setting of clock-frequency for
> mpic node
> 
> Hi Andy,
> 
> Could you please apply this patch?
> 
> - dongsheng
> 
> > -----Original Message-----
> > From: Wang Dongsheng-B40534
> > Sent: Tuesday, March 05, 2013 10:14 AM
> > To: 'yorksun@freescale.com'
> > Cc: Fleming Andy-AFLEMING; 'u-boot@lists.denx.de'
> > Subject: RE: [PATCH] powerpc/mpc85xx: add setting of clock-frequency
> > for mpic node
> >
> > Hi york,
> >
> > Could you ack this patch?
> >
> > Thanks.
> >
> > > -----Original Message-----
> > > From: Wang Dongsheng-B40534
> > > Sent: Monday, February 25, 2013 2:22 PM
> > > To: Fleming Andy-AFLEMING
> > > Cc: u-boot@lists.denx.de
> > > Subject: RE: [PATCH] powerpc/mpc85xx: add setting of clock-frequency
> > > for mpic node
> > >
> > > Hi Andy,
> > >
> > > Could you ack this patch?
> > >
> > > Thanks.
> > >
> > > > -----Original Message-----
> > > > From: Wang Dongsheng-B40534
> > > > Sent: Thursday, January 31, 2013 12:52 PM
> > > > To: u-boot@lists.denx.de
> > > > Cc: Wang Dongsheng-B40534
> > > > Subject: [PATCH] powerpc/mpc85xx: add setting of clock-frequency
> > > > for
> > > mpic
> > > > node
> > > >
> > > > Set the device tree property associated with the mpic source
> > > > frequency. The frequency is used for mpic timer.
> > > >
> > > > Signed-off-by: Wang Dongsheng <dongsheng.wang@freescale.com>
> > > > ---
> > > >  arch/powerpc/cpu/mpc85xx/fdt.c |    5 +++++
> > > >  1 files changed, 5 insertions(+), 0 deletions(-)
> > > >
> > > > diff --git a/arch/powerpc/cpu/mpc85xx/fdt.c
> > > > b/arch/powerpc/cpu/mpc85xx/fdt.c index 3a268aa..f07d1cf 100644
> > > > --- a/arch/powerpc/cpu/mpc85xx/fdt.c
> > > > +++ b/arch/powerpc/cpu/mpc85xx/fdt.c
> > > > @@ -663,6 +663,11 @@ void ft_cpu_setup(void *blob, bd_t *bd)
> > > > #ifdef CONFIG_FSL_CORENET
> > > >  	do_fixup_by_compat_u32(blob, "fsl,qoriq-clockgen-1.0",
> > > >  		"clock-frequency", CONFIG_SYS_CLK_FREQ, 1);
> > > > +	do_fixup_by_compat_u32(blob, "fsl,mpic",
> > > > +		"clock-frequency", get_bus_freq(0)/2, 1); #else
> > > > +	do_fixup_by_compat_u32(blob, "fsl,mpic",
> > > > +		"clock-frequency", get_bus_freq(0), 1);
> > > >  #endif
> > > >
> > > >  	fdt_fixup_memory(blob, (u64)bd->bi_memstart,
> > > > (u64)bd->bi_memsize);
> > > > --
> > > > 1.7.5.1

Patch

diff --git a/arch/powerpc/cpu/mpc85xx/fdt.c b/arch/powerpc/cpu/mpc85xx/fdt.c
index 3a268aa..f07d1cf 100644
--- a/arch/powerpc/cpu/mpc85xx/fdt.c
+++ b/arch/powerpc/cpu/mpc85xx/fdt.c
@@ -663,6 +663,11 @@  void ft_cpu_setup(void *blob, bd_t *bd)
 #ifdef CONFIG_FSL_CORENET
 	do_fixup_by_compat_u32(blob, "fsl,qoriq-clockgen-1.0",
 		"clock-frequency", CONFIG_SYS_CLK_FREQ, 1);
+	do_fixup_by_compat_u32(blob, "fsl,mpic",
+		"clock-frequency", get_bus_freq(0)/2, 1);
+#else
+	do_fixup_by_compat_u32(blob, "fsl,mpic",
+		"clock-frequency", get_bus_freq(0), 1);
 #endif

 	fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);