From patchwork Thu Jul 16 13:03:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 1330228 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=boundarydevices.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=boundarydevices-com.20150623.gappssmtp.com header.i=@boundarydevices-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=jxESz5L7; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B6vZX2J3hz9sT6 for ; Thu, 16 Jul 2020 23:03:29 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id DE5BB87688; Thu, 16 Jul 2020 13:03:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pKWIvcU5PNIN; Thu, 16 Jul 2020 13:03:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4197A874EA; Thu, 16 Jul 2020 13:03:26 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 974BB1BF3B9 for ; Thu, 16 Jul 2020 13:03:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8F63D89476 for ; Thu, 16 Jul 2020 13:03:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VTw0CY9nKqD1 for ; Thu, 16 Jul 2020 13:03:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by hemlock.osuosl.org (Postfix) with ESMTPS id 29E6589433 for ; Thu, 16 Jul 2020 13:03:24 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id f18so11518887wml.3 for ; Thu, 16 Jul 2020 06:03:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0N/9k0nSqON3iHkK4O2f2FBLHL5so2536A5gopL1YjE=; b=jxESz5L7ptd2qUguPH1dvGJEcwz00NYHXSxkEQ/fhyWaJPtfotFbvIVd47WDftdaxb C5yoMRwVzvNbOHl5M2mObXEcySyJ+tGbr/f7k9xETsVynepsjDNPoFmjsXOm24E7ANGL N2CA7/U8EayNeEpcWjiKsyZLdfen53YyVCM+m69AwiVAZBURuOBPX7LjHZD/XWCs2mLk zmBhaWr4fx5+hHZaoJ/DxneQTylEPawr/ycOt5iAJ6R3KxxKxb5i3OIQE3iGV8a1XWB2 EfIosJE2XDu2krGuFMFskBLEiXBPUADF2g3Di0wg0rA8MH5vbt2WFuGlgLLcG8PYgP3K TX0A== 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:mime-version :content-transfer-encoding; bh=0N/9k0nSqON3iHkK4O2f2FBLHL5so2536A5gopL1YjE=; b=LsmGX8AQnvztEKXI+yyx+MqNsr+M/IxTQQ8E+3sXjWNcKuLuxS68uYC2HUQ5txR07r cqAAiYB02WCTGHlqdFr5sRNEyCy2MQ1z8F3eycGQhAmmD3E4IoA3QkA1gYYbILUX6+Xr Z52Sx293ltayoGExtkLLmNkNSDV5V6IH4y7alR4QeL8VX1915vBG0j5NwWOpTYIRyrLT sPm0I7izRhRCgSm8ktYPwCtWQj5fso38S1hcPVkQv9kfTcN50hzDrkehGZD747DFNLEn nkbuJhZXITLTajP6jtfmz5YUZORrwfZ7uwc/X1pRPU+M0tTtmz9qHGrwbGU6yFaU+3Xu KAxg== X-Gm-Message-State: AOAM533yGSd6LWayqRuUNLq4euBCJvG8VHXiHYaRtGP8ydW8j9z3AS37 T80sQ1ol+mIR8i4I/aCcx9EVjjFfgE+8VA== X-Google-Smtp-Source: ABdhPJyy6i8Kz6DNaLiDTxnd0s5tKuZer0HltVmFO/Riz0Q+r5yixalQg30uCHEpPmDcPrvLqU4Zjw== X-Received: by 2002:a1c:48d:: with SMTP id 135mr4451016wme.102.1594904601979; Thu, 16 Jul 2020 06:03:21 -0700 (PDT) Received: from p1g2.home (2a01cb000f89b400891e4d295629adac.ipv6.abo.wanadoo.fr. [2a01:cb00:f89:b400:891e:4d29:5629:adac]) by smtp.gmail.com with ESMTPSA id j15sm8824664wrx.69.2020.07.16.06.03.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 06:03:21 -0700 (PDT) From: Gary Bisson To: buildroot@buildroot.org Date: Thu, 16 Jul 2020 15:03:17 +0200 Message-Id: <20200716130317.135841-1-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/freescale-imx/firmware-imx: fix sdma support for imx8m family X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gary Bisson , thomas.petazzoni@bootlin.com, stephane.viau@oss.nxp.com Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" In latest patch the SDMA installation was limited to platforms whose name was mentioned in the binary. That would unfortunately be too simple to manage, instead the i.MX 8M family uses the same binary as the i.MX 7 processors [1]. Fixes: fad2df39b9 ("package/freescale-imx/firmware-imx: clarify installation of firmware files") [1] https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mq.dtsi?h=imx_5.4.24_2.1.0#n519 Signed-off-by: Gary Bisson --- package/freescale-imx/firmware-imx/Config.in | 3 +++ package/freescale-imx/firmware-imx/firmware-imx.mk | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/package/freescale-imx/firmware-imx/Config.in b/package/freescale-imx/firmware-imx/Config.in index aae552177f..3859cc1d14 100644 --- a/package/freescale-imx/firmware-imx/Config.in +++ b/package/freescale-imx/firmware-imx/Config.in @@ -20,6 +20,9 @@ config BR2_PACKAGE_FIRMWARE_IMX_NEEDS_SDMA_FW default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX53 default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX6Q default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX7 + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM + default y if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN config BR2_PACKAGE_FIRMWARE_IMX_NEEDS_VPU_FW bool diff --git a/package/freescale-imx/firmware-imx/firmware-imx.mk b/package/freescale-imx/firmware-imx/firmware-imx.mk index cd299aad5e..90d9a79860 100644 --- a/package/freescale-imx/firmware-imx/firmware-imx.mk +++ b/package/freescale-imx/firmware-imx/firmware-imx.mk @@ -107,9 +107,13 @@ endif # ifeq ($(BR2_PACKAGE_FIRMWARE_IMX_NEEDS_SDMA_FW),y) +FIRMWARE_IMX_SDMA_NAME = $(FIRMWARE_IMX_PLATFORM_LOWER) +ifeq ($(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MM)$(BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN),y) +FIRMWARE_IMX_SDMA_NAME = imx7d +endif define FIRMWARE_IMX_INSTALL_TARGET_SDMA_FW mkdir -p $(TARGET_DIR)/lib/firmware/imx/sdma - cp -r $(@D)/firmware/sdma/sdma-$(FIRMWARE_IMX_PLATFORM_LOWER)*.bin \ + cp -r $(@D)/firmware/sdma/sdma-$(FIRMWARE_IMX_SDMA_NAME)*.bin \ $(TARGET_DIR)/lib/firmware/imx/sdma/ endef endif