diff options
author | Sebastian Reichel <sre@kernel.org> | 2013-10-20 17:42:37 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2014-04-23 17:35:47 +0200 |
commit | a4b4d474866b4c0ea17834c07c9b353728c3ba65 (patch) | |
tree | 1e3a1c4edc6539d1e9d5fb0a1ea019ee10c0ddff /include | |
parent | fe62276348a2ccd23a927a9ce3d68592655ade38 (diff) | |
download | linux-a4b4d474866b4c0ea17834c07c9b353728c3ba65.tar.bz2 |
ASoC: RX-51: Add DT support to sound driver
This patch adds device tree support to the Nokia N900 audio driver.
It also removes GPIO defines and gets them from platform data /
device tree, since some GPIO numbers may be different with DT boot.
The binding also changes a helper function in omap-mcbsp, which
is currently only used by the Nokia N900. This change is needed,
because DT instanced omap-mcbsp driver has no valid id assigned.
Last but not least the DT binding is documented.
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/rx51.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/sound/rx51.h b/include/sound/rx51.h new file mode 100644 index 000000000000..190d745a106b --- /dev/null +++ b/include/sound/rx51.h @@ -0,0 +1,18 @@ +/* + * Platform data for Nokia RX-51 SoC audio + * + * 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 __RX51_AUDIO_H__ +#define __RX51_AUDIO_H__ + +struct rx51_audio_pdata { + int tvout_selection_gpio; + int jack_detection_gpio; + int eci_sw_gpio; + int speaker_amp_gpio; +}; + +#endif |