Skip to content

Commit

Permalink
mfd: twl4030-power: Use 'ti,system-power-controller' as alternative w…
Browse files Browse the repository at this point in the history
…ay to support system power off

ti,system-power-controller is more or less the standard way of
indicating that the PMIC is the system wide power controller and hence
may be used to switch off the system. Almost ALL TI PMIC drivers and
many Maxim PMIC drivers follow the same style.

So support 'ti,system-power-controller' in addition to the usual
'ti,use_poweroff' to indicate that the PMIC instance has control for
switching off the system.

Signed-off-by: Nishanth Menon <nm@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
  • Loading branch information
Nishanth Menon authored and Lee Jones committed Sep 26, 2014
1 parent b64c688 commit fecc445
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/mfd/twl4030-power.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,9 @@ static bool twl4030_power_use_poweroff(const struct twl4030_power_data *pdata,
if (pdata && pdata->use_poweroff)
return true;

if (of_property_read_bool(node, "ti,system-power-controller"))
return true;

if (of_property_read_bool(node, "ti,use_poweroff"))
return true;

Expand Down

0 comments on commit fecc445

Please sign in to comment.