mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 02:05:29 +07:00
29157c6d60
MCP47x6 chip supports selection of a voltage reference (VDD, VREF buffered or unbuffered). MCP4725 doesn't have this feature thus the eventual setting is ignored and user is warned. The setting is stored only in the volatile memory of the chip. You need to manually store it to the EEPROM of the chip via 'store_eeprom' sysfs entry. Signed-off-by: Tomas Novotny <tomas@novotny.cz> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
27 lines
722 B
C
27 lines
722 B
C
/*
|
|
* MCP4725 DAC driver
|
|
*
|
|
* Copyright (C) 2012 Peter Meerwald <pmeerw@pmeerw.net>
|
|
*
|
|
* Licensed under the GPL-2 or later.
|
|
*/
|
|
|
|
#ifndef IIO_DAC_MCP4725_H_
|
|
#define IIO_DAC_MCP4725_H_
|
|
|
|
/**
|
|
* struct mcp4725_platform_data - MCP4725/6 DAC specific data.
|
|
* @use_vref: Whether an external reference voltage on Vref pin should be used.
|
|
* Additional vref-supply must be specified when used.
|
|
* @vref_buffered: Controls buffering of the external reference voltage.
|
|
*
|
|
* Vref related settings are available only on MCP4756. See
|
|
* Documentation/devicetree/bindings/iio/dac/mcp4725.txt for more information.
|
|
*/
|
|
struct mcp4725_platform_data {
|
|
bool use_vref;
|
|
bool vref_buffered;
|
|
};
|
|
|
|
#endif /* IIO_DAC_MCP4725_H_ */
|