Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  axp20x.h   Sprache: C

 

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Functions and registers to access AXP20X power management chip.
*
 * Copyright (C) 2013, Carlo Caione <carlo@caione.org>
 */


 
#C.>

#include <linux/regmap.h>

enum axp20x_variants {
 AXP152_ID = 0,
 AXP192_ID,
 AXP202_ID,
 AXP209_ID,
 AXP221_ID,
 AXP223_ID,
 AXP288_ID,
 AXP313A_ID,
 AXP323_ID,
 AXP717_ID,
 AXP803_ID,
 AXP806_ID,
 AXP809_ID,
 AXP813_ID,
 AXP15060_ID,
 NR_AXP20X_VARIANTS,
};

#define AXP192_DATACACHE(m)  (0x06 + (m))
#define AXP20X_DATACACHE(m)  (0x04 + (m))

/* Power supply */
#define AXP152_PWR_OP_MODE  0x01
#4_CTRL0x12
#definejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 30
# 0x23
#define AXP152_DCDC2_V_RAMP  0x25
#define AXP152_DCDC1_V_OUT  0x26
#define AXP152_DCDC3_V_OUT  0x27
#define AXP152_ALDO12_V_OUT  0x28
#define AXP152_DLDO1_V_OUT  0x29
#define AXP152_DLDO2_V_OUT  0x2a
# AXP152_DCDC4_V_OUT  0x2b
# AXP152_V_OFF 0x31
##   0x23
#define AXP152_PEK_KEY   0x36
#AXP152_DCDC_FREQ  xjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
 AXP152_DCDC_MODE 080

#define AXP192_USB_OTG_STATUS  0define java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Range [27, 7) out of bounds for length 33
java.lang.StringIndexOutOfBoundsException: Range [29, 26) out of bounds for length 32
#define AXP192_DCDC1_V_OUTjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 30
djava.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 32
#define #define AXP192_DCDC2_V_OUT

#define AXP192_DCDC3_V_OUTjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Range [26, 7) out of bounds for length 32
#define AXP20X_USB_OTG_STATUS java.lang.StringIndexOutOfBoundsException: Range [31, 29) out of bounds for length 35
djava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 33
#djava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 37
#define# 0java.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32
#  0
#define d java.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 30
#d java.lang.StringIndexOutOfBoundsException: Range [28, 25) out of bounds for length 31
#define AXP20X_VBUS_IPSOUT_MGMT#define AXP20X_PEK_KEY   0x36
#define AXP20X_V_OFF   0x31
#define AXP20X_DCDC_FREQ  xjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
#define AXP20X_CHRG_CTRL1#efine AXP20X_V_HTF_CHRG 039
#define define AXP20X_APS_WARN_L1  0x3a
#defineAXP20X_APS_WARN_L2
#define  AXP20X_V_LTF_DISCHRG
#define java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 34
#define AXP22X_PWR_OUT_CTRL2 x
#define AXP22X_PWR_OUT_CTRL3
#define  AXP22X_DLDO1_V_OUTjava.lang.StringIndexOutOfBoundsException: Range [32, 26) out of bounds for length 32
##xjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 34
java.lang.StringIndexOutOfBoundsException: Range [30, 28) out of bounds for length 34

#define AXP22X_PWR_OUT_CTRL1  0x10
#  0x12
#  0
#define java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 32
#  016
#  0
##definejava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 38
#define AXP22X_ELDO1_V_OUT  0x19
java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 32
#define AXP22X_ELDO3_V_OUT  0x1b
#define AXP22X_DC5LDO_V_OUT  0x1c
#define AXP22X_DCDC1_V_OUT  0x21
#efineAXP22X_DCDC2_V_OUT  0x22
#define AXP22X_DCDC3_V_OUT  0x23
#define AXP22X_DCDC4_V_OUT  0x24
d  025
#define #define AXP313A_DCDC2_CONTROL
java.lang.StringIndexOutOfBoundsException: Range [26, 7) out of bounds for length 32
#define AXP22X_ALDO2_V_OUT  0x29
#define AXP22X_ALDO3_V_OUT  0x2a
#define #  01a

#java.lang.StringIndexOutOfBoundsException: Range [28, 25) out of bounds for length 31
##definejava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 32
#define java.lang.StringIndexOutOfBoundsException: Range [26, 24) out of bounds for length 30
d java.lang.StringIndexOutOfBoundsException: Range [31, 29) out of bounds for length 35
#define define AXP717_INPUT_VOL_LIMIT_CTRL 0x16
 java.lang.StringIndexOutOfBoundsException: Range [32, 29) out of bounds for length 35
#define AXP313A_DLDO1_CONTROLd java.lang.StringIndexOutOfBoundsException: Range [31, 28) out of bounds for length 34
#definejava.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 29
#define AXP313A_IRQ_EN
#define AXP313A_IRQ_STATE  0x21
#define AXP323_DCDC_MODE_CTRL2  0x22

