diff options
author | Dave Gerlach <d-gerlach@ti.com> | 2022-04-26 13:07:44 -0700 |
---|---|---|
committer | Nishanth Menon <nm@ti.com> | 2022-05-03 08:02:09 -0500 |
commit | ea082040fe071d2ba1f8f73792743d7ca9fb218e (patch) | |
tree | 9eb4483dbdb0aa0bbf113dd2f825f184ac9631b5 /drivers/firmware | |
parent | 1dcbae86ee669bdb0338954cd0136863f5c96c0a (diff) |
soc: ti: wkup_m3_ipc: Add support for i2c voltage scaling
Allow loading of a binary containing i2c scaling sequences to be
provided to the wkup_m3 firmware in order to properly scale voltage
rails on the PMIC during low power modes like DeepSleep0. Proper binary
format is determined by the FW in use.
Code expects firmware to have 0x0C57 present as the first two bytes
followed by one byte defining offset to sleep sequence followed by one
byte defining offset to wake sequence and then lastly both sequences.
Each sequence is a series of I2C transfers in the form:
u8 length | u8 chip address | u8 byte0/reg address | u8 byte1 | u8 byteN
..
The length indicates the number of bytes to transfer, including the
register address. The length of each transfer is limited by the I2C
buffer size of 32 bytes.
Based on previous work by Russ Dill.
[dfustini: replace FW_ACTION_HOTPLUG with FW_ACTION_UEVENT]
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Keerthy <j-keerthy@ti.com>
[dfustini: add NULL argument to rproc_da_to_va() call]
Signed-off-by: Drew Fustini <dfustini@baylibre.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Link: https://lore.kernel.org/r/20220426200741.712842-3-dfustini@baylibre.com
Diffstat (limited to 'drivers/firmware')
0 files changed, 0 insertions, 0 deletions