lkml.org 
[lkml]   [2015]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH 5/9] clk: pistachio: Add a MUX_F macro to pass clk_flags
    From
    On Thu, May 21, 2015 at 4:57 PM, Ezequiel Garcia
    <ezequiel.garcia@imgtec.com> wrote:
    > As preparation work to support MIPS PLL rate change propagation, this
    > commit adds a MUX_F macro to pass clk_flags.
    >
    > Signed-off-by: Govindraj Raja <Govindraj.Raja@imgtec.com>
    > Signed-off-by: Ezequiel Garcia <ezequiel.garcia@imgtec.com>

    > --- a/drivers/clk/pistachio/clk.h
    > +++ b/drivers/clk/pistachio/clk.h

    > @@ -44,11 +45,22 @@ struct pistachio_mux {
    > .id = _id, \
    > .reg = _reg, \
    > .shift = _shift, \
    > + .clk_flags = CLK_SET_RATE_NO_REPARENT, \
    > .name = _name, \
    > .parents = _pnames, \
    > .num_parents = ARRAY_SIZE(_pnames) \
    > }
    >
    > +#define MUX_F(_id, _name, _pnames, _reg, _shift, _clkf) \
    > +{ \
    > + .id = _id, \
    > + .reg = _reg, \
    > + .shift = _shift, \
    > + .name = _name, \
    > + .parents = _pnames, \
    > + .num_parents = ARRAY_SIZE(_pnames), \
    > + .clk_flags = _clkf, \
    > +}

    nit: the indentation here is inconsistent with the other macros in this file.


    \
     
     \ /
      Last update: 2015-05-22 19:21    [W:4.111 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site