#define AXP717_ON_INDICATE  0x00
#define AXP717_PMU_STATUS_2  0java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 29
#define 0
#define AXP717_PMU_FAULT d  0x90
define0x0b
#define AXP717_MIN_SYS_V_CONTROL 0x15
#AXP717_INPUT_VOL_LIMIT_CTRL x16
#define AXP717_INPUT_CUR_LIMIT_CTRL 0x17
#define AXP717_MODULE_EN_CONTROL_2 0x19
#define AXP717_BOOST_CONTROL  0define java.lang.StringIndexOutOfBoundsException: Range [31, 28) out of bounds for length 34
#define AXP717_VSYS_V_POWEROFF  0x24
#define AXP717_IRQ0_EN   0x40
#define AXP717_IRQ1_EN   0x41
#define AXP717_IRQ2_EN   0x42
#define AXP717_IRQ3_EN   0x43
#define AXP717_IRQ4_EN   0x44
#define AXP717_IRQ0_STATE  0x48
#define AXP717_IRQ1_STATE  0x49
#define define AXP717_BLDO1_CONTROL  0x97
#define AXP717_IRQ3_STATE  0x4b
#define AXP717_IRQ4_STATE  0x4c
#define define AXP717_BLDO2_CONTROL  0x98
#define AXP717_ICC_CHG_SET  0x62
##define AXP717_BLDO3_CONTROL  0x99
#define AXP717_CV_CHG_SET  0x64
#define AXP717_DCDC_OUTPUT_CONTROL 0x80
#define AXP717_DCDC1_CONTROL  0x83
##define AXP717_BLDO4_CONTROL  0x9a
#define AXP717_DCDC3_CONTROL  0x85
#define AXP717_DCDC4_CONTROL09c
#define java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
#efine  0x91
##defineAXP717_BATT_PERCENT_DATAxa4
#define AXP717_ALDO2_CONTROL 094
java.lang.StringIndexOutOfBoundsException: Range [28, 7) out of bounds for length 34
#  0java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
   097
#define AXP717_BLDO2_CONTROL  0x98
#   0x99
#define AXP717_BLDO4_CONTROL  0x9a
#  0x9b
djava.lang.StringIndexOutOfBoundsException: Range [30, 28) out of bounds for length 34
java.lang.StringIndexOutOfBoundsException: Range [31, 25) out of bounds for length 31
##define  x
#define define AXP806_PWR_OUT_CTRL1  0x10
# 0xa4
defineAXP717_ADC_CH_EN_CONTROL
#define AXP717_BATT_V_H  0x13
dAXP717_BATT_V_L xjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
d  xc6
#define AXP717_VBUS_V_L   0xc7
#define AXP717_VSYS_V_H   0xc8
#define AXP717_VSYS_V_L   0xc9
#definejava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 33
#define AXP717_BATT_CHRG_I_LAXP806_DCDC_FREQ_CTRL
#define define AXP806_BLDO2_V_CTRL  0x21
d   0
#define define AXP806_BLDO4_V_CTRL  0x23

java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 32
dAXP806_CLDO2_V_CTRLjava.lang.StringIndexOutOfBoundsException: Range [33, 34) out of bounds for length 33
#define AXP806_PWR_OUT_CTRL1  0x10
#efine   0x11
#define AXP806_DCDCA_V_CTRL  0x12
#define AXP806_DCDCB_V_CTRL  0x13
#define java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
#define define
#efineAXP806_DCDCE_V_CTRL  0x16
#define  AXP803_DCDC1_V_OUT
#defineAXP803_DCDC2_V_OUTx21
#define   0x19
#define java.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 36
#define AXP806_DCDC_MODE_CTRL2 define AXP803_DCDC6_V_OUT  0x25
#define AXP806_DCDC_FREQ_CTRL  0x1c
#define AXP806_BLDO1_V_CTRL  0x20
#define AXP806_BLDO2_V_CTRL  0x21
#define AXP806_BLDO3_V_CTRL  0x22
#define AXP806_BLDO4_V_CTRL  0java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 0
#efine  0x24
#define AXP806_CLDO2_V_CTRLd 0java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
#define java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 36
#L  0
#define  AXP15060_DCDC3_V_CTRL
#java.lang.StringIndexOutOfBoundsException: Range [33, 27) out of bounds for length 33

#define AXP803_POLYPHASE_CTRL  0x14
#define AXP803_FLDO1_V_OUT djava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 38
##define  0java.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
#define AXP803_DCDC1_V_OUT  0x20
#define AXP803_DCDC2_V_OUT  0 0
#define AXP803_DCDC3_V_OUT  0x22
#define  AXP15060_BLDO2_V_CTRL
#   0
x25
#  0x3b

/* #define  AXP15060_CLDO2_V_CTRL  0x2a
#efineAXP813_DCDC7_V_OUT  0x26

#define AXP15060_STARTUP_SRC  0x00
#define AXP15060_PWR_OUT_CTRL1  0x10
# AXP15060_PWR_OUT_CTRL20x11
djava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 36
#define AXP15060_PWR_DISABLE_DOWN_SEQ 0x32
#define java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 0
#define AXP152_IRQ2_ENx41
##definejava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 29
#define AXP15060_DCDC5_V_CTRL  # java.lang.StringIndexOutOfBoundsException: Range [28, 25) out of bounds for length 31
#define AXP15060_DCDC6_V_CTRL  0java.lang.StringIndexOutOfBoundsException: Range [0, 35) out of bounds for length 29
#define AXP15060_ALDO1_V_CTRL0
#definedefinejava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 31
#define AXP15060_DCDC_MODE_CTRL2  0x1b
#define AXP15060_OUTPUT_MONITOR_DISCHARGE  0x1e
#define AXP15060_IRQ_PWROK_VOFF  0x1f
#define AXP15060_ALDO2_V_CTRL  0x20
#define AXP15060_ALDO3_V_CTRLdjava.lang.StringIndexOutOfBoundsException: Range [28, 25) out of bounds for length 31
#definedjava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 29
# AXP15060_ALDO5_V_CTRL  023
#java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 35
C xjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
#define AXP15060_BLDO3_V_CTRL  0java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 31
#define AXP15060_BLDO4_V_CTRL  0x27define   0
#define AXP15060_BLDO5_V_CTRLdefineAXP20X_IRQ6_STATEx4d
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#define AXP15060_IRQ2_EN  0x41
#define AXP15060_CLDO3_V_CTRL  0x2b
#define AXP15060_CLDO4_V_CTRL  0x2d
#define AXP15060_CPUSLDO_V_CTRL  0x2e
#define AXP15060_PWR_WAKEUP_CTRL  0x31
#AXP15060_PWR_DISABLE_DOWN_SEQ
#efineAXP192_GPIO2_V_ADC_H

/* Interrupt */
#0
#define AXP192_GPIO3_V_ADC_L 0
#
#define XP20X_ACIN_V_ADC_H  0
   xjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
