RE: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-28 Thread Wang Dongsheng-B40534
> -Original Message- > From: Wood Scott-B07421 > Sent: Friday, March 29, 2013 3:48 AM > To: Wang Dongsheng-B40534 > Cc: Wood Scott-B07421; Gala Kumar-B11780; linuxppc-dev@lists.ozlabs.org; > Li Yang-R58472 > Subject: Re: [PATCH 2/3] powerpc/mpic: add global timer

Re: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-28 Thread Scott Wood
8472 > Subject: Re: [PATCH 2/3] powerpc/mpic: add global timer support > > On 03/26/2013 10:23:38 PM, Wang Dongsheng-B40534 wrote: > > > > > > > -Original Message- > > > From: Wood Scott-B07421 > > > Sent: Wednesday, March 27, 2013 1:32 AM >

RE: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-27 Thread Wang Dongsheng-B40534
> -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, March 28, 2013 1:12 AM > To: Wang Dongsheng-B40534 > Cc: Wood Scott-B07421; Gala Kumar-B11780; linuxppc-dev@lists.ozlabs.org; > Li Yang-R58472 > Subject: Re: [PATCH 2/3] powerpc/mpic: add global timer

Re: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-27 Thread Scott Wood
8472 > Subject: Re: [PATCH 2/3] powerpc/mpic: add global timer support > > On 03/25/2013 10:29:58 PM, Wang Dongsheng-B40534 wrote: > > > > > > > -Original Message- > > > From: Wood Scott-B07421 > > > Sent: Saturday, March 23, 2013 6:30 AM >

RE: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-26 Thread Wang Dongsheng-B40534
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, March 27, 2013 1:32 AM > To: Wang Dongsheng-B40534 > Cc: Wood Scott-B07421; Gala Kumar-B11780; linuxppc-dev@lists.ozlabs.org; > Li Yang-R58472 > Subject: Re: [PATCH 2/3] powerpc/mpic: add global timer

Re: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-26 Thread Scott Wood
8472 > Subject: Re: [PATCH 2/3] powerpc/mpic: add global timer support > > On 03/22/2013 01:14:51 AM, Wang Dongsheng-B40534 wrote: > > > > > > > -Original Message- > > > From: Wood Scott-B07421 > > > Sent: Thursday, March 21, 2013 7:00 AM >

RE: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-25 Thread Wang Dongsheng-B40534
> -Original Message- > From: Wood Scott-B07421 > Sent: Saturday, March 23, 2013 6:30 AM > To: Wang Dongsheng-B40534 > Cc: Wood Scott-B07421; Gala Kumar-B11780; linuxppc-dev@lists.ozlabs.org; > Li Yang-R58472 > Subject: Re: [PATCH 2/3] powerpc/mpic: add global timer

Re: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-22 Thread Scott Wood
8472 > Subject: Re: [PATCH 2/3] powerpc/mpic: add global timer support > > BTW, the input clock frequency has been similarly scaled, yet you don't > try to scrounge up that information to get further precision... > Let's go back patch, do you think the code is

RE: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-21 Thread Wang Dongsheng-B40534
> -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, March 21, 2013 7:00 AM > To: Wang Dongsheng-B40534 > Cc: Wood Scott-B07421; Gala Kumar-B11780; linuxppc-dev@lists.ozlabs.org; > Li Yang-R58472 > Subject: Re: [PATCH 2/3] powerpc/mpic: add global timer

Re: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-20 Thread Scott Wood
8472 > Subject: Re: [PATCH 2/3] powerpc/mpic: add global timer support > > On 03/19/2013 02:55:58 AM, Wang Dongsheng-B40534 wrote: > > > > +static void convert_ticks_to_time(struct timer_group_priv *priv, > > > > + const u64 ticks, struct timeval *time

RE: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-19 Thread Wang Dongsheng-B40534
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, March 20, 2013 6:59 AM > To: Wang Dongsheng-B40534 > Cc: Wood Scott-B07421; Gala Kumar-B11780; linuxppc-dev@lists.ozlabs.org; > Li Yang-R58472 > Subject: Re: [PATCH 2/3] powerpc/mpic: add global timer

Re: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-19 Thread Scott Wood
On 03/19/2013 02:55:58 AM, Wang Dongsheng-B40534 wrote: > > +static void convert_ticks_to_time(struct timer_group_priv *priv, > > + const u64 ticks, struct timeval *time) { > > + u64 tmp_sec; > > + u32 rem_us; > > + u32 div; > > + > > + if (!(priv->flags & FSL_GLOBAL_T

RE: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-19 Thread Wang Dongsheng-B40534
> > +static void convert_ticks_to_time(struct timer_group_priv *priv, > > + const u64 ticks, struct timeval *time) { > > + u64 tmp_sec; > > + u32 rem_us; > > + u32 div; > > + > > + if (!(priv->flags & FSL_GLOBAL_TIMER)) { > > + time->tv_sec = (__kernel_time_t) > > +

Re: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-18 Thread Scott Wood
On 03/08/2013 01:38:46 AM, Wang Dongsheng wrote: The MPIC global timer is a hardware timer inside the Freescale PIC comply to Open-PIC standard. When the timer is timeout of the specified interval, the hardware timer generates an interrupt. The driver currently is only tested on fsl chip, b

[PATCH 2/3] powerpc/mpic: add global timer support

2013-03-08 Thread Wang Dongsheng
The MPIC global timer is a hardware timer inside the Freescale PIC comply to Open-PIC standard. When the timer is timeout of the specified interval, the hardware timer generates an interrupt. The driver currently is only tested on fsl chip, but it can potentially support other global timers complyi