diff options
author | Andreas Kemnade <andreas@kemnade.info> | 2024-04-02 14:17:00 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-05-10 17:39:16 +0300 |
commit | 5549eeedcdd6ab156e90622449bb0f1df5a616a4 (patch) | |
tree | 0cdf91bb1f4c73d871916390bcf79934d4565d9e /include/linux/mfd | |
parent | 714ae2ab78078a23b5aa72b517b3402354d5685d (diff) | |
download | linux-5549eeedcdd6ab156e90622449bb0f1df5a616a4.tar.xz |
mfd: rohm-bd71828: Add power off functionality
Since the chip can power off the system, add the corresponding
functionality.
Based on https://github.com/kobolabs/Kobo-Reader/raw/master/hw/imx6sll-clara2e/kernel.tar.bz2
Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Acked-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://lore.kernel.org/r/20240402111700.494004-3-andreas@kemnade.info
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/rohm-bd71828.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mfd/rohm-bd71828.h b/include/linux/mfd/rohm-bd71828.h index 3b5f3a7db4bd..9776fde1262d 100644 --- a/include/linux/mfd/rohm-bd71828.h +++ b/include/linux/mfd/rohm-bd71828.h @@ -4,6 +4,7 @@ #ifndef __LINUX_MFD_BD71828_H__ #define __LINUX_MFD_BD71828_H__ +#include <linux/bits.h> #include <linux/mfd/rohm-generic.h> #include <linux/mfd/rohm-shared.h> @@ -41,6 +42,8 @@ enum { #define BD71828_REG_PS_CTRL_2 0x05 #define BD71828_REG_PS_CTRL_3 0x06 +#define BD71828_MASK_STATE_HBNT BIT(1) + //#define BD71828_REG_SWRESET 0x06 #define BD71828_MASK_RUN_LVL_CTRL 0x30 |