mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-26 21:54:37 +08:00
sysreset: syscon: remove POWER reset cause
The sysreset of 'POWER' type is a PMIC reset defined as 'remove and restore power'. So normally only COLD/WARN is supported by sysreset_syscon. This modification allows to use the function sysreset_walk(SYSRESET_POWER) when it is supported by PMIC driver (see example in stpmic1). Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
9ad996adcc
commit
50fd31fd77
@ -24,6 +24,9 @@ static int syscon_reboot_request(struct udevice *dev, enum sysreset_t type)
|
||||
{
|
||||
struct syscon_reboot_priv *priv = dev_get_priv(dev);
|
||||
|
||||
if (type == SYSRESET_POWER)
|
||||
return -EPROTONOSUPPORT;
|
||||
|
||||
regmap_write(priv->regmap, priv->offset, priv->mask);
|
||||
|
||||
return -EINPROGRESS;
|
||||
|
Loading…
Reference in New Issue
Block a user