mirror of
https://github.com/smaeul/u-boot.git
synced 2025-09-11 12:36:03 +01:00
There are three major variants of the AXP PMIC GPIO functionality (plus PMICs with no GPIOs at all). Except for GPIO3 on the AXP209, which uses a different register layout, it is straightforward to support all three variants with a single driver. Do this, and in the process remove the GPIO-related definitions from the PMIC-specific headers, and therefore the dependency on AXP_PMIC_BUS. Signed-off-by: Samuel Holland <samuel@sholland.org>
21 lines
452 B
C
21 lines
452 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* (C) Copyright 2012 Henrik Nordstrom <henrik@henriknordstrom.net>
|
|
*/
|
|
|
|
enum axp152_reg {
|
|
AXP152_CHIP_VERSION = 0x3,
|
|
AXP152_DCDC2_VOLTAGE = 0x23,
|
|
AXP152_DCDC3_VOLTAGE = 0x27,
|
|
AXP152_DCDC4_VOLTAGE = 0x2B,
|
|
AXP152_LDO2_VOLTAGE = 0x2A,
|
|
AXP152_SHUTDOWN = 0x32,
|
|
};
|
|
|
|
#define AXP152_POWEROFF (1 << 7)
|
|
|
|
#ifdef CONFIG_AXP152_POWER
|
|
#define AXP_POWER_STATUS 0x00
|
|
#define AXP_POWER_STATUS_ALDO_IN BIT(0)
|
|
#endif
|