diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2011-11-28 08:44:20 (GMT) |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-29 12:01:23 (GMT) |
commit | 38fd54ee38624a52c28d65fadfd452c9c49fb152 (patch) | |
tree | 2c713f2e81fba99f09d3dfdf531b714090190595 /sound/soc/codecs/sigmadsp.h | |
parent | a4c1d7e66719b326431c6e617da07cab0caedbca (diff) | |
download | linux-fsl-qoriq-38fd54ee38624a52c28d65fadfd452c9c49fb152.tar.xz |
ASoC: SigmaDSP: Add regmap support
Add support for loading the SigmaDSP firmware using regmap. This allows us
to transparently use SPI or I2C as the transport protocol on devices which
support them.
For now we keep the old I2C support since we have one user of this which is not
straight forward to convert to regmap, due to variable length registers.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/sigmadsp.h')
-rw-r--r-- | sound/soc/codecs/sigmadsp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/sigmadsp.h b/sound/soc/codecs/sigmadsp.h index 99a6091..e439cbd 100644 --- a/sound/soc/codecs/sigmadsp.h +++ b/sound/soc/codecs/sigmadsp.h @@ -9,8 +9,13 @@ #ifndef __SIGMA_FIRMWARE_H__ #define __SIGMA_FIRMWARE_H__ +#include <linux/device.h> +#include <linux/regmap.h> + struct i2c_client; extern int process_sigma_firmware(struct i2c_client *client, const char *name); +extern int process_sigma_firmware_regmap(struct device *dev, + struct regmap *regmap, const char *name); #endif |