PDK API Guide for J721E
pmic_core.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (c) 2020 Texas Instruments Incorporated - http://www.ti.com
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the
14  * distribution.
15  *
16  * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  *
32  *****************************************************************************/
33 
52 #ifndef PMIC_CORE_H_
53 #define PMIC_CORE_H_
54 
55 /* ========================================================================== */
56 /* Include Files */
57 /* ========================================================================== */
58 #include <pmic_types.h>
61 
62 #ifdef __cplusplus
63 extern "C" {
64 #endif
65 
66 /* ========================================================================== */
67 /* Macros & Typedefs */
68 /* ========================================================================== */
74 #define DRV_INIT_SUCCESS (0xABCD0000U)
75 
77 #define PMIC_SILICON_REV_ID_PG_2_0 (0x08U)
78 
80 #define PMIC_SILICON_REV_ID_PG_1_0 (0x0U)
81 
90 #define PMIC_CFG_RECOV_CNT_THR_VAL_VALID (0U)
91 
92 #define PMIC_CFG_RECOV_CNT_CLR_CNT_VALID (1U)
93 /* @} */
94 
104 #define PMIC_CFG_RECOV_CNT_THR_VAL_VALID_SHIFT \
105  (1U << PMIC_CFG_RECOV_CNT_THR_VAL_VALID)
106 #define PMIC_CFG_RECOV_CNT_CLR_CNT_VALID_SHIFT \
107  (1U << PMIC_CFG_RECOV_CNT_CLR_CNT_VALID)
108 /* @} */
109 
116 #define PMIC_SCRATCH_PAD_REG_1 (0x0U)
117 #define PMIC_SCRATCH_PAD_REG_2 (0x1U)
118 #define PMIC_SCRATCH_PAD_REG_3 (0x2U)
119 #define PMIC_SCRATCH_PAD_REG_4 (0x3U)
120 /* @} */
121 
128 #define PMIC_USER_SPARE_REG_1 (0x0U)
129 #define PMIC_USER_SPARE_REG_2 (0x1U)
130 #define PMIC_USER_SPARE_REG_3 (0x2U)
131 #define PMIC_USER_SPARE_REG_4 (0x3U)
132 /* @} */
133 
140 #define PMIC_USER_SPARE_REG_VAL_0 (0x0U)
141 #define PMIC_USER_SPARE_REG_VAL_1 (0x1U)
142 /* @} */
143 
156 #define PMIC_CFG_BB_EOC_INDICATION_STAT_VALID (0U)
157 
158 #define PMIC_CFG_REGISTER_LOCK_STAT_VALID (1U)
159 
160 #define PMIC_CFG_EXT_CLK_VALIDITY_STAT_VALID (2U)
161 
162 #define PMIC_CFG_STARTUP_PIN_STAT_VALID (3U)
163 
164 #define PMIC_CFG_EN_DRV_PIN_STAT_VALID (4U)
165 
166 #define PMIC_CFG_NRSTOUTSOC_PIN_STAT_VALID (5U)
167 
168 #define PMIC_CFG_NRSTOUT_PIN_STAT_VALID (6U)
169 
170 #define PMIC_CFG_NINT_PIN_STAT_VALID (7U)
171 
172 #define PMIC_CFG_SPMI_LPM_STAT_VALID (8U)
173 
175 #define PMIC_CFG_FORCE_ENABLE_DRV_LOW_STAT_VALID (9U)
176 /* @} */
177 
187 #define PMIC_CFG_BB_EOC_INDICATION_STAT_VALID_SHIFT \
188  (1U << PMIC_CFG_BB_EOC_INDICATION_STAT_VALID)
189 #define PMIC_CFG_REGISTER_LOCK_STAT_VALID_SHIFT \
190  (1U << PMIC_CFG_REGISTER_LOCK_STAT_VALID)
191 #define PMIC_CFG_EXT_CLK_VALIDITY_STAT_VALID_SHIFT \
192  (1U << PMIC_CFG_EXT_CLK_VALIDITY_STAT_VALID)
193 #define PMIC_CFG_STARTUP_PIN_STAT_VALID_SHIFT \
194  (1U << PMIC_CFG_STARTUP_PIN_STAT_VALID)
195 #define PMIC_CFG_EN_DRV_PIN_STAT_VALID_SHIFT \
196  (1U << PMIC_CFG_EN_DRV_PIN_STAT_VALID)
197 #define PMIC_CFG_NRSTOUTSOC_PIN_STAT_VALID_SHIFT \
198  (1U << PMIC_CFG_NRSTOUTSOC_PIN_STAT_VALID)
199 #define PMIC_CFG_NRSTOUT_PIN_STAT_VALID_SHIFT \
200  (1U << PMIC_CFG_NRSTOUT_PIN_STAT_VALID)
201 #define PMIC_CFG_NINT_PIN_STAT_VALID_SHIFT \
202  (1U << PMIC_CFG_NINT_PIN_STAT_VALID)
203 #define PMIC_CFG_SPMI_LPM_STAT_VALID_SHIFT \
204  (1U << PMIC_CFG_SPMI_LPM_STAT_VALID)
205 #define PMIC_CFG_FORCE_ENABLE_DRV_LOW_STAT_VALID_SHIFT \
206  (1U << PMIC_CFG_FORCE_ENABLE_DRV_LOW_STAT_VALID)
207 /* @} */
208 
216 #define PMIC_PIN_SIGNAL_LEVEL_LOW (0U)
217 #define PMIC_PIN_SIGNAL_LEVEL_HIGH (1U)
218 /* @} */
219 
226 #define PMIC_PIN_TYPE_EN_DRV (0U)
227 #define PMIC_PIN_TYPE_NRSTOUT_SOC (1U)
228 #define PMIC_PIN_TYPE_NRSTOUT (2U)
229 /* @} */
230 
237 #define PMIC_ENABLE_DRV_I2C_SPI_CONFIG_ENABLE (0U)
238 #define PMIC_ENABLE_DRV_I2C_SPI_CONFIG_DISABLE (1U)
239 /* @} */
240 
248 #define PMIC_REGISTER_UNLOCK (0x9BU)
249 
251 #define PMIC_REGISTER_LOCK (0x10U)
252 /* @} */
253 
260 #define PMIC_REGISTER_STATUS_UNLOCK (0x0U)
261 #define PMIC_REGISTER_STATUS_LOCK (0x1U)
262 /* @} */
263 
271 #define PMIC_SPREAD_SPECTRUM_CFG_DISABLE 0U
272 
273 #define PMIC_SPREAD_SPECTRUM_CFG_ENABLE 1U
274 
275 /* @} */
276 
284 #define PMIC_SPREAD_SPECTRUM_MODULATION_DEPTH_NONE (0U)
285 
286 #define PMIC_SPREAD_SPECTRUM_MODULATION_DEPTH_6_3_PERCENT (1U)
287 
288 #define PMIC_SPREAD_SPECTRUM_MODULATION_DEPTH_8_4_PERCENT (2U)
289 /* @} */
290 
298 #define PMIC_SPMI_LPM_MODE_CTRL_CFG_DISABLED (0U)
299 
300 #define PMIC_SPMI_LPM_MODE_CTRL_CFG_ENABLED (1U)
301 /* @} */
302 
310 #define PMIC_INTERNAL_CLK_MONITORING_CFG_DISABLE (0U)
311 
312 #define PMIC_INTERNAL_CLK_MONITORING_CFG_ENABLE (1U)
313 /* @} */
314 
322 #define PMIC_SYNCCLKOUT_DISABLE (0U)
323 
324 #define PMIC_SYNCCLKOUT_1_1_MHZ (1U)
325 
326 #define PMIC_SYNCCLKOUT_2_2_MHZ (2U)
327 
328 #define PMIC_SYNCCLKOUT_4_4_MHZ (3U)
329 /* @} */
330 
338 #define PMIC_INTERNAL_RC_OSC (0U)
339 
340 #define PMIC_AUTOMATIC_EXT_CLK (1U)
341 /* @} */
342 
349 #define PMIC_EXT_CLK_STATUS_VALID (0U)
350 #define PMIC_EXT_CLK_STATUS_INVALID (1U)
351 /* @} */
352 
360 #define PMIC_CRC_STATUS_DISABLED (0U)
361 
362 #define PMIC_CRC_STATUS_ENABLED (1U)
363 /* @} */
364 
377 #define PMIC_CFG_SPREAD_SPECTRUM_EN_VALID (0U)
378 
380 #define PMIC_CFG_ENABLE_DRV_VALID (1U)
381 
383 #define PMIC_CFG_REG_LOCK_VALID (2U)
384 
386 #define PMIC_CFG_SPREAD_SPECTRUM_DEPTH_VALID (3U)
387 
390 #define PMIC_CFG_EEPROM_DEFAULT_VALID (4U)
391 
394 #define PMIC_CFG_SKIP_EEPROM_LOAD_VALID (5U)
395 /* @} */
396 
406 #define PMIC_CFG_SPREAD_SPECTRUM_EN_VALID_SHIFT \
407  (1U << PMIC_CFG_SPREAD_SPECTRUM_EN_VALID)
408 #define PMIC_CFG_ENABLE_DRV_VALID_SHIFT \
409  (1U << PMIC_CFG_ENABLE_DRV_VALID)
410 #define PMIC_CFG_REG_LOCK_VALID_SHIFT \
411  (1U << PMIC_CFG_REG_LOCK_VALID)
412 #define PMIC_CFG_SPREAD_SPECTRUM_DEPTH_VALID_SHIFT \
413  (1U << PMIC_CFG_SPREAD_SPECTRUM_DEPTH_VALID)
414 #define PMIC_CFG_EEPROM_DEFAULT_VALID_SHIFT \
415  (1U << PMIC_CFG_EEPROM_DEFAULT_VALID)
416 #define PMIC_CFG_SKIP_EEPROM_LOAD_VALID_SHIFT \
417  (1U << PMIC_CFG_SKIP_EEPROM_LOAD_VALID)
418 /* @} */
419 
432 #define PMIC_CFG_AMUX_OUT_REF_OUT_EN_VALID (0U)
433 
435 #define PMIC_CFG_CLK_MON_EN_VALID (1U)
436 
437 #define PMIC_CFG_SYNC_CLK_OUT_FREQ_SEL_VALID (2U)
438 
439 #define PMIC_CFG_EXT_CLK_SEL_VALID (3U)
440 
442 #define PMIC_CFG_SYNC_CLK_IN_FREQ_VALID (4U)
443 
445 #define PMIC_CFG_NRSTOUT_SOC_VALID (5U)
446 
448 #define PMIC_CFG_NRSTOUT_VALID (6U)
449 /* @} */
450 
461 #define PMIC_CFG_AMUX_OUT_REF_OUT_EN_VALID_SHIFT \
462  (1U << PMIC_CFG_AMUX_OUT_REF_OUT_EN_VALID)
463 #define PMIC_CFG_CLK_MON_EN_VALID_SHIFT \
464  (1U << PMIC_CFG_CLK_MON_EN_VALID)
465 #define PMIC_CFG_SYNC_CLK_OUT_FREQ_SEL_VALID_SHIFT \
466  (1U << PMIC_CFG_SYNC_CLK_OUT_FREQ_SEL_VALID)
467 #define PMIC_CFG_EXT_CLK_SEL_VALID_SHIFT \
468  (1U << PMIC_CFG_EXT_CLK_SEL_VALID)
469 #define PMIC_CFG_SYNC_CLK_IN_FREQ_VALID_SHIFT \
470  (1U << PMIC_CFG_SYNC_CLK_IN_FREQ_VALID)
471 #define PMIC_CFG_NRSTOUT_SOC_VALID_SHIFT \
472  (1U << PMIC_CFG_NRSTOUT_SOC_VALID)
473 #define PMIC_CFG_NRSTOUT_VALID_SHIFT \
474  (1U << PMIC_CFG_NRSTOUT_VALID)
475 /* @} */
476 
489 #define PMIC_CFG_CHARGING_EN_VALID (0U)
490 
492 #define PMIC_CFG_END_OF_CHARGE_VOLTAGE_VALID (1U)
493 
495 #define PMIC_CFG_CHARGE_CURRENT_VALID (2U)
496 /* @} */
497 
508 #define PMIC_CFG_CHARGING_EN_VALID_SHIFT \
509  (1U << PMIC_CFG_CHARGING_EN_VALID)
510 #define PMIC_CFG_END_OF_CHARGE_VOLTAGE_VALID_SHIFT \
511  (1U << PMIC_CFG_END_OF_CHARGE_VOLTAGE_VALID)
512 #define PMIC_CFG_CHARGE_CURRENT_VALID_SHIFT \
513  (1U << PMIC_CFG_CHARGE_CURRENT_VALID)
514 /* @} */
515 
516 /*==========================================================================*/
517 /* Structures and Enums */
518 /*==========================================================================*/
536 typedef struct Pmic_RecovCntCfg_s
537 {
538  uint8_t validParams;
539  uint8_t thrVal;
540  bool clrCnt;
542 
609 typedef struct Pmic_CommonCtrlCfg_s
610 {
611  uint8_t validParams;
615  uint8_t enDrv;
616  uint8_t regLock;
619 
676 typedef struct Pmic_MiscCtrlCfg_s
677 {
678  uint8_t validParams;
680  bool clkMonEn;
682  uint8_t extClkSel;
683  uint8_t syncClkInFreq;
685  uint8_t nRstOutSignal;
687 
718 typedef struct Pmic_BatteryCtrlCfg_s
719 {
720  uint8_t validParams;
723  uint8_t chargeCurrent;
725 
786 typedef struct Pmic_CommonCtrlStat_s
787 {
788  uint32_t validParams;
792  uint8_t regLockStat;
793  uint8_t extClkValidity;
794  uint8_t startupPin;
795  uint8_t enDrvPin;
796  uint8_t nRstOutSocPin;
797  uint8_t nRstOutPin;
798  uint8_t nIntPin;
800 
812 typedef struct Pmic_DeviceInfo_s
813 {
814  uint8_t deviceID;
815  uint8_t nvmID;
816  uint8_t nvmRev;
817  uint8_t siliconRev;
818  uint8_t customNvmID;
820 
821 /*==========================================================================*/
822 /* Function Declarations */
823 /*==========================================================================*/
843 int32_t Pmic_setRecoveryCntCfg(Pmic_CoreHandle_t *pPmicCoreHandle,
844  const Pmic_RecovCntCfg_t recovCntCfg);
845 
865 int32_t Pmic_getRecoveryCntCfg(Pmic_CoreHandle_t *pPmicCoreHandle,
866  Pmic_RecovCntCfg_t *pRecovCntCfg);
867 
884 int32_t Pmic_getRecoveryCnt(Pmic_CoreHandle_t *pPmicCoreHandle,
885  uint8_t *pRecovCntVal);
886 
904 int32_t Pmic_setScratchPadValue(Pmic_CoreHandle_t *pPmicCoreHandle,
905  const uint8_t scratchPadRegNum,
906  const uint8_t data);
907 
926 int32_t Pmic_getScratchPadValue(Pmic_CoreHandle_t *pPmicCoreHandle,
927  const uint8_t scratchPadRegNum,
928  uint8_t *pData);
929 
949 int32_t Pmic_setUserSpareValue(Pmic_CoreHandle_t *pPmicCoreHandle,
950  const uint8_t userSpareRegNum,
951  const uint8_t data);
952 
971 int32_t Pmic_getUserSpareValue(Pmic_CoreHandle_t *pPmicCoreHandle,
972  const uint8_t userSpareRegNum,
973  uint8_t *pData);
974 
995 int32_t Pmic_setCommonCtrlConfig(Pmic_CoreHandle_t *pPmicCoreHandle,
996  const Pmic_CommonCtrlCfg_t commonCtrlCfg);
997 
1018 int32_t Pmic_getCommonCtrlConfig(Pmic_CoreHandle_t *pPmicCoreHandle,
1019  Pmic_CommonCtrlCfg_t *pCommonCtrlCfg);
1020 
1040 int32_t Pmic_setMiscCtrlConfig(Pmic_CoreHandle_t *pPmicCoreHandle,
1041  const Pmic_MiscCtrlCfg_t miscCtrlCfg);
1042 
1063 int32_t Pmic_getMiscCtrlConfig(Pmic_CoreHandle_t *pPmicCoreHandle,
1064  Pmic_MiscCtrlCfg_t *pMiscCtrlCfg);
1065 
1085 int32_t Pmic_setBatteryCtrlConfig(Pmic_CoreHandle_t *pPmicCoreHandle,
1086  const Pmic_BatteryCtrlCfg_t batteryCtrlCfg);
1087 
1110 int32_t Pmic_getBatteryCtrlConfig(Pmic_CoreHandle_t *pPmicCoreHandle,
1111  Pmic_BatteryCtrlCfg_t *pBatteryCtrlCfg);
1112 
1133 int32_t Pmic_getPinValue(Pmic_CoreHandle_t *pPmicCoreHandle,
1134  const uint8_t pinType,
1135  uint8_t *pPinValue);
1136 
1158 int32_t Pmic_getCommonCtrlStat(Pmic_CoreHandle_t *pPmicCoreHandle,
1159  Pmic_CommonCtrlStat_t *pCommonCtrlStat);
1160 
1183 int32_t Pmic_getI2CSpeed(Pmic_CoreHandle_t *pPmicCoreHandle,
1184  uint8_t *pI2C1Speed,
1185  uint8_t *pI2C2Speed);
1186 
1206 int32_t Pmic_enableCRC(Pmic_CoreHandle_t *pPmicCoreHandle);
1207 
1228 int32_t Pmic_getCrcStatus(Pmic_CoreHandle_t *pPmicCoreHandle,
1229  uint8_t *pI2c1SpiCrcStatus,
1230  uint8_t *pI2c2CrcStatus);
1231 
1252 int32_t Pmic_getDeviceInfo(Pmic_CoreHandle_t *pPmicCoreHandle,
1253  Pmic_DeviceInfo_t *pDeviceInfo);
1254 
1274 int32_t Pmic_setI2CSpeedCfg(Pmic_CoreHandle_t *pPmicCoreHandle);
1275 
1276 #ifdef __cplusplus
1277 }
1278 #endif /* __cplusplus */
1279 
1280 #endif /* PMIC_CORE_H_ */
1281 
1282 /* @} */
uint8_t syncClkOutFreqSel
Definition: pmic_core.h:681
PMIC Recovery Counter Configuration Note: validParams is input param for all Set and Get APIs....
Definition: pmic_core.h:536
uint8_t chargeCurrent
Definition: pmic_core.h:723
int32_t Pmic_setI2CSpeedCfg(Pmic_CoreHandle_t *pPmicCoreHandle)
API to set I2C1 or I2C2 Speed based on commMode.
int32_t Pmic_getCommonCtrlStat(Pmic_CoreHandle_t *pPmicCoreHandle, Pmic_CommonCtrlStat_t *pCommonCtrlStat)
API to get PMIC common control parameter status.
int32_t Pmic_getDeviceInfo(Pmic_CoreHandle_t *pPmicCoreHandle, Pmic_DeviceInfo_t *pDeviceInfo)
API to get PMIC Device Information.
The macro definitions for LP8764x HERA PMIC driver specific PMIC common configuration.
int32_t Pmic_enableCRC(Pmic_CoreHandle_t *pPmicCoreHandle)
API to Enable CRC.
int32_t Pmic_getCrcStatus(Pmic_CoreHandle_t *pPmicCoreHandle, uint8_t *pI2c1SpiCrcStatus, uint8_t *pI2c2CrcStatus)
API to get CRC Status.
uint8_t bbEndOfChargeIndication
Definition: pmic_core.h:791
uint8_t validParams
Definition: pmic_core.h:611
int32_t Pmic_getPinValue(Pmic_CoreHandle_t *pPmicCoreHandle, const uint8_t pinType, uint8_t *pPinValue)
API to get PMIC GPIO NRSTOUT_SOC/ NRSTOUT/ EN_DRV Pin.
PMIC Driver Common data types file.
bool clkMonEn
Definition: pmic_core.h:680
int32_t Pmic_setScratchPadValue(Pmic_CoreHandle_t *pPmicCoreHandle, const uint8_t scratchPadRegNum, const uint8_t data)
API to set/write value in/to scratchpad register.
uint8_t regLock
Definition: pmic_core.h:616
int32_t Pmic_setMiscCtrlConfig(Pmic_CoreHandle_t *pPmicCoreHandle, const Pmic_MiscCtrlCfg_t miscCtrlCfg)
API to set PMIC Miscellaneous control parameter configuration.
uint8_t regLockStat
Definition: pmic_core.h:792
int32_t Pmic_getRecoveryCntCfg(Pmic_CoreHandle_t *pPmicCoreHandle, Pmic_RecovCntCfg_t *pRecovCntCfg)
API to Get Recovery Counter Configuration.
uint8_t nIntPin
Definition: pmic_core.h:798
uint8_t syncClkInFreq
Definition: pmic_core.h:683
uint8_t validParams
Definition: pmic_core.h:678
int32_t Pmic_getCommonCtrlConfig(Pmic_CoreHandle_t *pPmicCoreHandle, Pmic_CommonCtrlCfg_t *pCommonCtrlCfg)
API to get PMIC common control parameter configuration.
int32_t Pmic_setRecoveryCntCfg(Pmic_CoreHandle_t *pPmicCoreHandle, const Pmic_RecovCntCfg_t recovCntCfg)
API to Set Recovery Counter Configuration.
uint8_t enDrvPin
Definition: pmic_core.h:795
uint8_t nRstOutPin
Definition: pmic_core.h:797
uint8_t extClkSel
Definition: pmic_core.h:682
PMIC Backup Battery control param Configuration Note: validParams is input param for all Set and Get ...
Definition: pmic_core.h:718
uint8_t nvmID
Definition: pmic_core.h:815
uint8_t nRstOutSocSignal
Definition: pmic_core.h:684
bool sreadSpectrumEn
Definition: pmic_core.h:612
uint8_t endOfChargeVoltage
Definition: pmic_core.h:722
bool clrCnt
Definition: pmic_core.h:540
bool spmiLpmStat
Definition: pmic_core.h:789
uint8_t spreadSpectrumDepth
Definition: pmic_core.h:617
int32_t Pmic_getI2CSpeed(Pmic_CoreHandle_t *pPmicCoreHandle, uint8_t *pI2C1Speed, uint8_t *pI2C2Speed)
API to get configured value for I2C1 or I2C2 Speed based on commMode.
bool chargingEn
Definition: pmic_core.h:721
PMIC Interface Handle. Contains various PMIC driver instance specific information....
Definition: pmic_types.h:148
uint8_t eepromDefaultLoad
Definition: pmic_core.h:614
uint32_t data[13]
Definition: csl_udmap_tr.h:625
int32_t Pmic_setBatteryCtrlConfig(Pmic_CoreHandle_t *pPmicCoreHandle, const Pmic_BatteryCtrlCfg_t batteryCtrlCfg)
API to set PMIC Battery Backup control parameter configuration.
uint8_t siliconRev
Definition: pmic_core.h:817
uint8_t validParams
Definition: pmic_core.h:720
PMIC common control param configuration Note: validParams is input param for all Set and Get APIs....
Definition: pmic_core.h:609
bool skipEepromDefaultLoadEn
Definition: pmic_core.h:613
bool amuxOutRefOutEn
Definition: pmic_core.h:679
uint8_t nvmRev
Definition: pmic_core.h:816
uint8_t extClkValidity
Definition: pmic_core.h:793
uint8_t deviceID
Definition: pmic_core.h:814
int32_t Pmic_getUserSpareValue(Pmic_CoreHandle_t *pPmicCoreHandle, const uint8_t userSpareRegNum, uint8_t *pData)
API to get/read data from User Spare register.
int32_t Pmic_getScratchPadValue(Pmic_CoreHandle_t *pPmicCoreHandle, const uint8_t scratchPadRegNum, uint8_t *pData)
API to get/read data from scratchpad register.
uint8_t nRstOutSignal
Definition: pmic_core.h:685
PMIC Device Information.
Definition: pmic_core.h:812
int32_t Pmic_getMiscCtrlConfig(Pmic_CoreHandle_t *pPmicCoreHandle, Pmic_MiscCtrlCfg_t *pMiscCtrlCfg)
API to get PMIC Miscellaneous control parameter configuration.
PMIC common control param status Note: validParams is input param for all Get APIs....
Definition: pmic_core.h:786
uint8_t validParams
Definition: pmic_core.h:538
int32_t Pmic_getRecoveryCnt(Pmic_CoreHandle_t *pPmicCoreHandle, uint8_t *pRecovCntVal)
API to Read Recovery Count Value.
uint8_t startupPin
Definition: pmic_core.h:794
int32_t Pmic_getBatteryCtrlConfig(Pmic_CoreHandle_t *pPmicCoreHandle, Pmic_BatteryCtrlCfg_t *pBatteryCtrlCfg)
API to get PMIC Battery Backup control parameter configuration. Note: validParams is input param for ...
int32_t Pmic_setCommonCtrlConfig(Pmic_CoreHandle_t *pPmicCoreHandle, const Pmic_CommonCtrlCfg_t commonCtrlCfg)
API to set PMIC common control parameter configuration.
PMIC Miscellaneous control param Configuration Note: validParams is input param for all Set and Get A...
Definition: pmic_core.h:676
uint32_t validParams
Definition: pmic_core.h:788
The macro definitions for TPS6594x Leo PMIC driver specific PMIC common configuration.
uint8_t nRstOutSocPin
Definition: pmic_core.h:796
uint8_t customNvmID
Definition: pmic_core.h:818
uint8_t enDrv
Definition: pmic_core.h:615
int32_t Pmic_setUserSpareValue(Pmic_CoreHandle_t *pPmicCoreHandle, const uint8_t userSpareRegNum, const uint8_t data)
API to set/write value in/to User Spare register.
uint8_t thrVal
Definition: pmic_core.h:539
uint8_t forceEnDrvLowStat
Definition: pmic_core.h:790