diff options
Diffstat (limited to 'roms/u-boot/include/axp305.h')
-rw-r--r-- | roms/u-boot/include/axp305.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/roms/u-boot/include/axp305.h b/roms/u-boot/include/axp305.h new file mode 100644 index 000000000..225c5040a --- /dev/null +++ b/roms/u-boot/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) |