Commit 86fc59e
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: Colin Foster <colin.foster@in-advantage.com>
Link: https://lore.kernel.org/r/20220313224524.399947-2-colin.foster@in-advantage.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent 2d23297 commit 86fc59e
3 files changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
823 | 823 | | |
824 | 824 | | |
825 | 825 | | |
| 826 | + | |
826 | 827 | | |
827 | 828 | | |
828 | 829 | | |
| |||
1735 | 1736 | | |
1736 | 1737 | | |
1737 | 1738 | | |
| 1739 | + | |
1738 | 1740 | | |
1739 | 1741 | | |
1740 | 1742 | | |
| |||
1905 | 1907 | | |
1906 | 1908 | | |
1907 | 1909 | | |
| 1910 | + | |
1908 | 1911 | | |
1909 | 1912 | | |
1910 | 1913 | | |
| |||
2346 | 2349 | | |
2347 | 2350 | | |
2348 | 2351 | | |
| 2352 | + | |
2349 | 2353 | | |
2350 | 2354 | | |
2351 | 2355 | | |
| |||
2673 | 2677 | | |
2674 | 2678 | | |
2675 | 2679 | | |
| 2680 | + | |
2676 | 2681 | | |
2677 | 2682 | | |
2678 | 2683 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
240 | 242 | | |
241 | 243 | | |
242 | 244 | | |
| |||
360 | 362 | | |
361 | 363 | | |
362 | 364 | | |
| 365 | + | |
363 | 366 | | |
364 | 367 | | |
365 | 368 | | |
| |||
0 commit comments