Skip to content
Unverified Commit 86fc59ef authored by Colin Foster's avatar Colin Foster Committed by Mark Brown
Browse files

regmap: add configurable downshift for addresses



Add an additional reg_downshift to be applied to register addresses before
any register accesses. An example of a device that uses this is a VSC7514
chip, which require each register address to be downshifted by two if the
access is performed over a SPI bus.

Signed-off-by: default avatarColin Foster <colin.foster@in-advantage.com>
Link: https://lore.kernel.org/r/20220313224524.399947-2-colin.foster@in-advantage.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2d232978
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment