diff options
author | Jernej Skrabec <jernej.skrabec@siol.net> | 2021-01-11 21:11:33 +0100 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2021-01-25 21:52:00 +0000 |
commit | fbd37d8d28450a29180a9df1e7546c7f0cb60a38 (patch) | |
tree | 07940707fb612830e408da77307f31d94b45cb6c /include | |
parent | e9ad1b8dc5c7bae5213309af7c49907bac5def73 (diff) | |
download | u-boot-fbd37d8d28450a29180a9df1e7546c7f0cb60a38.tar.gz u-boot-fbd37d8d28450a29180a9df1e7546c7f0cb60a38.tar.xz u-boot-fbd37d8d28450a29180a9df1e7546c7f0cb60a38.zip |
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 <jernej.skrabec@siol.net>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
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 0000000000..225c5040a3 --- /dev/null +++ b/include/axp305.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * (C) Copyright 2020 Jernej Skrabec <jernej.skrabec@siol.net> + */ + +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 10091d0bb2..405044c3a3 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 |