From nobody Sun Nov 24 09:33:24 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1725379813; cv=none; d=zohomail.com; s=zohoarc; b=Q9o1tW1HR84j4eeDK39sSsChtoKElf0tgqh+Ji1qNF2bGyV4jb7/2JiFhylNuTwVL2JVpOB/xuWavPlB/vrjualrJY8jQukN3VvnhmgrKt97kgpDiH0mbeo/mOHQzIwAisKVeoE0cAloQZUCSA1ijl7D5AuXR0PRtmPd8XQ/7Vg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1725379813; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=w5eOdLKfZLtMZFdGm8FdStOqhkbkq3e3YlHErrIuRRI=; b=QbwR/wzz9Qy7KLpLngws58oR3pWle4u7I6xh3325JuRPfynd/+L5fP6+WNfIOT4VyN6srVeoIlCSnngah3X2RfeNODF3d5JfnRfcKKXJZNSxH7lowGbl7JHoewGAI/e0lcJfWjbeFrJD/FCprrQRopb6gydAdSXXMO9S7z5yy/c= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1725379813208330.60769622005137; Tue, 3 Sep 2024 09:10:13 -0700 (PDT) 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) 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) 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-Google-Smtp-Source: AGHT+IEglErbT+6ZTNLnD+RIWtQniIr2rHqw4azUcDTmB/LHwN41i4ok1is1dKOvSeLsNxH0x9k1PQ== 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) 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 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1725379815335116600 Content-Type: text/plain; charset="utf-8" The omap_tap device is OMAP2 only, and we are removing it. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 --- 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); =20 -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 =3D opaque; - - if (size !=3D 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 !=3D 4) { - omap_badwidth_write32(opaque, addr, value); - return; - } - - OMAP_BAD_REG(addr); -} - -static const MemoryRegionOps omap_tap_ops =3D { - .read =3D omap_tap_read, - .write =3D omap_tap_write, - .endianness =3D 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', --=20 2.34.1