From nobody Sat Feb 7 07:12:01 2026 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; arc=pass (i=1 dmarc=pass fromdomain=aspeedtech.com); dmarc=pass(p=quarantine dis=none) header.from=aspeedtech.com ARC-Seal: i=2; a=rsa-sha256; t=1770348053; cv=pass; d=zohomail.com; s=zohoarc; b=TE/F8XWjKyQiMy3LlNbXttfSWv43WEA4gXjY52gNz0xfsdHovUipUK/6kTjSYoKu/y5XDOHWFw0azb8GYK8I5ADmiG5fK8j0GofClQwjjOOQo4LKj2AqaiBo+AOz02Oj9AwsOWqStsSdeeJERBLlJrMbigJ1eAGb3H66F3RYLkw= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770348053; h=Content-Type:Content-Transfer-Encoding:Cc:Cc: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; bh=1VharO2tbWa39atTgLV0i8OCFEVINkKrMJYJa9qMlVA=; b=V1XPiylXR/pDrgRGoGzOO7XFSrX3Vy44s13Q7hUFrCtyWbuVlzUlLxYktNQE/ZV3RIxyAbeuVkD4Bjee5/l8RsN3OkcIMJv3H0CTk6p3Pus/iVzqFVrKXqiHybPjjpSitQp4kMPtJigYvSIY4ZQhmJdY+DHSJEBBoPXfFZ+qWtM= ARC-Authentication-Results: i=2; 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; arc=pass (i=1 dmarc=pass fromdomain=aspeedtech.com); dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770348053265940.4057193862774; Thu, 5 Feb 2026 19:20:53 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1voCNr-0000Q0-F2; Thu, 05 Feb 2026 22:19:52 -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 1voCNj-0000PW-1u; Thu, 05 Feb 2026 22:19:43 -0500 Received: from mail-japaneastazlp170120005.outbound.protection.outlook.com ([2a01:111:f403:c405::5] helo=TYPPR03CU001.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1voCNg-0008HM-Nh; Thu, 05 Feb 2026 22:19:42 -0500 Received: from TYPPR06MB8206.apcprd06.prod.outlook.com (2603:1096:405:383::19) by SEZPR06MB5762.apcprd06.prod.outlook.com (2603:1096:101:ac::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9587.15; Fri, 6 Feb 2026 03:19:29 +0000 Received: from TYPPR06MB8206.apcprd06.prod.outlook.com ([fe80::e659:1ead:77cb:f6d3]) by TYPPR06MB8206.apcprd06.prod.outlook.com ([fe80::e659:1ead:77cb:f6d3%3]) with mapi id 15.20.9587.013; Fri, 6 Feb 2026 03:19:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=E6i7LRUTmrc9HCGIdC6B8KUerizX8tCgZ9wp2at0Qs4yUG6Ndueiuj61209j9py7IJdVUiBwi4/cJnwAzxtbX/X+gbvAMDR9oNKLXBR4MPTVhjBY/txag1B76BvLQj6+f5kW7s1cbURH7veDw9gItp0kB1hZHAPZhDW/Xib6RhxZvpTh/UNxAR6tH6/ZSYOFLPMyhE6v8FRWzJEQCtbqF/Bd6bArY+mpJPJEuc286WcTl7HtLCaPOVeABB8dAVYZYbJBFbNBPk3KtbjY8gM5E472EWAaa0Vjh52gnBza+9hZ16Yhpif2Y0UDTnP5RWnoGgHEdWC87ZaYEXyOUVBe2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1VharO2tbWa39atTgLV0i8OCFEVINkKrMJYJa9qMlVA=; b=rucQDC61KUM/EqeAlB+qUu2P3ccLUIs3lz8LVQHtGjANOyV9A27zFxbMo4TaYdwK/OiVsrw2/lIN51Evgl3QE0lRxnPjic2nwUCCpPEZ36IPU0mkYo3f7DGtouzxqUAxcjn2SsUxs9hT4RNknLLzjQyViTVnBml3JTCFlIomqxCDWISaSujKQK+mUlZctRX6w+F7jD4+dQiTuUaoyqaKhHL5bQ4HEhxQONjlZDc++bBOGS3GNwOOiMFP+tzZjHV01MzRX9NxHwKbQHHdNtndLcQ1Dg7ZOINu1ZPjS+uQNERo/CykeRxzYS9erfrgKt1RgKyKYcBXfEh176zHfeG9ZQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=aspeedtech.com; dmarc=pass action=none header.from=aspeedtech.com; dkim=pass header.d=aspeedtech.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aspeedtech.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1VharO2tbWa39atTgLV0i8OCFEVINkKrMJYJa9qMlVA=; b=Ts4E1pYj2rzC2eFdrXpry0A+1MFOyfiRJL28GIrwRr/gsEAasvLPrkylcG6Vx99Zjw4Qevf2OqqNxBYI231e9Vm+rOYAyxU2uzOgA2bcrqkxx6A8/mXZehZMTKzoZBgL7altPqRKcrHccxKMVfPpD4xK8P8eX/fdHl9k1JLERW6hTFoghnC8Gvyv3Uay8fals6FbTPQ+/E4m7ToX3kx1z8ylEZSc/2BlrXBMSr6v/dsLeZxwj63PFWL293OG3agKdygSq1Hloxd0kPBRUDOQJqjsCacJLz5ANu2tgrR0oQjvo1LmTbRQTr1BggtwBsnB5ZHuXyt2MFS59oimCSKv1w== From: Jamin Lin To: Paolo Bonzini , Peter Maydell , =?iso-8859-1?Q?C=E9dric_Le_Goater?= , Steven Lee , Troy Lee , Andrew Jeffery , Joel Stanley , =?iso-8859-1?Q?Marc-Andr=E9_Lureau?= , =?iso-8859-1?Q?Daniel_P=2E_Berrang=E9?= , =?iso-8859-1?Q?Philippe_Mathieu-Daud=E9?= , "open list:All patches CC here" , "open list:ARM TCG CPUs" CC: Jamin Lin , Troy Lee , Kane Chen , Joe Komlodi , Patrick Venture , Titus Rwantare , =?iso-8859-1?Q?C=E9dric_Le_Goater?= Subject: [PATCH v3 01/20] hw/misc/aspeed_i3c: Move to i3c directory Thread-Topic: [PATCH v3 01/20] hw/misc/aspeed_i3c: Move to i3c directory Thread-Index: AQHclxdnleJQsKDzIE6abQ/BqMo6qA== Date: Fri, 6 Feb 2026 03:19:29 +0000 Message-ID: <20260206031926.3227848-2-jamin_lin@aspeedtech.com> References: <20260206031926.3227848-1-jamin_lin@aspeedtech.com> In-Reply-To: <20260206031926.3227848-1-jamin_lin@aspeedtech.com> Accept-Language: zh-TW, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=aspeedtech.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TYPPR06MB8206:EE_|SEZPR06MB5762:EE_ x-ms-office365-filtering-correlation-id: 562237bb-4cf8-48c2-2b0c-08de652e8a07 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|366016|376014|7416014|921020|38070700021; x-microsoft-antispam-message-info: =?iso-8859-1?Q?qtEFzeLeVKp4P9NeZb6Tp/tdPeJgf8BwQZvdkCNXCseOUSv1bFa3E5o2iY?= =?iso-8859-1?Q?nxxFeaNzkG6Ul4vnY9E3D6COkiwKlcqslHmdq1n4WZsrdDTDHuP+t/GPE6?= =?iso-8859-1?Q?OuXaDTfeJx6x50PiDCQD9qgZHjVngifz3uY5e2n1EmbM/XR1JJTap2lMNZ?= =?iso-8859-1?Q?UlG1F5xsalSz57Twp0iPuyvx5ydmmnCDS5E31NeGISu1G2C5pGYn1fZeSO?= =?iso-8859-1?Q?Gg2BqoAvNLRbqzUwEma0q5xehymxtUpN7FSUdCkTTciELxw/iangzo3PRi?= =?iso-8859-1?Q?Leylj8VmiF8vlH5cG7+S7ShjZGV3Qwiq+1I3rXNLk2HO9sx9dk4oj8cUop?= =?iso-8859-1?Q?3VlQK/ekL9dJbzffOpkJHmrTWi1vNzuVvnBzGzbFuErfvg4lLe2lCIFaT+?= =?iso-8859-1?Q?pgay29/oIR7wHtC1hpQV3aw5kbG8OOdPnYJp9Tk255IAVis+xZTtkB2Lty?= =?iso-8859-1?Q?Yxq1c3KuhD07L/lAeTY2IU8yBTSFPpMhH3Y0kK3LIpk2sAv71y23E/SNDN?= =?iso-8859-1?Q?2fB+DIFkd2TPTrm0EOboa5cG0JgEfX1k8Dq0PkmZh76hghefo/3Wo56z3M?= =?iso-8859-1?Q?gvJ0Axor0AoG8CzXh6nyw2CQa5IvRQAZfPVwC6KS9vHbv3Xr4UlKE7yQ4G?= =?iso-8859-1?Q?jHgh6do/3HnrqyoOHS0ljCgx2iUhQtvsg9Geha0r3DN9qI6hrbj9f7KlAT?= =?iso-8859-1?Q?d+AqBm7gi/w6QpWroGgkUa/C2m/oGiLIWsN225+zVFW0CS076mdXKAKQhA?= =?iso-8859-1?Q?OwLJsFQiKtsvTpxn06jLKU5MToBrQeLLOlJlpfjSCu2PStysdBEWr6wOnO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?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYPPR06MB8206.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014)(7416014)(921020)(38070700021); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?hu6l6j3V6fT0dIluvqaC2Rhn/WxHhpU3MFya4T0y9CqYLpvhahbj/biIeZ?= =?iso-8859-1?Q?gSMkDr0s0BBnC3MeDLpMNvbN29AyXat47sjZSeNGLfnLiaFOCj7V7FKxhE?= =?iso-8859-1?Q?IfsiObVnYZUUTPenk3ld8PIKn5+MJCWL7YQP2d/cRu7Mkpcyp2EVaa1mdd?= =?iso-8859-1?Q?9LnWAb5VMESfaIO0NZ1WIkFmEh5J77FyDA5XLltSrRlDHnHaG4VQ9l5vQX?= =?iso-8859-1?Q?IOqM4M788fTnjsKN62K5xU6manllfnY52qHUEyQar5ULnp7YZDT91URlWl?= =?iso-8859-1?Q?NRXR5QxlIm8kIKLnAjUNxuk8wo/UvJZtzQk4c3KX8tuGepvFdtryze74nq?= =?iso-8859-1?Q?wYTdH89im9RbGxIvCr+PP56hcqm52otrOLB4Ggcas3Z9kSUW0k0/9+DwJf?= =?iso-8859-1?Q?mOvJkFvBs6ABKViRUBjv+YGWW9gvELvlHcUjcHCydV05wCaQl/hkW1MMfw?= =?iso-8859-1?Q?VXcCT84w3oL5DkzLBYpwCQCCe37IOd0XzGouN803yWcbAuWWR4xmrBxS2N?= =?iso-8859-1?Q?7E+NI2ApGW+FLMSQvT3Z/eEaCFz8nt2Ttyg7lsQxDSrHK29jgcGMI+oAhM?= =?iso-8859-1?Q?jdYFzfD55v0xaEwLGtaoE1IGAjC++DK8EAnimgNgbYdry32btemUx0orWU?= =?iso-8859-1?Q?sBFATqTzN8guNS1haXA3Oq4uomIWWDlmjP9T2oJiHNu8i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2UHTUDc+vzn9yFSY15uBXKfA44WGNyiCALvtbP1?= =?iso-8859-1?Q?IcCcpNjIjJ+WkN6YQO/xkcYcmWqHp2y2OcUMJtqmNhbBzneUsjGmm7aggN?= =?iso-8859-1?Q?KAHIMX4u8Kun9PBgCC8bC9nxoo8G77RvTIyNepGVjcExPWgRtLKtjuCVmH?= =?iso-8859-1?Q?XoHy15eJlfdudbeOdgiHQybDzAJM+e4uySMhyO1nezUJxHWQ22LvvSOLRV?= =?iso-8859-1?Q?oiyhfbHj4g=3D=3D?= Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: aspeedtech.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYPPR06MB8206.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 562237bb-4cf8-48c2-2b0c-08de652e8a07 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Feb 2026 03:19:29.1600 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43d4aa98-e35b-4575-8939-080e90d5a249 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 8FelOhSiZ0sin4HmYNut368NNmQxCQROES0qbUOWoRIr9Xq9073wAXXrTwTlTfbW901oMq39BXxcHjfJHIcGsf2DWA6D7ZucnNjMF+WKbmk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB5762 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=2a01:111:f403:c405::5; envelope-from=jamin_lin@aspeedtech.com; helo=TYPPR03CU001.outbound.protection.outlook.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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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: qemu development 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 @aspeedtech.com) X-ZM-MESSAGEID: 1770348057013154100 Content-Type: text/plain; charset="utf-8" Moves the Aspeed I3C model and traces into hw/i3c and creates I3C build files. Signed-off-by: Joe Komlodi Signed-off-by: Jamin Lin Reviewed-by: Patrick Venture Reviewed-by: Titus Rwantare Reviewed-by: C=C3=A9dric Le Goater Reviewed-by: Jamin Lin --- meson.build | 1 + hw/i3c/trace.h | 2 ++ include/hw/arm/aspeed_soc.h | 2 +- include/hw/{misc =3D> i3c}/aspeed_i3c.h | 0 hw/{misc =3D> i3c}/aspeed_i3c.c | 2 +- hw/Kconfig | 1 + hw/arm/Kconfig | 1 + hw/i3c/Kconfig | 2 ++ hw/i3c/meson.build | 3 +++ hw/i3c/trace-events | 7 +++++++ hw/meson.build | 1 + hw/misc/meson.build | 1 - hw/misc/trace-events | 6 ------ 13 files changed, 20 insertions(+), 9 deletions(-) create mode 100644 hw/i3c/trace.h rename include/hw/{misc =3D> i3c}/aspeed_i3c.h (100%) rename hw/{misc =3D> i3c}/aspeed_i3c.c (99%) create mode 100644 hw/i3c/Kconfig create mode 100644 hw/i3c/meson.build create mode 100644 hw/i3c/trace-events diff --git a/meson.build b/meson.build index 8c6c0a9a32..d20ec383df 100644 --- a/meson.build +++ b/meson.build @@ -3602,6 +3602,7 @@ if have_system 'hw/fsi', 'hw/hyperv', 'hw/i2c', + 'hw/i3c', 'hw/i386', 'hw/i386/xen', 'hw/i386/kvm', diff --git a/hw/i3c/trace.h b/hw/i3c/trace.h new file mode 100644 index 0000000000..1e0c4eadf0 --- /dev/null +++ b/hw/i3c/trace.h @@ -0,0 +1,2 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +#include "trace/trace-hw_i3c.h" diff --git a/include/hw/arm/aspeed_soc.h b/include/hw/arm/aspeed_soc.h index b185b04186..d7b3647ca1 100644 --- a/include/hw/arm/aspeed_soc.h +++ b/include/hw/arm/aspeed_soc.h @@ -23,7 +23,7 @@ #include "hw/timer/aspeed_timer.h" #include "hw/rtc/aspeed_rtc.h" #include "hw/i2c/aspeed_i2c.h" -#include "hw/misc/aspeed_i3c.h" +#include "hw/i3c/aspeed_i3c.h" #include "hw/ssi/aspeed_smc.h" #include "hw/misc/aspeed_hace.h" #include "hw/misc/aspeed_sbc.h" diff --git a/include/hw/misc/aspeed_i3c.h b/include/hw/i3c/aspeed_i3c.h similarity index 100% rename from include/hw/misc/aspeed_i3c.h rename to include/hw/i3c/aspeed_i3c.h diff --git a/hw/misc/aspeed_i3c.c b/hw/i3c/aspeed_i3c.c similarity index 99% rename from hw/misc/aspeed_i3c.c rename to hw/i3c/aspeed_i3c.c index ac6db214ee..fff259ff66 100644 --- a/hw/misc/aspeed_i3c.c +++ b/hw/i3c/aspeed_i3c.c @@ -10,7 +10,7 @@ #include "qemu/osdep.h" #include "qemu/log.h" #include "qemu/error-report.h" -#include "hw/misc/aspeed_i3c.h" +#include "hw/i3c/aspeed_i3c.h" #include "hw/core/registerfields.h" #include "hw/core/qdev-properties.h" #include "qapi/error.h" diff --git a/hw/Kconfig b/hw/Kconfig index 9e6c789ae7..c53f94d96a 100644 --- a/hw/Kconfig +++ b/hw/Kconfig @@ -13,6 +13,7 @@ source fsi/Kconfig source gpio/Kconfig source hyperv/Kconfig source i2c/Kconfig +source i3c/Kconfig source ide/Kconfig source input/Kconfig source intc/Kconfig diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index c66c452737..8344b9769f 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -545,6 +545,7 @@ config ASPEED_SOC select DS1338 select FTGMAC100 select I2C + select I3C select DPS310 select PCA9552 select PCA9554 diff --git a/hw/i3c/Kconfig b/hw/i3c/Kconfig new file mode 100644 index 0000000000..e07fe445c6 --- /dev/null +++ b/hw/i3c/Kconfig @@ -0,0 +1,2 @@ +config I3C + bool diff --git a/hw/i3c/meson.build b/hw/i3c/meson.build new file mode 100644 index 0000000000..ebf20325cb --- /dev/null +++ b/hw/i3c/meson.build @@ -0,0 +1,3 @@ +i3c_ss =3D ss.source_set() +i3c_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files('aspeed_i3c.c')) +system_ss.add_all(when: 'CONFIG_I3C', if_true: i3c_ss) diff --git a/hw/i3c/trace-events b/hw/i3c/trace-events new file mode 100644 index 0000000000..3ead84eb45 --- /dev/null +++ b/hw/i3c/trace-events @@ -0,0 +1,7 @@ +# See docs/devel/tracing.rst for syntax documentation. + +# aspeed_i3c.c +aspeed_i3c_read(uint64_t offset, uint64_t data) "I3C read: offset 0x%" PRI= x64 " data 0x%" PRIx64 +aspeed_i3c_write(uint64_t offset, uint64_t data) "I3C write: offset 0x%" P= RIx64 " data 0x%" PRIx64 +aspeed_i3c_device_read(uint32_t deviceid, uint64_t offset, uint64_t data) = "I3C Dev[%u] read: offset 0x%" PRIx64 " data 0x%" PRIx64 +aspeed_i3c_device_write(uint32_t deviceid, uint64_t offset, uint64_t data)= "I3C Dev[%u] write: offset 0x%" PRIx64 " data 0x%" PRIx64 diff --git a/hw/meson.build b/hw/meson.build index 1022bdb806..e05dc4864c 100644 --- a/hw/meson.build +++ b/hw/meson.build @@ -35,6 +35,7 @@ subdir('dma') subdir('gpio') subdir('hyperv') subdir('i2c') +subdir('i3c') subdir('ide') subdir('input') subdir('intc') diff --git a/hw/misc/meson.build b/hw/misc/meson.build index d304a98498..96b6705b7d 100644 --- a/hw/misc/meson.build +++ b/hw/misc/meson.build @@ -135,7 +135,6 @@ system_ss.add(when: 'CONFIG_PVPANIC_MMIO', if_true: fil= es('pvpanic-mmio.c')) system_ss.add(when: 'CONFIG_AUX', if_true: files('auxbus.c')) system_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files( 'aspeed_hace.c', - 'aspeed_i3c.c', 'aspeed_lpc.c', 'aspeed_ltpi.c', 'aspeed_pwm.c', diff --git a/hw/misc/trace-events b/hw/misc/trace-events index d6af2fcf85..b88accc437 100644 --- a/hw/misc/trace-events +++ b/hw/misc/trace-events @@ -293,12 +293,6 @@ armsse_mhu_write(uint64_t offset, uint64_t data, unsig= ned size) "SSE-200 MHU wri # aspeed_xdma.c aspeed_xdma_write(uint64_t offset, uint64_t data) "XDMA write: offset 0x%"= PRIx64 " data 0x%" PRIx64 =20 -# aspeed_i3c.c -aspeed_i3c_read(uint64_t offset, uint64_t data) "I3C read: offset 0x%" PRI= x64 " data 0x%" PRIx64 -aspeed_i3c_write(uint64_t offset, uint64_t data) "I3C write: offset 0x%" P= RIx64 " data 0x%" PRIx64 -aspeed_i3c_device_read(uint32_t deviceid, uint64_t offset, uint64_t data) = "I3C Dev[%u] read: offset 0x%" PRIx64 " data 0x%" PRIx64 -aspeed_i3c_device_write(uint32_t deviceid, uint64_t offset, uint64_t data)= "I3C Dev[%u] write: offset 0x%" PRIx64 " data 0x%" PRIx64 - # aspeed_pwm.c aspeed_pwm_read(uint64_t offset, uint64_t data) "read: offset 0x%" PRIx64 = " data 0x%" PRIx64 aspeed_pwm_write(uint64_t offset, uint64_t data) "write: offset 0x%" PRIx6= 4 " data 0x%" PRIx64 --=20 2.43.0