diff options
author | Matthew Gerlach <matthew.gerlach@linux.intel.com> | 2021-03-10 18:55:47 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2021-04-14 18:03:41 +0300 |
commit | 8169f74ca6f318f4187536050d2f5408fce9c264 (patch) | |
tree | 2dd05287ce271b5cb457690362ec60671292c918 /include/linux/mfd | |
parent | 5893f4d1f43036664010e3ae1d3f7a98b2165a5d (diff) | |
download | linux-8169f74ca6f318f4187536050d2f5408fce9c264.tar.xz |
mfd: intel-m10-bmc: Add access table configuration to the regmap
This patch adds access tables to the MAX 10 BMC regmap. This prevents
the host from accessing the unwanted I/O space. It also filters out the
invalid outputs when reading the regmap debugfs interface.
Signed-off-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
Signed-off-by: Xu Yilun <yilun.xu@intel.com>
Reviewed-by: Tom Rix <trix@redhat.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/intel-m10-bmc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/mfd/intel-m10-bmc.h b/include/linux/mfd/intel-m10-bmc.h index 4f1071febb9e..c4eb38c13eda 100644 --- a/include/linux/mfd/intel-m10-bmc.h +++ b/include/linux/mfd/intel-m10-bmc.h @@ -11,7 +11,10 @@ #define M10BMC_LEGACY_BUILD_VER 0x300468 #define M10BMC_SYS_BASE 0x300800 -#define M10BMC_MEM_END 0x1fffffff +#define M10BMC_SYS_END 0x300fff +#define M10BMC_FLASH_BASE 0x10000000 +#define M10BMC_FLASH_END 0x1fffffff +#define M10BMC_MEM_END M10BMC_FLASH_END /* Register offset of system registers */ #define NIOS2_FW_VERSION 0x0 |