diff options
| author | Jernej Skrabec <[email protected]> | 2021-01-11 21:11:33 +0100 |
|---|---|---|
| committer | Andre Przywara <[email protected]> | 2021-01-25 21:52:00 +0000 |
| commit | fbd37d8d28450a29180a9df1e7546c7f0cb60a38 (patch) | |
| tree | 07940707fb612830e408da77307f31d94b45cb6c /include | |
| parent | e9ad1b8dc5c7bae5213309af7c49907bac5def73 (diff) | |
sunxi: Add support for AXP305 PMIC
This PMIC can be found on H616 boards and it's very similar to AXP805
and AXP806.
Signed-off-by: Jernej Skrabec <[email protected]>
Reviewed-by: Andre Przywara <[email protected]>
Reviewed-by: Jaehoon Chung <[email protected]>
Signed-off-by: Andre Przywara <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/axp305.h | 17 | ||||
| -rw-r--r-- | include/axp_pmic.h | 3 |
2 files changed, 20 insertions, 0 deletions
diff --git a/include/axp305.h b/include/axp305.h new file mode 100644 index 00000000000..225c5040a32 --- /dev/null +++ b/include/axp305.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * (C) Copyright 2020 Jernej Skrabec <[email protected]> + */ + +enum axp305_reg { + AXP305_CHIP_VERSION = 0x3, + AXP305_OUTPUT_CTRL1 = 0x10, + AXP305_DCDCD_VOLTAGE = 0x15, + AXP305_SHUTDOWN = 0x32, +}; + +#define AXP305_CHIP_VERSION_MASK 0xcf + +#define AXP305_OUTPUT_CTRL1_DCDCD_EN (1 << 3) + +#define AXP305_POWEROFF (1 << 7) diff --git a/include/axp_pmic.h b/include/axp_pmic.h index 10091d0bb27..405044c3a32 100644 --- a/include/axp_pmic.h +++ b/include/axp_pmic.h @@ -15,6 +15,9 @@ #ifdef CONFIG_AXP221_POWER #include <axp221.h> #endif +#ifdef CONFIG_AXP305_POWER +#include <axp305.h> +#endif #ifdef CONFIG_AXP809_POWER #include <axp809.h> #endif |
