mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-01 09:16:38 +07:00
38fd54ee38
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>
22 lines
475 B
C
22 lines
475 B
C
/*
|
|
* Load firmware files from Analog Devices SigmaStudio
|
|
*
|
|
* Copyright 2009-2011 Analog Devices Inc.
|
|
*
|
|
* Licensed under the GPL-2 or later.
|
|
*/
|
|
|
|
#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
|