From patchwork Fri Jan 26 14:33:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 766378 Delivered-To: patch@linaro.org Received: by 2002:adf:a314:0:b0:337:62d3:c6d5 with SMTP id c20csp268513wrb; Fri, 26 Jan 2024 06:39:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IGdy9RjRDqmCa6FaSQmES1Crm2BLZPTlQfVZxZF4lvnklCc4ZXK4lBbdUxI0SUA3xrcE9Rx X-Received: by 2002:a05:620a:27d3:b0:783:da27:5bbe with SMTP id i19-20020a05620a27d300b00783da275bbemr608871qkp.79.1706279953740; Fri, 26 Jan 2024 06:39:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706279953; cv=none; d=google.com; s=arc-20160816; b=TEehJSzFw3OkiQhUie5ZvvQKLxs6ABMjKAHumK+TnH2Mwvf0P9K+xBTGMaxvlwQ+ZY CcMQSFudOPO5AS9Lm6exlMQwlAww3kBvuPtCrDPp9aCKgxmvmPtCQBOl11qTw2cf+JLR gake9ecrDd3DWa7Hu1yia+KvyGCvdQaBtUktTgfkJejP5GUwY94Ay+bChdzF4ZQHy4GV B4FC4INK9v4XdaVgeY3hoCG7Z4WbmP2//NkvOvjmIMuJz3ay0VzZu6a96l9ctjgajmUL Q4AX0GVc5FwXGhdt6b9icC4xukEMNRMFwewV2dQ1jWl+eXLnYDfccbsT3DPRxgdJlT2j C3lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=eZpEnAeJf53ixh3kz2oebZYqrcVt+0YUC5baVJx1ZCE=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=v/Najy3WibKCTQ7vvazOIONpp/C+HMXTEdYLagdmmPD4O9utnNQ6T9Ixy0OEK5F2pQ B51ZC5yzAnfrSm/xonoEmi8xtzOXAysOim3M4nSBzyQlEhXsFfJaMfp2WDPCdxal9ccx YJyZjfUjLIaefoQ3n3pD4m7t3SpOP+GcnihjF941Yi8ewQmOT5PIlrKsm3mvfTm3/YvT XKjgHLQrwXQF5tm3PZELsKL9cKRz+4d8hl88vF1umh/7KgtLumTdZClfNmOU3WXH5jde S0jwBGkCn1URvsbjkksfSR2DQCz6DrPzyg5vcgsH7/PA0yVffYqDPEVScHDo5TQyzycZ Vtbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MOPEiymw; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id dt54-20020a05620a47b600b00783d0d65d96si1095526qkb.316.2024.01.26.06.39.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Jan 2024 06:39:13 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MOPEiymw; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTNHN-0002TE-0d; Fri, 26 Jan 2024 09:34:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rTNHK-0002Or-LM for qemu-devel@nongnu.org; Fri, 26 Jan 2024 09:33:58 -0500 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rTNHI-0007yf-UV for qemu-devel@nongnu.org; Fri, 26 Jan 2024 09:33:58 -0500 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-33922d2cb92so651068f8f.1 for ; Fri, 26 Jan 2024 06:33:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706279635; x=1706884435; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=eZpEnAeJf53ixh3kz2oebZYqrcVt+0YUC5baVJx1ZCE=; b=MOPEiymwOLR5akSKbdgGs9zAfxR9UWsfclcrQbx3U5rKA0x2ci4TOCC0/nwJNDDN2o Odj4U2HofMgj0eG15Z0Q/nHUjRY+mSMyfBjQJ47t42hEafqnwlvzBwsAWSZxRtdIkrkQ uh+zyxzw6GkyPAxfCojzXcnTnJ35lS9RPVvg0X6Xloedh6wtORCZNS3mBWq5d7cUvlBn pUGV2Mi20N6lszQ/KZ2BTWZrhN+Nbj1XoL51DrZw+7JAZV0dcatbJ9FSpxu0bBkxX7mZ aihAyR0/Bd0BRbtW8eR+VNXv1uPOm+gTQaC/COwDJt8bUE5623mA7WRd3DUw+5tm+q+F YKQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706279635; x=1706884435; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eZpEnAeJf53ixh3kz2oebZYqrcVt+0YUC5baVJx1ZCE=; b=aaO4f1jArDiju1Ey65vjHar7KXyp5RufypUMod3sjL9ArpVLH9RWEK4kzJhEZEaUFt sig92g/i0noQfgcOkzU9uXwvZP76lXd9jFXbtWnx818BVPTXSjmYktPsJ0lCbG1ofLOz DH3JVptvM5009sosBU1nsT0rypjEi0ZHqXd3x0Qv/L258Y5oFxI1hvp/JaFdwpo2hiLo 0lF5Lk7EEQ16iRXSq/WRDhwb3d9XljmNM3ge29ZZ3ZHS3bBmBNs90H8s6O/R8XVV/cMO +lVSNH62obhb5khRBDlzBZxJzx5RP4qIu4h4X3hg2PRgvDtRWc5lH/ENZqrPiYPABKMZ gHhw== X-Gm-Message-State: AOJu0YyM9Bu2j4BN1qGXjj09LvyE7h6Wy2IvpjGAWL1is6ktrH4KRV3r hpG3BkOuTts2wQiTK6EdbAR9PsjoTv2rxrS+EVg2SNhOj7BQznYn0R3VvItVjsG06i064GUS5ch x X-Received: by 2002:adf:a486:0:b0:337:abfd:6058 with SMTP id g6-20020adfa486000000b00337abfd6058mr682127wrb.74.1706279635690; Fri, 26 Jan 2024 06:33:55 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id n5-20020a5d4845000000b00337f722e5ccsm1396207wrs.65.2024.01.26.06.33.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 06:33:55 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 30/36] fsl-imx6ul: Add various missing unimplemented devices Date: Fri, 26 Jan 2024 14:33:35 +0000 Message-Id: <20240126143341.2101237-31-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240126143341.2101237-1-peter.maydell@linaro.org> References: <20240126143341.2101237-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x434.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Guenter Roeck Add MMDC, OCOTP, SQPI, CAAM, and USBMISC as unimplemented devices. This allows operating systems such as Linux to run emulations such as mcimx6ul-evk. Before commit 0cd4926b85 ("Refactor i.MX6UL processor code"), the affected memory ranges were covered by the unimplemented DAP device. The commit reduced the DAP address range from 0x100000 to 4kB, and the emulation thus no longer covered the various unimplemented devices in the affected address range. Fixes: 0cd4926b85 ("Refactor i.MX6UL processor code") Cc: Jean-Christophe Dubois Signed-off-by: Guenter Roeck Reviewed-by: Philippe Mathieu-Daudé Message-id: 20240120005356.2599547-1-linux@roeck-us.net Signed-off-by: Peter Maydell --- include/hw/arm/fsl-imx6ul.h | 2 ++ hw/arm/fsl-imx6ul.c | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/include/hw/arm/fsl-imx6ul.h b/include/hw/arm/fsl-imx6ul.h index 14390f60144..8277b0e8b2c 100644 --- a/include/hw/arm/fsl-imx6ul.h +++ b/include/hw/arm/fsl-imx6ul.h @@ -182,6 +182,8 @@ enum FslIMX6ULMemoryMap { FSL_IMX6UL_ENET1_ADDR = 0x02188000, FSL_IMX6UL_USBO2_USBMISC_ADDR = 0x02184800, + FSL_IMX6UL_USBO2_USBMISC_SIZE = 0x200, + FSL_IMX6UL_USBO2_USB1_ADDR = 0x02184000, FSL_IMX6UL_USBO2_USB2_ADDR = 0x02184200, diff --git a/hw/arm/fsl-imx6ul.c b/hw/arm/fsl-imx6ul.c index 486a009deb8..343bd65d1b2 100644 --- a/hw/arm/fsl-imx6ul.c +++ b/hw/arm/fsl-imx6ul.c @@ -193,6 +193,36 @@ static void fsl_imx6ul_realize(DeviceState *dev, Error **errp) create_unimplemented_device("a7mpcore-dap", FSL_IMX6UL_A7MPCORE_DAP_ADDR, FSL_IMX6UL_A7MPCORE_DAP_SIZE); + /* + * MMDC + */ + create_unimplemented_device("a7mpcore-mmdc", FSL_IMX6UL_MMDC_CFG_ADDR, + FSL_IMX6UL_MMDC_CFG_SIZE); + + /* + * OCOTP + */ + create_unimplemented_device("a7mpcore-ocotp", FSL_IMX6UL_OCOTP_CTRL_ADDR, + FSL_IMX6UL_OCOTP_CTRL_SIZE); + + /* + * QSPI + */ + create_unimplemented_device("a7mpcore-qspi", FSL_IMX6UL_QSPI_ADDR, + FSL_IMX6UL_QSPI_SIZE); + + /* + * CAAM + */ + create_unimplemented_device("a7mpcore-qspi", FSL_IMX6UL_CAAM_ADDR, + FSL_IMX6UL_CAAM_SIZE); + + /* + * USBMISC + */ + create_unimplemented_device("a7mpcore-usbmisc", FSL_IMX6UL_USBO2_USBMISC_ADDR, + FSL_IMX6UL_USBO2_USBMISC_SIZE); + /* * GPTs */