Skip to content

REL.PMIC.LP8772X.00.09.00

Pre-release
Pre-release
Compare
Choose a tag to compare
@LeonardMH LeonardMH released this 27 Jun 22:06
· 1 commit to master since this release

v0.9.0 PMIC Low-Level Driver release for Coach/LP8772x.


This release addresses the following issues.

PMICDRV-176: Driver init is blocked due to expecting wrong comms type

The driver device configuration init function incorrectly asserted that the user is configuring the handle for SPI, when it should be asserting that the configuration is for I2C_SINGLE mode. This part does not support SPI or dual I2C.

PMICDRV-177: I2C slave address not set in driver handle

When initializing the PMIC driver handle the slaveAddr property is expected to be provided by the config, but the init function was never assigning this value to the handle, so it could not be used for the I2C comms implementation.

PMICDRV-178: Allow crcEnable in driver init to control comms CRC

In the previous implementation the crcEnable field passed to Pmic_init() was only used to indicate to the driver whether CRC should be calculated when performing I/O, but had no effect on whether CRC was enabled in the HW. It was only used to match the configuration of the HW.

In this implementation, this bit now controls whether comms CRC is enabled or not, allowing users to dynamically control CRC enablement. Additionally, 3 new APIs are added to allow users to control CRC outside of the context of driver initialization, these functions are:

  • Pmic_ioGetCrcEnableState(Pmic_CoreHandle_t *, bool *)
  • Pmic_ioCrcEnableControl(Pmic_CoreHandle_t *, bool)
  • Pmic_ioCrcEnable(Pmic_CoreHandle_t *)
  • Pmic_ioCrcDisable(Pmic_CoreHandle_t *)

PMICDRV-179: Add ability to control CONFIG_CRC

Add support for controlling the CONFIG_CRC register protection mechanism. A new property (configCrcEnable) is added to the Pmic_CoreCfg_t and Pmic_CoreHandle_t which controls this functionality. Additionally, new APIs are added to allow users to control this feature outside of initialization contexts:

  • Pmic_configCrcEnable(Pmic_CoreHandle_t *, bool)
  • Pmic_configCrcDisable(Pmic_CoreHandle_t *)

Full Changelog: REL.PMIC.LP8772X.00.08.00...REL.PMIC.LP8772X.00.09.00