diff options
author | Lukasz Majewski <lukma@denx.de> | 2018-05-15 16:26:35 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2018-05-18 08:27:26 +0200 |
commit | b8a6d6777b83b5aaaf7cbe7f6cdc2a32270490d0 (patch) | |
tree | 89658bdf217c366e68830a2eea38e25e82bd44dc /include | |
parent | 9a84116b3139fcae7d4646b9d389b8982b2d43b7 (diff) |
pmic: Add support for setting transmission length in uclass private data
The struct uc_pmic_priv's trans_len field stores the number of types to
be transmitted per PMIC transfer.
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/power/pmic.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/power/pmic.h b/include/power/pmic.h index 2ca9365fc8..be9de6b4de 100644 --- a/include/power/pmic.h +++ b/include/power/pmic.h @@ -297,6 +297,15 @@ int pmic_reg_write(struct udevice *dev, uint reg, uint value); */ int pmic_clrsetbits(struct udevice *dev, uint reg, uint clr, uint set); +/* + * This structure holds the private data for PMIC uclass + * For now we store information about the number of bytes + * being sent at once to the device. + */ +struct uc_pmic_priv { + uint trans_len; +}; + #endif /* CONFIG_DM_PMIC */ #ifdef CONFIG_POWER |