/* hmatrix_sfr_set_bits - clear bits in a slave's Special Function Register @slave_id: operate on the SFR belonging to this slave @mask: mask of bits to be cleared in the SFR  */
void hmatrix_sfr_clear_bits(unsigned int slave_id, u32 mask)
/* hmatrix_sfr_set_bits - clear bits in a slave's Special Function Register @slave_id: operate on the SFR belonging to this slave @mask: mask of bits to be cleared in the SFR  */
void hmatrix_sfr_clear_bits(unsigned int slave_id, u32 mask)
{
	u32 value;
	clk_enable(&at32_hmatrix_clk);
	value = __hmatrix_read_reg(HMATRIX_SFR(slave_id));
	value &= ~mask;
	__hmatrix_write_reg(HMATRIX_SFR(slave_id), value);
	__hmatrix_read_reg(HMATRIX_SFR(slave_id));
	clk_disable(&at32_hmatrix_clk);
}