From patchwork Tue Sep 3 16:07:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 824910 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp2491437wrs; Tue, 3 Sep 2024 09:10:13 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVE4dqMjbdg4Y2Y+zPciWqcxy5G86aBNXDyYKVamFY1dunBt37dNmnlASQRe5SnoEImXFPAdQ==@linaro.org X-Google-Smtp-Source: AGHT+IGqBIeei/guOtl4ajnlcydePhdSbYCWaQL+E2IzTQsc1WXRpRULCJ4uPDMFHG3iAfLdtiCa X-Received: by 2002:a05:6102:26c6:b0:497:6d56:3073 with SMTP id ada2fe7eead31-49bad26d5e5mr2985506137.7.1725379813092; Tue, 03 Sep 2024 09:10:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725379813; cv=none; d=google.com; s=arc-20160816; b=zEOvLxan/nzG63QrOhL0Ty6CEw3tSsp1+dpHZosW/RBOaXEQ5bv0xO5THkNNZjpnYl wUbyQF65U82L3yZZzJB1owIJlvSD6ClsTa0Y5HSsUmITxXS+nYz2XBg3XpbwK9TyWds+ 2DizU5m5LtQwHO7aFg0n4sKuNvheFXx2C6J2GiqIVUtFDHWqEMFh8LKhzhXlRAo0ucde H+hYM7mXBKxvj77swRe0s+cyikYRJXaOs3EvcWSn6E2o2aisKIbNuTVH/e7/eoLdAkFg O8U1jy179fROw7WmA3c3OuOtrATeKimAh3frtMbuw+JppTljvxBk02JschNYTNuWgft5 9FQQ== 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=w5eOdLKfZLtMZFdGm8FdStOqhkbkq3e3YlHErrIuRRI=; fh=ygObCK0nUnekvcgUC8cLwtDSBqJHP/7eDZWuEhhZ9J0=; b=gXwwovnuGfA/CXE16raKFSYYXNMEuC9umgDzjO5y+9Er2miydyDAuWpjpsuQ6ohNh4 Ue4BTVyNMRFif2Va+Wyuuu21tYMf8YRAAKLkFudKpFCVh3Jw92AZpDxgEOOyh2RnHxfa 2vlGIVNBKQGzV+gN8oha/kHGJy+JIQMYm2+m39a36hA7LDg0SrpKScA4uofQFzfzmwrN PVnkyRZDwVdeH+RdQov7jxlkKjxBmu8sEz0+F3HTtWZ4TcUtH71TESM7hDFbbiTJCRBB Nw/28q1yKINjwn2sv8Nw3rD+TmTIz+XwHrK4+NZl01mzi/Or51Kf8F8YvTotyF2hUV2E wL8g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tc6gYrem; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ada2fe7eead31-49a5f4fb24bsi2551747137.310.2024.09.03.09.10.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Sep 2024 09:10:13 -0700 (PDT) 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=tc6gYrem; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slW5f-0001tk-O8; Tue, 03 Sep 2024 12:09:11 -0400 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 1slW5e-0001ka-0N for qemu-devel@nongnu.org; Tue, 03 Sep 2024 12:09:10 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1slW5a-0002zc-I3 for qemu-devel@nongnu.org; Tue, 03 Sep 2024 12:09:09 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-42bb8cf8abeso44423975e9.2 for ; Tue, 03 Sep 2024 09:09:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725379745; x=1725984545; 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=w5eOdLKfZLtMZFdGm8FdStOqhkbkq3e3YlHErrIuRRI=; b=tc6gYremvYxz8FogacHRxMiphYI6Z/p7iyyv7IMTckKA98xdzf7gdasB6gTOXH0plA rSYHDUGp9JL/Mr+jJ1uVV5CCvhJG+D01KVAnDdVuvI+Ym8WV490fUiqdZ3jCaZshfRSu tLsG/jguIt+jtMuwCxocjJFbcJ+Wf7/e35jQCvPeX/OkNBU+ocxOqFi4vaOI6tGj4fG1 925X321LN1WA9NKd7e2tiu/FVxiFDvkcLLctqHGG4qcNNP+7E1+otF/FTUGIjTz9zchP uk+jzq61nBsO5ijbdhpYr0/eUBbX0eHKh8A1alzY7rAidLsACdXOeevhAa7RxzopXb3W y65Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725379745; x=1725984545; 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=w5eOdLKfZLtMZFdGm8FdStOqhkbkq3e3YlHErrIuRRI=; b=TOSsNNE7W0Ok/rCkLxKbZ8+uyfrVsoHfLTgoVUIG080r3CObBxM+P0Ja/g/9eGoI9e NCmDLiInbEJLpPaFeqvL0o0ngSBDY6VbVV7h4nNlH6DffXBMlLPe7FqufVQ7Ke6dUeeQ v8hj4BfrJfvNudywz7sECn/MN8lLawDjb7NefhnutdzfMG6eWSOWN7a6Ht2C2cnH4mjG Qt1UGInMr+uj2z2bghwWEGKg8dnuFWSe/Wyed3FT1479o42kn4g32wV9gAO2GP6y+Ptf XOZgp4ephL+PaQiSeUrF58Ns5bXi+p/XpejM0sDNssIPIAI95H5Qt4HaPI5/uLFxyMXo ivJA== X-Forwarded-Encrypted: i=1; AJvYcCXMwkk1SEPjFPmF64l/lA4gqUB5a6EpXNnUOTWw3qK7NotqDhdq4tfMGOhlSfkCfWUeQ65EzpRnhy6W@nongnu.org X-Gm-Message-State: AOJu0Yy1+sVkzNvC4EWCSNZWLMf3FwVCzj1c5M+c3Vl6ZhP/OVWOEd/B uti68LRYSTqVLQmGrM9Ry10BFkKH4K+eI10f5orscYTWjhiVcU/1fSBtVspc5OTqnCauW70Xzh9 0 X-Received: by 2002:a05:600c:4f05:b0:428:640:c1b1 with SMTP id 5b1f17b1804b1-42c8de87b4dmr9886585e9.17.1725379745124; Tue, 03 Sep 2024 09:09:05 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6df1066sm175123065e9.18.2024.09.03.09.09.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 09:09:04 -0700 (PDT) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH for-9.2 48/53] hw/misc: Remove omap_tap device Date: Tue, 3 Sep 2024 17:07:46 +0100 Message-Id: <20240903160751.4100218-49-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240903160751.4100218-1-peter.maydell@linaro.org> References: <20240903160751.4100218-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32e.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 The omap_tap device is OMAP2 only, and we are removing it. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- include/hw/arm/omap.h | 3 -- hw/misc/omap_tap.c | 117 ------------------------------------------ hw/misc/meson.build | 1 - 3 files changed, 121 deletions(-) delete mode 100644 hw/misc/omap_tap.c diff --git a/include/hw/arm/omap.h b/include/hw/arm/omap.h index 118874d8775..82721b46fa0 100644 --- a/include/hw/arm/omap.h +++ b/include/hw/arm/omap.h @@ -725,9 +725,6 @@ struct I2SCodec { struct omap_mcbsp_s; void omap_mcbsp_i2s_attach(struct omap_mcbsp_s *s, I2SCodec *slave); -void omap_tap_init(struct omap_target_agent_s *ta, - struct omap_mpu_state_s *mpu); - /* omap_lcdc.c */ struct omap_lcd_panel_s; void omap_lcdc_reset(struct omap_lcd_panel_s *s); diff --git a/hw/misc/omap_tap.c b/hw/misc/omap_tap.c deleted file mode 100644 index 4d7fb7d85f1..00000000000 --- a/hw/misc/omap_tap.c +++ /dev/null @@ -1,117 +0,0 @@ -/* - * TI OMAP TEST-Chip-level TAP emulation. - * - * Copyright (C) 2007-2008 Nokia Corporation - * Written by Andrzej Zaborowski - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 or - * (at your option) any later version of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, see . - */ - -#include "qemu/osdep.h" -#include "hw/hw.h" -#include "hw/arm/omap.h" - -/* TEST-Chip-level TAP */ -static uint64_t omap_tap_read(void *opaque, hwaddr addr, unsigned size) -{ - struct omap_mpu_state_s *s = opaque; - - if (size != 4) { - return omap_badwidth_read32(opaque, addr); - } - - switch (addr) { - case 0x204: /* IDCODE_reg */ - switch (s->mpu_model) { - case omap2420: - case omap2422: - case omap2423: - return 0x5b5d902f; /* ES 2.2 */ - case omap2430: - return 0x5b68a02f; /* ES 2.2 */ - case omap3430: - return 0x1b7ae02f; /* ES 2 */ - default: - hw_error("%s: Bad mpu model\n", __func__); - } - - case 0x208: /* PRODUCTION_ID_reg for OMAP2 */ - case 0x210: /* PRODUCTION_ID_reg for OMAP3 */ - switch (s->mpu_model) { - case omap2420: - return 0x000254f0; /* POP ESHS2.1.1 in N91/93/95, ES2 in N800 */ - case omap2422: - return 0x000400f0; - case omap2423: - return 0x000800f0; - case omap2430: - return 0x000000f0; - case omap3430: - return 0x000000f0; - default: - hw_error("%s: Bad mpu model\n", __func__); - } - - case 0x20c: - switch (s->mpu_model) { - case omap2420: - case omap2422: - case omap2423: - return 0xcafeb5d9; /* ES 2.2 */ - case omap2430: - return 0xcafeb68a; /* ES 2.2 */ - case omap3430: - return 0xcafeb7ae; /* ES 2 */ - default: - hw_error("%s: Bad mpu model\n", __func__); - } - - case 0x218: /* DIE_ID_reg */ - return ('Q' << 24) | ('E' << 16) | ('M' << 8) | ('U' << 0); - case 0x21c: /* DIE_ID_reg */ - return 0x54 << 24; - case 0x220: /* DIE_ID_reg */ - return ('Q' << 24) | ('E' << 16) | ('M' << 8) | ('U' << 0); - case 0x224: /* DIE_ID_reg */ - return ('Q' << 24) | ('E' << 16) | ('M' << 8) | ('U' << 0); - } - - OMAP_BAD_REG(addr); - return 0; -} - -static void omap_tap_write(void *opaque, hwaddr addr, - uint64_t value, unsigned size) -{ - if (size != 4) { - omap_badwidth_write32(opaque, addr, value); - return; - } - - OMAP_BAD_REG(addr); -} - -static const MemoryRegionOps omap_tap_ops = { - .read = omap_tap_read, - .write = omap_tap_write, - .endianness = DEVICE_NATIVE_ENDIAN, -}; - -void omap_tap_init(struct omap_target_agent_s *ta, - struct omap_mpu_state_s *mpu) -{ - memory_region_init_io(&mpu->tap_iomem, NULL, &omap_tap_ops, mpu, "omap.tap", - omap_l4_region_size(ta, 0)); - omap_l4_attach(ta, 0, &mpu->tap_iomem); -} diff --git a/hw/misc/meson.build b/hw/misc/meson.build index 122084b1694..b7e97e47cf9 100644 --- a/hw/misc/meson.build +++ b/hw/misc/meson.build @@ -76,7 +76,6 @@ system_ss.add(when: 'CONFIG_NPCM7XX', if_true: files( system_ss.add(when: 'CONFIG_OMAP', if_true: files( 'omap_clk.c', 'omap_l4.c', - 'omap_tap.c', )) system_ss.add(when: 'CONFIG_RASPI', if_true: files( 'bcm2835_mbox.c',