ASoC: sun4i-i2s: Add quirks to handle a31 compatible
authorMylène Josserand <mylene.josserand@free-electrons.com>
Tue, 4 Apr 2017 19:32:30 +0000 (19:32 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Apr 2017 10:41:21 +0000 (12:41 +0200)
commitabb640893830c7bddd0dd75ef5184c688eb94dc0
treea2561fb535c966b801e5e9b2cdbd39b0dc3e1a2c
parent3d2f06d8d180f288ae79d8bd2eb7eee5e2599f31
ASoC: sun4i-i2s: Add quirks to handle a31 compatible

[ Upstream commit 2ad6f30de7087515a0bc2a718fca6681a57739a0 ]

Some SoCs have a reset line that must be asserted/deasserted.
This patch adds a quirk to handle the new compatible
"allwinner,sun6i-a31-i2s" which will deassert the reset
line on probe function and assert it on remove's one.

This new compatible is useful in case of A33 codec driver, for example.

Signed-off-by: Mylène Josserand <mylene.josserand@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/sunxi/sun4i-i2s.c