Jernej Skrabec | fbd37d8 | 2021-01-11 21:11:33 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * (C) Copyright 2020 Jernej Skrabec <jernej.skrabec@siol.net> |
| 4 | */ |
| 5 | |
| 6 | enum axp305_reg { |
| 7 | AXP305_CHIP_VERSION = 0x3, |
| 8 | AXP305_OUTPUT_CTRL1 = 0x10, |
| 9 | AXP305_DCDCD_VOLTAGE = 0x15, |
| 10 | AXP305_SHUTDOWN = 0x32, |
| 11 | }; |
| 12 | |
| 13 | #define AXP305_CHIP_VERSION_MASK 0xcf |
| 14 | |
| 15 | #define AXP305_OUTPUT_CTRL1_DCDCD_EN (1 << 3) |
| 16 | |
| 17 | #define AXP305_POWEROFF (1 << 7) |
Andre Przywara | 78592c0 | 2022-01-21 13:37:31 +0000 | [diff] [blame] | 18 | |
| 19 | #define AXP_POWER_STATUS 0x00 |
| 20 | #define AXP_POWER_STATUS_ALDO_IN BIT(0) |