Re: [PATCH v5] powerpc/rcpm: add RCPM driver

2015-08-03 Thread Chenhui Zhao
On Tue, Aug 4, 2015 at 4:23 AM, Scott Wood wrote: On Mon, 2015-08-03 at 19:14 +0800, Chenhui Zhao wrote: On Sat, Aug 1, 2015 at 8:45 AM, Scott Wood wrote: > On Fri, 2015-06-26 at 15:44 +0800, Yuantian.Tang@freescale.comwrote: > > +static void rcpm_v1_set_ip_power(bool enable, u32

Re: [PATCH v5] powerpc/rcpm: add RCPM driver

2015-08-03 Thread Scott Wood
On Mon, 2015-08-03 at 19:14 +0800, Chenhui Zhao wrote: > On Sat, Aug 1, 2015 at 8:45 AM, Scott Wood > wrote: > > On Fri, 2015-06-26 at 15:44 +0800, Yuantian.Tang@freescale.comwrote: > > > +static void rcpm_v1_set_ip_power(bool enable, u32 *mask) > > > +{ > > > + if (enable) > > > +

Re: [PATCH v5] powerpc/rcpm: add RCPM driver

2015-08-03 Thread Chenhui Zhao
On Sat, Aug 1, 2015 at 8:45 AM, Scott Wood wrote: On Fri, 2015-06-26 at 15:44 +0800, yuantian.t...@freescale.com wrote: +static void rcpm_v1_set_ip_power(bool enable, u32 *mask) +{ + if (enable) + setbits32(_v1_regs->ippdexpcr, *mask); + else +

Re: [PATCH v5] powerpc/rcpm: add RCPM driver

2015-08-03 Thread Chenhui Zhao
On Tue, Aug 4, 2015 at 4:23 AM, Scott Wood scottw...@freescale.com wrote: On Mon, 2015-08-03 at 19:14 +0800, Chenhui Zhao wrote: On Sat, Aug 1, 2015 at 8:45 AM, Scott Wood scottw...@freescale.com wrote: On Fri, 2015-06-26 at 15:44 +0800, Yuantian.Tang@freescale.comwrote: +static

Re: [PATCH v5] powerpc/rcpm: add RCPM driver

2015-08-03 Thread Chenhui Zhao
On Sat, Aug 1, 2015 at 8:45 AM, Scott Wood scottw...@freescale.com wrote: On Fri, 2015-06-26 at 15:44 +0800, yuantian.t...@freescale.com wrote: +static void rcpm_v1_set_ip_power(bool enable, u32 *mask) +{ + if (enable) + setbits32(rcpm_v1_regs-ippdexpcr, *mask); +

Re: [PATCH v5] powerpc/rcpm: add RCPM driver

2015-08-03 Thread Scott Wood
On Mon, 2015-08-03 at 19:14 +0800, Chenhui Zhao wrote: On Sat, Aug 1, 2015 at 8:45 AM, Scott Wood scottw...@freescale.com wrote: On Fri, 2015-06-26 at 15:44 +0800, Yuantian.Tang@freescale.comwrote: +static void rcpm_v1_set_ip_power(bool enable, u32 *mask) +{ + if (enable)

Re: [PATCH v5] powerpc/rcpm: add RCPM driver

2015-07-31 Thread Scott Wood
On Fri, 2015-06-26 at 15:44 +0800, yuantian.t...@freescale.com wrote: > +static void rcpm_v1_set_ip_power(bool enable, u32 *mask) > +{ > + if (enable) > + setbits32(_v1_regs->ippdexpcr, *mask); > + else > + clrbits32(_v1_regs->ippdexpcr, *mask); > +} > + > +static

Re: [PATCH v5] powerpc/rcpm: add RCPM driver

2015-07-31 Thread Scott Wood
On Fri, 2015-06-26 at 15:44 +0800, yuantian.t...@freescale.com wrote: +static void rcpm_v1_set_ip_power(bool enable, u32 *mask) +{ + if (enable) + setbits32(rcpm_v1_regs-ippdexpcr, *mask); + else + clrbits32(rcpm_v1_regs-ippdexpcr, *mask); +} + +static void

[PATCH v5] powerpc/rcpm: add RCPM driver

2015-06-26 Thread Yuantian . Tang
From: Tang Yuantian There is a RCPM (Run Control/Power Management) in Freescale QorIQ series processors. The device performs tasks associated with device run control and power management. The driver implements some features: mask/unmask irq, enter/exit low power states, freeze time base, etc.

[PATCH v5] powerpc/rcpm: add RCPM driver

2015-06-26 Thread Yuantian . Tang
From: Tang Yuantian yuantian.t...@freescale.com There is a RCPM (Run Control/Power Management) in Freescale QorIQ series processors. The device performs tasks associated with device run control and power management. The driver implements some features: mask/unmask irq, enter/exit low power