aboutsummaryrefslogtreecommitdiff
path: root/include/axp305.h
blob: 225c5040a322b6e732e9679698187a25216ba3e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)