mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 00:45:19 +07:00
1abd918499
This patch mostly follows commit 5998102b90
"ASoC: Refactor WM8731 device registration" to make UDA1380 use standard
device instantiation. Similarly, the I2C device registration temporarily
moves into the magician machine driver before it will find its final
resting place in the board file.
At the same time, platform specific configuration is moved to platform data
and common power/reset GPIO handling moves into the codec driver.
Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
23 lines
481 B
C
23 lines
481 B
C
/*
|
|
* UDA1380 ALSA SoC Codec driver
|
|
*
|
|
* Copyright 2009 Philipp Zabel
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef __UDA1380_H
|
|
#define __UDA1380_H
|
|
|
|
struct uda1380_platform_data {
|
|
int gpio_power;
|
|
int gpio_reset;
|
|
int dac_clk;
|
|
#define UDA1380_DAC_CLK_SYSCLK 0
|
|
#define UDA1380_DAC_CLK_WSPLL 1
|
|
};
|
|
|
|
#endif /* __UDA1380_H */
|