diff options
author | Alexandru Ardelean <alexandru.ardelean@analog.com> | 2020-10-19 12:53:13 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-10-26 19:37:03 +0100 |
commit | ab589bac553f79d559952aa088480a72258ac5bc (patch) | |
tree | 3b75a7f48087d166f630192af6b0efc82cc91930 /include/dt-bindings/sound/adi,adau1977.h | |
parent | ASoC: pcm5102a: Make codec selectable (diff) | |
download | linux-ab589bac553f79d559952aa088480a72258ac5bc.tar.xz linux-ab589bac553f79d559952aa088480a72258ac5bc.zip |
ASoC: adau1977: remove platform data and move micbias bindings include
The change removes the platform_data include/definition. It only contains
some values for the MICBIAS.
These are moved into 'dt-bindings/sound/adi,adau1977.h' so that they can be
used inside device-trees. When moving then, they need to be converted to
pre-compiler defines, so that the DT compiler can understand them.
The driver then, also needs to include the new
'dt-bindings/sound/adi,adau1977.h' file.
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20201019105313.24862-1-alexandru.ardelean@analog.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/dt-bindings/sound/adi,adau1977.h')
-rw-r--r-- | include/dt-bindings/sound/adi,adau1977.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/dt-bindings/sound/adi,adau1977.h b/include/dt-bindings/sound/adi,adau1977.h new file mode 100644 index 000000000000..8eebec6570f2 --- /dev/null +++ b/include/dt-bindings/sound/adi,adau1977.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +#ifndef __DT_BINDINGS_ADI_ADAU1977_H__ +#define __DT_BINDINGS_ADI_ADAU1977_H__ + +#define ADAU1977_MICBIAS_5V0 0x0 +#define ADAU1977_MICBIAS_5V5 0x1 +#define ADAU1977_MICBIAS_6V0 0x2 +#define ADAU1977_MICBIAS_6V5 0x3 +#define ADAU1977_MICBIAS_7V0 0x4 +#define ADAU1977_MICBIAS_7V5 0x5 +#define ADAU1977_MICBIAS_8V0 0x6 +#define ADAU1977_MICBIAS_8V5 0x7 +#define ADAU1977_MICBIAS_9V0 0x8 + +#endif /* __DT_BINDINGS_ADI_ADAU1977_H__ */ |