The PMIC driver provides API to control SPI based PMIC present in the board. It supports configuration of various features/modules in the PMIC. MCSPI controller is used to read/write to the PMIC registers. Refer to the corresponding PMIC datasheet for more details.
Features Supported
- Support enable/disable watchdog
- Watchdog in Trigger and Q&A mode with interrupt/reset support upon failure
- GPIO configuration
- Thermal monitoring
- Voltage monitoring
- IRQ
- ESM
SysConfig Features
NA
Features NOT Supported
Important Usage Guidelines
- Power cycle the board to restore the PMIC register configurations.
Example Usage
Include the below file to access the APIs
Instance Open Blackbird PMIC Example
PMIC_Params gPmicParams[CONFIG_PMIC_NUM_INSTANCES] =
{
{
.deviceType = PMIC_DEV_BB_TPS65386X,
.commMode = PMIC_INTF_SPI,
.instType = PMIC_MAIN_INST,
.instance = CONFIG_MCSPI0,
},
};
Instance Close Example
API
APIs for I2C/MCSPI based PMIC driver