From nobody Sun Feb 8 21:42:24 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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=nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1770108926; cv=none; d=zohomail.com; s=zohoarc; b=JTQTLsfrpMztPn/HTVN5yuIW2Oz49wQv/Y40aPtuiN1dZjRsgjIsbUdDiF+F3MjrsUPwVjR/JivkXM5Km27SiCxMo/7F8nU6XHYBusIJiRaei6P/ZvBFYQcK42aiHGJit6iwoZ/nSRbGaoe6baz3uEcGXxQPaq1nsjVOkrDRHck= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770108926; 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:Reply-To:Reply-To:References:Sender:Subject:Subject:To:To:Message-Id; bh=uQ3jew1pk5bT39eRvKkflg3R1+x8cWI5q3PCdN9XNn8=; b=gFfdLtsCokCRFP2aLyRrjlEpxstOw4dESNCI+CJKe590H/36xFUzkDuCQ9OThKmiJKCFhk5xFTGUwSDxOX/0LMxrP7rUgOFY3c0Ami/TB0x9SzHOGkq5eTbuOsI6kwSuU14HVlaIRVdvyEJuVwuAYHJPQPMT3vWWeMOAxx1BWLM= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 177010892631334.56565659015132; Tue, 3 Feb 2026 00:55:26 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vnC9e-0004h7-9Q; Tue, 03 Feb 2026 03:53:02 -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 1vnC9a-0004cY-Hu; Tue, 03 Feb 2026 03:52:58 -0500 Received: from mail.aspeedtech.com ([211.20.114.72] helo=TWMBX01.aspeed.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vnC9Z-0002qU-6H; Tue, 03 Feb 2026 03:52:58 -0500 Received: from TWMBX01.aspeed.com (192.168.0.62) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Tue, 3 Feb 2026 16:52:32 +0800 Received: from mail.aspeedtech.com (192.168.10.10) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server id 15.2.1748.10 via Frontend Transport; Tue, 3 Feb 2026 16:52:32 +0800 To: , , Paolo Bonzini , Peter Maydell , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Steven Lee , Troy Lee , Andrew Jeffery , Joel Stanley , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "open list:All patches CC here" , "open list:ARM TCG CPUs" CC: , , , Patrick Venture Subject: [PATCH v2 06/20] hw/i3c/dw-i3c: Add more reset values Date: Tue, 3 Feb 2026 16:52:06 +0800 Message-ID: <20260203085229.1543287-7-jamin_lin@aspeedtech.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260203085229.1543287-1-jamin_lin@aspeedtech.com> References: <20260203085229.1543287-1-jamin_lin@aspeedtech.com> 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=211.20.114.72; envelope-from=jamin_lin@aspeedtech.com; helo=TWMBX01.aspeed.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_FAIL=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: , Reply-to: Jamin Lin From: Jamin Lin via qemu development Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZM-MESSAGEID: 1770108927618154100 Content-Type: text/plain; charset="utf-8" From: Joe Komlodi Adds reset values for the new registers added. Signed-off-by: Joe Komlodi Reviewed-by: Patrick Venture Reviewed-by: Jamin Lin --- hw/i3c/dw-i3c.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/hw/i3c/dw-i3c.c b/hw/i3c/dw-i3c.c index 2f04c69320..7bb33c7a9e 100644 --- a/hw/i3c/dw-i3c.c +++ b/hw/i3c/dw-i3c.c @@ -268,14 +268,32 @@ REG32(DEVICE_ADDR_TABLE_LOC1, 0x280) FIELD(DEVICE_ADDR_TABLE_LOC1, LEGACY_I2C_DEVICE, 31, 1) =20 static const uint32_t dw_i3c_resets[DW_I3C_NR_REGS] =3D { - [R_HW_CAPABILITY] =3D 0x000e00bf, + /* Target mode is not supported, don't advertise it for now. */ + [R_HW_CAPABILITY] =3D 0x000e00b9, [R_QUEUE_THLD_CTRL] =3D 0x01000101, + [R_DATA_BUFFER_THLD_CTRL] =3D 0x01010100, + [R_SLV_EVENT_CTRL] =3D 0x0000000b, + [R_QUEUE_STATUS_LEVEL] =3D 0x00000002, + [R_DATA_BUFFER_STATUS_LEVEL] =3D 0x00000010, + [R_PRESENT_STATE] =3D 0x00000003, [R_I3C_VER_ID] =3D 0x3130302a, [R_I3C_VER_TYPE] =3D 0x6c633033, [R_DEVICE_ADDR_TABLE_POINTER] =3D 0x00080280, [R_DEV_CHAR_TABLE_POINTER] =3D 0x00020200, + [R_SLV_CHAR_CTRL] =3D 0x00010000, [A_VENDOR_SPECIFIC_REG_POINTER] =3D 0x000000b0, [R_SLV_MAX_LEN] =3D 0x00ff00ff, + [R_SLV_TSX_SYMBL_TIMING] =3D 0x0000003f, + [R_SCL_I3C_OD_TIMING] =3D 0x000a0010, + [R_SCL_I3C_PP_TIMING] =3D 0x000a000a, + [R_SCL_I2C_FM_TIMING] =3D 0x00100010, + [R_SCL_I2C_FMP_TIMING] =3D 0x00100010, + [R_SCL_EXT_LCNT_TIMING] =3D 0x20202020, + [R_SCL_EXT_TERMN_LCNT_TIMING] =3D 0x00300000, + [R_BUS_FREE_TIMING] =3D 0x00200020, + [R_BUS_IDLE_TIMING] =3D 0x00000020, + [R_EXTENDED_CAPABILITY] =3D 0x00000239, + [R_SLAVE_CONFIG] =3D 0x00000023, }; =20 static uint64_t dw_i3c_read(void *opaque, hwaddr offset, unsigned size) --=20 2.43.0