From patchwork Mon Feb 10 09:58:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Daniel Baluta (OSS)" X-Patchwork-Id: 11372945 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EE8C514B4 for ; Mon, 10 Feb 2020 10:00:21 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 83E072070A for ; Mon, 10 Feb 2020 10:00:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="bmP6cI8h"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="PrLJrquw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 83E072070A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id AE66B167D; Mon, 10 Feb 2020 10:59:36 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz AE66B167D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1581328819; bh=3nrNdvuv7L3zQNMaeQ403PLC9HcEVvBbN4d/R1v/kn0=; h=From:To:Date:In-Reply-To:References:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=bmP6cI8hEEYDFCqjEq8qOj2BEBB9gphEQgWSvcPHx7ZhKJMjN76AX3Mq6POvBE9ez 7W7i/9QqyhiIp6wKmJp9f6tjdcyhE9kNqEjy7f32CIKc6ttrvjIitw8fZb2/zcGIkf /ZRROIj8Wz7iO5gnTuD531BGb92idNRNrL1RGvVU= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 8A744F80228; Mon, 10 Feb 2020 10:58:43 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 58AA2F80228; Mon, 10 Feb 2020 10:58:41 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS,SURBL_BLOCKED,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2062.outbound.protection.outlook.com [40.107.21.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 7AFC7F800FD for ; Mon, 10 Feb 2020 10:58:36 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7AFC7F800FD Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="PrLJrquw" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WiVw3Q7aFLyi8L+1u/VS+katfYs6Qd9exOVyM5Jmnvvp6JCIOSE/IIMQg4vIYd8M9AuTohXXDns1DPBMb+hWNSv6FalsCcNJwg0AKawrI/Ag5Et9zCnqNwfGWJzI2Uc8O66RzAjtOavzGyG0yia5K6bA+vZ4T1E2pGDTCE0oYYMTnsNOpMfyY9Pwgrw+/l5c5NALH1rsNsz08f7Jd9C1iODrSW/GUQspNa4jspk4nTjaG0iKvSOm7Mv3RibLBgrP4gVxV3JKqdoChHhpO1uIZEFMezPWZjBbjQW/TklAWvs4Daaa1ixhVCkdTDxIc1Swpwi5ZzqDPc7ExtpIsUPXUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=P4xkXgOTXEDGM4vG9pjFIajOXLwO+HSfi52xcgH5L4o=; b=IsAyO75Xs2nhnd9B/BwrMko+ESUv/9B+JoCnDMtN2BknY++q2yDAUq16Gur2WgGOcButrESLBLZjlvwOcgMoNsmpYsI4NOFAjB9KmqangiQ/tPUvLxDxFCs/F06iEaAtxT3T2oqjqtBsPE8qVGzk6Kyjz+RoUVm4pGu7z7ZfoUsDHr7YkbYlu3l91bN8lUJTwioIpvl5PLJYIUIY9HeH1VqBWyzYqo/nNDo/nobLjgsJ1zvIuSS1jVIA/uxMPEHdMMvdxfMiTYF0MJQNRZy4ul1GfKjll1I2i7LsGmX3yjJ/rNvBg/Rlmw+IYhaok6hlpZpefmSp2iC8HwbLrkN9vQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=P4xkXgOTXEDGM4vG9pjFIajOXLwO+HSfi52xcgH5L4o=; b=PrLJrquw68SAY5f/FDCxNSXrnMEo7rKNrEWyDY2pALqXddi2VptvYdvJCWPYu5uspJPgPB1IZSV+G60lI28+EJFkmFfJ/cgJBw3GRqnCBviJUvWPSnlMCzMreaX38yhBm9QbMSMM3MikMVjek/0YCIikIhePpnK6r4cynAKTGgU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=daniel.baluta@oss.nxp.com; Received: from VI1PR0402MB3839.eurprd04.prod.outlook.com (52.134.16.147) by VI1PR0402MB3423.eurprd04.prod.outlook.com (52.134.4.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2707.21; Mon, 10 Feb 2020 09:58:34 +0000 Received: from VI1PR0402MB3839.eurprd04.prod.outlook.com ([fe80::8881:e155:f058:c0d1]) by VI1PR0402MB3839.eurprd04.prod.outlook.com ([fe80::8881:e155:f058:c0d1%4]) with mapi id 15.20.2707.028; Mon, 10 Feb 2020 09:58:34 +0000 From: Daniel Baluta To: broonie@kernel.org, robh+dt@kernel.org Date: Mon, 10 Feb 2020 11:58:14 +0200 Message-Id: <20200210095817.13226-2-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200210095817.13226-1-daniel.baluta@oss.nxp.com> References: <20200210095817.13226-1-daniel.baluta@oss.nxp.com> X-ClientProxiedBy: AM3PR07CA0076.eurprd07.prod.outlook.com (2603:10a6:207:4::34) To VI1PR0402MB3839.eurprd04.prod.outlook.com (2603:10a6:803:21::19) MIME-Version: 1.0 Received: from fsr-ub1864-103.ro-buh02.nxp.com (89.37.124.34) by AM3PR07CA0076.eurprd07.prod.outlook.com (2603:10a6:207:4::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.9 via Frontend Transport; Mon, 10 Feb 2020 09:58:33 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [89.37.124.34] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 79d65ab5-1c4b-4856-5f9c-08d7ae0fca84 X-MS-TrafficTypeDiagnostic: VI1PR0402MB3423:|VI1PR0402MB3423: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-Forefront-PRVS: 03094A4065 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(136003)(396003)(366004)(346002)(39860400002)(189003)(199004)(66556008)(66946007)(66476007)(1076003)(5660300002)(6666004)(44832011)(2616005)(956004)(8936002)(6512007)(6486002)(81166006)(81156014)(54906003)(6506007)(316002)(16526019)(186003)(8676002)(4326008)(26005)(2906002)(478600001)(86362001)(52116002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB3423; H:VI1PR0402MB3839.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:0; Received-SPF: None (protection.outlook.com: oss.nxp.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DsQBzE3fFM/IvOWLdcp6tmlEYN0NvpwHWFzIMNiTDkElkxr2TGXIxb6cPButTx4W/OyESD+QV/GV3V73ys/z8iu5+bGiMSuPwb8eTNC6tguDE4f2arcO8VcHTYcApGd8YoIs2/zI1KjyufV7gEgME7N4z4u7kwQAxUCbFfsNcdEVhXapUT+OfnpuPrkmjHriXpiec1FIDImcEDN9REofLmYzSkA69gAWtMa9/zWb9RDFqrxdfM+FRC//hwqQc0TQ8qsbnvolF3aM+0ySGdaL2H8W1oQY/GRBzgCl7TxXqfObUQ2b7us5n3tTOgPwyeK6ECtLhRJ593vIbNKpBBFp+WbRqn/f4yJpChcS7cZXvJuAh5kUEXbildWvWlmhoxKW+lZnUxdR6nCCtMepEaeE1+dnPHUHucET3EefYSfP4FuUcZT/gQEq6gHNZDgx06w3 X-MS-Exchange-AntiSpam-MessageData: j7Ey8aafduSTYeeaBVepEdk+E1LAuE2FPC49tCCajeBx8rOhOWiNTFkZvDuL+LKMsCfgKlGZ5SY+q1+jG/OsYgnYbF9rwIJTtOhGsm3a6r9fLnhJpCGg9tMTstLZI8ttPyc04b1uI9ToZXTz0SV4Sw== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 79d65ab5-1c4b-4856-5f9c-08d7ae0fca84 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2020 09:58:34.4178 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MtfErVf1WekAeYvnoMK/4gowTnY5iNj/v0iVzSiT7zm3rIO2bmzXSZuR2zEAFRj3O0BVGgcoIo20qTRfH1scgg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3423 Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Daniel Baluta , linux-kernel@vger.kernel.org, Paul Olaru , linux-imx@nxp.com, festevam@gmail.com Subject: [alsa-devel] [RESEND 1/4] ASoC: SOF: Rename i.MX8 platform to i.MX8X X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" From: Paul Olaru i.MX8 and i.MX8X platforms are very similar and were treated the same. Anyhow, we need to account for the differences somehow. Current supported platform is i.MX8QXP which is from i.MX8X family. Rename i.MX8 platform to i.MX8X to prepare for future i.MX8 platforms. Signed-off-by: Paul Olaru Signed-off-by: Daniel Baluta Reviewed-by: Pierre-Louis Bossart --- sound/soc/sof/imx/imx8.c | 10 +++++----- sound/soc/sof/sof-of-dev.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sound/soc/sof/imx/imx8.c b/sound/soc/sof/imx/imx8.c index b2556f5e2871..9ffc2a955e4f 100644 --- a/sound/soc/sof/imx/imx8.c +++ b/sound/soc/sof/imx/imx8.c @@ -138,7 +138,7 @@ static int imx8_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) /* * DSP control. */ -static int imx8_run(struct snd_sof_dev *sdev) +static int imx8x_run(struct snd_sof_dev *sdev) { struct imx8_priv *dsp_priv = (struct imx8_priv *)sdev->private; int ret; @@ -360,13 +360,13 @@ static struct snd_soc_dai_driver imx8_dai[] = { }, }; -/* i.MX8 ops */ -struct snd_sof_dsp_ops sof_imx8_ops = { +/* i.MX8X ops */ +struct snd_sof_dsp_ops sof_imx8x_ops = { /* probe and remove */ .probe = imx8_probe, .remove = imx8_remove, /* DSP core boot */ - .run = imx8_run, + .run = imx8x_run, /* Block IO */ .block_read = sof_block_read, @@ -398,6 +398,6 @@ struct snd_sof_dsp_ops sof_imx8_ops = { SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_NO_PERIOD_WAKEUP }; -EXPORT_SYMBOL(sof_imx8_ops); +EXPORT_SYMBOL(sof_imx8x_ops); MODULE_LICENSE("Dual BSD/GPL"); diff --git a/sound/soc/sof/sof-of-dev.c b/sound/soc/sof/sof-of-dev.c index 39ea8af6213f..2da1bd859d98 100644 --- a/sound/soc/sof/sof-of-dev.c +++ b/sound/soc/sof/sof-of-dev.c @@ -19,9 +19,9 @@ extern struct snd_sof_dsp_ops sof_imx8_ops; static struct sof_dev_desc sof_of_imx8qxp_desc = { .default_fw_path = "imx/sof", .default_tplg_path = "imx/sof-tplg", - .default_fw_filename = "sof-imx8.ri", + .default_fw_filename = "sof-imx8x.ri", .nocodec_tplg_filename = "sof-imx8-nocodec.tplg", - .ops = &sof_imx8_ops, + .ops = &sof_imx8x_ops, }; #endif From patchwork Mon Feb 10 09:58:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Daniel Baluta (OSS)" X-Patchwork-Id: 11372947 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6B1E114B4 for ; Mon, 10 Feb 2020 10:01:12 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 009A32070A for ; Mon, 10 Feb 2020 10:01:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="TZww0JJH"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="I49wEzPX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 009A32070A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 2E5DE1697; Mon, 10 Feb 2020 11:00:27 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2E5DE1697 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1581328870; bh=PmT123PxHbVTiRXnEiES7j9wemZKQFxGfD77P1MqWvM=; h=From:To:Date:In-Reply-To:References:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=TZww0JJHiGH/FZBs1lnvDgvG1c+V4XpDR8vXwRQeViJnhHnzr9NZhPO4U2y2x7RKB xOuj6MIxd1whY9Un4Z7Q6WIssRqfoXUTAU7iDDpznzruANdM+3OOlny4ISIqPB53QU rFboAlXIS/wydoXianzhmjfDfByiT247mcQnFfT8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 26DF1F80276; Mon, 10 Feb 2020 10:58:46 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id C8E4BF80234; Mon, 10 Feb 2020 10:58:42 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS,SURBL_BLOCKED,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00083.outbound.protection.outlook.com [40.107.0.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 6B703F800E7 for ; Mon, 10 Feb 2020 10:58:37 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6B703F800E7 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="I49wEzPX" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bmwu32VoCxpw/Czss3TBdrZ+W4ElOS/D16O0cKQYRqTqVkWZnvEHTaqwSwTI7QQ+uBaSLFxQggCnjT8ApKrS43NTo+IPK+8YOv14DrGNjI96drK92Z7cVo+vgn1tTIfKuF5eY8i9cH3BsrphGBPn5VIgKl3TUetHI+5IhHoe6D5eG0RG5B8uVGJLyeDGknNdraRirtiKzyyyvZDteXvKENe+bK8IQaaq8XWvzXiS8i4WVUP5aOhE/zKyEV8pUnSq3EcuECBBpwZHWQJIkaqmpAMi5xeHaT4dmFcrRpgiaYwOcTd5qK3gR1DwMkD025LLu01e/nKhDYIV80kDAvgM0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Vk5aSXldoBA6Dmbqi+P3GJLYDMEhaKWnKDqTtsKsr14=; b=GSI5kjYR3jWjrCipQwY33Uyw2DgsSM5TJXFQnHChcce0hmwZpKYY0XwzRmUL8xS5A+qmyOYn6PTRyVKHtgJxEM35XMCocnD2nNdHuzAigHRgkSQq0sp3j8aEROjRxdg6Pe6QDEChNSlP0pWnS3zBGsaGt/NkpRd6V6eFGEsMS7LOb2tgPF5pG1seH69TsxRc+VXq+l0utvgWAguZVxl6VKAMeDQedt539wpwv6iv9GtKgU+gz+22SS5xnqdQ+u2hLQBV2l6sR8Qb2As0mo/f7P7YDEMABMIibQY0yY9MN/BDKqkboiswrjJdxkvgkhyuk4/j4G4ZF1WI6xQgpP68kg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Vk5aSXldoBA6Dmbqi+P3GJLYDMEhaKWnKDqTtsKsr14=; b=I49wEzPX9X5icoum+susrdL7uxf4XiprUcYa9w5YX0CF/VLxyugqe2X2wz58PsFKkpoB6tFa/r8MU3INYapz+gV2sJDmIfPo6QAb6sAo3P9uRmz/HQbZSVLy7u3GtlfrQ/qWAS8cRssKcLeLU/dGfwAz0NOi7evwRZ/htfHOxuI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=daniel.baluta@oss.nxp.com; Received: from VI1PR0402MB3839.eurprd04.prod.outlook.com (52.134.16.147) by VI1PR0402MB3599.eurprd04.prod.outlook.com (52.134.1.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2707.26; Mon, 10 Feb 2020 09:58:35 +0000 Received: from VI1PR0402MB3839.eurprd04.prod.outlook.com ([fe80::8881:e155:f058:c0d1]) by VI1PR0402MB3839.eurprd04.prod.outlook.com ([fe80::8881:e155:f058:c0d1%4]) with mapi id 15.20.2707.028; Mon, 10 Feb 2020 09:58:35 +0000 From: Daniel Baluta To: broonie@kernel.org, robh+dt@kernel.org Date: Mon, 10 Feb 2020 11:58:15 +0200 Message-Id: <20200210095817.13226-3-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200210095817.13226-1-daniel.baluta@oss.nxp.com> References: <20200210095817.13226-1-daniel.baluta@oss.nxp.com> X-ClientProxiedBy: AM3PR07CA0076.eurprd07.prod.outlook.com (2603:10a6:207:4::34) To VI1PR0402MB3839.eurprd04.prod.outlook.com (2603:10a6:803:21::19) MIME-Version: 1.0 Received: from fsr-ub1864-103.ro-buh02.nxp.com (89.37.124.34) by AM3PR07CA0076.eurprd07.prod.outlook.com (2603:10a6:207:4::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.9 via Frontend Transport; Mon, 10 Feb 2020 09:58:34 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [89.37.124.34] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 615838ba-005c-4a10-ae04-08d7ae0fcb3b X-MS-TrafficTypeDiagnostic: VI1PR0402MB3599:|VI1PR0402MB3599: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:949; X-Forefront-PRVS: 03094A4065 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(39860400002)(376002)(396003)(136003)(366004)(199004)(189003)(956004)(2616005)(54906003)(16526019)(44832011)(6506007)(186003)(26005)(6486002)(66556008)(66946007)(66476007)(86362001)(4326008)(2906002)(478600001)(6512007)(81156014)(81166006)(8676002)(8936002)(316002)(1076003)(5660300002)(6666004)(52116002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB3599; H:VI1PR0402MB3839.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:0; MX:1; Received-SPF: None (protection.outlook.com: oss.nxp.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Kvql0d+ExIOOU94mJSoG+ePGZUob3ZXPDAUJWApCeSW/LvFVB/alEJHwUYSC9BmC5uhvd8Mk3MuDm9v+z+SqbKhuPKkkyryI1xwFB1yws3jkLMEjJX3CP/i5n0QG8Yp1WEW+plrQKohiUEm/bXhs/5D1Pv/i9afO3UCW+4EaWmPs6iDml5zRNsOs5qTly9bWM5yXSn46LAulkrTUiaNWpwatTdi/5UukdCaW0q6AcCivkiqFVHNUVrnlK4/5JtoIQCG+z3a2NSZwTZ5eIDq7p3Xm6I/j9XettNN2fEuHDKYCQ5mCg3RJfft12Nq56p0jUvva0ukBz5ZRXbsNCmhMCBvXiBXTJb57AObWdf2+QrRTVDMPIycq6SG3US3t6zt5ltdkaaRwOCtO+H0S7GdPJY/gUdN7KFs7jBcCOYzFO/R4IpR7EFz/TUNmO4vfveXj X-MS-Exchange-AntiSpam-MessageData: iNNsffAAITf2kN4NXbYMW9uXzdkOypNmsnA6e8Zj+P6NhUInwErP1M9xMgYEUDngRqZSoVBoiVfcivrAClI0e8yJeW9UPg9g0PAGfigETfOORO0VocHSpC10Kzk4O9mE8gZoTHomj6pn60gssaAWfw== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 615838ba-005c-4a10-ae04-08d7ae0fcb3b X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2020 09:58:35.8820 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2uCV5XKGmhY1HLdmEtPhttTTVo7sPuzDG36VtnaPasLf3cSJEwFgysSFiyHAsthztD3dVMXhZEKz/NPQpHP5Qg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3599 Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Daniel Baluta , linux-kernel@vger.kernel.org, Paul Olaru , linux-imx@nxp.com, festevam@gmail.com Subject: [alsa-devel] [RESEND 2/4] ASoC: SOF: imx8: Add ops for i.MX8QM X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" From: Paul Olaru i.MX8QM and i.MX8QXP are mostly identical platforms with minor hardware differences. One of these differences affects the firmware boot process, requiring the run operation to differ. All other ops are reused. Signed-off-by: Paul Olaru Signed-off-by: Daniel Baluta Reviewed-by: Pierre-Louis Bossart --- sound/soc/sof/imx/imx8.c | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/sound/soc/sof/imx/imx8.c b/sound/soc/sof/imx/imx8.c index 9ffc2a955e4f..b692752b2178 100644 --- a/sound/soc/sof/imx/imx8.c +++ b/sound/soc/sof/imx/imx8.c @@ -178,6 +178,24 @@ static int imx8x_run(struct snd_sof_dev *sdev) return 0; } +static int imx8_run(struct snd_sof_dev *sdev) +{ + struct imx8_priv *dsp_priv = (struct imx8_priv *)sdev->private; + int ret; + + ret = imx_sc_misc_set_control(dsp_priv->sc_ipc, IMX_SC_R_DSP, + IMX_SC_C_OFS_SEL, 0); + if (ret < 0) { + dev_err(sdev->dev, "Error system address offset source select\n"); + return ret; + } + + imx_sc_pm_cpu_start(dsp_priv->sc_ipc, IMX_SC_R_DSP, true, + RESET_VECTOR_VADDR); + + return 0; +} + static int imx8_probe(struct snd_sof_dev *sdev) { struct platform_device *pdev = @@ -360,6 +378,39 @@ static struct snd_soc_dai_driver imx8_dai[] = { }, }; +/* i.MX8 ops */ +struct snd_sof_dsp_ops sof_imx8_ops = { + /* probe and remove */ + .probe = imx8_probe, + .remove = imx8_remove, + /* DSP core boot */ + .run = imx8_run, + + /* Block IO */ + .block_read = sof_block_read, + .block_write = sof_block_write, + + /* ipc */ + .send_msg = imx8_send_msg, + .fw_ready = sof_fw_ready, + .get_mailbox_offset = imx8_get_mailbox_offset, + .get_window_offset = imx8_get_window_offset, + + .ipc_msg_data = imx8_ipc_msg_data, + .ipc_pcm_params = imx8_ipc_pcm_params, + + /* module loading */ + .load_module = snd_sof_parse_module_memcpy, + .get_bar_index = imx8_get_bar_index, + /* firmware loading */ + .load_firmware = snd_sof_load_firmware_memcpy, + + /* DAI drivers */ + .drv = imx8_dai, + .num_drv = 1, /* we have only 1 ESAI interface on i.MX8 */ +}; +EXPORT_SYMBOL(sof_imx8_ops); + /* i.MX8X ops */ struct snd_sof_dsp_ops sof_imx8x_ops = { /* probe and remove */ From patchwork Mon Feb 10 09:58:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Daniel Baluta (OSS)" X-Patchwork-Id: 11372949 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6A08817F0 for ; Mon, 10 Feb 2020 10:01:54 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F3CD52070A for ; Mon, 10 Feb 2020 10:01:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="AvfvyDk2"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="EIPyLTY3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F3CD52070A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 04C65167D; Mon, 10 Feb 2020 11:01:09 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 04C65167D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1581328912; bh=IAn70pj4cKSj6n71C7QSq3YTS7iJMuOAfsvPsv34G8A=; h=From:To:Date:In-Reply-To:References:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=AvfvyDk2TXskkoZquMvl+wLruk81yUHCYBrioj8VuPxHXx0Z+ezlt4Jg0c8WG9PuW z/L3fKSyYsu46AV1ZUvvD9kv5T24NuZIMmmFLJZRejiWHV8W2A1Rb3urf4fGQCFRaT 3u6mHJG6mx2MjyHkKBAJv2Y2PYSnOgGkQ60tXyV8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 181A0F8028B; Mon, 10 Feb 2020 10:58:47 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id EDDC4F80118; Mon, 10 Feb 2020 10:58:43 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS,SURBL_BLOCKED,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00083.outbound.protection.outlook.com [40.107.0.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id AE4A3F80118 for ; Mon, 10 Feb 2020 10:58:39 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz AE4A3F80118 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="EIPyLTY3" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SlfpE32ZdAP9XOleWyDw5xDkGzpEXIELGvHblT98w+v/+EAgD8AfWU5o/gDsVOptQ05MbTE19eiy8+Lnn0J1STZBaxhbpT9LLdZZc4tMoc6pPxu9o0KJw5xJz0ZMfKiihxr+4y1fqcT82JOljVPnQ4ua5teDZrRDPwIdB+uXrOp0Olobcz09oriNdrupb31oVwDqT24W6r+xlJTe6rnho5KpGEyD6WQJci+iq3/D84wjsRsyutrQLSq3gp0i+YadplrSTgdarxcFUon59SxDIMIgLMWxtk7ZNQpI6Q+1DE1PT2qyvs3c6rlvrJG3PfsbOYeoCJFy7FPnI7QyCEjWIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JjDwim/uyhWWlLhuC7Xq+RqeP2hI25frptHsd3WLor4=; b=KciP2phuNXo3Uy7WVFz7DYLKZ/dWd/ygqLvZJ5viczUMrK/EYkPxwGcvAKumDb1d2LK1N106SSszYJCPIE+Wrya4oYpSwsTFu3hSto44GTQIQ6yt2jzNIEauJ+UsSWkw/reWT9nkC2dZVMkMOySIkCaGkFU2+NmTKrcalaJix6d3yR9/TpeiJi6TF2j086RIOEVny3J1kSB7qhhFa63MUzA1vPznBKf8D18qMHH/OIums9aRsyR2jkflE1nY31uKv+VZ4r17LI338sQSSakaUg08jjvmK8ho2bl+naKkIY6g33CrCC0nBvhT+ml9ZMMvZUwZnmIwLdYGtczVed+67Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JjDwim/uyhWWlLhuC7Xq+RqeP2hI25frptHsd3WLor4=; b=EIPyLTY3Wk2TXeem1x9yJbtMefY2LLiGFmg+992bqSoVRTVDpNUcUO/DCZDY3qroZpZusVP8VxWU/9rPv4xXduzihoCs5+3C76VpVmLVD4b0qfrJ+S8WkehhzbKjzFwM0TAX1PUsz4Rv0V9TxOTCs1tu9cD6Zx5JnOkBQhv9fOY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=daniel.baluta@oss.nxp.com; Received: from VI1PR0402MB3839.eurprd04.prod.outlook.com (52.134.16.147) by VI1PR0402MB3599.eurprd04.prod.outlook.com (52.134.1.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2707.26; Mon, 10 Feb 2020 09:58:37 +0000 Received: from VI1PR0402MB3839.eurprd04.prod.outlook.com ([fe80::8881:e155:f058:c0d1]) by VI1PR0402MB3839.eurprd04.prod.outlook.com ([fe80::8881:e155:f058:c0d1%4]) with mapi id 15.20.2707.028; Mon, 10 Feb 2020 09:58:37 +0000 From: Daniel Baluta To: broonie@kernel.org, robh+dt@kernel.org Date: Mon, 10 Feb 2020 11:58:16 +0200 Message-Id: <20200210095817.13226-4-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200210095817.13226-1-daniel.baluta@oss.nxp.com> References: <20200210095817.13226-1-daniel.baluta@oss.nxp.com> X-ClientProxiedBy: AM3PR07CA0076.eurprd07.prod.outlook.com (2603:10a6:207:4::34) To VI1PR0402MB3839.eurprd04.prod.outlook.com (2603:10a6:803:21::19) MIME-Version: 1.0 Received: from fsr-ub1864-103.ro-buh02.nxp.com (89.37.124.34) by AM3PR07CA0076.eurprd07.prod.outlook.com (2603:10a6:207:4::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.9 via Frontend Transport; Mon, 10 Feb 2020 09:58:36 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [89.37.124.34] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 858d1dad-4b2f-4b2d-256b-08d7ae0fcc15 X-MS-TrafficTypeDiagnostic: VI1PR0402MB3599:|VI1PR0402MB3599: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:293; X-Forefront-PRVS: 03094A4065 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(39860400002)(376002)(396003)(136003)(366004)(199004)(189003)(956004)(2616005)(54906003)(16526019)(44832011)(6506007)(186003)(26005)(6486002)(66556008)(66946007)(66476007)(86362001)(4326008)(2906002)(478600001)(6512007)(81156014)(81166006)(8676002)(8936002)(316002)(1076003)(5660300002)(6666004)(52116002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB3599; H:VI1PR0402MB3839.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:0; MX:1; Received-SPF: None (protection.outlook.com: oss.nxp.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wJTEuaLlNIXFVpdzFy42uG1bKW1V+hp0npVwTES44iwByaRLBLFcx/IV2pakM60+Z0xZrSZ7mu6vyoBUt1/lxLAqGduC0xFbqyLNk1PhMEqJd6mlQsuZ6murtXeRLsE62CKxuu8xulGturDwM2luYnWBzuDc4YZUoU9Y0hgD7ivma1fn2T3ILhTN+eYth9YSV8B/2n5j+lO6jh4IGvOSzAgKDxuzLtk9dl95E3S4oF2zmbEER1wzTiQR40snDTaYI9zzl7elUGtYgqI8exfoRQJ3Rstu72tEVYjv8KpUqp0ZOJxmppwLLXYl9/FzY82EhjQRWnUlsLd0rUaiLmbvDS0giLihu7FoqFVVrYNA4esMyovBQReen3DPnF0k4tdvG1m1p/83Y6pqTaW2vy8NN5M8bZMmrr+d+6wuYphOYcx+iAqXpaMKpNLCIcooyBKw X-MS-Exchange-AntiSpam-MessageData: 4JFqxVsiHu7XqTs3OrXGt82ynmjbLLHGRQDqp3uT9Yd/zaPEzZZM8NfJSF5EFRa5xv05weBasGbQON6lIqMY7jDpUAaUMz9Lm2f/8dODS8E0pvbZpuzxiVCsj5Ree7vzo1EL3A0W/+dTayPyXPZO5w== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 858d1dad-4b2f-4b2d-256b-08d7ae0fcc15 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2020 09:58:37.0103 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LrmT4UdZ27ZBT8HniUaW3c+Lj8mmlE+TH63fXaj50mtSDg11xcPk97afsHBe9UowW0B03un8roPEbu6ZTdLJ4A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3599 Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Daniel Baluta , linux-kernel@vger.kernel.org, Paul Olaru , linux-imx@nxp.com, festevam@gmail.com Subject: [alsa-devel] [RESEND 3/4] ASoC: SOF: Add i.MX8QM device descriptor X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" From: Paul Olaru Add SOF device and DT descriptors for i.MX8QM platform. Signed-off-by: Paul Olaru Signed-off-by: Daniel Baluta Reviewed-by: Pierre-Louis Bossart --- sound/soc/sof/sof-of-dev.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sound/soc/sof/sof-of-dev.c b/sound/soc/sof/sof-of-dev.c index 2da1bd859d98..16e49f2ee629 100644 --- a/sound/soc/sof/sof-of-dev.c +++ b/sound/soc/sof/sof-of-dev.c @@ -13,6 +13,7 @@ #include "ops.h" extern struct snd_sof_dsp_ops sof_imx8_ops; +extern struct snd_sof_dsp_ops sof_imx8x_ops; /* platform specific devices */ #if IS_ENABLED(CONFIG_SND_SOC_SOF_IMX8) @@ -23,6 +24,14 @@ static struct sof_dev_desc sof_of_imx8qxp_desc = { .nocodec_tplg_filename = "sof-imx8-nocodec.tplg", .ops = &sof_imx8x_ops, }; + +static struct sof_dev_desc sof_of_imx8qm_desc = { + .default_fw_path = "imx/sof", + .default_tplg_path = "imx/sof-tplg", + .default_fw_filename = "sof-imx8.ri", + .nocodec_tplg_filename = "sof-imx8-nocodec.tplg", + .ops = &sof_imx8_ops, +}; #endif static const struct dev_pm_ops sof_of_pm = { @@ -103,6 +112,7 @@ static int sof_of_remove(struct platform_device *pdev) static const struct of_device_id sof_of_ids[] = { #if IS_ENABLED(CONFIG_SND_SOC_SOF_IMX8) { .compatible = "fsl,imx8qxp-dsp", .data = &sof_of_imx8qxp_desc}, + { .compatible = "fsl,imx8qm-dsp", .data = &sof_of_imx8qm_desc}, #endif { } }; From patchwork Mon Feb 10 09:58:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Daniel Baluta (OSS)" X-Patchwork-Id: 11372959 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 372E914B4 for ; Mon, 10 Feb 2020 10:02:13 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B7D772082F for ; Mon, 10 Feb 2020 10:02:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="FuXFtebo"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="DQNgSiiP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B7D772082F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 2A29716A8; Mon, 10 Feb 2020 11:01:27 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2A29716A8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1581328930; bh=8PxW6aC4uyATRfe0OrDYvQKEqAGjp6Zk4pXN17qYNOk=; h=From:To:Date:In-Reply-To:References:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=FuXFtebobIKcC4/rEgow0GPZBw/hfFwtd9G412HXzqb2d7z3CAv4rFkJoON3TP4Br yJkWkXKlsfrW/di6wFN9WLo7ESC2qOP1dAlbrAq4Df0MX96HZlGQqMGIj2TqHTnNdE eukYatpyQM+19p5rFy0nyvID3gARTnd1Fy7Yx/m4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 2C341F8028D; Mon, 10 Feb 2020 10:58:48 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 60BCFF800FD; Mon, 10 Feb 2020 10:58:45 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS,SURBL_BLOCKED,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00083.outbound.protection.outlook.com [40.107.0.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 08EEEF800FD for ; Mon, 10 Feb 2020 10:58:41 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 08EEEF800FD Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="DQNgSiiP" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ESMkRwGppluJDuD6ytF+EpC+n/goV/aQqVpBVHmLm5YyeuB8iaGK99oTNJZlHaFUz59YMgeGGMyfOmWqpaHa+THQYqB3Tx7M27erBg/hIJqHq1tzGbrCLadIw2d9vOA89ojoHMFvZ75GiKunASTl3ZzwZr8vKj/K0qIpgjV54cvJtsZJ9nYXJlEuQujwyDXpM0kluxg+0O4jQ0KkWuucbmE/vma1GOD1vUf61K0ioZebJUTkyibmslColqwcZASWYZ297zbcaWe8Sv9g80R3wiyRLHk6Yi7CbTrsYUyPQZyHgEVHeK6hFZXp39Sv7PIYHJu7AxJfTqGxhjSEcVsDmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=T+QA1YSM6T6NusxwnbWRJCIoo6V643ml0FFpPb+ARMU=; b=g6ZWC9mxj5trXGARQYVZTzGT6ybE4slRFeLMRCbrpA/f8QLuTMqgVAgq5Mb81WTLXVp4hr4tesvQXOuaoKnSBJdeFO+6lK/pztpqHXuZKBb4FWkuCLrcKlV6KwEVPsrZ0ey8mhSVn7EkcmUkd0y6sFgngbbQKgcDRrWicYTbWWM6JGtz8p5GI4Qi9aNJT2tU1p1IY+8lmFrpEUShn+jlMo+14UyFmwrHvyKeLnNz5lJeoCj5QVbQr1w94aGb4ZlNH+rvh87EN9C7Priesq8fvcGRNBuaCt+nqnMWBhmoXQSUqQsvQio8nzTWGpRQ2Uv0mQiBGtnm6Oy9PjGup1vRHw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=T+QA1YSM6T6NusxwnbWRJCIoo6V643ml0FFpPb+ARMU=; b=DQNgSiiPBOKdOKXQYVu1hF8qvZjumfV6uJl8XKPS/lqK3YY23scGDwxR6oPQ0nxdH3pJ3p5jgirQN7va5EeesPcrSAiP2c2x0gxxI7Ej7Z3Y+Fd1zW+gZfB0cOSu9RKzukAAghCAzcnhLj2ifV5DOHSdbVbtFIT59JHQQGgJklM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=daniel.baluta@oss.nxp.com; Received: from VI1PR0402MB3839.eurprd04.prod.outlook.com (52.134.16.147) by VI1PR0402MB3599.eurprd04.prod.outlook.com (52.134.1.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2707.26; Mon, 10 Feb 2020 09:58:38 +0000 Received: from VI1PR0402MB3839.eurprd04.prod.outlook.com ([fe80::8881:e155:f058:c0d1]) by VI1PR0402MB3839.eurprd04.prod.outlook.com ([fe80::8881:e155:f058:c0d1%4]) with mapi id 15.20.2707.028; Mon, 10 Feb 2020 09:58:38 +0000 From: Daniel Baluta To: broonie@kernel.org, robh+dt@kernel.org Date: Mon, 10 Feb 2020 11:58:17 +0200 Message-Id: <20200210095817.13226-5-daniel.baluta@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200210095817.13226-1-daniel.baluta@oss.nxp.com> References: <20200210095817.13226-1-daniel.baluta@oss.nxp.com> X-ClientProxiedBy: AM3PR07CA0076.eurprd07.prod.outlook.com (2603:10a6:207:4::34) To VI1PR0402MB3839.eurprd04.prod.outlook.com (2603:10a6:803:21::19) MIME-Version: 1.0 Received: from fsr-ub1864-103.ro-buh02.nxp.com (89.37.124.34) by AM3PR07CA0076.eurprd07.prod.outlook.com (2603:10a6:207:4::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.9 via Frontend Transport; Mon, 10 Feb 2020 09:58:37 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [89.37.124.34] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: c78cdf9a-243a-4e31-3326-08d7ae0fccc6 X-MS-TrafficTypeDiagnostic: VI1PR0402MB3599:|VI1PR0402MB3599: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-Forefront-PRVS: 03094A4065 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(39860400002)(376002)(396003)(136003)(366004)(199004)(189003)(956004)(2616005)(54906003)(16526019)(44832011)(6506007)(186003)(26005)(6486002)(66556008)(66946007)(66476007)(86362001)(4326008)(2906002)(478600001)(6512007)(81156014)(81166006)(8676002)(8936002)(316002)(4744005)(1076003)(5660300002)(6666004)(52116002)(142933001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB3599; H:VI1PR0402MB3839.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:0; MX:1; Received-SPF: None (protection.outlook.com: oss.nxp.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8bRFm1tUey/GL6h2qjN3Ry4Vb+lyMNQyWXQjzNJCuL4Q+Of+10htYZhrAdjN7rq1ekKMc6Dirhgt6H/b8E7pQ9ssCheza5LxHpEq+aX9ED2yWe6a1HuPCgHxBowNn8VLLQCTyninV6r5Pj8pIIarrpYJBgWUdONzHX6AGNZzAmHfNjZh9bcTedq9ZnjMZPkKjk1rArNM2AP1n7VqwxpJ5/pVK/M3VWNCeR8CkW1AGZJijlty4vuvs2EBU3rdTz0BiNEj5ck+GnL0wOiZZmvGw8r48eskA/f1KT9IEODQvim6EL8/4SAIvHbIHsSKAqDxcDPEK+G3QGOlS+3yZMB0k/a7idFUwAc2Y2y14Nox5J/B9ZtYL9zeiB8BRlFUu2/QJg9gZQKerm4O58CDZVsfQnXwqf1Xa97qT0fbw6xZihPF9kDn10TfJ7XMb7hkL5UjLkMlHnMIQB7fl0JJTBwqNptVuL7u3tAcaT1bxQmmoCy9UGjujEIBR1W2EFAIRGou X-MS-Exchange-AntiSpam-MessageData: Kv0UYy8Z9hG7n0dOrLgjkac4XVfelzURe1w2XfxRxuYe+5arRwdQP6w6Wv6ni0mVOUhRCNqxTrNekhx/CV3pD2/aIEkXai7ScyvzFgKkPOZWbK20HlKue3DPwIWmZJIf8KbPNumJLSR1jgPEF2V51A== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c78cdf9a-243a-4e31-3326-08d7ae0fccc6 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2020 09:58:38.1517 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: c6I9FuetUnJevu+dbuxEJMRIuI/c9+S1vB1p541xQWGnSmEfmu6+aR/uVP2FMusv0ywKj9S2gXzFosA+oMknSw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3599 Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Daniel Baluta , linux-kernel@vger.kernel.org, Paul Olaru , linux-imx@nxp.com, festevam@gmail.com Subject: [alsa-devel] [RESEND 4/4] dt-bindings: dsp: fsl: Add fsl, imx8qm-dsp entry X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" From: Paul Olaru This is the same DSP from the hardware point of view, but it gets a different compatible string due to usage in a separate platform. Signed-off-by: Paul Olaru Signed-off-by: Daniel Baluta Reviewed-by: Pierre-Louis Bossart Acked-by: Rob Herring --- Documentation/devicetree/bindings/dsp/fsl,dsp.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml b/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml index f04870d84542..30bc0db7f539 100644 --- a/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml +++ b/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml @@ -17,6 +17,7 @@ properties: compatible: enum: - fsl,imx8qxp-dsp + - fsl,imx8qm-dsp reg: description: Should contain register location and length