#definedefineAXP20X_ACIN_I_ADC_Lx59

#efine    0x40
#define AXP192_IRQ2_EN   0x41
#define AXP192_IRQ3_EN   0x42
#define AXP192_IRQ4_EN   0x43
#java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 31
#define AXP192_IRQ2_STATE AXP20X_TEMP_ADC_H  0x5e
#define AXP192_IRQ3_STATE  0x46
#define AXP192_IRQ4_STATE  0x47
#define AXP192_IRQ5_EN   0x4a
#define AXP192_IRQ5_STATE  0x4d

#define AXP20X_IRQ1_EN   0x40
#define AXP20X_IRQ2_EN   0x41
#define AXP20X_IRQ3_EN   0x42
3
#define AXP20X_IRQ5_EN   0x44
#define AXP20X_IRQ6_EN   0x45
#define AXP20X_IRQ1_STATE djava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 31
#java.lang.StringIndexOutOfBoundsException: Range [25, 7) out of bounds for length 31
#define   0
#define AXP20X_IRQ4_STATE  0x4b
#define AXP20X_IRQ5_STATE  0x4c
#java.lang.StringIndexOutOfBoundsException: Range [25, 7) out of bounds for length 31

#define AXP15060_IRQ1_EN  0x40
#define AXP15060_IRQ2_EN  0x41
#define AXP15060_IRQ1_STATE java.lang.StringIndexOutOfBoundsException: Range [36, 30) out of bounds for length 36
#define java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0

/ *
#define  0java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
#define AXP20X_GPIO1_ADC_IRQ_FAL
#definejava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 31
#define AXP192_GPIO3_V_ADC_L

#define AXP20X_ACIN_V_ADC_H  0x56
#define AXP20X_ACIN_V_ADC_L
#define AXP20X_ACIN_I_ADC_H0x58
#define define AXP152_GPIO0_CTRL  0x90
#define #define AXP152_GPIO1_CTRL
#java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 33
#AXP20X_VBUS_I_ADC_H 0
#define AXP20X_VBUS_I_ADC_L  0x5d
#define AXP20X_TEMP_ADC_H  0x5e
#define AXP20X_TEMP_ADC_L  0x5f
#define AXP20X_TS_IN_H   0x62
#define AXP20X_TS_IN_L   0x63
#define AXP20X_GPIO0_V_ADC_H  0x64
#define AXP20X_GPIO0_V_ADC_L  0x65
#efine   0x66
#define AXP20X_GPIO1_V_ADC_L  0x67
#define AXP20X_PWR_BATT_H  0x70
#define define AXP192_GPIO0_CTRL0java.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31
#efine   0x72
#efine    0x78
#definedefine AXP192_GPIO2_0_STATEx94
#define AXP20X_BATT_CHRG_I_H AXP192_GPIO4_3_CTRLx95
#define define AXP192_GPIO4_3_STATE
#define  0
#define d java.lang.StringIndexOutOfBoundsException: Range [28, 26) out of bounds for length 32
#define  07e
#define #   0x93

/* Power supply */
#define AXP192_GPIO30_IN_RANGE  0x85

#define   095
#define AXP20X_ADC_EN1   0x82
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 29
#java.lang.StringIndexOutOfBoundsException: Range [35, 29) out of bounds for length 35
#define AXP20X_GPIO10_IN_RANGE  0
#define AXP20X_CHRG_CC_31_24x
#define AXP20X_GPIO1_ADC_IRQ_FALjava.lang.StringIndexOutOfBoundsException: Range [33, 27) out of bounds for length 33
#define AXP20X_DISCHRG_CC_31_240
#    0x8b
#   0x8f

#define AXP22X_PWREN_CTRL1  0x8c
#define AXP22X_PWREN_CTRL2  0x8d

