diff options
| author | Mark Brown <broonie@kernel.org> | 2022-08-15 20:42:13 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2022-08-15 20:42:13 +0300 |
| commit | 77672e0387f90153e3c7ee89456d16dcacfef6d2 (patch) | |
| tree | 795c0255f7087a53ba6b6a2ef03b63f6a5e0c591 /include/linux | |
| parent | 060004431df4958a326d6a45107b2fe3406d10f2 (diff) | |
| parent | 7e7ba58c94127efa97c249e38cc2d1c0ed78b58f (diff) | |
| download | linux-77672e0387f90153e3c7ee89456d16dcacfef6d2.tar.xz | |
regmap: mmio: Extending to support IO ports
Merge series from Andy Shevchenko <andriy.shevchenko@linux.intel.com>:
Currently regmap MMIO doesn't support IO ports, while being inconsistent
in used IO accessors. Fix the latter and extend framework with the
former.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/regmap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 7cf2157134ac..8cccc247cd37 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -311,6 +311,8 @@ typedef void (*regmap_unlock)(void *); * This field is a duplicate of a similar file in * 'struct regmap_bus' and serves exact same purpose. * Use it only for "no-bus" cases. + * @io_port: Support IO port accessors. Makes sense only when MMIO vs. IO port + * access can be distinguished. * @max_register: Optional, specifies the maximum valid register address. * @wr_table: Optional, points to a struct regmap_access_table specifying * valid ranges for write access. @@ -399,6 +401,7 @@ struct regmap_config { size_t max_raw_write; bool fast_io; + bool io_port; unsigned int max_register; const struct regmap_access_table *wr_table; |
