From patchwork Thu Jan 19 19:52:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Code Kipper X-Patchwork-Id: 9526905 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A46666020B for ; Thu, 19 Jan 2017 21:20:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9226B28639 for ; Thu, 19 Jan 2017 21:20:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 837592865D; Thu, 19 Jan 2017 21:20:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0ED128639 for ; Thu, 19 Jan 2017 21:20:45 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id E6CB8267BA1; Thu, 19 Jan 2017 22:20:41 +0100 (CET) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 59D47267BA3; Thu, 19 Jan 2017 22:18:23 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 80E77267925; Thu, 19 Jan 2017 20:53:09 +0100 (CET) Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) by alsa0.perex.cz (Postfix) with ESMTP id 04D5226792E for ; Thu, 19 Jan 2017 20:53:03 +0100 (CET) Received: by mail-lf0-f66.google.com with SMTP id q89so6562210lfi.1 for ; Thu, 19 Jan 2017 11:53:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NOeqGyLd0NjWdD1uQHFjsCepGh3u7a6uXlS4bjRuffc=; b=PXZpHrKCAA2lEfKXAOxB/gqzmI+f2i4B8sncptP2+OOZPcsD222+CzFh3uULjj6Y+b ERgLX48DJjNkyFUM+ElTSJrgfqerSdmTeiTi9feU4084slkq1UbpQBGNFhGMkU/kwHS6 M/SPzAGyQuy5893a0LcBkBZ8V7m73R3yUWLElpazgMgLhWMwS7Kt6QzjH2FfUQWrCWnn MLcHbr0ASNNEMikJyo0jrYbz7edJnm89LRmdIgpcZw9Qgd7rDGov8YILUfv9O3+HWrKt Z3fK5y6lNcjG7ackM4y2UXVV2c5PXanKezqsBFyNbWkpwqHcowEq8o25Y2sKwnXSr9L4 m6HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NOeqGyLd0NjWdD1uQHFjsCepGh3u7a6uXlS4bjRuffc=; b=MVHJV3GgP3HQgEobHog9PWFlbKsZe/D0XGdosRi/lhQYsDH9CQ8e9DKtigkJPvUJ8o bFuEH+/eYnP+qa2l5y5xwjLUiQM49b9FrKzVCNpDuVDMKZYDDkG5xiFRzd4UY3cBXKR6 MBmfKPjxVc/rXQc56oULoy4ORj1EMuKCyrsmx7ulwA32q7fFMEav/zO1NgS6wIEUztZV tV8nTMMxDXueLETtJx76962GGBTc1onWUZlDe6ccoq/i0V6wfShCOJGamf31oCoGJQZ4 DCiwaWWQv6sX70NVWx5JHXLITAy8UermJoM5oosErL5LYOsUtV1jeC9cn/SBY3lDoGbI nu3A== X-Gm-Message-State: AIkVDXKIMx2KLpwvD+8LBTSAVJZtoyjI187MFD+Rql/Jdq07IcmN4VsKg2Db9bwjg4BbcQ== X-Received: by 10.25.34.196 with SMTP id i187mr3659161lfi.176.1484855583347; Thu, 19 Jan 2017 11:53:03 -0800 (PST) Received: from localhost.localdomain (c80-217-9-219.bredband.comhem.se. [80.217.9.219]) by smtp.gmail.com with ESMTPSA id j11sm2324676lfd.23.2017.01.19.11.53.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2017 11:53:02 -0800 (PST) From: codekipper@gmail.com To: maxime.ripard@free-electrons.com Date: Thu, 19 Jan 2017 20:52:58 +0100 Message-Id: <20170119195258.29652-3-codekipper@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170119195258.29652-1-codekipper@gmail.com> References: <20170119195258.29652-1-codekipper@gmail.com> Cc: alsa-devel@alsa-project.org, Marcus Cooper , lgirdwood@gmail.com, linux-kernel@vger.kernel.org, be17068@iperbole.bo.it, linux-sunxi@googlegroups.com, broonie@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH v2 2/2] ASoC: sun4i-spdif: Add support for the H3 SoC X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Marcus Cooper The H3 SoC uses the same SPDIF block as found in earlier SoCs, but its TXFIFO is mapped to another address. Signed-off-by: Marcus Cooper --- sound/soc/sunxi/sun4i-spdif.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sound/soc/sunxi/sun4i-spdif.c b/sound/soc/sunxi/sun4i-spdif.c index fec62ee1fc72..c03cd07a9b19 100644 --- a/sound/soc/sunxi/sun4i-spdif.c +++ b/sound/soc/sunxi/sun4i-spdif.c @@ -103,6 +103,8 @@ #define SUN4I_SPDIF_ISTA_RXOSTA BIT(1) #define SUN4I_SPDIF_ISTA_RXASTA BIT(0) +#define SUN8I_SPDIF_TXFIFO (0x20) + #define SUN4I_SPDIF_TXCNT (0x24) #define SUN4I_SPDIF_RXCNT (0x28) @@ -417,6 +419,11 @@ static const struct sun4i_spdif_quirks sun6i_a31_spdif_quirks = { .has_reset = true, }; +static const struct sun4i_spdif_quirks sun8i_h3_spdif_quirks = { + .reg_dac_txdata = SUN8I_SPDIF_TXFIFO, + .has_reset = true, +}; + static const struct of_device_id sun4i_spdif_of_match[] = { { .compatible = "allwinner,sun4i-a10-spdif", @@ -426,6 +433,10 @@ static const struct of_device_id sun4i_spdif_of_match[] = { .compatible = "allwinner,sun6i-a31-spdif", .data = &sun6i_a31_spdif_quirks, }, + { + .compatible = "allwinner,sun8i-h3-spdif", + .data = &sun8i_h3_spdif_quirks, + }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, sun4i_spdif_of_match);