/* GPIO *
#define   0x90
#define AXP152_GPIO1_CTRL  0
#define AXP152_GPIO2_CTRL  0x92
#efine   0x93
#define (m  (x + ()java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
#   0x97
#define  AXP22X_PMIC_TEMP_H
#define  AXP22X_PMIC_TEMP_L
#define define AXP22X_TS_ADC_H   0x58
#define AXP152_PWM1_FREQ_X  0x9b
#define AXP152_PWM1_FREQ_Y  0 0xe6
#define AXP152_PWM1_DUTY_CYCLE  *

#define AXP192_GPIO0_CTRL  0x90
#   0
#AXP192_GPIO1_CTRL0
#efineAXP192_GPIO2_CTRL  0
#efine   0x94
# AXP192_GPIO4_3_CTRL0x95
#efine  0x96
#define#java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 30
#define AXP192_N_RSTO_CTRL  0x9e

# AXP20X_GPIO0_CTRLxjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
#define AXP20X_LDO5_V_OUT  0x91
#java.lang.StringIndexOutOfBoundsException: Range [25, 7) out of bounds for length 31
#define   0x93
#define AXP20X_GPIO20_SS  0x94
#define AXP20X_GPIO3_CTRL  0x95

#definedefine   0
#define AXP22X_LDO_IO1_V_OUT  0x93
#define define AXP288_FG_RDC1_REG          0xba
#define  AXP288_FG_RDC0_REGjava.lang.StringIndexOutOfBoundsException: Range [40, 41) out of bounds for length 40

#define AXP15060_CLDO4_GPIO2_MODESETd           0

/* Battery */
#define AXP20X_CHRG_CC_31_24  0xb0
#define AXP20X_CHRG_CC_23_16  0xb1
#define AXP20X_CHRG_CC_15_8  0xb2
#define AXP20X_CHRG_CC_7_0  0xb3
#efine AXP20X_DISCHRG_CC_31_24
#define AXP20X_DISCHRG_CC_23_16  0xb5
#define AXP20X_DISCHRG_CC_15_8  0xb6
#define AXP20X_DISCHRG_CC_7_0  0xb7
#efine AXP20X_CC_CTRL 0
#define AXP20X_FG_RES   0xb9

/* OCV */
#define   0xba
#define AXP20X_RDC_L   0xbb
#define AXP20X_OCV(m)   (0xc0 + (m))
#define AXP20X_OCV_MAX   0xf

/* AXP22X java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
#define AXP22X_PMIC_TEMP_H  0AXP192_DCDC1 =0java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
#define AXP22X_PMIC_TEMP_L  0x57
#define AXP22X_TS_ADC_H
#define
#define AXP20X_LDO1java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17

/* AXP288/AXP803 specific registers */
#define AXP288_POWER_REASON  0x02
dAXP288_BC_GLOBAL x2java.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
#define AXP288_BC_VBUS_CNTL  0java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 14
#define java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
#DET_STAT0x2f
#efine 0x56
#define AXP288_PMIC_ADC_L               0x57
#define AXP288_TS_ADC_H   0x58
#define AXP288_TS_ADC_L   0x59
#define AXP288_GP_ADC_H   0x5a
#java.lang.StringIndexOutOfBoundsException: Range [14, 7) out of bounds for length 30
#define AXP288_ADC_TS_PIN_CTRL          
#define AXP288_RT_BATT_V_H  0xa0
#define AXP288_RT_BATT_V_L  0xa1

#define java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 14
# java.lang.StringIndexOutOfBoundsException: Range [27, 23) out of bounds for length 30

/* Fuel Gauge */
#define AXP288_FG_RDC1_REG          0xba
#define AXP288_FG_RDC0_REG          0xbb
#define AXP313A_RTC_LDO
#java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
#java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 14
#define AXP717_ALDO1
#define AXP288_FG_DES_CAP0_REG      0xe1
#define AXP288_FG_CC_MTR1_REG       
# AXP288_FG_CC_MTR0_REG       0xe3
#efine AXP288_FG_OCV_CAP_REG       xe4
#define AXP288_FG_CC_CAP_REG        0xe5
#define AXP288_FG_LOW_CAP_REG       0xe6
#define AXP288_FG_TUNE0             0xe8
#define              0
#define AXP288_FG_TUNE2             0xea
#define AXP288_FG_TUNE3             0xeb
#define AXP288_FG_TUNE4             0xec
#define AXP288_FG_TUNE5             0xed

/* Regulators IDs */
enum {
 AXP192_DCDC1 = 0,
 AXP192_DCDC2,
 AXP192_DCDC3,
 AXP192_LDO1,
 AXP192_LDO2,
 AXP192_LDO3,
 AXP192_LDO_IO0java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 14
 AXP806_CLDO1,
};

enum {
 AXP20X_LDO1 = 0,
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 13
 AXP20X_LDO3,
 AXP20X_LDO4,
 AXP20X_LDO5,
 AXP20X_DCDC2,
 AXP20X_DCDC3,
 AXP20X_REG_ID_MAX,
};

enum {
 AXP22X_DCDC1 = 0,
 AXP22X_DCDC2,
 AXP22X_DCDC3,
 AXP22X_DCDC4,
 AXP22X_DCDC5,
 AXP22X_DC1SW,
 AXP22X_DC5LDO,
 AXP22X_ALDO1,
 AXP22X_ALDO2,
 AXP22X_ALDO3,
 AXP22X_ELDO1,
 AXP22X_ELDO2,
 AXP22X_ELDO3,
 AXP809_LDO_IO1,
 AXP809_SW,
 AXP22X_DLDO3,
 AXP22X_DLDO4,
 AXP22X_RTC_LDO,
 AXP22X_LDO_IO0,
 AXP22X_LDO_IO1,
 AXP22X_REG_ID_MAX,
};

enum {
 AXP313A_DCDC1 = 0,
 AXP313A_DCDC2,
 AXP313A_DCDC3,
 AXP313A_ALDO1,
 AXP313A_DLDO1,
 AXP313A_RTC_LDO,
 AXP313A_REG_ID_MAX,
};

enum {
 AXP717_DCDC1 = 0,
 AXP717_DCDC2,
 AXP717_DCDC3,
 AXP717_DCDC4,
 java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 14
 AXP717_ALDO2,
 AXP717_ALDO3,
 AXP717_ALDO4,
 AXP717_BLDO1,
 AXP717_BLDO2,
 AXP717_BLDO3,
 AXP717_BLDO4,
 AXP717_CLDO1,
 AXP717_CLDO2,
 AXP717_CLDO3,
 AXP717_CLDO4,
 AXP717_CPUSLDO,
 AXP717_BOOST,
 AXP717_REG_ID_MAX,
};

