• Rajendra Nayak's avatar
    twl6030: regulator: Configure STATE register instead of REMAP · 2ebcf632
    Rajendra Nayak authored
    This is no REMAP register on twl6030, instead there is a STATE register
    to drive a resource to a given state.
    The state register can be used to specify what state the resource should
    enter when its associated with a GRP.
    Register Bit field description is as below. The patch programmes the
    corresponding STATE registers for all LDO's to turn ON when assocaited
    with GRP_P1.
    
    STATE REG:
    Bit7   |Bit6   |Bit5   |Bit4  |Bit3  |Bit2  |Bit1   |Bit0
    P3_GRP |P2_GRP |P1_GRP |RES   |RES   |RES   |State1 |State0
    
    State can be specified as below
    00: OFF
    01: ON
    10: OFF
    11: SLEEP
    Signed-off-by: default avatarRajendra Nayak <rnayak@ti.com>
    Cc: Liam Girdwood <lrg@slimlogic.co.uk>
    Cc: Samuel Ortiz <sameo@linux.intel.com>
    Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
    Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
    Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
    2ebcf632
twl-regulator.c 16.8 KB