summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorAnatol Pomozov <anatol.pomozov@gmail.com>2014-10-10 20:46:36 -0700
committerMark Brown <broonie@kernel.org>2014-10-20 12:22:20 +0100
commit40eb90a18e93fbd4fd0e6892b31241356c3c8e43 (patch)
tree401f2d17cb15f745d8f31a7045bff61be7315f15 /include/sound
parent80fff6bf65dcae62255bdb592603dfc247c8cacf (diff)
downloadop-kernel-dev-40eb90a18e93fbd4fd0e6892b31241356c3c8e43.zip
op-kernel-dev-40eb90a18e93fbd4fd0e6892b31241356c3c8e43.tar.gz
ASoC: rt5677: Add option to configure gpio as floating/pullup/pulldown
gpio_config is array of 6 elements that allows to set GPIO as floating, pullup, pulldown. Sponsored: Google ChromeOS Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/rt5677.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/rt5677.h b/include/sound/rt5677.h
index 082670e..a56b429 100644
--- a/include/sound/rt5677.h
+++ b/include/sound/rt5677.h
@@ -27,6 +27,9 @@ struct rt5677_platform_data {
bool lout3_diff;
/* DMIC2 clock source selection */
enum rt5677_dmic2_clk dmic2_clk_pin;
+
+ /* configures GPIO, 0 - floating, 1 - pulldown, 2 - pullup */
+ u8 gpio_config[6];
};
#endif
OpenPOWER on IntegriCloud