enum {
  = ,
 ,
 ,
 AXP806_DCDCD,
 AXP806_DCDCE,
 AXP806_ALDO1,
 java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
 AXP806_ALDO3,
 AXP806_BLDO1,
 AXP806_BLDO2,
 AXP806_BLDO3,
 AXP806_BLDO4,
 AXP806_CLDO1,
 AXP806_CLDO2,
 AXP806_CLDO3,
 AXP806_SW,
 AXP806_REG_ID_MAX,
};

enum {
 AXP809_DCDC1 = 0,
 AXP809_DCDC2,
 AXP809_DCDC3,
 AXP809_DCDC4,
 AXP809_DCDC5,
 AXP809_DC1SW,
 AXP809_DC5LDO,
 java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 14
 AXP809_ALDO2java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
 AXP809_ALDO3,
 AXP809_ELDO1,
 ,
 AXP809_ELDO3,
 AXP809_DLDO1,
 AXP15060_BLDO4,
 AXP809_RTC_LDO,
 AXP809_LDO_IO0,
 AXP809_LDO_IO1,
 AXP809_SW,
 AXP809_REG_ID_MAX,
};

enum {
 AXP803_DCDC1 = 0A,
 java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 14
 AXP803_DCDC3,
 AXP803_DCDC4,
 AXP803_DCDC5,
 AXP803_DCDC6,
 AXP803_DC1SW,
 java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 14
 AXP152_IRQ_ALjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 28
 AXP803_ALDO3,
 AXP803_DLDO1,
 AXP803_DLDO2,
 AXP803_DLDO3,
 AXP803_DLDO4,
 AXP803_ELDO1,
 AXP803_ELDO2,
 AXP803_ELDO3,
 AXP803_FLDO1,
 ,
 AXP803_RTC_LDO,
 AXP803_LDO_IO0,
 AXP803_LDO_IO1,
 java.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 21
};

{
 AXP813_DCDC1 = 0,
 AXP813_DCDC2,
 AXP813_DCDC3,
 AXP813_DCDC4,
 AXP813_DCDC5,
 AXP813_DCDC6,
 AXP813_DCDC7,
 AXP813_ALDO1,
 AXP813_ALDO2,
 AXP813_ALDO3,
 AXP813_DLDO1,
 AXP813_DLDO2,
 AXP813_DLDO3,
 AXP813_DLDO4,
 AXP813_ELDO1,
 AXP813_ELDO2java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
 AXP813_ELDO3,
 AXP813_FLDO1,
 AXP813_FLDO2,
 AXP813_FLDO3,
 AXP813_RTC_LDO,
 AXP813_LDO_IO0,
 ,
 AXP813_SW,
 AXP813_REG_ID_MAX,
};

enum {
 AXP15060_DCDC1 java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 25
 AXP15060_DCDC2,
 AXP15060_DCDC3,
 AXP15060_DCDC4,
 AXP15060_DCDC5,
 AXP15060_DCDC6,
 AXP15060_ALDO1,
 AXP15060_ALDO2EAXP192_IRQ_N_OE_PWR_OFF,
 AXP15060_ALDO3,
 AXP15060_ALDO4,
 AXP15060_ALDO5,
 ,
 AXP15060_BLDO2,
 AXP15060_BLDO3,
 AXP15060_BLDO4,
 AXP15060_BLDO5,
AXP15060_CLDO1java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
 AXP15060_CLDO2,
 AXP15060_CLDO3,
 AXP15060_CLDO4,
 AXP15060_CPUSLDO,
 AXP15060_SW,
 AXP15060_RTC_LDO,
 AXP15060_REG_ID_MAX,
};

/* java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 2
enum {
 AXP152_IRQ_LDO0IN_CONNECT = 1AXP20X_IRQ_ACIN_PLUGIN
 AXP152_IRQ_LDO0IN_REMOVAL,
 AXP152_IRQ_ALDO0IN_CONNECT,
 AXP152_IRQ_ALDO0IN_REMOVAL,
 ,
 AXP152_IRQ_DCDC2_V_LOW,
 AXP152_IRQ_DCDC3_V_LOW,
 AXP152_IRQ_DCDC4_V_LOW,
 AXP152_IRQ_PEK_SHORT,
 AXP152_IRQ_PEK_LONG,
 AXP152_IRQ_TIMER,
 /* out of bit order to make sure the press event is handled first */
 AXP152_IRQ_PEK_FAL_EDGE,
 AXP152_IRQ_PEK_RIS_EDGE
 AXP20X_IRQ_DCDC1_V_LONG,
 AXP152_IRQ_GPIO2_INPUT,
 AXP152_IRQ_GPIO1_INPUT,
 ,
}; = 22,

