diff options
author | Conor Dooley <conor.dooley@microchip.com> | 2022-09-09 14:31:13 +0200 |
---|---|---|
committer | Claudiu Beznea <claudiu.beznea@microchip.com> | 2022-09-14 09:55:17 +0200 |
commit | b56bae2dd6fda6baf3bb74af3812676eebdd52f2 (patch) | |
tree | 5114cb248a7eac901658f79afd185edb7287e696 /include/soc | |
parent | dt-bindings: clk: microchip: mpfs: add reset controller support (diff) | |
download | linux-b56bae2dd6fda6baf3bb74af3812676eebdd52f2.tar.xz linux-b56bae2dd6fda6baf3bb74af3812676eebdd52f2.zip |
clk: microchip: mpfs: add reset controller
Add a reset controller to PolarFire SoC's clock driver. This reset
controller is registered as an aux device and read/write functions
exported to the drivers namespace so that the reset controller can
access the peripheral device reset register.
Reviewed-by: Daire McNamara <daire.mcnamara@microchip.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20220909123123.2699583-5-conor.dooley@microchip.com
Diffstat (limited to 'include/soc')
-rw-r--r-- | include/soc/microchip/mpfs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/soc/microchip/mpfs.h b/include/soc/microchip/mpfs.h index 6466515262bd..f916dcde457f 100644 --- a/include/soc/microchip/mpfs.h +++ b/include/soc/microchip/mpfs.h @@ -40,4 +40,12 @@ struct mpfs_sys_controller *mpfs_sys_controller_get(struct device *dev); #endif /* if IS_ENABLED(CONFIG_POLARFIRE_SOC_SYS_CTRL) */ +#if IS_ENABLED(CONFIG_MCHP_CLK_MPFS) + +u32 mpfs_reset_read(struct device *dev); + +void mpfs_reset_write(struct device *dev, u32 val); + +#endif /* if IS_ENABLED(CONFIG_MCHP_CLK_MPFS) */ + #endif /* __SOC_MPFS_H__ */ |