• G
    REGULATOR: TWL6025: add support to twl-regulator · 4d94aee5
    Graeme Gregory 提交于
    Adding support for the twl6025. Major difference in the twl6025 is the
    group functionality has been removed from the chip so this affects how
    regulators are enabled and disabled.
    
    The names of the regulators also changed.
    
    The DCDCs of the 6025 are software controllable as well.
    
    Since V1
    
    Use the features variable passed via platform data instead of calling
    global function.
    
    Change the very switch like if statements to be a more readable
    switch statement.
    
    Since V2
    
    twl6025 doesn't use remap so remove it from the macros.
    
    Since V3
    
    enable/disable functions for 4030/6030 were seperated upstream so rebase
    on top of this. Change DCDC reference to SMPS as this is used in TRM.
    Change list_voltage slightly to have less code.
    Signed-off-by: NGraeme Gregory <gg@slimlogic.co.uk>
    Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
    Signed-off-by: NLiam Girdwood <lrg@slimlogic.co.uk>
    4d94aee5
twl-regulator.c 28.3 KB