Commit 0074f3f
regmap: allow a defined reg_base to be added to every address
There's an inconsistency that arises when a register set can be accessed
internally via MMIO, or externally via SPI. The VSC7514 chip allows both
modes of operation. When internally accessed, the system utilizes __iomem,
devm_ioremap_resource, and devm_regmap_init_mmio.
For SPI it isn't possible to utilize memory-mapped IO. To properly operate,
the resource base must be added to the register before every operation.
Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Link: https://lore.kernel.org/r/20220313224524.399947-3-colin.foster@in-advantage.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent 86fc59e commit 0074f3f
3 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
821 | 821 | | |
822 | 822 | | |
823 | 823 | | |
| 824 | + | |
| 825 | + | |
824 | 826 | | |
825 | 827 | | |
826 | 828 | | |
| |||
1736 | 1738 | | |
1737 | 1739 | | |
1738 | 1740 | | |
| 1741 | + | |
1739 | 1742 | | |
1740 | 1743 | | |
1741 | 1744 | | |
| |||
1907 | 1910 | | |
1908 | 1911 | | |
1909 | 1912 | | |
| 1913 | + | |
1910 | 1914 | | |
1911 | 1915 | | |
1912 | 1916 | | |
| |||
2349 | 2353 | | |
2350 | 2354 | | |
2351 | 2355 | | |
| 2356 | + | |
2352 | 2357 | | |
2353 | 2358 | | |
2354 | 2359 | | |
| |||
2677 | 2682 | | |
2678 | 2683 | | |
2679 | 2684 | | |
| 2685 | + | |
2680 | 2686 | | |
2681 | 2687 | | |
2682 | 2688 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| 242 | + | |
| 243 | + | |
242 | 244 | | |
243 | 245 | | |
244 | 246 | | |
| |||
363 | 365 | | |
364 | 366 | | |
365 | 367 | | |
| 368 | + | |
366 | 369 | | |
367 | 370 | | |
368 | 371 | | |
| |||
0 commit comments