lkml.org 
[lkml]   [2015]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v5] powerpc/rcpm: add RCPM driver


On Tue, Aug 4, 2015 at 4:23 AM, Scott Wood <scottwood@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 <scottwood@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)
>> > > + setbits32(&rcpm_v1_regs->ippdexpcr, *mask);
>> > > + else
>> > > + clrbits32(&rcpm_v1_regs->ippdexpcr, *mask);
>> > > +}
>> > > +
>> > > +static void rcpm_v2_set_ip_power(bool enable, u32 *mask)
>> > > +{
>> > > + if (enable)
>> > > + setbits32(&rcpm_v2_regs->ippdexpcr[0], *mask);
>> > > + else
>> > > + clrbits32(&rcpm_v2_regs->ippdexpcr[0], *mask);
>> > > +}
>> >
>> > Why do these take "u32 *mask" instead of "u32 mask"?
>> >
>> > -Scott
>>
>> I think it can be used in the case where there are several mask
>> values.
>
> When would that be?
>
> -Scott

So far, only use one register, even though the register name is
"IPPDEXPCRn" (has "n" suffix) in T4 RM.

OK. Just change the parameter to "u32 mask".

-Chenhui



\
 
 \ /
  Last update: 2015-08-04 05:01    [W:0.071 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site