mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
mfd: intel-m10-bmc: Create m10bmc_sys_update_bits()
Wrap regmap_update_bits() with m10bmc_sys_update_bits() in order to be able to add additional checks into it. Co-developed-by: Russ Weight <russell.h.weight@intel.com> Signed-off-by: Russ Weight <russell.h.weight@intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Reviewed-by: Xu Yilun <yilun.xu@intel.com> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20230417092653.16487-3-ilpo.jarvinen@linux.intel.com
This commit is contained in:
@@ -251,6 +251,7 @@ struct intel_m10bmc {
|
||||
*
|
||||
* m10bmc_raw_read - read m10bmc register per addr
|
||||
* m10bmc_sys_read - read m10bmc system register per offset
|
||||
* m10bmc_sys_update_bits - update m10bmc system register per offset
|
||||
*/
|
||||
static inline int
|
||||
m10bmc_raw_read(struct intel_m10bmc *m10bmc, unsigned int addr,
|
||||
@@ -282,6 +283,9 @@ static inline int m10bmc_sys_read(struct intel_m10bmc *m10bmc, unsigned int offs
|
||||
return m10bmc_raw_read(m10bmc, csr_map->base + offset, val);
|
||||
}
|
||||
|
||||
int m10bmc_sys_update_bits(struct intel_m10bmc *m10bmc, unsigned int offset,
|
||||
unsigned int msk, unsigned int val);
|
||||
|
||||
/*
|
||||
* MAX10 BMC Core support
|
||||
*/
|
||||
|
Reference in New Issue
Block a user