sysreset: implement MAX77663 sysreset functions
MAX77663 PMIC has embedded poweroff function used by some device to initiane device power off. Implement it as sysreset driver. Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
This commit is contained in:
committed by
Tom Rini
parent
102c4e3183
commit
fa1e72ea3d
@@ -12,6 +12,7 @@
|
||||
/* Drivers name */
|
||||
#define MAX77663_LDO_DRIVER "max77663_ldo"
|
||||
#define MAX77663_SD_DRIVER "max77663_sd"
|
||||
#define MAX77663_RST_DRIVER "max77663_rst"
|
||||
|
||||
/* Step-Down (SD) Regulator calculations */
|
||||
#define SD_STATUS_MASK 0x30
|
||||
@@ -39,4 +40,8 @@
|
||||
|
||||
#define LDO_VOLT_BASE 800000
|
||||
|
||||
#define MAX77663_REG_ONOFF_CFG1 0x41
|
||||
#define ONOFF_SFT_RST BIT(7)
|
||||
#define ONOFF_PWR_OFF BIT(1)
|
||||
|
||||
#endif /* _MAX77663_H_ */
|
||||
|
||||
Reference in New Issue
Block a user