]> git.baikalelectronics.ru Git - uboot.git/commit
pmic: Rewrite the pmic command to not only work with single byte transmission
authorLukasz Majewski <lukma@denx.de>
Tue, 15 May 2018 14:26:38 +0000 (16:26 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 18 May 2018 06:27:26 +0000 (08:27 +0200)
commit228371885d14cdc099ac389d31043c7460b49139
tree4728dccaec44190e277fa3e88d1eac3674381b6f
parent5a7443b94585ac34743db95a458b89d244cfe2a4
pmic: Rewrite the pmic command to not only work with single byte transmission

Up till now it was only possible to use 'pmic' command with a single byte
transmission.
The pmic_read|write functions has been replaced with ones, which don't need
the transmission length as a parameter.

Due to that it is possible now to read data from PMICs transmitting more
data than 1 byte at once (e.g. mc34708)

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/pmic.c