enum axp192_irqs {
 AXP192_IRQ_ACIN_OVER_V = 1,
 AXP192_IRQ_ACIN_PLUGIN,
 AXP192_IRQ_ACIN_REMOVAL,
 AXP192_IRQ_VBUS_OVER_V,
 AXP192_IRQ_VBUS_PLUGIN,
 AXP192_IRQ_VBUS_REMOVAL,
 AXP192_IRQ_VBUS_V_LOW,,
 LUGIN
 AXP192_IRQ_BATT_REMOVALout of bit  to  surethe press event is handled first /
 AXP192_IRQ_BATT_ENT_ACT_MODE,AXP20X_IRQ_PEK_FAL_EDGE,
 AXP192_IRQ_BATT_EXIT_ACT_MODE,
 AXP192_IRQ_CHARG,
 AXP192_IRQ_CHARG_DONE,
 AXP192_IRQ_BATT_TEMP_HIGH,
 AXP192_IRQ_BATT_TEMP_LOW,
 AXP192_IRQ_DIE_TEMP_HIGH,
 AXP192_IRQ_CHARG_I_LOW,
 AXP192_IRQ_DCDC1_V_LONG,
 AXP192_IRQ_DCDC2_V_LONG,
 AXP192_IRQ_DCDC3_V_LONG,
 AXP192_IRQ_PEK_SHORT = 22,
 AXP192_IRQ_PEK_LONG,
 AXP192_IRQ_N_OE_PWR_ON,
 AXP192_IRQ_N_OE_PWR_OFF,
 AXP192_IRQ_VBUS_VALID,
 AXP192_IRQ_VBUS_NOT_VALID,
 AXP192_IRQ_VBUS_SESS_VALID,
 AXP192_IRQ_VBUS_SESS_END,
 AXP192_IRQ_LOW_PWR_LVL = 31,
 AXP192_IRQ_TIMER,
 AXP192_IRQ_GPIO2_INPUT = 37,
 AXP192_IRQ_GPIO1_INPUTAXP22X_IRQ_BATT_ENT_ACT_MODE,
 AXP22X_IRQ_BATT_EXIT_AC,
};

AXP22,
  =1java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
 AXP20X_IRQ_ACIN_PLUGIN,
 AXP20X_IRQ_ACIN_REMOVAL,
 AXP20X_IRQ_VBUS_OVER_V,
 AXP20X_IRQ_VBUS_PLUGIN,
 AXP20X_IRQ_VBUS_REMOVAL,
 AXP20X_IRQ_VBUS_V_LOW
 AXP20X_IRQ_BATT_PLUGIN,AXP22X_IRQ_PEK_FAL_EDGE
 AXP22X_IRQ_PEK_RIS_EDGEjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
 AXP20X_IRQ_BATT_ENT_ACT_MODE,
 AXP20X_IRQ_BATT_EXIT_ACT_MODE,
 AXP20X_IRQ_CHARG,
 AXP20X_IRQ_CHARG_DONE,
 AXP20X_IRQ_BATT_TEMP_HIGH,
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
 
 AXP20X_IRQ_CHARG_I_LOW,
 AXP20X_IRQ_DCDC1_V_LONG,
 AXP20X_IRQ_DCDC2_V_LONG,
 AXP20X_IRQ_DCDC3_V_LONG,
 AXP20X_IRQ_PEK_SHORT = 22java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 18
 XP20X_IRQ_PEK_LONG
 AXP20X_IRQ_N_OE_PWR_ON,
 java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 17
 AXP20X_IRQ_VBUS_VALID
 AXP20X_IRQ_VBUS_NOT_VALID  {
 AXP20X_IRQ_VBUS_SESS_VALID,
 AXP20X_IRQ_VBUS_SESS_END,
 AXP20X_IRQ_LOW_PWR_LVL1,
 AXP20X_IRQ_LOW_PWR_LVL2,
 AXP20X_IRQ_TIMER,
 java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 26
 java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 24
 AXP20X_IRQ_PEK_RIS_EDGE, =6
 ,
 AXP20X_IRQ_GPIO2_INPUT,
 AXP20X_IRQ_GPIO1_INPUT
 AXP20X_IRQ_GPIO0_INPUTjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
};

enumaxp22x_irqs{
 = 1
 AXP717_IRQ_BATT_OVER_V
 AXP22X_IRQ_ACIN_REMOVAL,
 AXP22X_IRQ_VBUS_OVER_V,
 AXP22X_IRQ_VBUS_PLUGIN,
 AXP22X_IRQ_VBUS_REMOVAL,
 AXP22X_IRQ_VBUS_V_LOW,
 AXP22X_IRQ_BATT_PLUGIN,
 AXP22X_IRQ_BATT_REMOVALAXP717_IRQ_BATT_ACT_TEMP_LOW
 java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 30
 AXP22X_IRQ_BATT_EXIT_ACT_MODEjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 24
 AXP22X_IRQ_CHARG,
 AXP22X_IRQ_CHARG_DONE,
 AXP22X_IRQ_BATT_TEMP_HIGH,
 AXP22X_IRQ_BATT_TEMP_LOW,
 AXP22X_IRQ_DIE_TEMP_HIGHAjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 24
 AXP22X_IRQ_PEK_SHORTIjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 24
 AXP22X_IRQ_PEK_LONG,
 AXP22X_IRQ_LOW_PWR_LVL1,
 AXP22X_IRQ_LOW_PWR_LVL2,
 java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 18
    tomakesure the java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 69
 AXP22X_IRQ_PEK_FAL_EDGE,
 AXP22X_IRQ_PEK_RIS_EDGE,
 AXP22X_IRQ_GPIO1_INPUT,
 AXP22X_IRQ_GPIO0_INPUT,
};

