mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
Add a helper function to write out the SDCA blind initialization writes. Acked-by: Vinod Koul <vkoul@kernel.org> Tested-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Maciej Strozek <mstrozek@opensource.cirrus.com> Reviewed-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Tested-by: Richard Fitzgerald <rf@opensource.cirrus.com> Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://patch.msgid.link/20251120153023.2105663-11-ckeepax@opensource.cirrus.com Reviewed-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Mark Brown <broonie@kernel.org>
34 lines
1.3 KiB
C
34 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* The MIPI SDCA specification is available for public downloads at
|
|
* https://www.mipi.org/mipi-sdca-v1-0-download
|
|
*
|
|
* Copyright (C) 2025 Cirrus Logic, Inc. and
|
|
* Cirrus Logic International Semiconductor Ltd.
|
|
*/
|
|
|
|
#ifndef __SDCA_REGMAP_H__
|
|
#define __SDCA_REGMAP_H__
|
|
|
|
struct device;
|
|
struct sdca_function_data;
|
|
struct regmap;
|
|
struct reg_default;
|
|
|
|
bool sdca_regmap_readable(struct sdca_function_data *function, unsigned int reg);
|
|
bool sdca_regmap_writeable(struct sdca_function_data *function, unsigned int reg);
|
|
bool sdca_regmap_volatile(struct sdca_function_data *function, unsigned int reg);
|
|
bool sdca_regmap_deferrable(struct sdca_function_data *function, unsigned int reg);
|
|
int sdca_regmap_mbq_size(struct sdca_function_data *function, unsigned int reg);
|
|
|
|
int sdca_regmap_count_constants(struct device *dev, struct sdca_function_data *function);
|
|
int sdca_regmap_populate_constants(struct device *dev, struct sdca_function_data *function,
|
|
struct reg_default *consts);
|
|
|
|
int sdca_regmap_write_defaults(struct device *dev, struct regmap *regmap,
|
|
struct sdca_function_data *function);
|
|
int sdca_regmap_write_init(struct device *dev, struct regmap *regmap,
|
|
struct sdca_function_data *function);
|
|
|
|
#endif // __SDCA_REGMAP_H__
|