mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
sysreset: implement MAX9807 sysreset functions
MAX8907 PMIC has embedded poweroff function used by some device to initiane device power off. Implement it as optional sysreset driver guarded by kconfig option and system-power-controller device tree property. Tested-by: Ion Agorria <ion@agorria.com> Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
/* Drivers name */
|
||||
#define MAX8907_LDO_DRIVER "max8907_ldo"
|
||||
#define MAX8907_SD_DRIVER "max8907_sd"
|
||||
#define MAX8907_RST_DRIVER "max8907_rst"
|
||||
|
||||
/* MAX8907 register map */
|
||||
#define MAX8907_REG_SDCTL1 0x04
|
||||
@@ -39,6 +40,9 @@
|
||||
#define MAX8907_REG_LDOCTL18 0x72
|
||||
#define MAX8907_REG_LDOCTL20 0x9C
|
||||
|
||||
#define MAX8907_REG_RESET_CNFG 0x0F
|
||||
#define MASK_POWER_OFF BIT(6)
|
||||
|
||||
/* MAX8907 configuration values */
|
||||
#define MAX8907_CTL 0
|
||||
#define MAX8907_SEQCNT 1
|
||||
|
||||
Reference in New Issue
Block a user