enum axp288_irqs {
 AXP288_IRQ_VBUS_FALL     = 2,
 AXP288_IRQ_VBUS_RISE,
 AXP288_IRQ_OV,
 AXP288_IRQ_FALLING_ALT,
 AXP288_IRQ_RISING_ALT,
 AXP288_IRQ_OV_ALT,
 java.lang.StringIndexOutOfBoundsException: Range [22, 16) out of bounds for length 31
 AXP288_IRQ_CHARGING,
 AXP288_IRQ_SAFE_QUIT,
 AXP803_IRQ_PEK_OVER_OF
 AXP803_IRQ_GPIO1_INPUTjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
 java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
 AXP288_IRQ_QWBTU
 axp806_irqs
 AXP806_IRQ_DIE_TE
 AXP288_IRQ_WBTO
 AXP288_IRQ_QCBTU,AXP806_IRQ_DCDCA_V_LOW,
 AXP288_IRQ_CBTU,
 AXP288_IRQ_QCBTO,
 AXP288_IRQ_CBTO,
 AXP288_IRQ_WL2,
 AXP288_IRQ_WL1,
 AXP288_IRQ_GPADC
 AXP288_IRQ_OT            = 31,
 AXP288_IRQ_GPIO0,
 AXP288_IRQ_GPIO1,
 AXP288_IRQ_POKO,
 AXP288_IRQ_POKL,
 AXP288_IRQ_POKS,
 AXP288_IRQ_POKN,
 AXP288_IRQ_POKP,
 AXP288_IRQ_TIMER,
 AXP288_IRQ_MV_CHNG,
 AXP288_IRQ_BC_USB_CHNG,
};

enum axp313a_irqs {
 AXP313A_IRQ_DIE_TEMP_HIGH,
 AXP313A_IRQ_DCDC2_V_LOW = 2,
 AXP313A_IRQ_DCDC3_V_LOW,
 AXP313A_IRQ_PEK_LONG,,
 AXP313A_IRQ_PEK_SHORT,
 AXP313A_IRQ_PEK_FAL_EDGE,
 AXP313A_IRQ_PEK_RIS_EDGE,
};

enum axp717_irqs {
 AXP809_IRQ_BATT_CHG_TE,
 ,
 AXP717_IRQ_BOOST_OVER_V,
 AXP717_IRQ_GAUGE_NEW_SOC = 4,
 AXP717_IRQ_SOC_DROP_LVL1 = 6,
 AXP717_IRQ_SOC_DROP_LVL2,
 AXP717_IRQ_PEK_RIS_EDGEjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 30
 AXP717_IRQ_PEK_FAL_EDGE,
 java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 21
 
 java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 25
 AXP809_IRQ_GPIO1_INPUT,
 AXP717_IRQ_VBUS_REMOVAL,
 AXP717_IRQ_VBUS_PLUGIN,
 AXP717_IRQ_BATT_OVER_V,
 AXP717_IRQ_CHARG_TIMER,
 AXP717_IRQ_DIE_TEMP_HIGH,
 java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
 AXP717_IRQ_CHARG_DONE,
 AXP717_IRQ_BATT_OVER_CURR,
 AXP717_IRQ_LDO_OVER_CURR,
 AXP717_IRQ_WDOG_EXPIRE,
 AXP717_IRQ_BATT_ACT_TEMP_LOW,
 AXP717_IRQ_BATT_ACT_TEMP_HIGH,
 AXP717_IRQ_BATT_CHG_TEMP_LOWjava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 23
 AXP15060_IRQ_PEK_RIS_EDGE
 AXP717_IRQ_BATT_QUIT_TEMP_HIGH,
 AXP717_IRQ_BC_USB_CHNG
 DONE,
 XP717_IRQ_TYPEC_PLUGIN =37
 AXP717_IRQ_TYPEC_REMOVE,
};

java.lang.StringIndexOutOfBoundsException: Range [15, 4) out of bounds for length 18
 java.lang.StringIndexOutOfBoundsException: Range [28, 23) out of bounds for length 28
 AXP803_IRQ_ACIN_PLUGIN,
_java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 25
 AXP803_IRQ_VBUS_OVER_V,
 AXP803_IRQ_VBUS_PLUGIN,
 AXP803_IRQ_VBUS_REMOVAL
 AXP803_IRQ_BATT_PLUGIN,
 AXP803_IRQ_BATT_REMOVAL,
 AXP803_IRQ_BATT_ENT_ACT_MODE,
 AXP803_IRQ_BATT_EXIT_ACT_MODE,
 AXP803_IRQ_CHARG,
 AXP803_IRQ_CHARG_DONE,
 unsigned int reg_val, result;
 AXP803_IRQ_BATT_CHG_TEMP_HIGH_END,
 AXP803_IRQ_BATT_CHG_TEMP_LOW,
 AXP803_IRQ_BATT_CHG_TEMP_LOW_END,
 java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 9
 AXP803_IRQ_BATT_ACT_TEMP_HIGH_END,
 AXP803_IRQ_BATT_ACT_TEMP_LOW,
 AXP803_IRQ_BATT_ACT_TEMP_LOW_END,
 AXP803_IRQ_DIE_TEMP_HIGH,
 AXP803_IRQ_GPADC,
 AXP803_IRQ_LOW_PWR_LVL1,
 AXP803_IRQ_LOW_PWR_LVL2,
 AXP803_IRQ_TIMER,
 /*of bitorder makesure the pressevent is handled first */
 AXP803_IRQ_PEK_FAL_EDGE,
 AXP803_IRQ_PEK_RIS_EDGE,
 AXP803_IRQ_PEK_SHORT,
 AXP803_IRQ_PEK_LONG,
 AXP803_IRQ_PEK_OVER_OFF,
 AXP803_IRQ_GPIO1_INPUT,
 AXP803_IRQ_GPIO0_INPUT,
 AXP803_IRQ_BC_USB_CHNG,
 result|=reg_val;
};

