From nobody Wed Nov 12 01:49:19 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1567307448; cv=none; d=zoho.com; s=zohoarc; b=f/W1eFD/vlKJKFMocxochPOMvXtEuEFI1iOy0w6Ld24uhdqtZCiqiHrsokFlMax304K8j3hb0g3QusMSr/jZq+1rZt8nE582C3Zu1aa3hOWWyASGBXl6x+8Xh/e7ZqPpeoGjDAffarNFOdNhQxPHsgcIy8mrYAmUILRKrlOzI/M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1567307448; h=Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=IshGuK0zG82jB/Tkkvia5OvvqGN+xGCtzZEixWay3tY=; b=Dd8q64CwItQgLffrCqbqONImDg4CQp/Y3XXQdn/OVol6EF6UBTtdWFDD7VmU14cED9qhK5VidVGxu84om1E9ngIYWtulfccGtBujpZ6ra1A3KmdrMAFlfbGZQsZgucdYsRP/UR2bkLvua8521IIebuU7UrA81G1looQA73rPb9Q= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 156730744873925.640349367134263; Sat, 31 Aug 2019 20:10:48 -0700 (PDT) Received: from localhost ([::1]:47332 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4GGN-0007px-2Z for importer@patchew.org; Sat, 31 Aug 2019 23:10:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47968) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4Fzu-0007lF-9C for qemu-devel@nongnu.org; Sat, 31 Aug 2019 22:53:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4Fzs-0006oU-U2 for qemu-devel@nongnu.org; Sat, 31 Aug 2019 22:53:45 -0400 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]:43064) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i4Fzs-0006mo-Ln; Sat, 31 Aug 2019 22:53:44 -0400 Received: by mail-pg1-x542.google.com with SMTP id u72so1305093pgb.10; Sat, 31 Aug 2019 19:53:44 -0700 (PDT) Received: from localhost.localdomain (unknown-224-80.windriver.com. [147.11.224.80]) by smtp.gmail.com with ESMTPSA id p10sm11453307pff.132.2019.08.31.19.53.42 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 31 Aug 2019 19:53:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=IshGuK0zG82jB/Tkkvia5OvvqGN+xGCtzZEixWay3tY=; b=XV/SLgyF6gajM2CKQb1Uac/ZiTK0JxCJz4+jOoIQnEMFl5zxh1FpZ342DRH4Y9o3a4 AVsJR5+dZRREPb75lbIndiSLaDnwHM1I0emAH+Tx7IfaY/0O6c0w9jymjRFvQfmmDNsV CIZ9HiETsahARH/R9EpDhBTkO+WiCpfbeNLVi1SeoZH5xm1r02fDIXC9LZAUwp4Vvw4I FiPoz+b1jCIVG+fWX7FNZOHkqq9Hbn7WIPID0nU7HizIcpBXbvBI36KrGjYOgp7oQfWl F3n6or+NA59Nj2Ji/4XLR/LBzOx53MiPP6v60z83+gLjbtXpGWW/4FQ3eIVBc4bsGdXh pmDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=IshGuK0zG82jB/Tkkvia5OvvqGN+xGCtzZEixWay3tY=; b=U+dNwb8muHvJzBLi3lrXNt0OHyMzfdc1kO21tkugsXmjBqg0d+OOS/pZBMzD7pZGcN 4Zf3SIHQg2l5scbjqpIzkBBEE4iyFt42IVCdr+MAkY4qfwlVGb4Mn/kIV2K6AWv/UeGA jn32YNsdm6aa2MK/LyqjQ+9yDneWixYLLXVG8YGhRbztYuCRSq1w4k3tvN0ThoVfV3RS zY/gNLsWiK8/bp6CYMWIykFofBZ/i+LEnzf247z74DqyuNWA8MIy4W2xHkqtxp0W7c2/ 1b7Gmu50j+Dho4oq+zJlhY51p7fDGFz8UoE7C7p5WhabCcmqzv5k5CNAPvBOJPF681Sq p1xg== X-Gm-Message-State: APjAAAU5+pzzB5jNafyAbFU/qT9qjc8KQt72a7o/Y8/7s/Qx6fz0In3s Gs5hsLRR6bmSmxSH917NVGg= X-Google-Smtp-Source: APXvYqzPTMxfV5ajwTtX9Njcl8giLCwo97Quk56Shp3HMR9xddEp3ufhlreFCB4Bdt3CYPoqq7Tjig== X-Received: by 2002:a17:90a:9907:: with SMTP id b7mr75295pjp.101.1567306423864; Sat, 31 Aug 2019 19:53:43 -0700 (PDT) From: Bin Meng To: Alistair Francis , Palmer Dabbelt , qemu-devel@nongnu.org, qemu-riscv@nongnu.org Date: Sat, 31 Aug 2019 19:53:04 -0700 Message-Id: <1567306391-2682-24-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1567306391-2682-1-git-send-email-bmeng.cn@gmail.com> References: <1567306391-2682-1-git-send-email-bmeng.cn@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::542 Subject: [Qemu-devel] [PATCH v7 23/30] riscv: sifive_u: Update UART base addresses and IRQs X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 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" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" This updates the UART base address and IRQs to match the hardware. Signed-off-by: Bin Meng Reviewed-by: Jonathan Behrens Acked-by: Alistair Francis Reviewed-by: Chih-Min Chao --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - update IRQ numbers of both UARTs to match hardware as well Changes in v2: None hw/riscv/sifive_u.c | 4 ++-- include/hw/riscv/sifive_u.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/riscv/sifive_u.c b/hw/riscv/sifive_u.c index 3b1fe46..c7b9f96 100644 --- a/hw/riscv/sifive_u.c +++ b/hw/riscv/sifive_u.c @@ -62,8 +62,8 @@ static const struct MemmapEntry { [SIFIVE_U_CLINT] =3D { 0x2000000, 0x10000 }, [SIFIVE_U_PLIC] =3D { 0xc000000, 0x4000000 }, [SIFIVE_U_PRCI] =3D { 0x10000000, 0x1000 }, - [SIFIVE_U_UART0] =3D { 0x10013000, 0x1000 }, - [SIFIVE_U_UART1] =3D { 0x10023000, 0x1000 }, + [SIFIVE_U_UART0] =3D { 0x10010000, 0x1000 }, + [SIFIVE_U_UART1] =3D { 0x10011000, 0x1000 }, [SIFIVE_U_DRAM] =3D { 0x80000000, 0x0 }, [SIFIVE_U_GEM] =3D { 0x100900FC, 0x2000 }, }; diff --git a/include/hw/riscv/sifive_u.h b/include/hw/riscv/sifive_u.h index 2a023be..b41e730 100644 --- a/include/hw/riscv/sifive_u.h +++ b/include/hw/riscv/sifive_u.h @@ -64,8 +64,8 @@ enum { }; =20 enum { - SIFIVE_U_UART0_IRQ =3D 3, - SIFIVE_U_UART1_IRQ =3D 4, + SIFIVE_U_UART0_IRQ =3D 4, + SIFIVE_U_UART1_IRQ =3D 5, SIFIVE_U_GEM_IRQ =3D 0x35 }; =20 --=20 2.7.4