diff options
author | Conor Dooley <conor.dooley@microchip.com> | 2023-10-20 14:18:40 +0100 |
---|---|---|
committer | Conor Dooley <conor.dooley@microchip.com> | 2023-12-06 12:06:18 +0000 |
commit | 742aa6c563d29c367edbf0ef7236a7a853ed9be4 (patch) | |
tree | 27d34bd5c6ee9c581a6aa527386e1928acaa2a04 /include/soc | |
parent | 98d62e97c39f9b54143d504290481bed96b9bab2 (diff) | |
download | linux-742aa6c563d29c367edbf0ef7236a7a853ed9be4.tar.gz linux-742aa6c563d29c367edbf0ef7236a7a853ed9be4.tar.bz2 linux-742aa6c563d29c367edbf0ef7236a7a853ed9be4.zip |
soc: microchip: mpfs: enable access to the system controller's flash
The system controller has a flash that contains images used to reprogram
the FPGA using IAP (In-Application Programming).
Introduce a function that allows a driver with a reference to the system
controller to get one to a flash device attached to it.
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Diffstat (limited to 'include/soc')
-rw-r--r-- | include/soc/microchip/mpfs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/soc/microchip/mpfs.h b/include/soc/microchip/mpfs.h index f916dcde457f..09722f83b0ca 100644 --- a/include/soc/microchip/mpfs.h +++ b/include/soc/microchip/mpfs.h @@ -38,6 +38,8 @@ int mpfs_blocking_transaction(struct mpfs_sys_controller *mpfs_client, struct mp struct mpfs_sys_controller *mpfs_sys_controller_get(struct device *dev); +struct mtd_info *mpfs_sys_controller_get_flash(struct mpfs_sys_controller *mpfs_client); + #endif /* if IS_ENABLED(CONFIG_POLARFIRE_SOC_SYS_CTRL) */ #if IS_ENABLED(CONFIG_MCHP_CLK_MPFS) |