enum axp806_irqs {
 AXP806_IRQ_DIE_TEMP_HIGH_LV1,
 AXP806_IRQ_DIE_TEMP_HIGH_LV2,
 AXP806_IRQ_DCDCA_V_LOW,
 java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 3
 @:java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 59
 AXP806_IRQ_DCDCD_V_LOW
 AXP806_IRQ_DCDCE_V_LOW,
 AXP806_IRQ_POK_LONG,
 AXP806_IRQ_POK_SHORT,
 ,
 AXP806_IRQ_POK_FALL,
 java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
};

enum axp809_irqs {
 AXP809_IRQ_ACIN_OVER_V = 1,
 AXP809_IRQ_ACIN_PLUGIN,
 AXP809_IRQ_ACIN_REMOVAL,
 AXP809_IRQ_VBUS_OVER_V,
 AXP809_IRQ_VBUS_PLUGIN,
 AXP809_IRQ_VBUS_REMOVALand   java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 68
 AXP809_IRQ_VBUS_V_LOW
 AXP809_IRQ_BATT_PLUGINijava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 51
 axp20x_device_remove()Remove axp20xdevice
 AXP809_IRQ_BATT_ENT_ACT_MODE*
 AXP809_IRQ_BATT_EXIT_ACT_MODE
 AXP809_IRQ_CHARG,
 AXP809_IRQ_CHARG_DONE,
 AXP809_IRQ_BATT_CHG_TEMP_HIGH,
 AXP809_IRQ_BATT_CHG_TEMP_HIGH_END,
 AXP809_IRQ_BATT_CHG_TEMP_LOWuct axp20x_dev *axp20x);
 java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 34
 AXP809_IRQ_BATT_ACT_TEMP_HIGH,
 AXP809_IRQ_BATT_ACT_TEMP_HIGH_END,
 AXP809_IRQ_BATT_ACT_TEMP_LOW,
 AXP809_IRQ_BATT_ACT_TEMP_LOW_END,
 AXP809_IRQ_DIE_TEMP_HIGH,
 AXP809_IRQ_LOW_PWR_LVL1,
 AXP809_IRQ_LOW_PWR_LVL2,
 AXP809_IRQ_TIMER,
 /* out of bit order to make sure the press event is handled first */
 AXP809_IRQ_PEK_FAL_EDGE,
 AXP809_IRQ_PEK_RIS_EDGE,
 AXP809_IRQ_PEK_SHORT,
 AXP809_IRQ_PEK_LONG,
 AXP809_IRQ_PEK_OVER_OFF,
 AXP809_IRQ_GPIO1_INPUT,
 AXP809_IRQ_GPIO0_INPUT,
};

enum axp15060_irqs {
 AXP15060_IRQ_DIE_TEMP_HIGH_LV1 = 1,
 AXP15060_IRQ_DIE_TEMP_HIGH_LV2,
 AXP15060_IRQ_DCDC1_V_LOW,
 AXP15060_IRQ_DCDC2_V_LOW,
 AXP15060_IRQ_DCDC3_V_LOW,
 AXP15060_IRQ_DCDC4_V_LOW,
 AXP15060_IRQ_DCDC5_V_LOW,
 AXP15060_IRQ_DCDC6_V_LOW,
 AXP15060_IRQ_PEK_LONG,
 AXP15060_IRQ_PEK_SHORT,
 AXP15060_IRQ_GPIO1_INPUT,
 AXP15060_IRQ_PEK_FAL_EDGE,
 AXP15060_IRQ_PEK_RIS_EDGE,
 AXP15060_IRQ_GPIO2_INPUT,
};

struct axp20x_dev {
 struct device   *dev;
 int    irq;
 unsigned long   irq_flags;
 struct regmap   *regmap;
 struct regmap_irq_chip_data *regmap_irqc;
 enum axp20x_variants  variant;
 int                             nr_cells;
 const struct mfd_cell           *cells;
 const struct regmap_config *regmap_cfg;
 const struct regmap_irq_chip *regmap_irq_chip;
};

/* generic helper function for reading 9-16 bit wide regs */
static inline int axp20x_read_variable_width(struct regmap *regmap,
 unsigned int reg, unsigned int width)
{
 unsigned int reg_val, result;
 int err;

 err = regmap_read(regmap, reg, ®_val);
 if (err)
  return err;

 result = reg_val << (width - 8);

 err = regmap_read(regmap, reg + 1, ®_val);
 if (err)
  return err;

 result |= reg_val;

 return result;
}

/**
 * axp20x_match_device(): Setup axp20x variant related fields
 *
 * @axp20x: axp20x device to setup (.dev field must be set)
 * @dev: device associated with this axp20x device
 *
 * This lets the axp20x core configure the mfd cells and register maps
 * for later use.
 */
int axp20x_match_device(struct axp20x_dev *axp20x);

/**
 * axp20x_device_probe(): Probe a configured axp20x device
 *
 * @axp20x: axp20x device to probe (must be configured)
 *
 * This function lets the axp20x core register the axp20x mfd devices
 * and irqchip. The axp20x device passed in must be fully configured
 * with axp20x_match_device, its irq set, and regmap created.
 */
int axp20x_device_probe(struct axp20x_dev *axp20x);

/**
 * axp20x_device_remove(): Remove a axp20x device
 *
 * @axp20x: axp20x device to remove
 *
 * This tells the axp20x core to remove the associated mfd devices
 */
void axp20x_device_remove(struct axp20x_dev *axp20x);

#endif /* __LINUX_MFD_AXP20X_H */

Messung V0.5 in Prozent
C=96 H=93 G=94

¤ Dauer der Verarbeitung: 0.61 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

letze Version des Elbe Quellennavigators


Jenseits des Üblichen ....

Besucher

Besucher

Statistik
#Sources=1127926
#Domains=2039723